Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2009, 09:59 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default 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.
Reply With Quote
  #2  
Old 11-10-2009, 06:40 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

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

Code:
 sub EVENT EVENT_NAME {
Reply With Quote
  #3  
Old 11-10-2009, 07:10 AM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

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");
		}
}
__________________
Reply With Quote
  #4  
Old 11-10-2009, 08:08 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

So do I have to merge the template one with the player.pl in zones that already have one?
Reply With Quote
  #5  
Old 11-10-2009, 08:30 AM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

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.
__________________
Server Op of Bonds of Strength(custom-Legit)
Reply With Quote
  #6  
Old 11-11-2009, 03:19 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

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...
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 01:25 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3