Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. char_item
  2. BOOL: USEITEM
  3.  
  4. if (item->GetVnum() > 1)
  5. {
  6. if (CoolDown > get_global_time()){
  7. {
  8. ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Musisz odczekac %d sekund aby ponownie uzyc przedmiot."), (CoolDown - get_global_time()) % 180);
  9. return false;
  10. }
  11. else
  12. {
  13. CoolDown = get_global_time() + 5;
  14. }
  15. }
  16.  
  17. w char.h dodajesz:
  18. time_t CoolDown;
  19. pod:
  20. int GetSkillPower(DWORD dwVnum, BYTE bLevel = 0) const;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement