Khaos 
Master
 
Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11
![]()
|
RE: putting cooldown on scrolls
Code:
on=@SpellCast
if (<argo.type> == t_scroll)
if (<restest 1 i_memory_scroll_cooldown>)
src.smsg You cannot use a scroll again til <findlayer.layer_memory.baseid.i_memory_scroll_cooldown.timer> seconds.
return 1
endif
if (<argn1> == s_flamestrike)
serv.newitem i_memory_scroll_cooldown,,<uid>
new.timer = 5
endif
endif
Add this to your players. You can control what scrolls do what by checking the argn1. No point in adding a ctag for every delay.
You would still need his memory object by the way.
Optimized in my edits some more. This should be more concise.
(This post was last modified: 02-18-2016 08:07 AM by Khaos.)
|
|
02-18-2016 08:04 AM |
|
|