jParty [Version v1.11.20beta]
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
Re: jParty [Version 0.11.20beta]
Since the bot targets using memory that game/client is the only client that knows it is targeting that mob, Any sort of assist to the character will never be 100% regardless of if you use the assist shortcut key or the in game function or getting it from memory.
Works like this
Bot1 targets a mob via memory, that client is the ONLY client that knows it is targeting the mob at that time.
Bot1 then starts to attack the mob, the mob then of course retaliates, when the mob attacks Bot1 at that time the physical target of Bot1 will become the mob and no sooner. Now any other client can see Bot1 is targeting that mob.
Trying to use assist on a bot in any way will never be 100% effective.
Most of the time Bot2 will become in combat(if same party) before even realising Bot1 has a target and Bot2 will defend Bot1 because of being in combat and not because of any sort of assist coding.
Works like this
Bot1 targets a mob via memory, that client is the ONLY client that knows it is targeting the mob at that time.
Bot1 then starts to attack the mob, the mob then of course retaliates, when the mob attacks Bot1 at that time the physical target of Bot1 will become the mob and no sooner. Now any other client can see Bot1 is targeting that mob.
Trying to use assist on a bot in any way will never be 100% effective.
Most of the time Bot2 will become in combat(if same party) before even realising Bot1 has a target and Bot2 will defend Bot1 because of being in combat and not because of any sort of assist coding.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: jParty [Version 0.11.20beta]
Yeah Lisa I understood. This is working now lol
I might not be clear enough each time or you're probably hating me xD
I was asking this:
You have a party
Bot
Player1
With my script, when i'm walking with Player1 and if the distance is more than {A distance}, the bot is going to the last X and Z of Player1. Until here it's fine.
Imagine the following. We're on the map A
Bot is following Player great then Player is zoning. The bot will go to the last X and Z of Player1.
To make it zoning, I thought to do it like this:
If Player1 is in the party but not in the same zone, I will press the keyboard VK_{FORWARD} til the bot zone.
So my question is:
- Is it possible to see if a party member is in the same zone or not in the same zone?
Also I'll use Icons for another function but I can't find a way to remove the current icon in game.
In keyboard settings, there is a possibility to bind 1,2,3,4,5,6,7 and 8 but none to remove. But there is a right click "none", it might exist something to remove this then. I keep searching but if you know, I'll be glad to hear.
And finally, if I look stupid and if your previous post was explaining this. Before getting pissed, accept my excuse, I'll read it again
I might not be clear enough each time or you're probably hating me xD
I was asking this:
You have a party
Bot
Player1
With my script, when i'm walking with Player1 and if the distance is more than {A distance}, the bot is going to the last X and Z of Player1. Until here it's fine.
Imagine the following. We're on the map A
Bot is following Player great then Player is zoning. The bot will go to the last X and Z of Player1.
To make it zoning, I thought to do it like this:
If Player1 is in the party but not in the same zone, I will press the keyboard VK_{FORWARD} til the bot zone.
So my question is:
- Is it possible to see if a party member is in the same zone or not in the same zone?
Also I'll use Icons for another function but I can't find a way to remove the current icon in game.
In keyboard settings, there is a possibility to bind 1,2,3,4,5,6,7 and 8 but none to remove. But there is a right click "none", it might exist something to remove this then. I keep searching but if you know, I'll be glad to hear.
And finally, if I look stupid and if your previous post was explaining this. Before getting pissed, accept my excuse, I'll read it again
Re: jParty [Version 0.11.20beta]
The way people have handled zoning is to check the distance to the other character and if further then X then do code to try to ensure you go through a portal. Pretty sure there are posts about it a few times already. Just doing forward key isn't always a good idea.
People have posted about going back and forth between 2 WP until the load screen appears. If you just use forward you could just keep walking into a wall forever.
The in game function to assign an icon doesn't have an arg to remove an icon. I never bothered to find the function that would remove it as I never felt it necessary. If you set an icon to a mob then when you set same icon to next mob the first icon dissappears. You can only have a single occurance of each icon.
So the way I handled it when placing icons on chars was this.
place icon IV on party1, then when you don't need it anymore place icon I on party1, then when icon I is placed on mob the icon on party1 dissappears.
People have posted about going back and forth between 2 WP until the load screen appears. If you just use forward you could just keep walking into a wall forever.
The in game function to assign an icon doesn't have an arg to remove an icon. I never bothered to find the function that would remove it as I never felt it necessary. If you set an icon to a mob then when you set same icon to next mob the first icon dissappears. You can only have a single occurance of each icon.
So the way I handled it when placing icons on chars was this.
place icon IV on party1, then when you don't need it anymore place icon I on party1, then when icon I is placed on mob the icon on party1 dissappears.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: jParty [Version 0.11.20beta]
Ok thanks Lisa
Currently if I zone with Player1, the bot is zoning if not too far but I my last X and Z is too far of the portal, it's just standing there. I'll search the post talking about it, I've seen this few days ago.
My major problem if it's doing a {something}:update() while loading it's crashing. Now it will be hard to say to the bot to waitforloadingscreen() without giving any tips.
If I had a function which see that Player1 is not in the same zone, it will be pretty easy. I'll find a solution, I hope
Currently if I zone with Player1, the bot is zoning if not too far but I my last X and Z is too far of the portal, it's just standing there. I'll search the post talking about it, I've seen this few days ago.
My major problem if it's doing a {something}:update() while loading it's crashing. Now it will be hard to say to the bot to waitforloadingscreen() without giving any tips.
If I had a function which see that Player1 is not in the same zone, it will be pretty easy. I'll find a solution, I hope
Re: jParty [Version 0.11.20beta]
you will find this in party.lua
it deals with stopping for loading screen...
The address names should give an indication of what it does combine that with what the print message says.
Do I need to point out the code already existed and in a file I already mentioned you should have a read of lol
Don't get me wrong I am not trying to be mean and I am not getting upset but if you really want to learn you should try learning what already exists and work out why it already works. Then you will have more time to work on the things you want to do differently to what already exists and put it all together to eventually achieve what you want in a better way.
Code: Select all
if memoryReadBytePtr(getProc(),addresses.loadingScreenPtr, addresses.loadingScreen_offset) ~= 0 then
repeat
printf("loading screen has appeared, waiting for it to end.\n")
yrest(1000)
until memoryReadBytePtr(getProc(),addresses.loadingScreenPtr, addresses.loadingScreen_offset) == 0
end
The address names should give an indication of what it does combine that with what the print message says.
Do I need to point out the code already existed and in a file I already mentioned you should have a read of lol
Don't get me wrong I am not trying to be mean and I am not getting upset but if you really want to learn you should try learning what already exists and work out why it already works. Then you will have more time to work on the things you want to do differently to what already exists and put it all together to eventually achieve what you want in a better way.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: jParty [Version 0.11.20beta]
Thanks Lisa, I was too noob to understand that will handle the loading screen
I'm doing fine til now because of your help
Next step is to act with NPC when the partymemberpawn designed as "Bot master" put a icon on a NPC.
For now it's good if the icon is on self and I can't use player:target(player:findEnemy(nil,nil,icontarget,nil)) to get the icon because a NPC isn't a enemy.
I'll find it
I'm doing fine til now because of your help
Next step is to act with NPC when the partymemberpawn designed as "Bot master" put a icon on a NPC.
For now it's good if the icon is on self and I can't use player:target(player:findEnemy(nil,nil,icontarget,nil)) to get the icon because a NPC isn't a enemy.
I'll find it
Re: jParty [Version 0.11.20beta]
findenemy only looks for enemies and a npc you can interact with is not an enemy.
Instead of just giving you the code you needed, like previously, I will just give you a hint. Since no one ever learns anything from just being spoon fed information.
Look for code with this
and have a good look at the code and how it works.
Instead of just giving you the code you needed, like previously, I will just give you a hint. Since no one ever learns anything from just being spoon fed information.
Look for code with this
Code: Select all
local objectList = CObjectList();
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: jParty [Version 0.11.20beta]
EDITMicroMacro wrote: Call to CObjectList:getObject failed: index out of bounds
nvm, I think I found something interesting in pawn.lua
Re: jParty [Version 0.11.20beta]
That was failing to check icon and I found probably a mistake in pawn.lua
There is 8 icons in game but here it's looping for 6 only:
Then I've changed to:
to make it work.
If I have the last version, you should edit it.
There is 8 icons in game but here it's looping for 6 only:
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, 8 do
If I have the last version, you should edit it.
Re: jParty [Version v1.11.20beta]
New version uploaded on first post.
If you want to use NPC and Icon, check this:
Open rom/classes/pawn.lua
Seach for:
Replace:
With
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
Re: jParty [Version v1.11.20beta]
If you look at the code more you will realise 0,6 is actually 7 numbers. when it is setting the return value it uses i + 1.
so 0 is actually for icon I and 6 would be for icon VII.
I don't recall offhand why it was only done for icons 1 to 7 but this would only cause an issue if you actually used icon VIII for anything. I manage to do everything I want using 4 icons max.
So "for i = 0, 8 do" would be looking for icons 1 to 9 and there is no icon 9.
so 0 is actually for icon I and 6 would be for icon VII.
I don't recall offhand why it was only done for icons 1 to 7 but this would only cause an issue if you actually used icon VIII for anything. I manage to do everything I want using 4 icons max.
So "for i = 0, 8 do" would be looking for icons 1 to 9 and there is no icon 9.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: jParty [Version v1.11.20beta]
Sorry to say that Lisa but I think you're wrong. I have made a loop checking the icon with other stuff and it was printing it on the MM window.lisa wrote:If you look at the code more you will realise 0,6 is actually 7 numbers. when it is setting the return value it uses i + 1.
so 0 is actually for icon I and 6 would be for icon VII.
I don't recall offhand why it was only done for icons 1 to 7 but this would only cause an issue if you actually used icon VIII for anything. I manage to do everything I want using 4 icons max.
So "for i = 0, 8 do" would be looking for icons 1 to 9 and there is no icon 9.
If no Icon it's returning 0, if it's icon I -> it's returning 1 and if it's VIII -> it's returning 8
Have a look but I don't think I'm wrong here
Re: jParty [Version v1.11.20beta]
Yes, but for it to return 8, "i" would have to equal 7.
It will never return 9 because it's not a valid icon number so "i" will never be 8. So valid values for "i" are 0 to 7 so it will return 1 to 8. If there is no icon it should be returning nil.Zangetsu wrote: return i + 1
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: jParty [Version v1.11.20beta]
I guess I just didn't explain it well enough.
As I said I don't recall why the code was done to only do icons 1-7, it was a long time ago. Fact still remains if people used icons 1-7 then there is no issue.
It is possible it was just a mistake at the time to only cover icons 1-7 or there may have been a good reason.
Code: Select all
i = 0 // icon = 1
i = 1 // icon = 2
i = 2 // icon = 3
i = 3 // icon = 4
i = 4 // icon = 5
i = 5 // icon = 6
i = 6 // icon = 7
It is possible it was just a mistake at the time to only cover icons 1-7 or there may have been a good reason.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: jParty [Version v1.11.20beta]
i keep getting this error after i load the jparty.xml waypoint. can someone help me here please
--=== Edited by Lisa ===--
Sorry but I removed your image, it had the name of your character in it, don't want you to get banned.
edit: ty lisa
--=== Edited by Lisa ===--
Sorry but I removed your image, it had the name of your character in it, don't want you to get banned.
edit: ty lisa
Last edited by Golbez on Sun Jan 08, 2012 5:48 pm, edited 1 time in total.
Re: jParty [Version v1.11.20beta]
its this jparty version working good?
and as i understand for example on dod
at main char i load the normal wapoint for dod and at the other char i load the jparty.xml?
its that???
and as i understand for example on dod
at main char i load the normal wapoint for dod and at the other char i load the jparty.xml?
its that???
Re: jParty [Version v1.11.20beta]
Is it possible that my bot don´t res after death but res after Resurrection from my priest ?
sry for my bad english im german =)+
sry for my bad english im german =)+
Who is online
Users browsing this forum: No registered users and 2 guests