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

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

09-12-2008, 12:07 PM
|
AX Classic Developer
|
|
Join Date: May 2006
Location: filler
Posts: 2,049
|
|
Did you check for typos? again, this will help.
|

09-12-2008, 12:29 PM
|
 |
Developer
|
|
Join Date: Mar 2003
Posts: 1,498
|
|
Might want to change timer to $timer
|

09-12-2008, 12:33 PM
|
AX Classic Developer
|
|
Join Date: May 2006
Location: filler
Posts: 2,049
|
|
Quote:
Originally Posted by joligario
Might want to change timer to $timer
|
Yea, good idea, hehe! I didn't see that one.
|

09-12-2008, 12:45 PM
|
Hill Giant
|
|
Join Date: May 2008
Location: Colorado
Posts: 238
|
|
Quote:
Originally Posted by joligario
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?
|

09-12-2008, 12:49 PM
|
Hill Giant
|
|
Join Date: May 2008
Location: Colorado
Posts: 238
|
|
Script still does not work :(
|
 |
|
 |

09-12-2008, 12:52 PM
|
AX Classic Developer
|
|
Join Date: May 2006
Location: filler
Posts: 2,049
|
|
Quote:
Originally Posted by Neiv
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.
|
 |
|
 |

09-12-2008, 01:38 PM
|
AX Classic Developer
|
|
Join Date: May 2006
Location: filler
Posts: 2,049
|
|
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.
|
 |
|
 |

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

09-12-2008, 01:56 PM
|
Developer
|
|
Join Date: Mar 2007
Location: Ohio
Posts: 648
|
|
Is your watcher set to have access to qglobals in the npc_types table?
|

09-12-2008, 12:43 PM
|
Hill Giant
|
|
Join Date: May 2008
Location: Colorado
Posts: 238
|
|
The syntax of all three scripts checks out "ok"
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 08:15 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |