Jump to content
  • 0

Need to add delay in Equipable item


Question

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...