Openkore.com

OpenKore Forums
It is currently 15 Dec 2017, 02:11

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: bRO --- r7915 Patch for bug infos de quests
PostPosted: 03 Jan 2012, 10:18 
Offline
Developers
Developers

Joined: 28 Mar 2011, 12:48
Posts: 125
Location: Brazil
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
}


Top
 Profile  
 
 Post subject: Re: bRO --- r7915 Patch for bug infos de quests
PostPosted: 03 Jan 2012, 11:08 
Offline
Moderators
Moderators
User avatar

Joined: 01 Feb 2010, 17:37
Posts: 211
Location: Brazil - MG
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.

_________________
Brazilian Community: http://openkore-brasil.com
BetaKore: https://code.google.com/p/betakore/


Top
 Profile  
 
 Post subject: Re: bRO --- r7915 Patch for bug infos de quests
PostPosted: 03 Jan 2012, 13:57 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1811
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


Top
 Profile  
 
 Post subject: Re: bRO --- r7915 Patch for bug infos de quests
PostPosted: 04 Jan 2012, 10:55 
Offline
Moderators
Moderators
User avatar

Joined: 01 Feb 2010, 17:37
Posts: 211
Location: Brazil - MG
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

_________________
Brazilian Community: http://openkore-brasil.com
BetaKore: https://code.google.com/p/betakore/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group