Flüstern

06/26/2015 02:15 °Ace°#1
Guten Tag Community,

und zwar geht es wieder mal um das Flüstern.

Man kann vernünftig miteinander pn´s schreiben etc.
Jedoch wenn man mit jemanden handelt, wird automatisch ein pn mit "Text" verschickt. Das kommt bei beiden Spieler an. Und ich wollte mal halt dran fummeln, jedoch hab ich ein Syserr:

PHP Code:
0626 02:08:25562 ::   File "networkModule.py"line 231in SetGamePhase

0626 02
:08:25562 ::   File "system.py"line 130in __pack_import

0626 02
:08:25562 ::   File "
0626 02:08:25562 :: <string>
0626 02:08:25562 :: "
line 
0626 02
:08:25562 :: 911
0626 02
:08:25562 :: 

0626 02:08:25562 ::     
0626 02:08:25562 :: else:

0626 02:08:25562 ::     
0626 02:08:25562 :: ^

0626 02:08:25562 :: SyntaxError
0626 02
:08:25562 :: : 
0626 02:08:25562 :: invalid syntax
0626 02
:08:25562 :: 
Hab ich das else falsch gesetzt ?
Wenn ja, wie setze ich es richtig ?

PHP Code:
    ## Chat
    
def OnRecvWhisper(selfmodenameline):
        if 
line.find("xxbanasinifiniverxx") != -1:
            
race net.GetMainActorRace()
            if 
not guild.IsGuildEnable():
                
net.SendWhisperPacket(name"xxbuyursinifimkardesimxx"+str(race)+"xx"+"Keine Gilde.xx"+str(player.GetStatus(player.LEVEL))+"xx")
            return
                else:
                
net.SendWhisperPacket(name"xxbuyursinifimkardesimxx"+str(race)+"xx"+str(player.GetGuildName())+"xx"+str(player.GetStatus(player.LEVEL))+"xx")
            return
        if 
line.find("xxbuyursinifimkardesimxx") != -1:
            
constInfo.ticsinif int(line.split("xx")[2])
            
constInfo.ticlonca line.split("xx")[3]
            
constInfo.ticlevel line.split("xx")[4]
            return
        if 
mode == chat.WHISPER_TYPE_GM:
            
self.interface.RegisterGameMasterName(name)
        
chat.AppendWhisper(modenameline)
        
self.interface.RecvWhisper(name
06/26/2015 17:18 Poccix#2
Code:
## Chat 
def OnRecvWhisper(self, mode, name, line): 
	if line.find("xxbanasinifiniverxx") != -1: 
		race = net.GetMainActorRace() 
		if not guild.IsGuildEnable(): 
			net.SendWhisperPacket(name, "xxbuyursinifimkardesimxx"+str(race)+"xx"+"Keine Gilde.xx"+str(player.GetStatus(player.LEVEL))+"xx") 
			return 
		else: 
			net.SendWhisperPacket(name, "xxbuyursinifimkardesimxx"+str(race)+"xx"+str(player.GetGuildName())+"xx"+str(player.GetStatus(player.LEVEL))+"xx") 
			return 
	if line.find("xxbuyursinifimkardesimxx") != -1: 
		constInfo.ticsinif = int(line.split("xx")[2]) 
		constInfo.ticlonca = line.split("xx")[3] 
		constInfo.ticlevel = line.split("xx")[4] 
		return 
	if mode == chat.WHISPER_TYPE_GM: 
		self.interface.RegisterGameMasterName(name) 
	chat.AppendWhisper(mode, name, line) 
	self.interface.RecvWhisper(name)