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 08-16-2005, 07:09 AM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default quotes

Try using quotes around the variable like this

Code:
sub EVENT_SPAWN
{
  quest::SetNextHPEvent("50");
}

sub EVENT_HP
{
  if ($eventhp<=50)
  {
    quest::say("EVENT_HP fired");
  }
}
I found that most commands worked if you encapsulated teh variables in quotations. Hope it works for ya.
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
Reply With Quote
  #2  
Old 08-16-2005, 08:03 AM
canehdian
Sarnak
 
Join Date: Nov 2004
Location: Windsor, Ontario, Canada
Posts: 59
Default

here dude, a event Hp i made to have 5 spawns when a mob reaches a certain % of hp, it works, so this may give you some idea's


sub EVENT_ATTACK {
quest::shout("WHO DARES CHALLENGE ME? I AM THE LESSER OVERKING!!, YOUR QUEST ENDS HERE, MORTALS!");
quest::spawn(189142,0,0,($x-10),$y,$z);
quest::spawn(189142,0,0,($x+10),$y,$z);
quest::spawn(189142,0,0,($x-20),$y,$z);
quest::spawn(189142,0,0,($x+20),$y,$z);
quest::spawn(189142,0,0,$x,($y+10),$z);
}

sub EVENT_HP {
if($hpevent == 70) {
firstevent();
}
if($hpevent == 30) {
secondevent();
}
}
__________________
From The Biggest tool ever

Server Op of A server in development! =D

formerly A fire inside
Reply With Quote
  #3  
Old 08-16-2005, 10:04 AM
FaerinTelDanor
Sarnak
 
Join Date: Jul 2005
Location: Ottawa, Ontario. Canada
Posts: 30
Default

No good, tried with and without quotes ... the PERL syntax is all correct, the events just won't trigger. EVENT_TIMER isn't working either ... Not sure what else to try.
Reply With Quote
  #4  
Old 08-16-2005, 10:42 AM
FaerinTelDanor
Sarnak
 
Join Date: Jul 2005
Location: Ottawa, Ontario. Canada
Posts: 30
Default

Heh, I moved sub EVENT_DEATH up to the top of the file, and now everything works .... go figure (all it contains is a quest::shout()).

Owell, thanks for the help guys.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:48 AM.


 

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