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-15-2005, 07:04 PM
FaerinTelDanor
Sarnak
 
Join Date: Jul 2005
Location: Ottawa, Ontario. Canada
Posts: 30
Default Does EVENT_HP work in 0.6.0-dr3?

I've looked through the code and the functionality seems to be in place, but the event isn't triggering. Here's some sample PERL code that should (I think) work:

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

sub EVENT_HP
{
  if ($eventhp<=50)
  {
    quest::say("EVENT_HP fired");
  }
}
I've tried with and without checking $eventhp, I've tried calling external functions instead of embedding the quest calls directly in it ... nothing seems to work.

quest::me is also not working (it acts as quest::say instead of a narrative emote).

Are these known issues with dr3, or am I going to have to start pulling apart the code peice by peice to track it down?

Thanks in advance.
Reply With Quote
  #2  
Old 08-15-2005, 11:57 PM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

I'm not sure..but functions might be case sensitive (I don't think so anyways), so try quest::setnexthpevent(50);. Also, never worked with the HP event, but give it a try.
Reply With Quote
  #3  
Old 08-16-2005, 04:04 AM
FaerinTelDanor
Sarnak
 
Join Date: Jul 2005
Location: Ottawa, Ontario. Canada
Posts: 30
Default

Yeah, I've tried every case imagineable and nothing would trigger it.
Reply With Quote
  #4  
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
  #5  
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
  #6  
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
  #7  
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


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 10:15 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3