-
Posts
70 -
Joined
-
Last visited
-
Days Won
3 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by lolor2
-
you will probably have a bad time as its not fixed size but yeah convert everything to bytes and send it over to the client with the size of the vector then reproduce the data
-
if (ch->GetGMLevel() == GM_IMPLEMENTOR) else if (ch->GetGMLevel() == GM_HIGH_WIZARD) else if (ch->GetGMLevel() == GM_LOW_WIZARD) else if (ch->GetGMLevel() == GM_GOD) just wondering you guys ever heard something from switch? if (ch->GetGMLevel() == GM_IMPLEMENTOR) else if (ch->GetGMLevel() == GM_HIGH_WIZARD) else if (ch->GetGMLevel() == GM_LOW_WIZARD) else if (ch->GetGMLevel() == GM_GOD) switch(ch->GetGMLevel() ) { case GM_IMPLEMENTOR: ...... }
-
How to install a Web Server Secure on FreeBSD ?
lolor2 replied to Reboot's topic in Operating Systems
I think it is echo 'mysql_enable="YES"' >> /etc/rc.conf OMG, I think because they are drunk. ))))))) Thanks )))))) would you also please add a turoial about how to prevent slowloris attacks else every webserver can be downed with 250kb/s connection -
[BUG]minimap Transparently
lolor2 replied to alin2894's topic in Community Support - Questions & Answers
its a directx9 non nvidia gpu problem dont use directx9 xD -
thank you
-
Hackshield mainline
lolor2 replied to Damixxx0101's topic in Community Support - Questions & Answers
so where does it sends the hackreports to? -
Hackshield mainline
lolor2 replied to Damixxx0101's topic in Community Support - Questions & Answers
u cant run hackshield without licensing server -
This paste has been removed! pastebin trolls us [Hidden Content] [Hidden Content]
-
--snip--
-
bug with new binary / game (mainline_released)
lolor2 replied to .Avenue™'s topic in Community Support - Questions & Answers
ok my first guess u fucked something up second guess what says syserr? -
how about u stop that? https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif and no!
- 1 reply
-
- 1
-
no dbcache running on port 15000
-
You need to change names size in item_proto i think... ofc not item != mob/npc
-
--snip--
-
--snip--
-
CHARACTER_NAME_MAX_LEN everything is a character(pet,mount,player,npc,monster,portal,whatever)
-
hdd will work well because most things are in ram and u dont have that much players that u need fast iops/read/write
-
Again.. is this possible?
lolor2 replied to Exygo's topic in Community Support - Questions & Answers
well u could check the time and the server eventflag so that it only gets triggered one time but those are shitty ways use c++^^ -
Nymph()maniac http://www.imdb.com/title/tt1937390/ best movie for a long time
-
what do u need?
-
Again.. is this possible?
lolor2 replied to Exygo's topic in Community Support - Questions & Answers
If you use this os.date, people can easily break that system wrong os.date is always server time lua runs only on the server^^ -
os walk is pretty slow use this : its about 10-25 times faster # -*- coding: utf-8 -*- import ctypes import os import stat if os.name == 'nt': from ctypes import wintypes INVALID_HANDLE_VALUE = ctypes.c_void_p(-1).value ERROR_FILE_NOT_FOUND = 2 ERROR_NO_MORE_FILES = 18 FILE_ATTRIBUTE_DIRECTORY = 16 FILE_ATTRIBUTE_READONLY = 1 SECONDS_BETWEEN_EPOCHS = 11644473600 # seconds between 1601-01-01 and 1970-01-01 kernel32 = ctypes.windll.kernel32 _FindFirstFile = kernel32.FindFirstFileW _FindFirstFile.argtypes = [wintypes.LPCWSTR, ctypes.POINTER(wintypes.WIN32_FIND_DATAW)] _FindFirstFile.restype = wintypes.HANDLE _FindNextFile = kernel32.FindNextFileW _FindNextFile.argtypes = [wintypes.HANDLE, ctypes.POINTER(wintypes.WIN32_FIND_DATAW)] _FindNextFile.restype = wintypes.BOOL _FindClose = kernel32.FindClose _FindClose.argtypes = [wintypes.HANDLE] _FindClose.restype = wintypes.BOOL def _attributes_to_mode(attributes): """Convert Win32 dwFileAttributes to st_mode. Taken from CPython's Modules/posixmodule.c. """ mode = 0 if attributes & FILE_ATTRIBUTE_DIRECTORY: mode |= stat.S_IFDIR | 0111 else: mode |= stat.S_IFREG if attributes & FILE_ATTRIBUTE_READONLY: mode |= 0444 else: mode |= 0666 return mode def _filetime_to_time(filetime): total = filetime.dwHighDateTime << 32 | filetime.dwLowDateTime return total / 10000000.0 - SECONDS_BETWEEN_EPOCHS def _find_data_to_stat(data): st_mode = _attributes_to_mode(data.dwFileAttributes) st_ino = 0 st_dev = 0 st_nlink = 0 st_uid = 0 st_gid = 0 st_size = data.nFileSizeHigh << 32 | data.nFileSizeLow st_atime = _filetime_to_time(data.ftLastAccessTime) st_mtime = _filetime_to_time(data.ftLastWriteTime) st_ctime = _filetime_to_time(data.ftCreationTime) st = os.stat_result((st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid, st_size, st_atime, st_mtime, st_ctime)) return st def listdir_stat(dirname='.', glob=None): dirname = os.path.abspath(dirname) filename = os.path.join(dirname, glob or '*') data = wintypes.WIN32_FIND_DATAW() data_p = ctypes.byref(data) handle = _FindFirstFile(filename, data_p) if handle == INVALID_HANDLE_VALUE: error = ctypes.GetLastError() if error == ERROR_FILE_NOT_FOUND: return raise ctypes.WinError() try: while True: if data.cFileName not in ('.', '..'): st = _find_data_to_stat(data) yield (data.cFileName, st) success = _FindNextFile(handle, data_p) if not success: error = ctypes.GetLastError() if error == ERROR_NO_MORE_FILES: break raise ctypes.WinError() finally: if not _FindClose(handle): raise ctypes.WinError() # Linux/posix -- this is only half-tested and doesn't work at the moment, but # leaving here for future use else: import ctypes import ctypes.util class DIR(ctypes.Structure): pass DIR_p = ctypes.POINTER(DIR) class dirent(ctypes.Structure): _fields_ = ( ('d_ino', ctypes.c_long), ('d_off', ctypes.c_long), ('d_reclen', ctypes.c_ushort), ('d_type', ctypes.c_byte), ('d_name', ctypes.c_char * 256) ) dirent_p = ctypes.POINTER(dirent) _libc = ctypes.CDLL(ctypes.util.find_library('c')) _opendir = _libc.opendir _opendir.argtypes = [ctypes.c_char_p] _opendir.restype = DIR_p _readdir = _libc.readdir _readdir.argtypes = [DIR_p] _readdir.restype = dirent_p _closedir = _libc.closedir _closedir.argtypes = [DIR_p] _closedir.restype = ctypes.c_int DT_DIR = 4 def _type_to_stat(d_type): if d_type == DT_DIR: st_mode = stat.S_IFDIR | 0111 else: st_mode = stat.S_IFREG st = os.stat_result((st_mode, None, None, None, None, None, None, None, None, None)) return st def listdir_stat(dirname='.', glob=None): dir_p = _opendir(dirname) try: while True: p = _readdir(dir_p) if not p: break name = p.contents.d_name if name not in ('.', '..'): st = _type_to_stat(p.contents.d_type) yield (name, st) finally: _closedir(dir_p)
-
please no visual basic pleaseeeeeee
-
Is it possbile something like this?
lolor2 replied to Exygo's topic in Community Support - Questions & Answers
use string.find then ... string.find(pc.get_name(),"[VIP]") != nil which should definitly work because of: [Hidden Content]