EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Help with some short quests (https://www.eqemulator.org/forums/showthread.php?t=29950)

Randymarsh9 11-09-2009 09:59 PM

Help with some short quests
 
I have been away from quest-making for wayyyyy too long, so I won't put it passed myself to make some stupid mistakes. Can anyone tell me what is wrong with these two player.pl quests?

Code:

sub EVENT_LEVEL_UP{
 if ($ulevel <=70){
 quest::scribespells($ulevel);
 quest::traindiscs($ulevel);
 $client->Message(5,"Scribing spells and disciplines....");
}
 else{
 $client->Message(5,"You must acquire your skills for this level by other means.");
 }
}

It is placed in the templates folder.


Code:

sub EVENT_ENTER_ZONE{
 if (!defined($qglobals{newchar})){
 $client->Message(5,"gfgdsgdfs.");
 quest::setglobal("newchar", 1, 5, "F");
}
}

This is placed in a zone's quest folder. I want it to just display a message the first time someone zones in there.

joligario 11-10-2009 06:40 AM

Get rid of the first underscore. Also, FYI: The zone player.pl will take precedence over the template one.

Code:

sub EVENT EVENT_NAME {

Lillu 11-10-2009 07:10 AM

Our welcome message is like this in the zone specific player.pl:
Code:

sub EVENT_ENTERZONE {
my $globalname = welcomemessage;
        if(!$qglobals{$globalname}) {
                $client->Message(14, "Text.");
                quest::setglobal("$globalname", 1, 5, "F");
                }
}


Randymarsh9 11-10-2009 08:08 AM

So do I have to merge the template one with the player.pl in zones that already have one?

nightsta69 11-10-2009 08:30 AM

yes, if you want that welcome msg to show up in all zones, you need to place it in all of the player.pl inside the zones. but if your wantin to show it only once, IE when a newplayer logs in for the first time, you can just put it in the appropriate zones for which they will first log in to.

joligario 11-11-2009 03:19 AM

Oh yeah, as you may have noticed, ignore the first part of my initial reply... that's what I get for writing at 4 in the morning and mixing up 2 languages...


All times are GMT -4. The time now is 02:47 PM.

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