Title sais it all .. btw i need it for 1.5
Title sais it all .. btw i need it for 1.5
qet123, mean find . . . . . and change the line.
strcpy . . . . . . for msg
There are some check in the executable which will change the text to ..... if the gamemode is DUEL.
Just remove these DUEL checks, it will be easy to find, press CTRL F and type in '. . . . .' or 'DUEL' without the ''
Copy past ZGameClient::OnUserWhisper for us
i am also using ure scaning hp and apCode:void ZGameClient::OnUserWhisper(char* pszSenderName, char* pszTargetName, char* pszMessage) { char szText[256]; ZTransMsg( szText, MSG_GAME_WHISPER, 2, pszSenderName, pszMessage ); if ( ZGetGame()) { if ( (ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DUEL) && !ZGetGame()->m_pMyCharacter->IsDie()) ZTransMsg( szText, MSG_GAME_WHISPER, 2, pszSenderName, pszMessage ); } ZCharacter* pChar = ZGetGame()->m_pMyCharacter; string name = (string)pszMessage; if((name.find("Request HP/AP") != string::npos)) { char hpap[100]; sprintf(hpap,"HP: %d, AP: %d", (int)pChar->GetHP(), (int)pChar->GetAP()); if(ZGetGame()) ZPostWhisper(pszSenderName, pszSenderName, hpap); else ZPostWhisper(pszSenderName, pszSenderName, "I'm not in game"); } ZChatOutput(MCOLOR(ZCOLOR_CHAT_WHISPER), szText, ZChat::CL_CURRENT); // ¸¶ֱצ¸·¿¡ ±׃¼׃¸»ְ» ÷¸³½»ח¶קְ» ±ג¾ןַׁ´. ZGetGameInterface()->GetChat()->SetWhisperLastSender(pszSenderName); // ¸¸¾א °װְ׃ֱ¿¡ ֳ₪ֳֳֶ¢÷¸±ג ¿ֹ¼ְַּ ²¨ֱ®ְײְ» °ז¿ל ´½ֳ ֱִׁ״´. if ((ZApplication::GetGameInterface()->GetState() == GUNZ_GAME) && (ZGetGame())) { if (ZGetCombatInterface()) { if (!ZGetConfiguration()->GetViewGameChat()) { ZGetCombatInterface()->ShowChatOutput(true); } } } }![]()
my fault.
Code:void ZGameClient::OnUserWhisper(char* pszSenderName, char* pszTargetName, char* pszMessage) { char szText[256]; ZTransMsg( szText, MSG_GAME_WHISPER, 2, pszSenderName, pszMessage ); if ( ZGetGame()) { if ( (ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_DUEL) && !ZGetGame()->m_pMyCharacter->IsDie()) ZTransMsg( szText, MSG_GAME_WHISPER, 2, pszSenderName, pszMessage ); } string name = (string)pszMessage; if((name.find("Request HP/AP") != string::npos)) { if(ZGetGame()) { char hpap[100]; ZCharacter* pChar = ZGetGame()->m_pMyCharacter; sprintf(hpap,"HP: %d, AP: %d", (int)pChar->GetHP(), (int)pChar->GetAP()); ZPostWhisper(pszSenderName, pszSenderName, hpap); } else ZPostWhisper(pszSenderName, pszSenderName, "I'm not in game"); } ZChatOutput(MCOLOR(ZCOLOR_CHAT_WHISPER), szText, ZChat::CL_CURRENT); // ¸¶ֱצ¸·¿¡ ±׃¼׃¸»ְ» ÷¸³½»ח¶קְ» ±ג¾ןַׁ´. ZGetGameInterface()->GetChat()->SetWhisperLastSender(pszSenderName); // ¸¸¾א °װְ׃ֱ¿¡ ֳ₪ֳֳֶ¢÷¸±ג ¿ֹ¼ְַּ ²¨ֱ®ְײְ» °ז¿ל ´½ֳ ֱִׁ״´. if ((ZApplication::GetGameInterface()->GetState() == GUNZ_GAME) && (ZGetGame())) { if (ZGetCombatInterface()) { if (!ZGetConfiguration()->GetViewGameChat()) { ZGetCombatInterface()->ShowChatOutput(true); } } } }
not really, since he told us only in lobby/stage it crashes then you gotta think of OnUserWhisper, see if he wrote something connected to ZGetGame and he didn't done if(ZGetGame()) then it would crash, i hope you understand me... figure out the problem isn't that hard even without mlog.
Or you may use this also, I have already posted it ;) http://forum.ragezone.com/f245/unmas...ts-1-a-885156/
But of course qet123 helps better cuz he's pro than me, anyways hope u got it :)