Globals, random spawns and skeletons
Hey folks, I have a quest file that I cannot for the life of me figure out what is wrong. I need a pair of fresh eyes cause mine are crossing at this point.
Code:
my $a; |
I've always used names instead of numbers for the label of the timer. I could be way off, might not be the problem.
|
For numbers, you would use:
Code:
quest::settimer(1, 10); Code:
quest::settimer("string", 10); Since you have a number in a string, it should probably work the way you have it set, but you might want to try changing that up a bit to see if it makes a difference. A good way to check if you have other issues is to try simplifying your timer. Try just setting the entire timer section to this, and work from there if the timer triggers this time: Code:
sub EVENT_TIMER { Also, you probably don't want to check if a qglobal is defined and also check what it is equal to in the same if line. Instead, maybe break it up by doing this: Code:
if(defined($qglobals{Night})) { |
Sweet, thanks for the tips on the qglobal check, I actually copy and pasted that from the wiki =o.
I'd tested absolutely every combination of timer names from flat numbers, to copying what I used for other PL files that work completely. This was a recent additional failure. Ok, I got the First part of the PL working. Code:
#-1028.3,5120,115.2,112 Code:
else { |
Nailed it, thanks guys, I shall share! You can use this for your Pzyjn, you'll need some special mobs so you'll have to modify the NPC ID's for your usage as well as the grids. You'll also need a "walker" mob, I hid mine on one of the pillars. Their might be one in your DB already, named 2_ with NPC ID 51150. You can adjust your locs, these are based on our own experiences at Project1999.
Code:
#-1028.3,5120,115.2,112 |
Woops! I had the stop timer out of place, it was only stopping it on certain randoms.
Code:
#-1028.3,5120,115.2,112 |
All times are GMT -4. The time now is 10:12 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.