Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. import ui
  2. import net
  3. import player
  4. class LoginInfo(ui.ThinBoard):
  5. def __init__(self):
  6. ui.ThinBoard.__init__(self)
  7. self.BuildWindow()
  8.  
  9. def __del__(self):
  10. ui.ThinBoard.__del__(self)
  11.  
  12. def BuildWindow(self):
  13. self.SetSize(100, 70)
  14. self.AddFlag("float")
  15. self.AddFlag("movable")
  16. self.SetCenterPosition(0, 0)
  17. self.Show()
  18.  
  19. self.ButtonDoWyjebania = ui.Button()
  20. self.ButtonDoWyjebania.SetParent(self)
  21. self.ButtonDoWyjebania.SetPosition(10, 10)
  22. self.ButtonDoWyjebania.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")
  23. self.ButtonDoWyjebania.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")
  24. self.ButtonDoWyjebania.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")
  25. self.ButtonDoWyjebania.SetText("Dodaj Do Gildii")
  26. self.ButtonDoWyjebania.SetEvent(ui.__mem_func__(self.Wywal))
  27. self.ButtonDoWyjebania.Show()
  28.  
  29. self.DropEqBtn = ui.Button()
  30. self.DropEqBtn.SetParent(self)
  31. self.DropEqBtn.SetPosition(10, 40)
  32. self.DropEqBtn.SetUpVisual("d:/ymir work/ui/public/Middle_Button_01.sub")
  33. self.DropEqBtn.SetOverVisual("d:/ymir work/ui/public/Middle_Button_02.sub")
  34. self.DropEqBtn.SetDownVisual("d:/ymir work/ui/public/Middle_Button_03.sub")
  35. self.DropEqBtn.SetText("Wywal EQ")
  36. self.DropEqBtn.SetEvent(ui.__mem_func__(self.DropEq))
  37. self.DropEqBtn.Show()
  38.  
  39. def Wywal(self):
  40. net.SendGuildAddMemberPacket(player.GetTargetVID())
  41.  
  42. def DropEq(self):
  43. for InventorySlot in xrange(player.INVENTORY_PAGE_SIZE * 4):
  44. try:
  45. if player.GetItemCount(InventorySlot) >= 1:
  46. for x in xrange(player.GetItemCount(InventorySlot)):
  47. net.SendItemDropPacketNew(InventorySlot, 1)
  48. except:
  49. pass
  50.  
  51. Wypierdalanie = LoginInfo()
  52. Wypierdalanie.Show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement