Hey Com
Da genug anfragen offen sind von dem Online Board Dachte ich mir mal mache ich es wieder pub.
Zuerst Original Thread:
[Only registered and activated users can see links. Click Here To Register...]
Dann noch ein kleiner Hinnweiß:
Ich habe nur das BT Board also eine erweiterung ich denke mal das macht euch nichts aus :D
Jezt zum einfügen:
uievo2board.py wird in die root.epk gepackt, die anderen beiden Dateien in die uiscript.epk
In der constInfo.py:
Gan am ende:
Jezt alles in der Game.py
Sucht nach:
Dort ersetzt ihr die gesamte Function mit dem hier:
Sucht nach:
Diese Function ersetzt ihr komplett mit diesem hier:
Natürlich müsst ihr das ganze auch noch aufrufen lassen können, das könnt ihr indem ihr in der game.py nach dem hier sucht:
Fügt das darunter:
dann fügt ihr diese neue Function ein:
Jezt sucht ihr nach:
Und fügt des darunter:
Zu lezt den inport oben
Wenn anfragen auf sceens bestehen wie das ausschauen soll oder einer es nicht hinnbekommt das es schauen kann wo und wie er es machen muss kann ich gerne einige sachen machen
So ich hoffe ich konnte einigen damit helfen
mfg
Da genug anfragen offen sind von dem Online Board Dachte ich mir mal mache ich es wieder pub.
Zuerst Original Thread:
[Only registered and activated users can see links. Click Here To Register...]
Dann noch ein kleiner Hinnweiß:
Ich habe nur das BT Board also eine erweiterung ich denke mal das macht euch nichts aus :D
Jezt zum einfügen:
uievo2board.py wird in die root.epk gepackt, die anderen beiden Dateien in die uiscript.epk
In der constInfo.py:
Gan am ende:
PHP Code:
GM1Online = 0
GM2Online = 0
GM3Online = 0
GM4Online = 0
GM5Online = 0
GM6Online = 0
GM7Online = 0
GM8Online = 0
GM9Online = 0
GM10Online = 0
GM11Online = 0
GM12Online = 0
GM13Online = 0
GM14Online = 0
GM15Online = 0
GM16Online = 0
GM1Name = "[SA]4Live"
GM2Name = "[SA]Stammi"
GM3Name = "[SATrust"
GM4Name = "[GM]SnoOpy"
GM5Name = "[GM]siiRoX"
GM6Name = "[GM]Dumbass"
GM7Name = "[SP]Gesucht1"
GM8Name = "[SP]Gesucht2"
GM9Name = "[SP]Gesucht3"
GM10Name = "[SP]Gesucht4"
GM11Name = "[SP]Gesucht5"
GM12Name = "[SP]Gesucht6"
GM13Name = "[SP]Gesucht7"
GM14Name = "[SP]Gesucht8"
GM15Name = "[SP]Gesucht9"
GM16Name = "[SP]Gesucht10"
Sucht nach:
PHP Code:
def OnRecvWhisper(self, mode, name, line):
PHP Code:
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
pname = player.GetName()
if line[-21:] == "Hallo bist du online?" and (pname == (Gamemaster1) != -1 or pname == (Gamemaster2) != -1 or pname == (Gamemaster3) != -1 or pname == (Gamemaster4) != -1 or pname == (Gamemaster5) != -1 or pname == (Gamemaster6) != -1 or pname == (Gamemaster7) != -1 or pname == (Gamemaster8) != -1 or pname == (Gamemaster9) != -1 or pname == (Gamemaster10) != -1 or pname == (Gamemaster11) != -1 or pname == (Gamemaster12) != -1 or pname == (Gamemaster13) != -1 or pname == (Gamemaster14) != -1 or pname == (Gamemaster15) != -1 or pname == (Gamemaster16) != -1):
net.SendWhisperPacket(name, "Yes I am online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster1) != -1:
constInfo.GM1Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster2) != -1:
constInfo.GM2Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster3) != -1:
constInfo.GM3Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster4) != -1:
constInfo.GM4Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster5) != -1:
constInfo.GM5Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster6) != -1:
constInfo.GM6Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster7) != -1:
constInfo.GM7Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster8) != -1:
constInfo.GM8Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster9) != -1:
constInfo.GM9Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster10) != -1:
constInfo.GM10Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster11) != -1:
constInfo.GM11Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster12) != -1:
constInfo.GM12Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster13) != -1:
constInfo.GM13Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster14) != -1:
constInfo.GM14Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster15) != -1:
constInfo.GM15Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-15:] == "Yes I am online" and name == (Gamemaster16) != -1:
constInfo.GM16Online = 1
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist online")
return
if line[-(12+len(name)+35):] == "Der Spieler " + name + " möchte Kontakt mit ihnen aufnehmen" and (pname == (Gamemaster1) != -1 or pname == (Gamemaster2) != -1 or pname == (Gamemaster3) != -1 or pname == (Gamemaster4) != -1):
chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, name, line)
self.interface.RecvWhisper(name)
net.SendWhisperPacket(name, "Bitte warte einen Augenblick, ich bin gleich für Sie da!")
return
else:
if name.find("[" )!= -1:
mode = chat.WHISPER_TYPE_GM
self.interface.RegisterGameMasterName(name)
else:
mode = chat.WHISPER_TYPE_CHAT
chat.AppendWhisper(mode, name, line)
self.interface.RecvWhisper(name)
PHP Code:
def OnRecvWhisperError(self, mode, name, line):
PHP Code:
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, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster1) != -1) and pname != Gamemaster1 and constInfo.GM1Online == 1:
constInfo.GM1Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster2) != -1) and pname != Gamemaster2 and constInfo.GM2Online == 0:
constInfo.GM2Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster2) != -1) and pname != Gamemaster2 and constInfo.GM2Online == 1:
constInfo.GM2Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster3) != -1) and pname != Gamemaster3 and constInfo.GM3Online == 0:
constInfo.GM3Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster3) != -1) and pname != Gamemaster3 and constInfo.GM3Online == 1:
constInfo.GM3Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster4) != -1) and pname != Gamemaster4 and constInfo.GM4Online == 0:
constInfo.GM4Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster4) != -1) and pname != Gamemaster4 and constInfo.GM4Online == 1:
constInfo.GM4Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster5) != -1) and pname != Gamemaster5 and constInfo.GM5Online == 0:
constInfo.GM5Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster5) != -1) and pname != Gamemaster5 and constInfo.GM5Online == 1:
constInfo.GM5Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster6) != -1) and pname != Gamemaster6 and constInfo.GM6Online == 0:
constInfo.GM6Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster6) != -1) and pname != Gamemaster6 and constInfo.GM6Online == 1:
constInfo.GM6Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster7) != -1) and pname != Gamemaster7 and constInfo.GM7Online == 0:
constInfo.GM7Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster7) != -1) and pname != Gamemaster7 and constInfo.GM7Online == 1:
constInfo.GM7Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster8) != -1) and pname != Gamemaster8 and constInfo.GM8Online == 0:
constInfo.GM8Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster8) != -1) and pname != Gamemaster8 and constInfo.GM8Online == 1:
constInfo.GM8Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster9) != -1) and pname != Gamemaster9 and constInfo.GM9Online == 0:
constInfo.GM9Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster9) != -1) and pname != Gamemaster9 and constInfo.GM9Online == 1:
constInfo.GM9Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster10) != -1) and pname != Gamemaster10 and constInfo.GM10Online == 0:
constInfo.GM10Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster10) != -1) and pname != Gamemaster10 and constInfo.GM10Online == 1:
constInfo.GM10Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster11) != -1) and pname != Gamemaster11 and constInfo.GM11Online == 0:
constInfo.GM11Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster11) != -1) and pname != Gamemaster11 and constInfo.GM11Online == 1:
constInfo.GM11Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster12) != -1) and pname != Gamemaster12 and constInfo.GM12Online == 0:
constInfo.GM12Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster12) != -1) and pname != Gamemaster12 and constInfo.GM12Online == 1:
constInfo.GM12Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster13) != -1) and pname != Gamemaster13 and constInfo.GM13Online == 0:
constInfo.GM13Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster13) != -1) and pname != Gamemaster13 and constInfo.GM13Online == 1:
constInfo.GM13Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster14) != -1) and pname != Gamemaster14 and constInfo.GM14Online == 0:
constInfo.GM14Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster14) != -1) and pname != Gamemaster14 and constInfo.GM14Online == 1:
constInfo.GM14Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster15) != -1) and pname != Gamemaster15 and constInfo.GM15Online == 0:
constInfo.GM15Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster15) != -1) and pname != Gamemaster15 and constInfo.GM15Online == 1:
constInfo.GM15Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster16) != -1) and pname != Gamemaster16 and constInfo.GM16Online == 0:
constInfo.GM16Online = 0
#chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist nicht online")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
elif (name == (Gamemaster16) != -1) and pname != Gamemaster16 and constInfo.GM16Online == 1:
constInfo.GM16Online = 0
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "Das Teammitglied " + name + " ist inzwischen wieder offline")
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Das Teammitglied " + name + " ist nicht online.")
return
else:
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, locale.WHISPER_ERROR[mode](name))
else:
chat.AppendWhisper(chat.WHISPER_TYPE_SYSTEM, name, "Whisper Unknown Error(mode=%d, name=%s)" % (mode, name))
self.interface.RecvWhisper(name)
PHP Code:
onPressKeyDict[app.DIK_F4] = lambda : self.__PressQuickSlot(7)
PHP Code:
onPressKeyDict[app.DIK_F5] = lambda : self.__KontaktBoard()
PHP Code:
def __KontaktBoard(self):
self.evo2boardDlg.Show()
self.evo2boardDlg.SetTop()
PHP Code:
def __init__(self, stream):
PHP Code:
self.evo2boardDlg = uiEvo2Board.MenuDialog()
PHP Code:
import uiEvo2Board
So ich hoffe ich konnte einigen damit helfen
mfg