Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-16-2003, 04:03 AM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default $status

with 5.0 does this syntax look correct...


Code:
EVENT_SAY {
	if("$status" == "250") { say("burp"); } 
}
have also attempted these...

Code:
EVENT_SAY {
	if($status  == "250") { say("burp"); } 
}

EVENT_SAY {
	if($status  =~ "250") { say("burp"); } 
}

EVENT_SAY {
	if($status ("250")) { say("burp"); } 
}

all of these cause the zone not to load. i can use this...


Code:
EVENT_SAY {
	if($1-  =~ "Hail") { say("Hello! How is your day?"); } 
            if ($1- =~ "good") { say("Thats Wonderful!"); }
}
Does anyone have any ideas?


Thanks
Kgaul
Reply With Quote
  #2  
Old 11-16-2003, 04:30 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default Re: $status

[quote="Kgaul"]with 5.0 does this syntax look correct...


Code:
EVENT_SAY {
	if("$status" == "250") { say("burp"); } 
}
I'm not sure if it matters, but I've been successful with quests so far, so this is the syntax I'd use:

EVENT_SAY {
if("$status" == "250") { say("burp"); }
}

NEXT_EVENT_HERE

try to avoid needless spaces, and close every statement off with "}" on the very last line, and a space between the next statement as I've shown. If you follow this, it should work... one thing though, I'm not sure of it- but you may need an event leading up to the npc saying "burp", or else I'd think there would be no trigger for the npc to know when to say it... in other words, the above shows the npc just saying burp, based on your account status. Does the npc sense when you're near? Do you Hail the npc to start the chain?

Good luck
Reply With Quote
  #3  
Old 11-16-2003, 05:08 AM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default

yes sir, it was actually an embedded if


EVENT_SAY {
if ($1- =~ "Hail")
{say("Hello! how are you today?");}
if ("$status" == "250") {say("burp <just testing here with the burp>");}
}


this still crashes the zone...

Kgaul
Reply With Quote
  #4  
Old 11-16-2003, 11:01 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

what does world.exe say when this happens?
Reply With Quote
  #5  
Old 11-16-2003, 03:00 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Are you sure $status is a variable?
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote
  #6  
Old 11-16-2003, 04:30 PM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

If anything, world should report an error in that quest file upon entering the zone, and the quest wouldn't work. It certainly shouldn't crash the zone. .. I wouldn't think
Reply With Quote
  #7  
Old 11-17-2003, 10:07 AM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default

actually before the release where the quests worked any .qst file would block the world from loading at all.. what i get when i try to test a qeust is eather the zone loads or it doesn't if its bad...


Kgaul
Reply With Quote
  #8  
Old 11-17-2003, 12:31 PM
chrismcbob
Fire Beetle
 
Join Date: Nov 2003
Posts: 1
Default

Quote:
Originally Posted by Kgaul
EVENT_SAY {
if ($1- =~ "Hail")
{say("Hello! how are you today?");}
if ("$status" == "250") {say("burp <just testing here with the burp>");}
}
try placing the nested if inside the first if block like so:

if ($1- =~ "Hail")
{say("Hello! how are you today?"); //note removal of }
if ("$status" == "250") {say("burp <just testing here with the burp>");}
}
Reply With Quote
  #9  
Old 11-17-2003, 03:06 PM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

it was actually a parsing bug, I have it fixed, it will be in the next cvs dump.
__________________
Lethal Encounter
Reply With Quote
  #10  
Old 11-17-2003, 04:08 PM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default

Ok, i'm putting a statue to Edgar in Nro since i know nothuing about him i'm just going to name a 90 foot Gnome...


you rock sir.
( thanks for the change in the nested if Chris, might be my prob =) )

Kgaul
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 12: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