View Single Post
  #9  
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