Advertisement
Guest User

.d.drrr

a guest
Jul 30th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. def OnRecvWhisper(self, mode, name, line):
  2. if mode == chat.WHISPER_TYPE_GM:
  3. self.interface.RegisterGameMasterName(name)
  4. ## Duello Kabul ##
  5. if line.find("#xsbyfatihbab34ndsawgqwqdhsabdsabdsabwbqdsnandsadnasndas#") != -1:
  6. gameInfo.DUELLO_KABUL_RAKIP = 1
  7. return
  8. ## Duello iptal ##
  9. if line.find("#xsbyfatihbab34dsadsanxsadadsadaafsafafsxasxawqwqdsaafafasfafsafafsafsa#") != -1:
  10. chat.AppendChat(chat.CHAT_TYPE_INFO, localegame.DUELLO_IPTAL % (name))
  11. gameInfo.DUELLO_DURUM = 0
  12. gameInfo.DUELLO_VID = 0
  13. gameInfo.DUELLO_BASLATAN = 0
  14. gameInfo.DUELLO_RAKIP_PARA = 0
  15. gameInfo.DUELLO_BENIM_PARA = 0
  16. gameInfo.DUELLO_KABUL_RAKIP = 0
  17. gameInfo.DUELLO_KABUL = 0
  18. gameInfo.DUELLO_RAKIP = ""
  19. if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLAYANLAR:
  20. gameInfo.DUELLO_YOLLAYANLAR.remove("#"+str(name)+"#")
  21.  
  22. if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLANANLAR:
  23. gameInfo.DUELLO_YOLLANANLAR.remove("#"+str(name)+"#")
  24. return
  25. ## Duello yapamam. ##
  26. if line.find("##xsbyfatihbab34dsaxsasamnwwdsaxsadjjahdsajwqwq##") != -1:
  27. chat.AppendChat(chat.CHAT_TYPE_INFO, localegame.DUELLO_YAPAMAZ % (name))
  28. return
  29. ## Duello Item Koyma ##
  30. if line.find("#xsbyfatihbab34dsaxaw22121a123q#") != -1:
  31. bol = line.split("#")
  32. uiitemineduello.ItemSlot_R_Ekle = "#"+str(bol[2])+"#"+str(bol[3])+"#"+str(bol[4])+"#"+str(bol[5])+"#"+bol[6]+"#"+bol[7]+"#"
  33. uiitemineduello.ItemEkle_DURUM = 1
  34. return
  35. if line.find("#xsbyfatihbab34dsaxaw2x2121a123q#") != -1:
  36. bol = line.split("#")
  37. uiitemineduello.ItemSlot_R_Ekle_Ekipman = "#"+str(bol[2])+"#"+str(bol[3])+"#"+str(bol[4])+"#"+str(bol[5])+"#"+bol[6]+"#"+bol[7]+"#"
  38. uiitemineduello.ItemEkle_DURUM_Ekipman = 1
  39. return
  40. ## Duello Para Koyma ##
  41. if line.find("#xsbyfatihbab34sdajdsamdasdnsawnwqwusdadxasmdasdasxasbndadasnas#") != -1:
  42. gameInfo.DUELLO_RAKIP_PARA = int(line.split("#")[2])
  43. return
  44. ## Duello Open ##
  45. if line.find("##xsbyfatihbab34dsadjsamxansxasndamwwdsadsadjashdasdasdas##") != -1:
  46. if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLAYANLAR:
  47. gameInfo.DUELLO_RAKIP = name
  48. gameInfo.DUELLO_DURUM = 4
  49. gameInfo.DUELLO_BASLATAN = 2
  50. self.ac = uiitemineduello.itemineduello()
  51. self.ac.Show()
  52. gameInfo.PYTHONISLEM = "duello_baslat#"+str(name)
  53. event.QuestButtonClick(gameInfo.PYTHONTOLUA)
  54. return
  55. ## Duello Cevap ##
  56. if line.find("#xsbyfatihbab34sdajdsadnsadmnasdmnaswmqwmnmdsnaddasawq#") != -1:
  57. if "#"+str(name)+"#" in gameInfo.DUELLO_YOLLANANLAR and gameInfo.DUELLO_DURUM == 0:
  58. gameInfo.DUELLO_RAKIP = name
  59. gameInfo.DUELLO_DURUM = 4
  60. gameInfo.DUELLO_BASLATAN = 1
  61. self.ac = uiitemineduello.itemineduello()
  62. self.ac.Show()
  63. net.SendWhisperPacket(name, "##xsbyfatihbab34dsadjsamxansxasndamwwdsadsadjashdasdasdas##")
  64. gameInfo.PYTHONISLEM = "duello_baslat#"+str(name)
  65. event.QuestButtonClick(gameInfo.PYTHONTOLUA)
  66. else:
  67. net.SendWhisperPacket(name, "##xsbyfatihbab34dsaxsasamnwwdsaxsadjjahdsajwqwq##")
  68. return
  69. ## Duello Teklifi ##
  70. if line.find("##xsbyfatihbab34axsadsahdgsadsadassadjadada##") != -1:
  71. gameInfo.DUELLO_YOLLAYANLAR.append("#"+str(name)+"#")
  72. gameInfo.DUELLO_DURUM = 3
  73. return
  74. chat.AppendWhisper(mode, name, line)
  75. self.interface.RecvWhisper(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement