waitForParty -- Don't get separeted! by Chontrad
Posted: 07 Apr 2008, 09:52
This plugin was made and posted at old forum by Chontrad, at this address: http://bibian.ath.cx/openkore/viewtopic.php?t=38379
Originaly it was made upon modifications to openkore base code, so to get this work to the original openkore, I made some changes to this plugin.
What it does:
This great plugin was made to be used at the party's masterbot, checking if the follow bot is around, if not, the masterbot will search for it, walking to followbot's last known position. When they found each other, the masterbot will clear the AI and return to its AI normal sequence...
This plugin can replace the followBot option at config.txt, where the followbot sends pms to masterbot, telling him where to go (the place where the followbot is).
This plugin is better then followBot option at config.txt, cause at this option the masterbot normally pass thru the followbot, walking to the position where the followbot was a few seconds ago and both walk back some steps before the masterbot return to its normal AI sequence. At this plugin as soon as the followbot is insight of the masterbot (based on followDistanceMax of the masterbot) the masterbot returns to its normal AI sequence.
TIP: If you have a buffer and a melee in a party, just use the follow 1 at the buffer bot and the follow_wait 1 at the melee bot. You don't need to use the follow_wait 1 to both. In this case, masterbot = melee bot and followbot = buffer bot.
Changes:
v1.0
- Inserted the AI_pre hook, so the plugin could work, since I don't know where were placed the new hooks made by Chontrad at the mod openkore base code.
- Take off the sit and stand commands, with the new hook (AI_pre), the bot was playing of sit and stand...
- I didn't take off the other hooks, but I think that most of them don't exist!
- Translated the messages.
- Added follow_wait_inLockOnly option, thanks to fco2783. (16/05/2008)
v1.1
- Added follow_wait_noPartyMember option (03/10/2008)
- Added follow_wait_timeOut option (03/10/2008)
How to Install:
1) Download the file waitParty.pl.
2) Place it at plugins folder.
How to Use:
Just use this at config.txt.
File:
Author's Version (Chontrad) DON'T USE THIS VERSION, IT'S OUTDATED.
How to install :
The author uses self defined hooks instead of 'AI_pre' to reduce PC usage.
So you must copy the modified <Src\Network\Receive.pm> file.
The author use 'Bahasa' instead of 'English' to promote INDONESIA.
But it is already translated.
How to use :
<config.txt>
wait4party (0|1) Wait4Party On or Off
wait4party_sameMapOnly (0|1) Only activate if the party member are in the same map
wait4party_waitBySitting (0|1) Don't search, just sit and wait
wait4party_followSit (0|1) Sitting when party is sitting
ATTENTION! Turn off 'followSitAuto' or they'll sit forever!
I hope you enjoy it!
Originaly it was made upon modifications to openkore base code, so to get this work to the original openkore, I made some changes to this plugin.
What it does:
This great plugin was made to be used at the party's masterbot, checking if the follow bot is around, if not, the masterbot will search for it, walking to followbot's last known position. When they found each other, the masterbot will clear the AI and return to its AI normal sequence...
This plugin can replace the followBot option at config.txt, where the followbot sends pms to masterbot, telling him where to go (the place where the followbot is).
This plugin is better then followBot option at config.txt, cause at this option the masterbot normally pass thru the followbot, walking to the position where the followbot was a few seconds ago and both walk back some steps before the masterbot return to its normal AI sequence. At this plugin as soon as the followbot is insight of the masterbot (based on followDistanceMax of the masterbot) the masterbot returns to its normal AI sequence.
TIP: If you have a buffer and a melee in a party, just use the follow 1 at the buffer bot and the follow_wait 1 at the melee bot. You don't need to use the follow_wait 1 to both. In this case, masterbot = melee bot and followbot = buffer bot.
Changes:
v1.0
- Inserted the AI_pre hook, so the plugin could work, since I don't know where were placed the new hooks made by Chontrad at the mod openkore base code.
- Take off the sit and stand commands, with the new hook (AI_pre), the bot was playing of sit and stand...
- I didn't take off the other hooks, but I think that most of them don't exist!
- Translated the messages.
- Added follow_wait_inLockOnly option, thanks to fco2783. (16/05/2008)
v1.1
- Added follow_wait_noPartyMember option (03/10/2008)
- Added follow_wait_timeOut option (03/10/2008)
How to Install:
1) Download the file waitParty.pl.
2) Place it at plugins folder.
How to Use:
Just use this at config.txt.
Code: Select all
follow_wait 1 #(0|1) Use 1 to enable the plugin to run.
follow_wait_inLockOnly #(0|1) Use 1 to enable the bot to wait for party only at lock map
follow_wait_timeOut 20 #Number of seconds between each check of distance to the followbot
follow_wait_noPartyMember <partyname> #Name of a player at the party to do not wait for him (only one name)
How to install :
The author uses self defined hooks instead of 'AI_pre' to reduce PC usage.
So you must copy the modified <Src\Network\Receive.pm> file.
The author use 'Bahasa' instead of 'English' to promote INDONESIA.
But it is already translated.
How to use :
<config.txt>
wait4party (0|1) Wait4Party On or Off
wait4party_sameMapOnly (0|1) Only activate if the party member are in the same map
wait4party_waitBySitting (0|1) Don't search, just sit and wait
wait4party_followSit (0|1) Sitting when party is sitting
ATTENTION! Turn off 'followSitAuto' or they'll sit forever!
I hope you enjoy it!