Current Version: 1.11.20beta
- Complete rewriting following Lisa's tips again .
- Disabled <option name="jParty_Debug" value="true" /> for now.
- Less loops.
- Sell to NPC when your put the Icon 8 on a merchant.
- Talk to NPC and select the choice equal to the Icon (1, 2, 3, 4, 5, 6 and 7)
- If the member the bot have to follow is out of range, it will try to find and follow the "Master"
- If both of the Master and "Followed" member is out of range, it will try to find and follow the "Assist" player
- If these 3 members are too far, it will go to the last position of the "Followed" and just spam MOVE_FORWARD (I know, it's not perfect)
- Zoning is working (At least I didn't had issues while testing)
- If when started, the bot isn't in party, it will not crash. I have to find the way to get the name of the player who's inviting. Once done it will accept invite if he's the Master
Functionnality(WORKING, NOT WORKING)
- The bot can follow a specified player
- The bot can listen a specified player
- The bot can assist a specified player
- The bot can loot
- The bot can need/greed/pass loot
- The bot can check if he's on a party and if not wait for an invite from his master.
- The bot can accept party invite if the player inviting is its master.
- The bot can heal and regen
- The bot can fight
- The bot can zone
- The bot can drop party
- The bot can rest MP when Master ask it
- The bot can change channel when the master ask it.
HOW TO USE IT
Put userfunction_jparty.lua into rom/scripts/userfunctions/ directory Put jParty.xml into rom/scripts/waypoints/
Set up these vars in your profile.xml before starting the bot:
Code: Select all
<option name="jParty_BotMaster" value="PlayerName" />
<option name="jParty_BotAssist" value="PlayerName" /> The bot will assist this member if a fight is engaged
<option name="jParty_BotFollowed" value="PlayerName" /> The bot will follow this member
<option name="jParty_FollowingDistance" value="20" /> The bot will keep this distance with the BotFollowed
<option name="jParty_BotHealer" value="true" /> The bot will heal
<option name="jParty_BotDPSer" value="true" /> The bot will Fight the target of BotAssist if in combat
<option name="jParty_BotLooter" value="true" /> The bot will loot
<option name="jParty_Heal" value="PRIEST_URGENT_HEAL" /> Your main heal
<option name="jParty_BigHeal" value="PRIEST_HEAL" /> Your Big heal
<option name="jParty_Regen" value="PRIEST_REGENERATE" /> Your regen (The bot will only regen if jParty_RegenBuffName is not found on party members and if IN combat
<option name="jParty_RegenBuffName" value="Regenerate" /> The name of your buff's regen
Once in game:
To make your bot sell stuff, have a merchant targeted, put the Icon 8 on its head, then wait a bit and remove it.
To make your character speak with a NPC, target the NPC and choose options put:
- Icon 1 if you want the bot choose the option 1
- Icon 2 if you want the bot choose the option 2
- Icon 3 if you want the bot choose the option 3
- Icon 5 if you want the bot choose the option 4
- Icon 5 if you want the bot choose the option 5
- Icon 6 if you want the bot choose the option 6
- Icon 7 if you want the bot choose the option 7
IMPORTANT: Remember to target, put the icon you need, wait a bit and put the icon on someone else. Or else, the bot will keep spamming the choice depending the Icon.
I know it's not perfect, but until I find a way, it's like that :S
If you want to use NPC and Icon, check this:
Open rom/classes/pawn.lua
Seach for:
Code: Select all
function CPawn:GetPartyIcon()
local listStart = memoryReadRepeat("intptr", getProc(), addresses.partyIconList_base, addresses.partyIconList_offset)
for i = 0, 6 do
local guid = memoryReadShort(getProc(), listStart + i * 12)
if guid == self.GUID then
return i + 1
end
end
end
Code: Select all
for i = 0, 6 do
Code: Select all
for i = 0, 8 do
Enjoy
-------Original Post:-----------------------------------------------------------------------------------------
I'm currently writing a script that will make your bot act as a party member for farming, questing, instance farming, etc...
It's still not finished but it's in a good way. I'm coding this because I saw a lot of posts on the forum and I've also used Lisa and some others members's scripts but it's not doing exactly what I need.
TBH, I need some help in order to finish it and sharing it with you all. It's more to know if something is doable by the RoM API or not because I need some functions to work. If not, I need to search another way.
Currently objectives are:
- Accept invite from a set player
- Drop party
- Follow a set player
- Heal
- Fight
- Loot
- Execute simple commands to rest by example
- Log into a file
Some functions are already working.
I need to know if this thing are possible:
Get the name of the player who is sending invite
Need/Greed/Pass on the loot window
I will post the script once it's working and cleaned of all junks.
Thanks for helping