Jump to content
  • 0

Private message problem


ic3

Question

Hello to all. I have a big problem with my server. If i press shift+enter and type any name (even if that name dosen`t exist) and i send a message, it dosen`t show me that the player with that name is offline. Can someone have any idea how to solve it?

Thanks

vlcbkgifpagespeedceqc3u.gif

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

Can someone tell me wich file is searching if the player is online or offline when i send a pm?

Or what file i need to replace to fix this problem

vlcbkgifpagespeedceqc3u.gif

Link to comment
  • 0

If the problem isn't on input_main.cpp, take a look to OnRecvWhisperError def from game.py, I think.

when you return 0 and server doesn't boot:

unknown.png

Link to comment
  • 0

If the problem isn't on input_main.cpp, take a look to OnRecvWhisperError def from game.py, I think.

This is the OnRecvWhisperError def from game.py:

 

def OnRecvWhisperError(self, mode, name, line):
pname = player.GetName()
Gamemaster1 = constInfo.GM1Name
Gamemaster2 = constInfo.GM2Name
Gamemaster3 = constInfo.GM3Name
Gamemaster4 = constInfo.GM4Name
Gamemaster5 = constInfo.GM5Name
Gamemaster6 = constInfo.GM6Name
Gamemaster7 = constInfo.GM7Name
Gamemaster8 = constInfo.GM8Name
Gamemaster9 = constInfo.GM9Name
Gamemaster10 = constInfo.GM10Name
Gamemaster11 = constInfo.GM11Name
Gamemaster12 = constInfo.GM12Name
Gamemaster13 = constInfo.GM13Name
Gamemaster14 = constInfo.GM14Name
Gamemaster15 = constInfo.GM15Name
Gamemaster16 = constInfo.GM16Name
if locale.WHISPER_ERROR.has_key(mode):
if (name == (Gamemaster1) != -1) and pname != Gamemaster1 and constInfo.GM1Online == 0:
constInfo.GM1Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster1) != -1) and pname != Gamemaster1 and constInfo.GM1Online == 1:
constInfo.GM1Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster2) != -1) and pname != Gamemaster2 and constInfo.GM2Online == 0:
constInfo.GM2Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster2) != -1) and pname != Gamemaster2 and constInfo.GM2Online == 1:
constInfo.GM2Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster3) != -1) and pname != Gamemaster3 and constInfo.GM3Online == 0:
constInfo.GM3Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster3) != -1) and pname != Gamemaster3 and constInfo.GM3Online == 1:
constInfo.GM3Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster4) != -1) and pname != Gamemaster4 and constInfo.GM4Online == 0:
constInfo.GM4Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster4) != -1) and pname != Gamemaster4 and constInfo.GM4Online == 1:
constInfo.GM4Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster5) != -1) and pname != Gamemaster5 and constInfo.GM5Online == 0:
constInfo.GM5Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster5) != -1) and pname != Gamemaster5 and constInfo.GM5Online == 1:
constInfo.GM5Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster6) != -1) and pname != Gamemaster6 and constInfo.GM6Online == 0:
constInfo.GM6Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster6) != -1) and pname != Gamemaster6 and constInfo.GM6Online == 1:
constInfo.GM6Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster7) != -1) and pname != Gamemaster7 and constInfo.GM7Online == 0:
constInfo.GM7Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster7) != -1) and pname != Gamemaster7 and constInfo.GM7Online == 1:
constInfo.GM7Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster8) != -1) and pname != Gamemaster8 and constInfo.GM8Online == 0:
constInfo.GM8Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster8) != -1) and pname != Gamemaster8 and constInfo.GM8Online == 1:
constInfo.GM8Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return 
elif (name == (Gamemaster9) != -1) and pname != Gamemaster9 and constInfo.GM9Online == 0:
constInfo.GM9Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster9) != -1) and pname != Gamemaster9 and constInfo.GM9Online == 1:
constInfo.GM9Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster10) != -1) and pname != Gamemaster10 and constInfo.GM10Online == 0:
constInfo.GM10Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster10) != -1) and pname != Gamemaster10 and constInfo.GM10Online == 1:
constInfo.GM10Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster11) != -1) and pname != Gamemaster11 and constInfo.GM11Online == 0:
constInfo.GM11Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster11) != -1) and pname != Gamemaster11 and constInfo.GM11Online == 1:
constInfo.GM11Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster12) != -1) and pname != Gamemaster12 and constInfo.GM12Online == 0:
constInfo.GM12Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster12) != -1) and pname != Gamemaster12 and constInfo.GM12Online == 1:
constInfo.GM12Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster13) != -1) and pname != Gamemaster13 and constInfo.GM13Online == 0:
constInfo.GM13Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster13) != -1) and pname != Gamemaster13 and constInfo.GM13Online == 1:
constInfo.GM13Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster14) != -1) and pname != Gamemaster14 and constInfo.GM14Online == 0:
constInfo.GM14Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster14) != -1) and pname != Gamemaster14 and constInfo.GM14Online == 1:
constInfo.GM14Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster15) != -1) and pname != Gamemaster15 and constInfo.GM15Online == 0:
constInfo.GM15Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster15) != -1) and pname != Gamemaster15 and constInfo.GM15Online == 1:
constInfo.GM15Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster16) != -1) and pname != Gamemaster16 and constInfo.GM16Online == 0:
constInfo.GM16Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " nu este online")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return
elif (name == (Gamemaster16) != -1) and pname != Gamemaster16 and constInfo.GM16Online == 1:
constInfo.GM16Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Membrul " + name + " Momentan este Offline")
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Membrul " + name + " nu este online.")
return 
else:
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, locale.WHISPER_ERROR[mode](name))
elif mode == 4:
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, str)
else:
chat.AppendWhisper(chat.WHISPER_TYPE_INFO, name, "Whisper Unknown Error(mode=%d, name=%s)" % (mode, name))


self.interface.RecvWhisper(name)

Is from a staff contact sys that i don`t use. And where can i find  input_main.cpp?

vlcbkgifpagespeedceqc3u.gif

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 0

      error: unable to find library

    2. 19

      Race Height of Actors

    3. 2

      How to add Chromium Embedded Browser ?

    4. 2

      How to add Chromium Embedded Browser ?

    5. 2

      How to add Chromium Embedded Browser ?

    6. 1

      Fish stack catch

    7. 3

      Land of Heroes EU

  • Recently Browsing

    No registered users viewing this page.

×
×
  • 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.