EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Mob wont cast. Please help! (https://www.eqemulator.org/forums/showthread.php?t=31220)

Reynin89 05-04-2010 12:57 AM

yes ive tried that to. Thats why im so oblivious as to WHY this is not casting any spells?

Reynin89 05-04-2010 12:58 AM

its like $userid isnt working at all or something

Reynin89 05-04-2010 01:07 AM

WOW I finally got this afters hours on end of looking up random scripts trying commands ugh! If ANYONE has the same problem with $userid heres what I did to get it to work.
Quote:

sub EVENT_COMBAT {
if ($combat_state == 1) {
quest::setnexthpevent(95);
quest::shout ("test test test");
}
}

sub EVENT_HP
{
if($hpevent == 95)
{
quest::shout ("HELP HELP HELP");
quest::castspell(5451,$targetid); }
}

seems (spellid,$targetid) did the trick. Thanks for everyones help.

Frosef 05-04-2010 08:25 PM

Does $userid actually work in this case? It seems to me that such an event wouldn't have a client "user" to trigger them, so $userid might be null?


All times are GMT -4. The time now is 04:32 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.