Simulated AE Rampage Script
I know there's now a special attack code for Wild Rampage, but I liked using this on an old NPC of mine because of the customizable damage and delivery messages. This is the exact same script I used before, however now it doesn't work. I'm assuming some thing has changed to break this script as it fires all the way up to the if ($client_search) part and stops. Any help is appreciated.
Code:
my $x; |
Just a quick glance, but I would assume it has something to do with hardcoding 0 and 2000 rather than getting a true client count. Haven't done it in a while, but is there truly a client with ID of 0? Another thing to think of is what happens when you get beyond the actual list of clients.
|
Quote:
|
Something like this might work, and it'd be more efficient since it's not going to try and retrieve 2000 clients.
Code:
my @clientlist = $entity_list->GetClientList(); |
Quote:
Code:
sub EVENT_TIMER |
You have:
my $x; my $y; my $z; my $h; at the top of the script and then you have my $x = $npc->GetX(); my $y = $npc->GetY(); my $z = $npc->GetZ(); inside the loop, where it stops working. I'm not a perl expert, but that may be the problem. I would remove the ones at the top. |
Doesn't change anything, I tried that before.
|
Using this version 1-7 fires, 8 never fires:
Code:
sub EVENT_TIMER Code:
sub EVENT_TIMER |
I would debug the value in distanceCHK and target/client ids to see if it is value problem.
|
How would I do that?
|
Consider what would happen if both IDs were the same.
Change your 7th shout to this: Code:
quest::shout("7 $TargID, $ClID"); |
Quote:
Issue resolved. Thanks for the help! |
All times are GMT -4. The time now is 12:20 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.