Party Bot (questions/answers)
Re: Party Bot (questions/answers)
my actual version of MM is 777. party.lua with 18,3 KB
in this file updateLastHitTime is included.
isn't removed.
where to get the "new" party.lua ?
could someone post me his file ^^
in this file updateLastHitTime is included.
isn't removed.
where to get the "new" party.lua ?
could someone post me his file ^^
Re: Party Bot (questions/answers)
Just to clarify, 777 is not MM but rombot. They are different. MM version should be something like 1.04. MM is the program that runs the bot.
Maybe my last post was misleading. What I meant was the function updateLastHitTime was removed from player.lua so the call to use it in party.lua errors because the function no longer exists. So party.lua needs to be updated to not use that function. That hasn't been done yet so there is no new party.lua to download. Me or Lisa will do it soon. To tell you the truth, I don't want to do it right now because my main screen is being repaired and my secondary screen is on my left. If I do too much work on it I will get a crick in my neck. But I'll have a quick look at it and see if I fix it quick.
Maybe my last post was misleading. What I meant was the function updateLastHitTime was removed from player.lua so the call to use it in party.lua errors because the function no longer exists. So party.lua needs to be updated to not use that function. That hasn't been done yet so there is no new party.lua to download. Me or Lisa will do it soon. To tell you the truth, I don't want to do it right now because my main screen is being repaired and my secondary screen is on my left. If I do too much work on it I will get a crick in my neck. But I'll have a quick look at it and see if I fix it quick.
- 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: Party Bot (questions/answers)
Ok. Here is a version of party.lua with some minor changes that should make it work. I didn't test it myself. I'll leave that too you.
- Attachments
-
- party.lua
- (18.29 KiB) Downloaded 246 times
- 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: Party Bot (questions/answers)
okay thanks for explanations. Sry that i mixed them up. missunderstanding.
ok thanks. I will try it out .
Thanks for helping
--------------------------------------------------------------
I had also an idea, but dont know if it would be working.
For the quests in party everything with killing and looting from killed mobs is possible. But when we have to collect items like special flowers or use an item on a killed or not killed mob/ npc.
Is it possible without wp files ?
Search for questitems and collect or use them automaticly with a command like quest"collect" or quest"use" ?
The difficulty will be to search the questlog for quest like them -> find their necessary items -> get them to search by command.
Just a notion
ok thanks. I will try it out .
Thanks for helping
--------------------------------------------------------------
I had also an idea, but dont know if it would be working.
For the quests in party everything with killing and looting from killed mobs is possible. But when we have to collect items like special flowers or use an item on a killed or not killed mob/ npc.
Is it possible without wp files ?
Search for questitems and collect or use them automaticly with a command like quest"collect" or quest"use" ?
The difficulty will be to search the questlog for quest like them -> find their necessary items -> get them to search by command.
Just a notion
Re: Party Bot (questions/answers)
works fine with the party.lua from rock5 xD
Thank you
Thank you
Re: Party Bot (questions/answers)
You could just do the code as ingamerix92 wrote:I had also an idea, but dont know if it would be working. For the quests in party everything with killing and looting from killed mobs is possible. But when we have to collect items like special flowers or use an item on a killed or not killed mob/ npc. Is it possible without wp files ? Search for questitems and collect or use them automaticly with a command like quest"collect" or quest"use" ? The difficulty will be to search the questlog for quest like them -> find their necessary items -> get them to search by command.
Code: Select all
code"player:harvest(ID)"
code"player:target_Object(IDorNAME)"
You can create a userfunction to do basically what ever you want and then call that function. Pretty sure I posted some examples on this I used with looting mysterious bags in party.
Code: Select all
function collect(IDorNAME)
player:target_Object( IDorNAME ,900)
end
Code: Select all
code"collect('Grass of Loathing')"
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
-
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
Re: Party Bot (questions/answers)
Is it possible to put variables into the party chat? For instance, if my party leader accepts a quest and saves the questgiver ID and quest ID as variables, can he send those in party chat? I'm looking to do something like this:
haven't tried this yet as I am not at a computer i can try it on... just wondering if anyone can tell me if this would work. Thanks.
Code: Select all
function DD_getquest()
-- figure out who to target
local target = player:getTarget()
local questgiver = target.Id
-- then get quest id as I accept quest
EventMonitorStart("newquestid", "ADDNEW_QUESTBOOK");
print("event monitor started")
local time,moretocome,questid = nil;
print("doing repeat function now")
repeat
time, moretocome, questid = EventMonitorCheck("newquestid", "1");
yrest(500); -- check every half second
until questid ~= nil
EventMonitorStop("newquestid");
-- now send the command to party
local partycommand = 'code"player:target("'..questgiver..'"); yrest(500); AcceptQuestByName("'..newquestid..'");yrest(500)"'
sendPartyChat(partycommand)
yrest(500)
end
Re: Party Bot (questions/answers)
you can but just a little bit different to what you posted.
try this instead.
hmmm actually you want to have more " in there for the functions.
try that 1.
Code: Select all
local partycommand = 'code"player:target("'..questgiver..'"); yrest(500); AcceptQuestByName("'..newquestid..'");yrest(500)"'
try this instead.
Code: Select all
local partycommand = 'code"player:target('..questgiver..'); yrest(500); AcceptQuestByName('..newquestid..');yrest(500)"'
hmmm actually you want to have more " in there for the functions.
Code: Select all
local partycommand = 'code"player:target(\"'..questgiver..'\"); yrest(500); AcceptQuestByName(\"'..newquestid..'\");yrest(500)"'
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
-
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
Re: Party Bot (questions/answers)
I realized what I was doing wrong with the quotes so I tried it like this:
I think I would only need the \" in there if I am using NPC or quest Names, versus ID. Correct?
I also found that i used newquestid instead of questid so I fixed that.
Well, I am seeing 2 problems at this point:
1: The quest ID it is returning is "6" instead of a 6 digit questID. I'm not sure why. Here's my code updated and fixed as much as possible:
If I do a printf("quest id is: %s",questid) it will return 6 instead of the actual ID of the quest. Is there a better way for me to automatically grab the quest ID of the most recent quest I just accepted?
Problem 2: If the quest is from a bulletin board, it doesn't see the target as the bulletin board because I can't "target" it. Is there a better way to retrieve the quest giver of the most recently accepted quest? Also, I tried to target another player and run this and the targetid that it returned was "1001" which didn't seem quite right anyway, as I would think the ID would be 6 digits?
In case you hadn't figured it out, I'm putting all this in a script where I would press number 1 then accept a quest and the script would then send all the relevant information to my party and have them accept the same quest. Then I will do the same thing with turning in the quest (and clicking an object if needed). I've got it all working if I manually enter the questID and target IDs. That works fine for repeating the same daily quest over and over again, but wouldn't work well for doing regular quests.
Code: Select all
'code"player:target('..questgiver..'); yrest(500); AcceptQuestByName('..questid..');yrest(500)"'
I also found that i used newquestid instead of questid so I fixed that.
Well, I am seeing 2 problems at this point:
1: The quest ID it is returning is "6" instead of a 6 digit questID. I'm not sure why. Here's my code updated and fixed as much as possible:
Code: Select all
-- figure out who to target
local target = player:getTarget()
local questgiver = target.Id
-- then get quest id as I accept quest
EventMonitorStart("newquestid", "ADDNEW_QUESTBOOK");
print("event monitor started")
local time,moretocome,questid = nil;
print("doing repeat function now")
repeat
time, moretocome, questid = EventMonitorCheck("newquestid", "1");
yrest(500); -- check every half second
until questid ~= nil
EventMonitorStop("newquestid");
-- now send the command to party
local partycommand = 'code"player:target('..questgiver..'); yrest(500); AcceptQuestByName('..questid..');yrest(500)"'
sendPartyChat(partycommand)
Problem 2: If the quest is from a bulletin board, it doesn't see the target as the bulletin board because I can't "target" it. Is there a better way to retrieve the quest giver of the most recently accepted quest? Also, I tried to target another player and run this and the targetid that it returned was "1001" which didn't seem quite right anyway, as I would think the ID would be 6 digits?
In case you hadn't figured it out, I'm putting all this in a script where I would press number 1 then accept a quest and the script would then send all the relevant information to my party and have them accept the same quest. Then I will do the same thing with turning in the quest (and clicking an object if needed). I've got it all working if I manually enter the questID and target IDs. That works fine for repeating the same daily quest over and over again, but wouldn't work well for doing regular quests.
Re: Party Bot (questions/answers)
well now I know what you are actually trying to do.
get your main to target the quest NPC and while still targeting them
that will accept all quests and hand in all completed quest with that NPC.
As for targeting objects you just need to tell it to target the ID/name, now if you are manually playing the main it means you need to get the ID, using rock5's getID addon is probably easiest way to do that.
Then just do
If you are doing a waypoint then you should already know the ID or name.
get your main to target the quest NPC and while still targeting them
Code: Select all
npc"accept"
npc"complete"
As for targeting objects you just need to tell it to target the ID/name, now if you are manually playing the main it means you need to get the ID, using rock5's getID addon is probably easiest way to do that.
Then just do
Code: Select all
code"player:target_Object(ID)"
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
-
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
Re: Party Bot (questions/answers)
well, the
will work good when dealing with an NPC, but I need a way to automatically grab the ID of something else (like a quest board) on the fly because I am manually controlling the party lead. Right now, I am trying to use NUMPAD_1 to accept a quest, and when i press the NUMPAD_1, my character will get the quest and then tell the followers to accept the quest as well. Then NUMPAD_3 will do the same but for completing quest. If I have to use a different button to use for non-NPC quests, I can do that, I jsut need to know how I would get that oblectID. Maybe I could somehow grab questgiver from the last accepted quest? Is there a command to get the ID of the questgiver for a given quest?
Code: Select all
npc"accept"
npc"complete"
Re: Party Bot (questions/answers)
just use Rock's addon.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=4977
http://www.solarstrike.net/phpBB3/viewt ... =27&t=4977
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: Party Bot (questions/answers)
If I understand correctly your problem is you want to be able to go up to a new npc, target it and tell your party members to target the same and you need to do that with boards that you can't target. Maybe you could get the name of the board using "mouseover"
and tell the other members to target it by name.
Code: Select all
boardname = UnitName("mouseover")
- 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: Party Bot (questions/answers)
Thanks looks like it will do the trick the function to add party as friend.
I use some function to check if others are near but need have every one in party as a friend so they do not be detected as strangers.
Some day I would like to have it move to some alternate way-point, house or vendor, if another enters the area.
I use some function to check if others are near but need have every one in party as a friend so they do not be detected as strangers.
Some day I would like to have it move to some alternate way-point, house or vendor, if another enters the area.
-
- Posts: 70
- Joined: Tue Aug 09, 2011 7:43 am
Re: Party Bot (questions/answers)
i tried searching this thread, but couldnt find an answer to my question:
how do i make the following bot stop moving when a fight starts?
here is the situation: i have a group leader (warrior) running at enemies and marking them with an icon and then attacking them. another bot (scout) is following and properly looting and fighting all marked enemies. the problem is, that when an enemy is attacked, the scout keeps following the warrior into melee range, attacking while moving, but thus canceling casts like comboshot... how do i force the following bot to stop following and just attack when an enemy is marked and then start following again when its dead?
how do i make the following bot stop moving when a fight starts?
here is the situation: i have a group leader (warrior) running at enemies and marking them with an icon and then attacking them. another bot (scout) is following and properly looting and fighting all marked enemies. the problem is, that when an enemy is attacked, the scout keeps following the warrior into melee range, attacking while moving, but thus canceling casts like comboshot... how do i force the following bot to stop following and just attack when an enemy is marked and then start following again when its dead?
Re: Party Bot (questions/answers)
have the party leader type in party chatichmagbotsyay wrote:i tried searching this thread, but couldnt find an answer to my question:
how do i make the following bot stop moving when a fight starts?
here is the situation: i have a group leader (warrior) running at enemies and marking them with an icon and then attacking them. another bot (scout) is following and properly looting and fighting all marked enemies. the problem is, that when an enemy is attacked, the scout keeps following the warrior into melee range, attacking while moving, but thus canceling casts like comboshot... how do i force the following bot to stop following and just attack when an enemy is marked and then start following again when its dead?
Code: Select all
com"nofollow"
Code: Select all
com"follow"
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
-
- Posts: 70
- Joined: Tue Aug 09, 2011 7:43 am
Re: Party Bot (questions/answers)
thank you^^lisa wrote:have the party leader type in party chatichmagbotsyay wrote:i tried searching this thread, but couldnt find an answer to my question:
how do i make the following bot stop moving when a fight starts?
here is the situation: i have a group leader (warrior) running at enemies and marking them with an icon and then attacking them. another bot (scout) is following and properly looting and fighting all marked enemies. the problem is, that when an enemy is attacked, the scout keeps following the warrior into melee range, attacking while moving, but thus canceling casts like comboshot... how do i force the following bot to stop following and just attack when an enemy is marked and then start following again when its dead?and then after the boss typeCode: Select all
com"nofollow"
Code: Select all
com"follow"
Re: Party Bot (questions/answers)
Here is how I used the add players to friend list code you shared. I was wondering if there is there a way to remove non-active players that leave party. Or will they just drop on adding another, I have not added enough to find this out yet. I put this in on-leave combat. Then it updates players list after every kill, I did this as friends can join and leave in combat.
Code: Select all
<onLeaveCombat><![CDATA[
-- Additional Lua code to execute after killing an enemy
-- ADD PARTY AS FRIEND
for i=1, 5 do
local partyName = GetPartyMemberName(i)
if partyName then
changeOptionFriendMob("friend", ""..partyName.."", "Add");
end
end
--look for players.
while ((CountPlayers()) and (CountPlayers(nil,true, true) > 0)) do
if (player.Class1 or player.Class2 == CLASS_DRUID) and (not player:hasBuff("Corrosion")) then
player:cast("DRUID_ANTIDOTE")
end
if (player.Class1 == CLASS_ROGUE) and (not player:hasBuff("500675")) and shouldhide == "true" then
player:cast("ROGUE_HIDE");
end
playalarm()
print("1 or more players found. Don't bot. Wait")
rest(10000);
end;
]]></onLeaveCombat>
Re: Party Bot (questions/answers)
that function will only add the name to the list if it isn't already in the list, so you won't get multiple of the same name, if you want to make sure that only the current party members are in the friend list then just reset the list at the start of onleavecombat
Code: Select all
<onLeaveCombat><![CDATA[
settings.profile.friends = {}
for i=1, 5 do
local partyName = GetPartyMemberName(i)
if partyName then
changeOptionFriendMob("friend", ""..partyName.."", "Add");
end
end
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: Party Bot (questions/answers)
Thanks, I had thought about it some after posting that and had another idea for a function.
If someone is good at coding a useful bit of code that you can put a list of every char you have. Then it can be called in on leave combat. if a player is detected in the area it checks against the list. You could also include friends you know on the list. Then only have it sound when a stranger is in area. Another feature might be a list of names if you see to signal your char to run back to town or to log out. This should work in party or not.
I was looking at party bot and wondered if it could be useful to add speed up and slow down. if you have several following in a maze like area so they don't get stuck on walls. if the lead char is going to make a turn have it wait and get others next to it then make the turn. just an idea.
If someone is good at coding a useful bit of code that you can put a list of every char you have. Then it can be called in on leave combat. if a player is detected in the area it checks against the list. You could also include friends you know on the list. Then only have it sound when a stranger is in area. Another feature might be a list of names if you see to signal your char to run back to town or to log out. This should work in party or not.
I was looking at party bot and wondered if it could be useful to add speed up and slow down. if you have several following in a maze like area so they don't get stuck on walls. if the lead char is going to make a turn have it wait and get others next to it then make the turn. just an idea.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests