Caster delay, I need help!
Can someone post an example of how to make a delay before quest::selfcast with quest::settimer or something else?
I've been stuck with this all day and nothing works for me :( |
I did a search through the PLs for settimer, which I am sure you looked through as well. Below is the Dark Elf Corruptor script, showing his spawning as setting a 600 second countdown to despawn. Once the 600 seconds expires, EVENT_TIMER pops and removes the timer and the NPC.
Code:
# dark elf corruptor shouts before attacking stoptimer("castdelay") castspell($userid,spellid) |
This is what I came up with.
The subroutine HEALING is the only way I got a pause. For what ever reason nesting quest::selfcast(spellid); and castspell($userid,spellid); in the sub EVENT_TIMER or even in a sub EVENT_SIGNAL it doesn't cast the spell. Code:
#Test for pausing a selfcast script. |
try theeees :D
Code:
sub EVENT_SAY |
I got that to work with a change. Thanks Cripp!
What does -> do or what is it? Code:
sub EVENT_SAY |
Thanks for the help you all, it's working fine for me now :)
|
Please remove this post. I was replying to another and didn't realize which tab I was in.
|
All times are GMT -4. The time now is 08:16 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.