Macro for Auto dc when mob and Auto storage Problem
Moderators: Moderators, Documentation Writers
Macro for Auto dc when mob and Auto storage Problem
Macro for Auto dc when mob by monsters or when low HP?? help pls
my problem about storage is..yung char ko pinipilit na dumikit sa katawan ng kafra ..anu po solution for this??
if I close the kore and start it again mag iistorage na siya...
my problem about storage is..yung char ko pinipilit na dumikit sa katawan ng kafra ..anu po solution for this??
Thanks in advance,, malapit na renewal!
my problem about storage is..yung char ko pinipilit na dumikit sa katawan ng kafra ..anu po solution for this??
if I close the kore and start it again mag iistorage na siya...
my problem about storage is..yung char ko pinipilit na dumikit sa katawan ng kafra ..anu po solution for this??
Thanks in advance,, malapit na renewal!
Re: Macro for Auto dc when mob and Auto storage Problem
use the antimob plugin not macro
http://forums.openkore.com/viewtopic.ph ... mob#p34057
post your autostorage block there's something wrong there
like your storageAuto_distance it maybe set to 0 or 1
http://forums.openkore.com/viewtopic.ph ... mob#p34057
post your autostorage block there's something wrong there
like your storageAuto_distance it maybe set to 0 or 1
Re: Macro for Auto dc when mob and Auto storage Problem
no its set to 5kaldabog wrote:use the antimob plugin not macro
http://forums.openkore.com/viewtopic.ph ... mob#p34057
post your autostorage block there's something wrong there
like your storageAuto_distance it maybe set to 0 or 1
Re: Macro for Auto dc when mob and Auto storage Problem
Code: Select all
Code:
#-------------------------------------------------------------------------------
# AntiMob
# * for servers that have their teleport skill disabled (pRO Valkyrie/Valhala)
# coded by RJ (vmkjwan)
#
# This source code is licensed under the
# GNU General Public License, Version 2.
# See http://www.gnu.org/licenses/gpl.html
# -----------------------------------------------------------------------------
# Change Log:
# v0.1 (05/17/08) - Initial
# v0.2 (05/18/08) - Added computation based on HP:Aggro ratio
# v0.3 (06/04/08) - Added Life Insurance option
# -----------------------------------------------------------------------------
# How to use this plugin:
#
# in control\config.txt, put:
#
# antiMob (1|0)
# antiMob_useInsu (1|0)
#
#------------------------------------------------------------------------------
package antiMob;
use strict;
use Plugins;
use Globals;
use Utils;
use Misc;
use Settings;
Plugins::register("antiMob", "Relog when getting Mobbed", \&unload);
my $hooks = Plugins::addHooks(
['packet_attack', \&onAttack, undef]
);
sub unload {
Plugins::delHooks($hooks);
}
# default relogTime
my $relogTime = 60;
sub onAttack {
return unless ($config{'antiMob'});
my ($self, $args) = @_;
my $aggros = scalar AI::ai_getAggressives();
if ($args->{'targetID'} eq $accountID) {
return if($args->{'dmg'} == 0);
my $hp = $char->hp_percent();
# I havent really tweaked the HP:Aggro ratio.. But it did saved me a lot of times
if( $hp < 50 && ((ceil($hp/10)-1) >= $aggros) ) {
Log::message(sprintf("Too many aggressives. HP: %s Aggro: %s\n", $hp, $aggros));
# Should we use insu?
if($config{'antiMob_useInsu'}) {
# Check if theres an active Life Insurance status
if(!$char->{statuses}{'Life Insurance'}) {
my $insu = Actor::Item::get('Life Insurance', undef, 1);
# Check if you really have the Life Insurance item
if(defined $insu) {
Log::message("Using Life Insurance..\n");
$insu->use();
return;
# You dont have it.. Relog
} else {
Log::message("We dont have any Life Insurance item left.\n");
}
} else {
Log::message("Good thing we still have Life Insurance status.\n");
return;
}
}
Log::message("Relogging..\n");
relog($relogTime);
}
}
}
sub ceil {
my $r = shift;
my $frac = $r - int($r);
if($frac<=0) {
return int($r);
} else {
return 1+int($r);
}
}
1;
Re: Macro for Auto dc when mob and Auto storage Problem
heres my auto storage blockkaldabog wrote:use the antimob plugin not macro
http://forums.openkore.com/viewtopic.ph ... mob#p34057
post your autostorage block there's something wrong there
like your storageAuto_distance it maybe set to 0 or 1
Code: Select all
######## Autostorage/autosell ########
buyAuto {
npc
standpoint
distance 5
minAmount 2
maxAmount 3
}
sellAuto 0
sellAuto_npc
sellAuto_standpoint
sellAuto_distance 5
storageAuto 1
storageAuto_npc izlude 134 88 Kafra Employee
storageAuto_distance 5
storageAuto_npc_type 1
storageAuto_npc_steps c r1 n
storageAuto_password <<dont worry about that
storageAuto_keepOpen 0
storageAuto_useChatCommand 0
relogAfterStorage 1
minStorageZeny
getAuto {
minAmount
maxAmount
passive
}
-
- Moderators
- Posts: 403
- Joined: 25 Aug 2008, 14:56
- Noob?: No
- Location: CyberOne Building , Eastwood
- Contact:
Re: Macro for Auto dc when mob and Auto storage Problem
Code: Select all
storageAuto_npc izlude 134 88 Kafra Employee
and... I'd like to restrain posters from QUOTING a configuration/code block.... use BBCode
Code: Select all
if you'll be posting long configuration blocks....
“The moon shines to both guilty and innocent alike..”
The Openkore Manual---Global Forum Rules--The Template
The Openkore Manual---Global Forum Rules--The Template
Re: Macro for Auto dc when mob and Auto storage Problem
benj1320 wrote:is it really good to include the NPC name in the autoStorage block??? .. mine only has <map_name> <coordinates, coordinates> and its working perfectly fine....Code: Select all
storageAuto_npc izlude 134 88 Kafra Employee
and... I'd like to restrain posters from QUOTING a configuration/code block.... use BBCodeCode: Select all
if you'll be posting long configuration blocks....[/quote]thank you..i will try that. can you help about the code??where should i put it?? :D Thank you po
-
- Moderators
- Posts: 403
- Joined: 25 Aug 2008, 14:56
- Noob?: No
- Location: CyberOne Building , Eastwood
- Contact:
Re: Macro for Auto dc when mob and Auto storage Problem
its a plugin... so put it inside the PLUGINS Folder...
http://wiki.openkore.com/index.php?title=Macro_plugin
http://wiki.openkore.com/index.php?title=Macro_plugin
“The moon shines to both guilty and innocent alike..”
The Openkore Manual---Global Forum Rules--The Template
The Openkore Manual---Global Forum Rules--The Template
Re: Macro for Auto dc when mob and Auto storage Problem
thank you I will try it tomorrow I gotta go..time to sleep
Re: Macro for Auto dc when mob and Auto storage Problem
storageAuto_npc izlude 134 88 Kafra Employee
this is the error in your storage block proper is
read the manual carefully so you won't have errors
this is the error in your storage block proper is
Code: Select all
storageAuto_npc <map name> <x> <y>
Specifies the NPC location for auto storage.