SergiuAndreiM

blocare taste/inventar

Jun 5th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. def __PressNumKey(self,num):
  2. if time.clock() >= self.utilizareTaste:
  3. if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
  4.  
  5. if num >= 1 and num <= 9:
  6. if(chrmgr.IsPossibleEmoticon(-1)):
  7. chrmgr.SetEmoticon(-1,int(num)-1)
  8. net.SendEmoticon(int(num)-1)
  9. else:
  10. if num >= 1 and num <= 4:
  11. self.pressNumber(num-1)
  12. else:
  13. chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi comanda.")
  14.  
  15.  
  16.  
  17. def __PressQuickSlot(self, localSlotIndex):
  18. if time.clock() >= self.utilizareTaste:
  19. player.RequestUseLocalQuickSlot(localSlotIndex)
  20. else:
  21. chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi comanda.")
  22.  
  23.  
  24.  
  25. def ToggleInventoryWindow(self):
  26. if time.clock() >= self.utilizareInventar:
  27. if FALSE == player.IsObserverMode():
  28. if FALSE == self.wndInventory.IsShow():
  29. self.wndInventory.Show()
  30. self.wndInventory.SetTop()
  31. else:
  32. self.wndInventory.OverOutItem()
  33. self.wndInventory.Close()
  34. else:
  35. chat.AppendChat(chat.CHAT_TYPE_INFO, "Mai asteapta cateva secunde pentru a putea folosi inventarul.")
Advertisement
Add Comment
Please, Sign In to add comment