• Silahkan bergabung dengan chat kami di Telegram group kami di N3Forum - https://t.me/n3forum
  • Welcome to the Nyit-Nyit.Net - N3 forum! This is a forum where offline-online gamers, programmers and reverser community can share, learn, communicate and interact, offer services, sell and buy game mods, hacks, cracks and cheats related, including for iOS and Android.

    If you're a pro-gamer or a programmer or a reverser, we would like to invite you to Sign Up and Log In on our website. Make sure to read the rules and abide by it, to ensure a fair and enjoyable user experience for everyone.

Plugins Openkore

Status
Not open for further replies.

chonzjr

PAUD
Level 1
@All
Ada yang punya plugins autowarp ?
gw punya dah ga bekerja lg...
ni yg pny gw klo bisa dikoreksi pliss,

<div class='codetop'>NYIT-NYIT CODE</div><div class='codemain' style='height:300px;white-space:pre;overflow:auto'># autowarpn (completely new code by Joseph)
# licensed under gpl v2

package autowarpn;

use strict;
use Globals;
use Log qw(message);
use Utils;
use Network::Send;
use Misc;
use AI;

Plugins::register('autowarpn', 'Auto warp before walk to lockmap.', \&unload);

my $hooks = Plugins::addHooks(
['AI_pre', \&AI_hook],
['is_casting', \&casting_hook],
['parseMsg/pre', \&packet_hook],
);

sub unload {
Plugins::delHooks($hooks);
}

sub AI_hook {
#my $hookName = shift;

if ($config{lockMap} ne $field{name} &&
$ai_seq[0] eq "move" && $ai_seq[1] eq "route" && $ai_seq[2] eq "mapRoute" && $ai_seq[3] eq "" &&
existsInList($config{autoWarp_from}, $field{name}) &&
$char->{skills}{AL_WARP} && $char->{skills}{AL_WARP}{lv} > 0
) {
AI::queue("autowarp");
AI::args->{timeout} = 5;
AI::args->{time} = time;
AI::args->{map} = $field{name};
message "Preparing to cast a warp portal to $config{autoWarp_to}\n";
}

if (AI::action eq "autowarp") {
if ($field{name} ne AI::args->{map}) {
AI::dequeue;
return;
}
if (timeOut(AI::args)) {
my $pos = getEmptyPos($char, 4);
sendSkillUseLoc(\$remote_socket, 27, 4, $pos->{x}, $pos->{y});
stopAttack();
message "Attempting to open warp portal at $pos->{x} $pos->{y}\n";
AI::args->{timeout} = 15;
AI::args->{time} = time;
}
}
}

sub packet_hook {
my $hookName = shift;
my $args = shift;
my $switch = $args->{switch};
my $msg = $args->{msg};

if ($switch eq "011C") {
sendOpenWarp(\$remote_socket, $config{'autoWarp_to'}.".gat");
}
}

sub casting_hook {
my $hookName = shift;
my $args = shift;

# it's our warp portal! ok lets go in
if ($args->{sourceID} eq $accountID && $args->{skillID} eq 27) {
message "Moving into warp portal at $args->{x} $args->{y}\n";
main::ai_route($field{name}, $args->{x}, $args->{y},
noSitAuto => 1,
attackOnRoute => 0);
}
}

sub getEmptyPos {
my $obj = shift;
my $maxDist = shift;

# load info about everyone's location
my %pos;
for (my $i = 0; $i < @playersID; $i++) {
next if (!$playersID[$i]);
my $player = $players{$playersID[$i]};
$pos{$player->{pos_to}{x}}{$player->{pos_to}{y}} = 1;
}

# crazy algorithm i made for spiral scanning the area around you
# i wont bother to document it since im lazy and it already confuses me

my @vectors = (-1, 0, 1, 0);

my $vecx = int abs rand 4;
my $vecy = $vectors[$vecx] ? 2 * int(abs(rand(2))) + 1 : 2 * int(abs(rand(2)));

my ($posx, $posy);

for (my $i = 1; $i <= $maxDist; $i++) {
for (my $j = 0; $j < 4; $j++) {
$posx = $obj->{pos_to}{x} + ( $vectors[$vecx] * $i * -1) || ( ($i*2) /2 );
$posy = $obj->{pos_to}{y} + ( $vectors[$vecy] * $i * -1) || ( ($i*2) /-2 );
for (my $k = 0; $k < ($i*2); $k++) {
#debug "Checking $posx $posy $vecx $vecy $i\n";
if (checkFieldWalkable(\%field, $posx, $posy) && !$pos{$posx}{$posy}) {
my $pos = {x=>$posx, y=>$posy};
return $pos if checkLineWalkable($obj->{pos_to}, $pos);
}

$posx += $vectors[$vecx];
$posy += $vectors[$vecy];
}
$vecx = ($vecx+1)%4;
$vecy = ($vecy+1)%4;
}
}
return undef;
}


1;</div>
thx b4
 

cyberbatax1

PAUD
Level 1
kk Ferry pluging ini untuk auto kek misalnya nempa yaaa...

kalo auto isi number di anti bot ada gak....
soalnya di ROPS ada anti bot gitu jadi mesti manual masukin nya,.. kira2 bisa biar kita ga usah masukin manual??

apa emang begitu dah ga bisa di apa2in ???

mohon pencerahan nya :)

thx :)
 

kentangbusuk

1 SD
Level 2
nanya donk cara bkin plugins yg di share gmn sih ?
yg kya gni contohnya cara savenya gmn ?
<div class='codetop'>NYIT-NYIT CODE</div><div class='codemain' style='height:300px;white-space:pre;overflow:auto'>########################################
# deathAlert -- Notice u'r bot death!
# This is a modification of AlertSound plugins made by
#
# ©2007 by Contrad
#
# This software is open source, licensed under the GNU General Public
# License, version 2.
# Basically, this means that you're allowed to modify and distribute
# this software. However, if you distribute modified versions, you MUST
# also distribute the source code.
# See http://www.gnu.org/licenses/gpl.html for the full license.
#
# How to install :
# Just paste to PLUGINS folder inside OPENKORE root folder.
#
# How to use :
# <config.txt>
# beepOnDeath (num) Beep when death until (num) times.
#
# Anyway I use 'Bahasa' instead of 'English' to promote INDONESIA. :D
# U'r free to translate it.

package deathAlert;

use strict;
use Plugins;
use Globals;
use Utils;
use Log qw(message);
use Network::Send;
use Utils;

Plugins::register('deathAlert', 'bip 2 kali kalo mati', \&Unload);
my $packetHook = Plugins::addHook('parseMsg/pre', \&CheckPacket);

sub Unload {
Plugins::delHook('parseMsg/pre', $packetHook);
}

sub CheckPacket {
return if (!$config{'beepOnDeath'});

my $hookName = shift;
my $args = shift;
my $switch = $args->{switch};
my $msg = $args->{msg};

if ($switch eq "0080") {
# someone disappeared here
my $ID = substr($msg, 2, 4);

if ($ID eq $accountID) {
# You are dead.
for (1..$config{'beepOnDeath'}) {$interface->beep();}
}
}
}

1;</div>
 

DJanzokLg

TK B
Level 1
kk ferry guguk, pengen tny...

klo antibot model kyk gini, biar bisa kebaca diconsole gmn ya ??

biar kebaca aja, ga usah autoreact gpp...

<div><div style="background:#B7E5CE;border:1px dotted #000;border-bottom:0;border-left:4px solid #429E6F;color:#000;font-weight:bold;font-size:10px;margin:8px auto 0 auto;padding:3px;">Spoiler untuk pic antibot: Perlihatkan</div><div style="color:#000;background:#FAFCFE;border:1px dotted #000;border-left:4px solid #429E6F;border-top:0;padding:4px;margin: 0 auto 8px auto;display:none;">


</div></div>

diconsole kyk gini, ga detect nomor2nya..

<div><div style="background:#B7E5CE;border:1px dotted #000;border-bottom:0;border-left:4px solid #429E6F;color:#000;font-weight:bold;font-size:10px;margin:8px auto 0 auto;padding:3px;">Spoiler untuk pic console: Perlihatkan</div><div style="color:#000;background:#FAFCFE;border:1px dotted #000;border-left:4px solid #429E6F;border-top:0;padding:4px;margin: 0 auto 8px auto;display:none;">
</div></div>
 

ferry_gukguk

Gukguk Love Cat
Level 2
@atas
pastikan config ini bener bro..
Code:
refineAuto_npc			gonryun 165 112
refineAuto_equip		Valkyrian Armor [1]
refineAuto_minZenny		5000
mungkin zeny nya < 5000 ??
ato salah npc ny??
ato salah nama equip nya jadi cma trigged trus si plugins ny..

CMIIW~
 

saii

1 SD
Level 2
Om here saya liat di forum tetangga yang mengenai
plugin anti bot killer

di PS saya mengunakan

BotKiller #1 - Method 5: ASCII

nah di sana ada Tools yang fungsina masukin kode jenis tulisan ( angka atau huruf )

Boleh tanya di sini sedikit ? OOT soal nya kalo gak boleh Delet aja Post ini
:err:
 

momocha3

TK B
Level 1
mo tanya yah
itu avoid skils plugin
itu sama kaya macro yah
buat avoidskills.txt ato gimana ??? ??
bingung aq
 

ferry_gukguk

Gukguk Love Cat
Level 2
@saii
Silahkan

@andrean3
Di taro di dalem config.txt
sama kek ini :
Code:
attackSkillSlot BlaBlaBla {
.
.
}

avoidSkill BlaBlaBla {
.
.
}
 

momocha3

TK B
Level 1
tanya lg donk bang ferry ini gw autotrade dah bisa
tapi kq dia cuma mau 1x trade aja yah gak mau ngasi duid lagi abis itu gak mau lagi
contohnya
abis beli 1 yoyo card
terus di trade 1 yoyo card gak mau ngasi zenny lagi itu kenapa yah??
 
Status
Not open for further replies.
Top