Shared delay item script

rans

New member
Messages
358
Points
0
Location
Somewhere down the road
Emulator
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!

 
Just edit on item_db.conf

ex:

Code:
{
	Id: 607
	AegisName: "Yggdrasilberry"
	Name: "Yggdrasil Berry"
	Type: "IT_HEALING"
	Buy: 5000
	Weight: 300
	BuyingStore: true
	Delay: 5000 <<<< EDIT HERE!!!!!!!!
	Script: <" percentheal 100,100; ">
},
 
in the Script<> section, you could do something like:
 

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

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