santos2002 Posted February 7 Report Share Posted February 7 hola me pueden ayudar con este sistema que esta mal escrito da errores. Consiste en matar mobs y se escucha sonidos son 13 . dejo los archivos haber si hay alguno que los puede arreglar: server : common service :añadir #define PC_KILL_SOUND_EFFECT en game/src/ char.cpp //Find in void CHARACTER::Initialize() m_bSendHorseLevel = 0; ///Add #if defined(PC_KILL_SOUND_EFFECT) m_dwLastPCKillTime = time(0); b_PCKillStage = 0; #endif char.h //Find public: void SetStone(LPCHARACTER pkChrStone); ///Add Above #if defined(PC_KILL_SOUND_EFFECT) private: time_t m_dwLastPCKillTime; BYTE b_PCKillStage; public: time_t GetPCLastKillTime() const { return m_dwLastPCKillTime; } void SetPCLastKillTime(time_t t) { m_dwLastPCKillTime = t; } BYTE GetPCKillStage() const { return b_PCKillStage; } void SetPCKillStage(BYTE st) { b_PCKillStage = st; } #endif char_battle.cpp //Find if (pkKiller && pkKiller->IsPC()) { ///Add in #if defined(PC_KILL_SOUND_EFFECT) // if (IsPC() || GetMobRank() >= MOB_RANK_BOSS) { const BYTE sEffMax = 13; const double TimeLimit = 9.5; // sec if (pkKiller->GetPCKillStage() && difftime(get_global_time(), pkKiller->GetPCLastKillTime()) >= TimeLimit) pkKiller->SetPCKillStage(0); if (pkKiller->GetPCKillStage() < sEffMax) pkKiller->SetPCKillStage(pkKiller->GetPCKillStage() + 1); pkKiller->ChatPacket(CHAT_TYPE_COMMAND, "kill_sound %d", pkKiller->GetPCKillStage()); pkKiller->SetPCLastKillTime(get_global_time()); // } #endif Debes iniciar sesión para ver el contenido del enlace en esta publicación. aqui dejo todo el sistema quien lo arregle espero que me lo diga un saludo Quote Link to comment Share on other sites More sharing options...
santos2002 Posted February 11 Author Report Share Posted February 11 no hay nadie que pueda solucionar este sistema Quote Link to comment Share on other sites More sharing options...
DeadOfLove Posted February 27 Report Share Posted February 27 deja informacion mas clara del problema, asi nadie te va ayudar, puede mejorarse el codigo pero sino me indicas que error tiene no me voy a poner a test algo que no es interesante para mi Quote Link to comment Share on other sites More sharing options...
santos2002 Posted February 28 Author Report Share Posted February 28 tiene todo el codigo pensaba el que entienda c++ lo metiera en su server y lo corrijiera despues yo lo he quitado del server Quote Link to comment Share on other sites More sharing options...
DeadOfLove Posted March 1 Report Share Posted March 1 hace 15 horas, santos2002 dijo: tiene todo el codigo pensaba el que entienda c++ lo metiera en su server y lo corrijiera despues yo lo he quitado del server como te mencione antes, no es algo que me llame la atencion, no voy a ponerme a perder tiempo asi, no estas pagando por soporte estas pidiendo ayuda Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.