Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char_item
- BOOL: USEITEM
- if (item->GetVnum() > 1)
- {
- if (CoolDown > get_global_time()){
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Musisz odczekac %d sekund aby ponownie uzyc przedmiot."), (CoolDown - get_global_time()) % 180);
- return false;
- }
- else
- {
- CoolDown = get_global_time() + 5;
- }
- }
- w char.h dodajesz:
- time_t CoolDown;
- pod:
- int GetSkillPower(DWORD dwVnum, BYTE bLevel = 0) const;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement