Bot should stand on place and wait
Bot should stand on place and wait
hello,
when i will farm 1 litte boss, what i can do that the bot stand still, not move on stand left right left right and so on.
i will that the bot stand where i have make 1 waypoint and wait for the respawn, kill the enemy and loot and stand still on the marked waypoint.
this is my file.
<xml version="1.0" encoding="UTF-8"?>
-<waypoints>
<!-- # 1 -->
<waypoint y="39" z="1943" x="-1023"> </waypoint> </waypoints>
when i will farm 1 litte boss, what i can do that the bot stand still, not move on stand left right left right and so on.
i will that the bot stand where i have make 1 waypoint and wait for the respawn, kill the enemy and loot and stand still on the marked waypoint.
this is my file.
<xml version="1.0" encoding="UTF-8"?>
-<waypoints>
<!-- # 1 -->
<waypoint y="39" z="1943" x="-1023"> </waypoint> </waypoints>
Re: Bot should stand on place and wait
Code: Select all
<waypoint y="39" z="1943" x="-1023">
local Boss = player:findNearestNameOrId("Bossname")
repeat
yrest(1000)
until Boss
</waypoint>

Re: Bot should stand on place and wait
thx
but
this is in xml file now
the boss is on i start the bot
he kills the boss, run and loot, and than he look another targeht kill this and than he go back and sand still
when the boss respawn the bot do nothing again? yrest 1000 is this wait 1000 seconds befor do anything again?
isnt locface
the is another player 24 on day 
can i say the bot to change channel for m1 -2 from 2-3 und vom 3-1?
but
this is in xml file now
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-1039" z="1870" y="52">
local Boss = player:findNearestNameOrId("bossname")
repeat
yrest(1000)
until Boss </waypoint>
</waypoints>
he kills the boss, run and loot, and than he look another targeht kill this and than he go back and sand still

when the boss respawn the bot do nothing again? yrest 1000 is this wait 1000 seconds befor do anything again?
isnt locface


can i say the bot to change channel for m1 -2 from 2-3 und vom 3-1?
Re: Bot should stand on place and wait
yrest (1000) means the bot is looking for this npc every 1 sec. (yrest is allways in msec. player:rest(..) is in sec.)
this will solve your problem
yes, u can change channel i.e. after leave combat or in your wp:
this will solve your problem
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-1039" z="1870" y="52">
local Boss = player:findNearestNameOrId("bossname")
repeat
yrest(1000)
until Boss
player:target(Boss.Address)
player:fight()
</waypoint>
</waypoints>
Code: Select all
if( 1 == RoMScript("GetCurrentParallelID()") ) then
sendMacro("ChangeParallelID(2)");
else
sendMacro("ChangeParallelID(1)");
end
Re: Bot should stand on place and wait
wouldn't you need the find mob inside the loop? otherwise it would just be stuck in the loop forever as the variable has been defined before the loop?
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-1039" z="1870" y="52">
repeat
yrest(1000)
local Boss = player:findNearestNameOrId("bossname")
until Boss
player:target(Boss.Address)
player:fight()
</waypoint>
</waypoints>
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: Bot should stand on place and wait
@lisa
i stand range 100-120 from respawn the boss. the boss walk in a very litte lange.
i log in see the boss. start the bot / waypoint. he kills the boss and go to loot. than he look for an other target kills this when i kann, or go back to start waypoint. there he stand, but when the bot come again the bot do nothing. when the boss attacks the bot, the bot die because he does nothing
i will test this from gloover.
@ gloover where i can found the boss-adress?
i stand range 100-120 from respawn the boss. the boss walk in a very litte lange.
i log in see the boss. start the bot / waypoint. he kills the boss and go to loot. than he look for an other target kills this when i kann, or go back to start waypoint. there he stand, but when the bot come again the bot do nothing. when the boss attacks the bot, the bot die because he does nothing

i will test this from gloover.
@ gloover where i can found the boss-adress?
Re: Bot should stand on place and wait
Lisa, you've right - it belongs inside the loop 
@ botting
should work. You dont need the boss adress - using this as written should work.

@ botting
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-1039" z="1870" y="52">
repeat
yrest(1000)
local Boss = player:findNearestNameOrId("bossname")
until Boss
player:target(Boss.Address)
player:fight()
</waypoint>
</waypoints>
Re: Bot should stand on place and wait
don't forget to add the name of the "boss"
bossname needs to be changed to the name of the boss, or the ID.
Code: Select all
local Boss = player:findNearestNameOrId("bossname")
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: Bot should stand on place and wait
status:
start game start bot
bot kill and loot boss, bot attack another targeht, bot goes back to startpoint and wait
boss comes agaein bot crash
look screen.
in the xml file is the last code from gloover
in bossname stand the name from boss
start game start bot
bot kill and loot boss, bot attack another targeht, bot goes back to startpoint and wait
boss comes agaein bot crash
look screen.
in the xml file is the last code from gloover
in bossname stand the name from boss
Re: Bot should stand on place and wait
'Boss' was made a local variable so it would only have a value inside the 'repeat' loop. Try this.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-1039" z="1870" y="52">
local Boss
repeat
yrest(1000)
Boss = player:findNearestNameOrId("bossname")
until Boss
player:target(Boss.Address)
player:fight()
</waypoint>
</waypoints>
- 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: Bot should stand on place and wait
thank you
it looks good at the time. but now my next wish.
the bot shoud change the channels
i start on 1 after kill change to 2, after kill to 3, after kill to 1 and so on....
groovler has written this
if( 1 == RoMScript("GetCurrentParallelID()") ) then
sendMacro("ChangeParallelID(2)");
else
sendMacro("ChangeParallelID(1)");
end
i but this in the waypointfile but nothing will do.
it looks good at the time. but now my next wish.
the bot shoud change the channels
i start on 1 after kill change to 2, after kill to 3, after kill to 1 and so on....
groovler has written this
if( 1 == RoMScript("GetCurrentParallelID()") ) then
sendMacro("ChangeParallelID(2)");
else
sendMacro("ChangeParallelID(1)");
end
i but this in the waypointfile but nothing will do.
Re: Bot should stand on place and wait
Post your whole script - me and other doesnt know where you have pasted this, so may it is without the loop.
Re: Bot should stand on place and wait
To make it so you can use it with any number of channels, try this instead.
Code: Select all
local NumChannels = RoMScript("GetNumParalleZones()")
local NextChannel = RoMScript("GetCurrentParallelID()") + 1
if NextChannel > NumChannels then
NextChannel = 1
end
sendMacro("ChangeParallelID(".. NextChannel ..")");
- 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: Bot should stand on place and wait
where i have to do this?
at least of the waypointfile?
there comes an error,
file: .....boss.xml
line 12
column 1
pos 280
message junk after document element
when i file it so:
it do nothing, kills boss go back and stand, kill boss go back and stand...
when i but it before
it do nothing, kills boss go back and stand, kill boss go back and stand...
at least of the waypointfile?
there comes an error,
file: .....boss.xml
line 12
column 1
pos 280
message junk after document element
when i file it so:
Code: Select all
......
</waypoint>
local NumChannels = RoMScript("GetNumParalleZones()")
local NextChannel = RoMScript("GetCurrentParallelID()") + 1
if NextChannel > NumChannels then
NextChannel = 1
end
sendMacro("ChangeParallelID(".. NextChannel ..")");
</waypoints>
when i but it before
Code: Select all
</waypoint>
Re: Bot should stand on place and wait
All code has to be between tags so it has to be before </waypoint>. If it's after "player:fight()" then it should change channel after the fight. If it doesn't, maybe you can't change channel at that location. Have you tried to manually?
- 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: Bot should stand on place and wait
Code: Select all
player:target(Boss.Address)
player:fight()
local NumChannels = RoMScript("GetNumParalleZones()")
local NextChannel = RoMScript("GetCurrentParallelID()") + 1
if NextChannel > NumChannels then
NextChannel = 1
end
sendMacro("ChangeParallelID(".. NextChannel ..")");
</waypoint>
</waypoints>
but no change channel
Re: Bot should stand on place and wait
Maybe it's because it moves. Add a yrest after changing channel, however long it takes to change channel. I'm not sure how long it is.
- 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: Bot should stand on place and wait
change takes 25seconts at the moment when i klick.
but nothing do.
Code: Select all
player:target(Boss.Address)
player:fight()
yrest(25000)
local NumChannels = RoMScript("GetNumParalleZones()")
local NextChannel = RoMScript("GetCurrentParallelID()") + 1
if NextChannel > NumChannels then
Last edited by booting1 on Fri Aug 03, 2012 11:40 am, edited 1 time in total.
Re: Bot should stand on place and wait
So after changing channel (that's the ChangeParallelID command) add
yrest is in ms.
Code: Select all
yrest(25000)
- 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: Bot should stand on place and wait
oh my edit was to late. this 25000 i have don but on the right place?
one time i change manual to 1, there the boss cant attack, i was everthing between me and the boss after i think 25 the bot chance the channel. i cancle this, than the bot attacks the boss, after that nothing
edit:
ok i think now its go?!?!
i chanche manual zu channel 3, the bot kills the boss. stand and change to ch 1, there he go back to the startpoint. now there i have to wait for the boss.... i tell you later more
edit2:
normal i goes ok.
but a little problem. when another enemy is in range than he will kill this, and the 25 seconds will be ignored.
so the bot will not change and wait for the boss again,
when no other enemey is in range the bot change after 25sec.
when i say 60 seconds than i think the bot change after the fight with another enemy. i will test this now.
one time i change manual to 1, there the boss cant attack, i was everthing between me and the boss after i think 25 the bot chance the channel. i cancle this, than the bot attacks the boss, after that nothing

edit:
ok i think now its go?!?!
i chanche manual zu channel 3, the bot kills the boss. stand and change to ch 1, there he go back to the startpoint. now there i have to wait for the boss.... i tell you later more

edit2:
normal i goes ok.
but a little problem. when another enemy is in range than he will kill this, and the 25 seconds will be ignored.
so the bot will not change and wait for the boss again,
when no other enemey is in range the bot change after 25sec.
when i say 60 seconds than i think the bot change after the fight with another enemy. i will test this now.
Who is online
Users browsing this forum: No registered users and 2 guests