Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 05-04-2010, 08:25 PM
Frosef
Sarnak
 
Join Date: Mar 2010
Posts: 36
Default

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?
Reply With Quote
  #2  
Old 05-04-2010, 12:57 AM
Reynin89
Sarnak
 
Join Date: Apr 2010
Posts: 71
Default

yes ive tried that to. Thats why im so oblivious as to WHY this is not casting any spells?
Reply With Quote
  #3  
Old 05-04-2010, 12:58 AM
Reynin89
Sarnak
 
Join Date: Apr 2010
Posts: 71
Default

its like $userid isnt working at all or something
Reply With Quote
  #4  
Old 05-04-2010, 01:07 AM
Reynin89
Sarnak
 
Join Date: Apr 2010
Posts: 71
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:50 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3