R8Sentinel

AutoPickUp

Nov 13th, 2017
2,699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. ##AutoPickUp##R8Sentinel##
  2. 1. Intram in game.py (root).
  3. 1.1 Cautam:
  4. def OnUpdate(self):
  5. Adaugam mai jos:
  6. if 1 == constInfo.ENABLE_PICKUP:
  7. self.PickUpItem()
  8. 1.2 Cautam:
  9. testAlignment = 0
  10. Adaugam mai jos:
  11. CHECK_ACTIVE_PICKUP = 0
  12. 1.3 Cautam:
  13. app.DIK_F4
  14. Adaugam mai jos:
  15. onPressKeyDict[app.DIK_F5] = lambda : self.__EnablePickUpItem()
  16. !Info: F5: este tasta care porneste/opreste sistemul.
  17. 1.4 Cautam:
  18. def __PressNumKey(self,num):
  19. Adaugam mai sus:
  20. def __EnablePickUpItem(self):
  21. global CHECK_ACTIVE_PICKUP
  22. if CHECK_ACTIVE_PICKUP == 0:
  23. CHECK_ACTIVE_PICKUP = 1
  24. constInfo.ENABLE_PICKUP = 1
  25. chat.AppendChat(chat.CHAT_TYPE_NOTICE, "|cFF00ff33Auto-Pickup este pornit.|h|cFFFFFFFF|h")
  26. else:
  27. CHECK_ACTIVE_PICKUP = 0
  28. constInfo.ENABLE_PICKUP = 0
  29. chat.AppendChat(chat.CHAT_TYPE_NOTICE, "|cFFDC143CAuto-Pickup este oprit.|h|cFFFFFFFF|h")
  30. !Info: |cFF00ff33 =culoarea textului afisat pe cat.
  31. 2. Intram in constInfo.py (root)
  32. Adaugam (dupa import)
  33. ENABLE_PICKUP = 0
  34. ##AutoPickUp##R8Sentinel##
Advertisement
Add Comment
Please, Sign In to add comment