-
Posts
70 -
Joined
-
Last visited
-
Days Won
3 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by lolor2
-
-
And if I want to make more than one tag for each GM level?
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)
Try this ...
if(global_chat) { char buf[256]; char chatbuf_global[CHAT_MAX_LEN + 1]; const BYTE char_empire = ch->GetEmpire(); if (ch->GetGMLevel() != GM_PLAYER) { strlcpy(buf, LC_TEXT("Staff"), sizeof(buf)); std::string staff_color = "|cFFFFC700|H|h["; staff_color += buf; staff_color += "]|cFFA7FFD4|H|h"; sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf); } else if (char_empire == 1) { strlcpy(buf, LC_TEXT("Shinsoo"), sizeof(buf)); std::string kingdom_red = "|cFFff0000|H|h["; kingdom_red += buf; kingdom_red += "]|cFFA7FFD4|H|h"; sprintf(chatbuf_global, "%s %s", kingdom_red.c_str(), chatbuf); } else if (char_empire == 2) { strlcpy(buf, LC_TEXT("Chunjo"), sizeof(buf)); std::string kingdom_yel = "|cFFFFFF00|H|h["; kingdom_yel += buf; kingdom_yel += "]|cFFA7FFD4|H|h"; sprintf(chatbuf_global, "%s %s", kingdom_yel.c_str(), chatbuf); } else if (char_empire == 3) { strlcpy(buf, LC_TEXT("Jinno"), sizeof(buf)); std::string kingdom_blue = "|cFF0080FF|H|h["; kingdom_blue += buf; kingdom_blue += "]|cFFA7FFD4|H|h"; sprintf(chatbuf_global, "%s %s", kingdom_blue.c_str(), chatbuf); } }
You first have to check of Player is GM or not. Because a GM is also in an Empire. So the Empire Check will be first True and they will never reach the GM Check.
Greatz
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: ...... }
-
Installing and configuring MySQL.
Now the mysql server :
In the freebsd console type these commands :
?
pkg install mysql56-server
?
echo 'apache24_enable="YES"' >> /etc/rc.conf
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
-
its a directx9 non nvidia gpu problem
dont use directx9 xD
-
thank you
-
Scan:
https://www.virustotal.com/pl/file/8e0a106f1ad93fb808956f4be882e2cda99c898901f820194931e7dbae70bcaa/analysis/1420425032/
Download:
http://ovh.to/AHa5whU
password?
-
so where does it sends the hackreports to?
-
Hey Guys! Im seeing you guys are having the logo problem, i also had that error so i tried to solve that with python because i dont know c++.
So you guys just need to add this in prototype.py file, in RunApp function, in the beggining:
os.popen(r"hshieldHSUpdate.exe")
Thank only makes the hackshield update appear, the icon in the corner still doesnt appear.
I dont know if that was the error you guys were talking about but i hope i helped.
Sorry for my bad English,
Kind Regards,
Frozen
u cant run hackshield without licensing server
-
thats the part in the source which decides the usage of all refined effects + blueshining
This paste has been removed!pastebin trolls us
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
- 3
- 1
-
-
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
-
no dbcache running on port 15000
- 1
-
bump
You need to change names size in item_proto i think...
ofc not item != mob/npc
- 1
-
--snip--
- 1
-
-
CHARACTER_NAME_MAX_LEN
everything is a character(pet,mount,player,npc,monster,portal,whatever)
- 1
-
hdd will work well because most things are in ram
and u dont have that much players that u need fast iops/read/write
-
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?
-
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^^
- 3
-
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)
- 1
-
please no visual basic pleaseeeeeee
-
use string.find then ...
string.find(pc.get_name(),"[VIP]") != nil
which should definitly work because of:
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif
Vector
in Community Support - Questions & Answers
Posted
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