Client Force-Cast
Is there a function for quest:: that forces a client to cast a spell? I'm sure I read about it somewhere, can't remember where though.
I would like an NPC to force the client to cast a group spell - quest::castspell($userid,spellid) currently only buffs the NPC. Monrezz |
How about just this? :
Code:
castspell("$userid","spellid") Maybe used something like this: Code:
EVENT_SAY{ You DID see the sticky in this forum?! maybe try the command test script that came from Lurker005's post and that Eglin wrote.. Code:
sub EVENT_SAY() { |
Quote:
Quote:
Quote:
Monrezz |
I'm not sure if its out in cvs yet (I think t is - check parser.cpp source) but quest::selfcast("spellid"); I think is what you want.
It causes a spell to be cast on the target - probably for those spells where the target can only be self and can't be cast on others. If you use quest::castspell with those, it causes he spell to be cast on the NPC as I recall. |
That's the one - thanks Scorp :)
|
Quote:
|
|
All times are GMT -4. The time now is 02:12 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.