Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def OnRecvWhisper(self, mode, name, line):
- if mode == chat.WHISPER_TYPE_GM:
- self.interface.RegisterGameMasterName(name)
- ## Duello Kabul ##
- if line.find("#xsbyfatihbab34ndsawgqwqdhsabdsabdsabwbqdsnandsadnasndas#") != -1:
- gameInfo.DUELLO_KABUL_RAKIP = 1
- return
- ## Duello iptal ##
- if line.find("#xsbyfatihbab34dsadsanxsadadsadaafsafafsxasxawqwqdsaafafasfafsafafsafsa#") != -1:
- chat.AppendChat(chat.CHAT_TYPE_INFO, localegame.DUELLO_IPTAL % (name))
- gameInfo.DUELLO_DURUM = 0
- gameInfo.DUELLO_VID = 0
- gameInfo.DUELLO_BASLATAN = 0
- gameInfo.DUELLO_RAKIP_PARA = 0
- gameInfo.DUELLO_BENIM_PARA = 0
- gameInfo.DUELLO_KABUL_RAKIP = 0
- gameInfo.DUELLO_KABUL = 0
- gameInfo.DUELLO_RAKIP = ""
- if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLAYANLAR:
- gameInfo.DUELLO_YOLLAYANLAR.remove("#"+str(name)+"#")
- if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLANANLAR:
- gameInfo.DUELLO_YOLLANANLAR.remove("#"+str(name)+"#")
- return
- ## Duello yapamam. ##
- if line.find("##xsbyfatihbab34dsaxsasamnwwdsaxsadjjahdsajwqwq##") != -1:
- chat.AppendChat(chat.CHAT_TYPE_INFO, localegame.DUELLO_YAPAMAZ % (name))
- return
- ## Duello Item Koyma ##
- if line.find("#xsbyfatihbab34dsaxaw22121a123q#") != -1:
- bol = line.split("#")
- uiitemineduello.ItemSlot_R_Ekle = "#"+str(bol[2])+"#"+str(bol[3])+"#"+str(bol[4])+"#"+str(bol[5])+"#"+bol[6]+"#"+bol[7]+"#"
- uiitemineduello.ItemEkle_DURUM = 1
- return
- if line.find("#xsbyfatihbab34dsaxaw2x2121a123q#") != -1:
- bol = line.split("#")
- uiitemineduello.ItemSlot_R_Ekle_Ekipman = "#"+str(bol[2])+"#"+str(bol[3])+"#"+str(bol[4])+"#"+str(bol[5])+"#"+bol[6]+"#"+bol[7]+"#"
- uiitemineduello.ItemEkle_DURUM_Ekipman = 1
- return
- ## Duello Para Koyma ##
- if line.find("#xsbyfatihbab34sdajdsamdasdnsawnwqwusdadxasmdasdasxasbndadasnas#") != -1:
- gameInfo.DUELLO_RAKIP_PARA = int(line.split("#")[2])
- return
- ## Duello Open ##
- if line.find("##xsbyfatihbab34dsadjsamxansxasndamwwdsadsadjashdasdasdas##") != -1:
- if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLAYANLAR:
- gameInfo.DUELLO_RAKIP = name
- gameInfo.DUELLO_DURUM = 4
- gameInfo.DUELLO_BASLATAN = 2
- self.ac = uiitemineduello.itemineduello()
- self.ac.Show()
- gameInfo.PYTHONISLEM = "duello_baslat#"+str(name)
- event.QuestButtonClick(gameInfo.PYTHONTOLUA)
- return
- ## Duello Cevap ##
- if line.find("#xsbyfatihbab34sdajdsadnsadmnasdmnaswmqwmnmdsnaddasawq#") != -1:
- if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLANANLAR and gameInfo.DUELLO_DURUM == 0:
- gameInfo.DUELLO_RAKIP = name
- gameInfo.DUELLO_DURUM = 4
- gameInfo.DUELLO_BASLATAN = 1
- self.ac = uiitemineduello.itemineduello()
- self.ac.Show()
- net.SendWhisperPacket(name, "##xsbyfatihbab34dsadjsamxansxasndamwwdsadsadjashdasdasdas##")
- gameInfo.PYTHONISLEM = "duello_baslat#"+str(name)
- event.QuestButtonClick(gameInfo.PYTHONTOLUA)
- else:
- net.SendWhisperPacket(name, "##xsbyfatihbab34dsaxsasamnwwdsaxsadjjahdsajwqwq##")
- return
- ## Duello Teklifi ##
- if line.find("##xsbyfatihbab34axsadsahdgsadsadassadjadada##") != -1:
- gameInfo.DUELLO_YOLLAYANLAR.append("#"+str(name)+"#")
- gameInfo.DUELLO_DURUM = 3
- return
- chat.AppendWhisper(mode, name, line)
- self.interface.RecvWhisper(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement