PDA

View Full Version : $status


Kgaul
11-16-2003, 04:03 AM
with 5.0 does this syntax look correct...


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

have also attempted these...

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...


EVENT_SAY {
if($1- =~ "Hail") { say("Hello! How is your day?"); }
if ($1- =~ "good") { say("Thats Wonderful!"); }
}

Does anyone have any ideas?


Thanks
Kgaul

Kroeg
11-16-2003, 04:30 AM
[quote="Kgaul"]with 5.0 does this syntax look correct...


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 :)

Kgaul
11-16-2003, 05:08 AM
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

Kroeg
11-16-2003, 11:01 AM
what does world.exe say when this happens?

killspree
11-16-2003, 03:00 PM
Are you sure $status is a variable?

Kroeg
11-16-2003, 04:30 PM
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 :roll:

Kgaul
11-17-2003, 10:07 AM
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

chrismcbob
11-17-2003, 12:31 PM
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>");}
}

Edgar1898
11-17-2003, 03:06 PM
it was actually a parsing bug, I have it fixed, it will be in the next cvs dump.

Kgaul
11-17-2003, 04:08 PM
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