EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   can someone please tell me if theres any problem with this quest (https://www.eqemulator.org/forums/showthread.php?t=30176)

jkennedy 12-27-2009 11:39 AM

can someone please tell me if theres any problem with this quest
 
#A conversation to Teleport Player to a new zone (POK)
sub EVENT_SAY
{
if ($text =~/Hail/i)
{
quest::say ("Good day to you, $name. Do you want to [go] to the Plane of Knowledge?");
}

if ($text =~/go/i)
{
quest::say ("$name , stand close to me while I cast..");
quest::emote ("moves his hands as if chanting...");
quest::MovePC(202,-118,-193,-156);
}

}

Secrets 12-27-2009 12:59 PM

Quote:

Originally Posted by jkennedy (Post 182018)
#A conversation to Teleport Player to a new zone (POK)
sub EVENT_SAY
{
if ($text =~/Hail/i)
{
quest::say ("Good day to you, $name. Do you want to [go] to the Plane of Knowledge?");
}

if ($text =~/go/i)
{
quest::say ("$name , stand close to me while I cast..");
quest::emote ("moves his hands as if chanting...");
quest::MovePC(202,-118,-193,-156);
}

}

The spaces near quest::say and quest::emote might be an issue (I doubt it though.)

If someone says the words "go hail", the NPC will trigger both phrases. It's a good idea to use elsif in this situation.

Only two issues I see.

Secrets 12-27-2009 01:03 PM

Also, eqperl is case sensitive. You may want to try quest::movepc instead.

jkennedy 12-27-2009 01:46 PM

thank you very much

GeorgeS 12-27-2009 02:18 PM

Actually, that quest appears correct as I have this as a template in my quest editor. I did check all of them. Do other quests work?

quest::MovePC should be ok since Trevius mentioned it to me a while back

GeorgeS

jkennedy 12-27-2009 02:31 PM

i lowercasted the movepc and it now works so it must of been it didnt read the cap letters

GeorgeS 12-28-2009 12:59 PM

ok thanks for letting me know - I'll add this to the quest editor fix

GeorgeS


All times are GMT -4. The time now is 04:44 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.