Openkore.com
http://forums.openkore.com/

bRO --- r7915 Patch for bug infos de quests
http://forums.openkore.com/viewtopic.php?f=58&t=16513
Page 1 of 1

Author:  KoreGhost [ 03 Jan 2012, 10:18 ]
Post subject:  bRO --- r7915 Patch for bug infos de quests

Code:
Index: Network/Receive/bRO.pm
===================================================================
--- Network/Receive/bRO.pm    (revision 7915)
+++ Network/Receive/bRO.pm    (working copy)
@@ -46,4 +46,7 @@
     }
}

+*parse_quest_update_mission_hunt = *Network::Receive::ServerType0::parse_quest_update_mission_hunt_v2;
+*reconstruct_quest_update_mission_hunt = *Network::Receive::ServerType0::reconstruct_quest_update_mission_hunt_v2;
+
1;
\ No newline at end of file


Credits: http://openkore.com.br/index.php?/user/77-imikelance/

Code:
Index: Misc.pm
===================================================================
--- Misc.pm    (revision 7921)
+++ Misc.pm    (working copy)
@@ -3876,6 +3876,11 @@
     if (defined $config{$prefix.'_devotees'}) {
         return 0 unless inRange(scalar keys %{$devotionList->{$accountID}{targetIDs}}, $config{$prefix.'_devotees'});
     }
+       
+    if ($config{$prefix."_avoidGutterLines"}) {
+        my $pos = calcPosition($char);
+        return 0 if ($pos->{x}%40 <= 4 || $pos->{y}%40 <= 4);
+    }

     my %hookArgs;
     $hookArgs{prefix} = $prefix;


Usage:

Utilizando:
Code:
# bRO: Impacto de Tyr
attackSkillSlot Bowling Bash {
avoidGutterLines 1
}

Author:  iMikeLance [ 03 Jan 2012, 11:08 ]
Post subject:  Re: bRO --- r7915 Patch for bug infos de quests

The first one addresses a bug already fixed in iRO where kore would report the number of monsters killed during a quest incorrectly. So it's just copy/paste from Network/Receive/iRO.pm.

The second one adds the Self Condition avoidGutterLines, where kore checks if the character is inside any gutter line before casting the skill. It's only useful for Bowling Bash in official servers.

Author:  EternalHarvest [ 03 Jan 2012, 13:57 ]
Post subject:  Re: bRO --- r7915 Patch for bug infos de quests

bRO update: in r7924.

avoidGutterLines: it's fine, but maybe more suited as a plugin, as "it's only useful for Bowling Bash in official servers"?
Example of how to implement a self condition in a plugin: http://openkore.svn.sourceforge.net/vie ... iew=markup

Author:  iMikeLance [ 04 Jan 2012, 10:55 ]
Post subject:  Re: bRO --- r7915 Patch for bug infos de quests

Quote:
Commit by farrainbow :: r7924 /openkore/trunk/src/Network/Send/bRO.pm:
bRO quest_update_mission_hunt update (by iMikeLance)


Updated to last rev today and found out that the patch has been added to Send/bRO.pm, and it should've been applied to Receive/bRO.pm.

EternalHarvest wrote:
bRO update: in r7924.

avoidGutterLines: it's fine, but maybe more suited as a plugin, as "it's only useful for Bowling Bash in official servers"?
Example of how to implement a self condition in a plugin: http://openkore.svn.sourceforge.net/vie ... iew=markup


Thanks for the suggestion about the plugin, gonna start it just after bRO's maintenance :D

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/