SCkiller (Select Color)

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

Message
Author
ruler
Noob
Noob
Posts: 3
Joined: 23 Feb 2009, 10:25
Noob?: Yes

SCkiller (Select Color)

#1 Post by ruler »

once, thanks to windows98SE for his ACkiller.

SCkiller can bypass this
Image
###########################
# ACkiller v1.0.0
#
# For OpenKore 1.9.x
#
# NOTE: This plugin meant to be use with hakore's reactOnNPC
#
# Credit : Windows98SE
###########################

###########################
# SCkiller v1.0.0
#
# For Openkore 2.0.x
#
# NOTE: This plugin is meant to be used with hakore's reactOnNPC
#
# Edit : fChopin (it's me !! fChopin is the name that i've used in Thailand OPK board)
###########################

package SCkiller;

use strict;
use Plugins;
use Utils;
use Globals;
use Commands;
use Log qw(message error); #SVN version comment this line
use I18N qw(bytesToString);


my @color;
my $answer;
my @msgtmp;
my $numlen = 7; #length of the number that Antibot ask

Plugins::register('SCkiller', "response on Anti Login (Select Color)", \&onUnload);
my $cmd = Commands::register(['SCkiller', 'talk response AntibotKiller (Select Color)', \&onCmd]);
my $hooks = Plugins::addHooks(
['packet/npc_talk', \&onNPCmsg],
['packet/npc_talk_responses', \&onNPCmsg]
);

sub onUnload {
Plugins::delHooks($hooks);
Commands::unregister($cmd);
undef @color;
undef $answer;
undef @msgtmp;
undef $numlen;
}

sub onNPCmsg {
my (undef, $args) = @_;
my $msg = I18N::bytesToString(unpack("Z*", substr($args->{RAW_MSG}, 8)));

if($msg =~ /.*([a-zA-Z0-9]{6}[0-9]{$numlen})\^[0]{6}\^/i){
#message "[SCkiller] found color and number : $1\n","success";
push (@msgtmp,$1);
} elsif($msg =~ /#+/i) {
@color= split('\^',$msg);
foreach my $temp(@color) {
if($temp =~ /([a-zA-Z0-9]{6}).*/i) {
if($1 ne "FFF9EE") {
if($1 ne "F5F9FD") {
if($1 ne "FFF9FA") {
if($1 ne "F7F7FF") {
if($1 ne "F8F8FF") {
if($1 eq "FFA500") {$color[0] = "FF8C00";}
else {$color[0] = $1;}
}}}}}
}
}
#message "[SCkiller] found choosen color : $color[0]\n","success";
}
}

sub onCmd {
my (undef, $args) = @_;
foreach my $line(@msgtmp) {
if($line =~ /$color[0](.*)/i) {
$answer = $1;
}
}
if($answer eq '') {
$color[0] = "FFA500";
foreach my $line(@msgtmp) {
if($line =~ /$color[0](.*)/i) {
$answer = $1;
}
}
}
$cmd = "talk $args $answer";
message "[SCkiller] Executing command \"$cmd\".\n", "success";
Commands::run($cmd);
}

return 1;
config.txt
reactOnNPC SCkiller num {
type number
}

regotihm
Noob
Noob
Posts: 1
Joined: 07 Jun 2009, 00:51
Noob?: Yes

Re: SCkiller (Select Color)

#2 Post by regotihm »

what's the plugin name? always error while loading the plugin...

komikun
Noob
Noob
Posts: 1
Joined: 02 Jul 2009, 12:24
Noob?: Yes

Re: SCkiller (Select Color)

#3 Post by komikun »

can u tell me how it works??
show some example?

ruler
Noob
Noob
Posts: 3
Joined: 23 Feb 2009, 10:25
Noob?: Yes

Re: SCkiller (Select Color)

#4 Post by ruler »

The plugin's name is " SCkiller "
and
this plugin is meant to be used with hakore's reactOnNPC.

kokowoo
Noob
Noob
Posts: 1
Joined: 23 Oct 2009, 10:02
Noob?: No

Re: SCkiller (Select Color)

#5 Post by kokowoo »

If I ready to save this text , can u tell me what's name for this file? ex. SCkiller.pl or somethings?

nestzu
Noob
Noob
Posts: 1
Joined: 21 Oct 2009, 01:49
Noob?: Yes

Re: SCkiller (Select Color)

#6 Post by nestzu »

Unknown #110012430: [ChaoS Anti-Bot System]
Unknown #110012430: 5778188[][][][1172685][][][]]
Unknown #110012430: 5134213[][][][5134213][][][]]
Unknown #110012430: 362851[][][][7791953][][][]]
Unknown #110012430: 9778217[][][][5778188][][][]]
Unknown #110012430: 6834397[][][][5612842][][][]]
Unknown #110012430: 0¡Ãسһé͹ àÅ¢·ÕèàËç¹ ã¹ªèͧÊÕÊéÁ
Unknown #110012430: Auto-continuing talking
Unknown #20006947: **
Party Member: à¾ÕÂÇ-ÃÔ-¤Ø
Party Member: [C]hampian
Party Member:     
Party Member:         
Party Member: 7áÁè§
Party Member: In Da Club
All Players ignored
NPC Exists: MeawaOwnBot (167, 100) (ID 110012430) - (7)
MeawaOwnBot: Type 'talk num <number #>' to input a number.
[reactOnNPC] Reacting to NPC. Executing command "SCkiller num".
[SCkiller] Executing command "talk num FFF5EE6834397".
Error in function 'talk num' (Respond to NPC)
You must specify a number.



not work
help me plzz

beerza991
Noob
Noob
Posts: 2
Joined: 29 Nov 2009, 12:56
Noob?: Yes

Re: SCkiller (Select Color)

#7 Post by beerza991 »

[Nov 30 11:50:24 2009.56] Unknown #110784990: [ Anti Bot By Duo ]
[Nov 30 11:50:24 2009.56] Unknown #110784990: ขอตรวจสอบสักหน่อยนะค่ะ
[Nov 30 11:50:24 2009.56] Unknown #110784990: โปรดอ่านข้อความให้เข้าใจก่อนตอบ
[Nov 30 11:50:24 2009.57] Unknown #110784990: คุณมีโอกาสหนีการตอบอีก 0 ครั้ง
[Nov 30 11:50:24 2009.57] Unknown #110784990: คุณมีโอกาสตอบผิดอีก 10 ครั้ง
[Nov 30 11:50:24 2009.57] Unknown #110784990: Auto-continuing talking
[Nov 30 11:50:24 2009.58] [reactOnNPC] onNPCAction type is: continue.
[Nov 30 11:50:24 2009.65] Unknown #110784990: qXJHwUj
[Nov 30 11:50:24 2009.65] Unknown #110784990: weOPki6
[Nov 30 11:50:24 2009.66] Unknown #110784990: VFtyPwH
[Nov 30 11:50:24 2009.66] Unknown #110784990: 7PJG5yy
[Nov 30 11:50:24 2009.67] Unknown #110784990: sMNLDqj
[Nov 30 11:50:24 2009.67] Unknown #110784990: Zduoj94
[Nov 30 11:50:24 2009.67] Unknown #110784990: tj2fQmF
[Nov 30 11:50:24 2009.68] Unknown #110784990: กรุณาป้อนสี เหลือง
[Nov 30 11:50:24 2009.68] NPC Exists: KillMonsterEvent_Zeal (31, 261) (ID 110784990) - (0)
[Nov 30 11:50:24 2009.68] KillMonsterEvent_Zeal: Type 'talk text' (Respond to NPC)
[Nov 30 11:50:24 2009.69] [reactOnNPC] onNPCAction type is: text.







[Nov 30 11:59:44 2009.25] Unknown #110784990: [ Anti Bot By Duo ]
[Nov 30 11:59:44 2009.30] Unknown #110784990: ขอตรวจสอบสักหน่อยนะค่ะ
[Nov 30 11:59:44 2009.33] Unknown #110784990: โปรดอ่านข้อความให้เข้าใจก่อนตอบ
[Nov 30 11:59:44 2009.37] Unknown #110784990: คุณมีโอกาสหนีการตอบอีก 5 ครั้ง
[Nov 30 11:59:44 2009.41] Unknown #110784990: คุณมีโอกาสตอบผิดอีก 10 ครั้ง
[Nov 30 11:59:44 2009.45] Unknown #110784990: Auto-continuing talking
[Nov 30 11:59:44 2009.49] [reactOnNPC] onNPCAction type is: continue.
[Nov 30 11:59:44 2009.11] Unknown #110784990: dph33S7
[Nov 30 11:59:44 2009.11] Unknown #110784990: iImqdmF
[Nov 30 11:59:44 2009.11] Unknown #110784990: RMAUHv8
[Nov 30 11:59:44 2009.12] Unknown #110784990: qRWEei2
[Nov 30 11:59:44 2009.12] Unknown #110784990: TrwWGFS
[Nov 30 11:59:44 2009.13] Unknown #110784990: AoPKY22
[Nov 30 11:59:44 2009.13] Unknown #110784990: 4gzLSZz
[Nov 30 11:59:44 2009.14] Unknown #110784990: กรุณาป้อนสี ม่วง
[Nov 30 11:59:44 2009.14] NPC Exists: Unknown #110784990 (33, 258) (ID 110784990) - (0)
[Nov 30 11:59:44 2009.14] Unknown #110784990: Type 'talk text' (Respond to NPC)
[Nov 30 11:59:44 2009.15] [reactOnNPC] onNPCAction type is: text.
[Nov 30 11:59:44 2009.15] [reactOnNPC] Reacting to NPC. Executing command "SCkiller num".
[Nov 30 11:59:44 2009.15] [SCkiller] Executing command "talk num ".
[Nov 30 11:59:44 2009.16] Error in function 'talk num' (Respond to NPC)
You must specify a number.

Image

Image



help me plzz

Scarya
Moderators
Moderators
Posts: 136
Joined: 26 May 2008, 12:25
Noob?: No

Re: SCkiller (Select Color)

#8 Post by Scarya »

Code: Select all

reactOnNPC SCkiller text{
type text
}
I guess this will do it.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots.
So far, the universe is winning.

Richard Cook

Wiki

beerza991
Noob
Noob
Posts: 2
Joined: 29 Nov 2009, 12:56
Noob?: Yes

Re: SCkiller (Select Color)

#9 Post by beerza991 »

config me

Code: Select all

reactOnNPC SCkiller text {
type text
}

reactOnNPC SCkiller num {
type num
}

reactOnNPC SCkiller num {
type text
}
not work

danzhere
Noob
Noob
Posts: 4
Joined: 22 Nov 2011, 02:16
Noob?: Yes

Re: SCkiller (Select Color)

#10 Post by danzhere »

wanna ask
why did sometimes this plugins fail ?

Post Reply