bRO --- r7915 Patch for bug infos de quests

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
KoreGhost
Developers
Developers
Posts: 123
Joined: 28 Mar 2011, 12:48
Noob?: No
Location: Brazil
Contact:

bRO --- r7915 Patch for bug infos de quests

#1 Post by KoreGhost »

Code: Select all

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: Select all

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: Select all

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

iMikeLance
Moderators
Moderators
Posts: 208
Joined: 01 Feb 2010, 17:37
Noob?: No
Location: Brazil - MG
Contact:

Re: bRO --- r7915 Patch for bug infos de quests

#2 Post by iMikeLance »

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.

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: bRO --- r7915 Patch for bug infos de quests

#3 Post by EternalHarvest »

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

iMikeLance
Moderators
Moderators
Posts: 208
Joined: 01 Feb 2010, 17:37
Noob?: No
Location: Brazil - MG
Contact:

Re: bRO --- r7915 Patch for bug infos de quests

#4 Post by iMikeLance »

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

Locked