PDA

View Full Version : Help with some short quests


Randymarsh9
11-09-2009, 09:59 PM
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?

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.


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.

sub EVENT EVENT_NAME {

Lillu
11-10-2009, 07:10 AM
Our welcome message is like this in the zone specific player.pl:
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...