Jump to content
  • 0

Need to add delay in Equipable item


enteike

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/15/12
  • Last Seen:  

Hello im trying to add a delay to an item when i logout.

 

i found this on eathena:

function script knife_cooldown {
if ( getarg(0) == 0 && @cooldown > gettimetick(2) ) {
dispbottom @cooldown - gettimetick(2);
unequip EQI_HAND_R;
}
else if ( getarg(0) == 1 && @cooldown <= gettimetick(2) ) {
set @cooldown, gettimetick(2) +5;
dispbottom "set";
}
return;
}

im activating something when i equip because i cant make active it by chance so i need to add a delay, because when i relog i can put the item again.

 

Thanks

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...