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 09-12-2008, 12:01 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Just to avoid wasting anyone's time, I've already caught SUB EVENT_WAYPOINT and changed it to sub EVENT_WAYPOINT.

I also placed . . .

"quest::delglobal("king");"

just above the "quest::setglobal("king", 4, 7, "F");" in the Slayer script.

The script is still not working.
Reply With Quote
  #2  
Old 09-12-2008, 12:07 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Did you check for typos? again, this will help.
Reply With Quote
  #3  
Old 09-12-2008, 12:29 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Might want to change timer to $timer
Reply With Quote
  #4  
Old 09-12-2008, 12:33 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Quote:
Originally Posted by joligario View Post
Might want to change timer to $timer
Yea, good idea, hehe! I didn't see that one.
Reply With Quote
  #5  
Old 09-12-2008, 12:45 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Quote:
Originally Posted by joligario View Post
Might want to change timer to $timer
GAH! How could I have missed that? I'll try the script again and see if it works. Does the watcher script look okay to you, Angelox?
Reply With Quote
  #6  
Old 09-12-2008, 12:49 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Script still does not work :(
Reply With Quote
  #7  
Old 09-12-2008, 12:52 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Quote:
Originally Posted by Neiv View Post
GAH! How could I have missed that? I'll try the script again and see if it works. Does the watcher script look okay to you, Angelox?
Looks good, but you never know tell you try; put a lot of quest shouts in there so you know where it gets hung up, my buddy Qadar came up with this type de-bugger which I think is very cool (notice the quest global variable $debugpl2);
Code:
sub EVENT_WAYPOINT {
## In Butcher > Oot ########################### In Butcher > Oot ###########
if (($skiffa==0.5) && ($skiffa < 40)){
 if($debugpl2==1){quest::shout ("Zoneing in From the timorous, setting 1");}
 quest::delglobal("skiffa");
 quest::setglobal("skiffa",1,7,"F");
 $skiffa=undef;}
elsif (($skiffa==1) && ($skiffa < 40)){
 if($debugpl2==1) {quest::shout ("setting 2");}
 quest::delglobal("skiffa");
 quest::setglobal("skiffa",2,7,"F");
 $skiffa=undef;}
elsif (($skiffa==2) && ($skiffa < 40)){
 if($debugpl2==1) {quest::shout ("setting 3");}
 quest::delglobal("skiffa");
 quest::setglobal("skiffa",3,7,"F");
 $skiffa=undef;}
elsif (($skiffa==3) && ($skiffa < 40)){
 if($debugpl2==1) {quest::shout ("setting 4");}
 quest::delglobal("skiffa");
------------Snipped--------------
set global '$debugpl2' to 1 and it shouts, set to 0 and it doesn't. So now you can track and debug anywhere your script gets hung up.
Reply With Quote
  #8  
Old 09-12-2008, 01:38 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

I don't understand this;
Code:
if (defined($qglobals{king}))
and also, I try to make my globals as short as possible;
kingdomfaction = king1
you have to follow sequence to set a global;
Code:
quest::delglobal("king1");
quest::setglobal("king1",3,7,"F");
$king1=undef;}
And I don't know how this;
Code:
if (defined($qglobals{king}))
is related.
Reply With Quote
  #9  
Old 09-12-2008, 01:39 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Okay, I've narrowed down the problem to the watcher script. I sandwiched the "setglobal" in the slayer script between two shouts, like this:

Code:
		quest::delglobal("king");
		quest::shout("global deleted, resetting global");
		quest::setglobal("king", 4, 7, "F");
		quest::spawn2(999247,0,0,$x+5,$y+5,$z,$h);
		quest::shout("king spawned, handing off to watcher");
I can see both shouts in the chat box as I zone due to death, so that tells me the global is setting. Plus, the fact that the king actually npc spawns in the spawn2 function tells me it's making it through.

I also added some shouts to the watcher script, like this:
Code:
sub EVENT_WAYPOINT
	{
	quest::shout("start WAY POINT");
	if (defined($qglobals{king}))
		{	
		if ($qglobals{king} == 4) 
			{
			quest::shout("start signal");
			quest::signal(999247);
			quest::shout("signal completed");
			}
		}
	}
The first watcher shout ("start WAY POINT") repeats every five seconds, but never proceeds to the second or third shouts. That tells me something is amiss in one of the two $qglobals lines. Any thoughts?
Reply With Quote
  #10  
Old 09-12-2008, 01:56 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Is your watcher set to have access to qglobals in the npc_types table?
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #11  
Old 09-12-2008, 12:43 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

The syntax of all three scripts checks out "ok"
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:15 AM.


 

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