Npc Casting
Hey guys!
I just have a question regarding npc channeling. I have been writing this perl port quests for an npc. Player tells npc something and i want this npc to cast a portspell. The thing is that the npc casts it instant. There is no casting time for some reason. What should i do to force the npc to channel the spell instead of an insta translocation. {quest::selfcast("####"); } Any info is appreciated Thx |
The only way I can think of right now that uses the cast time is $npc->CastSpell, however you really need to use this with a Translocate target spell which pops up a confirmation box that the player must accept.
E.g. the following will cast translocate Nexus after the spell cast time is over: Code:
sub EVENT_SAY |
Thx Derision!
Been thinking. Is there a way to maybe hold the cast for awhile? Like /pause in a macro. So that wen the player asks for the port the npc will que the cast for, lets say 30 sec? Just trying to figgur something out. |
castspell should retain the casting time of the spell, but for other uses you can add timers
this should wait 10 seconds before starting the casting time of the translocate Code:
sub EVENT_SAY { |
Awsome nilbog
Gonna try that one out =) Thx! |
All times are GMT -4. The time now is 09:33 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.