Openkore.com

OpenKore Forums
It is currently 01 Apr 2020, 14:00

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: ComboApam.pl error
PostPosted: 12 Jun 2011, 13:18 
Offline
Noob
Noob

Joined: 03 Jun 2011, 11:49
Posts: 2
My plugin ComboSpam it's perfect but don't run in 2.1

I don't know what to do.
Quote:
package comboSpam;

use strict;
use Plugins;
use Globals;
use SKill;
use Misc;
use Network;
use Network::Send;
use Utils;
use Time::HiRes qw(time usleep);


Plugins::register('comboSpam', 'spam combo packets', \&on_unload);
my $hook1 = Plugins::addHook('packet/actor_status_active', \&combo);
my $hook2 = Plugins::addHook('AI_pre', \&AI_pre);
my $combo = 0;
my $delay = .2;
my $time = time;

sub on_unload {
# This plugin is about to be unloaded; remove hooks
Plugins::delHook("packet/actor_status_active", $hook1);
Plugins::delHook("AI_pre", $hook1);
}

sub combo {
my ($packet, $args) = @_;
my ($type, $ID, $flag) = @{$args}{qw(type ID flag)};

if ($skillsStatus{$type} eq "Triple Attack Delay") {
$combo = $flag;
}
}

sub AI_pre {
my ($self, $args) = @_;

if ($combo && main::timeOut($time, $delay)) {
sendSkillUse($net, 272, 5, $accountID); # Chain Combo
if ($char->{spirits}) { # Make sure there is a spirit sphere
sendSkillUse($net, 273, 5, $accountID); # Combo Finish
}
$time = time;
}
}

1;


Top
 Profile  
 
 Post subject: Re: ComboApam.pl error
PostPosted: 12 Jun 2011, 13:27 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1811
openkore.com, "porting plugins".


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group