Jump to content

gokhandemir

Member
  • Content Count

    29
  • Joined

  • Last visited

  • Yangs

    213 [ Donate ]

Community Reputation

15 Neutral

About gokhandemir

  • Rank
    Neutral
  • Birthday 09/16/1998

Informations

  • Gender
    Male
  • Location
    Turkey

Profile

Recent Profile Visitors

397 profile views
  1. <?php class SocketConnection { private $m_socket; private $m_recv_buf; public function __construct() { $this->m_socket = 0; $this->m_recv_buf = ""; } public function Connect($host, $port, $timeout) { $this->m_socket = fsockopen($host, $port, $errno, $errstr, $timeout); if (!$this->m_socket) { echo(sprintf("%s (%d)<br>\n", $errstr, $errno)); return false; } return true; } public function Recv($len) { $this->m_recv_buf = fread($this->m_socket, $len); } public function Send($buf) { fwrite($this->m_socket, $buf); } public function GetRecvBuf() { return $this->m_recv_buf; } } class GameConnector { private $m_socketConnector; public function __construct($host, $port) { $this->m_socketConnector = new SocketConnection; if (!$this->m_socketConnector->Connect($host, $port, 5)) return false; $this->m_socketConnector->Recv(32); $recvBuf = $this->m_socketConnector->GetRecvBuf(); if (ord($recvBuf[0]) != 253) { echo("GameConnector does not handle this packet!"); return false; } } public function Send($str) { $this->m_socketConnector->Send("@".$str."\n"); $this->m_socketConnector->Recv(64); } public function GetBuffer() { return $this->m_socketConnector->GetRecvBuf(); } } $host = "192.168.1.120"; //ip adresi $port = 13000; // port $api = new GameConnector($host, $port); $api->Send("sjefjfhsfjkfs1"); // p2p şifre $api->Send("NOTICE Web Uzerinden Bildirim Yolla Testi 2"); // Komut $apiBuf = substr($api->GetBuffer(), 0, -1); if(empty($apiBuf)) { echo "Game did not respond"; exit; } if(is_numeric($apiBuf[0])) { $userCount = explode(" ", $apiBuf); echo sprintf("Total[%d] %d / %d / %d (this server %d)", $userCount[0], $userCount[1], $userCount[2], $userCount[3], $userCount[4]); exit; } if($apiBuf=="UNKNOWN") echo "Command send and executed no custom response"; else echo $apiBuf; ?> source
  2. cmd.h open: search> extern void SendNoticeMap(const char* c_pszBuf, int nMapIndex, bool bBigFont); add on top> extern const char * userDC(const char * userName); cmd_gm.cpp open: search> void SendLog(const char * c_pszBuf) { const DESC_MANAGER::DESC_SET & c_ref_set = DESC_MANAGER::instance().GetClientSet(); std::for_each(c_ref_set.begin(), c_ref_set.end(), log_packet_func(c_pszBuf)); } add on top> const char * userDC(const char * userName) { LPDESC d = DESC_MANAGER::instance().FindByCharacterName(userName); LPCHARACTER tch = d ? d->GetCharacter() : NULL; if (!tch) { return "Player not in game"; }else{ DESC_MANAGER::instance().DestroyDesc(d); return "Player kicked out"; } } input.cpp open: search: else if (!stBuf.compare(0, 3, "DC ")) change code completely else if (!stBuf.compare(0, 3, "DC ")) { std::string msg = stBuf.substr(3, LOGIN_MAX_LEN); /// dev_log(LOG_DEB0, "DC : '%s'", msg.c_str()); stResult = userDC(msg.c_str()); /*TPacketGGDisconnect pgg; pgg.bHeader = HEADER_GG_DISCONNECT; strlcpy(pgg.szLogin, msg.c_str(), sizeof(pgg.szLogin)); P2P_MANAGER::instance().Send(&pgg, sizeof(TPacketGGDisconnect)); // delete login key { TPacketDC p; strlcpy(p.login, msg.c_str(), sizeof(p.login)); db_clientdesc->DBPacket(HEADER_GD_DC, 0, &p, sizeof(p)); }*/ } @xP3NG3Rx @WeedHex Test:
  3. 0617 22:48:14965 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted. 0617 22:48:15266 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/emoticon/klicon.mse) Error 0617 22:48:15266 :: CInstanceBase::RegisterEffect(eEftType=106, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/emoticon/klicon.mse, isCache=0) - Error 0617 22:48:17934 :: Failed to load script file : uiscript/attachstonedialog.py 0617 22:48:17934 :: error : No file or directory 0617 22:48:17938 :: ui.py(line:3115) LoadScriptFile system.py(line:192) execfile system.py(line:161) Run system.py(line:176) __LoadTextFile__ system.py(line:61) __init__ LoadScriptFile1 - exceptions.IOError:No file or directory 0617 22:48:17939 :: ============================================================================================================ 0617 22:48:17939 :: Abort!!!! 0617 22:48:17939 :: uiAttachMetin.py(line:21) __LoadScript ui.py(line:3121) LoadScriptFile exception.py(line:36) Abort AttachStoneDialog.__LoadScript.LoadObject - exceptions.SystemExit: 0617 22:48:17940 :: ============================================================================================================ 0617 22:48:17940 :: Abort!!!! HELP ME PLS.....
  4. Hello 0617 00:08:30890 :: File "game.py", line 1908, in BINARY_Cube_ResultList 0617 00:08:30890 :: ValueError 0617 00:08:30890 :: : 0617 00:08:30890 :: invalid literal for int(): 0617 00:08:30890 :: 0617 00:08:49370 :: Traceback (most recent call last): 0617 00:08:49371 :: File "game.py", line 1869, in BINARY_Cube_Open 0617 00:08:49371 :: KeyError 0617 00:08:49371 :: : 0617 00:08:49371 :: materialList 0617 00:08:49371 :: 0617 00:09:10935 :: Traceback (most recent call last): 0617 00:09:10935 :: File "game.py", line 1908, in BINARY_Cube_ResultList 0617 00:09:10935 :: ValueError 0617 00:09:10935 :: : 0617 00:09:10936 :: invalid literal for int(): 0617 00:09:10936 :: Error How to show icons
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.