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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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