Jump to content
  • 0
rans

Shared delay item script

Question

Hello Good day to all.
Can i request a function of delay. 
The function will have a list of item ids that will share its delay/cooldown. for example i put item id 501,502,503 on the function and set the delay to 500ms
when i use the 501 item id. the other item (502,503) will also cooldown the same time with 501.

Thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Just edit on item_db.conf

ex:

{
	Id: 607
	AegisName: "Yggdrasilberry"
	Name: "Yggdrasil Berry"
	Type: "IT_HEALING"
	Buy: 5000
	Weight: 300
	BuyingStore: true
	Delay: 5000 <<<< EDIT HERE!!!!!!!!
	Script: <" percentheal 100,100; ">
},

 

Share this post


Link to post
Share on other sites
  • 0

in the Script<> section, you could do something like:
 

if (gettimetick(2) <= @ITEM_LOCK[0])
	end;

@ITEM_LOCK[0] = gettimetick(2) + 1;
percentheal(100, 100);

 

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.