Unmask The Duel Match Whisper
Title sais it all .. btw i need it for 1.5
Re: Unmask The Duel Match Whisper
qet123, mean find . . . . . and change the line.
Re: Unmask The Duel Match Whisper
strcpy . . . . . . for msg
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
Tankado
qet123, mean find . . . . . and change the line.
to change the line to %s like as in message or what? and is it in ZGame.cpp ? where should i look for it ??
Re: Unmask The Duel Match Whisper
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 ''
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
Gunblade
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 ''
Thank's i Fixed it :D: :D: thank you all for your help can delete thread :D:
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
Gunblade
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 ''
i have a new problem everytime someone whispers me in the lobby i get crashed any fix ? :D:
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
Rejain
i have a new problem everytime someone whispers me in the lobby i get crashed any fix ? :D:
Check it in Gunz.dmp file ... no one can make out what is problem unless u diagnose the .dmp file ... if u still cant get problem, u post screenshots of debugged dmp file here.
Re: Unmask The Duel Match Whisper
Copy past ZGameClient::OnUserWhisper for us
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
qet123
Copy past ZGameClient::OnUserWhisper for us
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 );
}
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);
}
}
}
}
i am also using ure scaning hp and ap :D:
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
Rejain
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 );
}
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);
}
}
}
}
i am also using ure scaning hp and ap :D:
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);
}
}
}
}
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
qet123
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);
}
}
}
}
Thank you sir. :D:
Re: Unmask The Duel Match Whisper
Quote:
Originally Posted by
Ronny786
Check it in Gunz.dmp file ... no one can make out what is problem unless u diagnose the .dmp file ... if u still cant get problem, u post screenshots of debugged dmp file here.
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.
Re: Unmask The Duel Match Whisper
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 :)