Empty Waypoint File
Empty Waypoint File
I just wanted to create a waypoint file where i only put some code into the onLoad section.
e.g. dance, or do something right where the char is, when it logs in.
But without waypoints the bot terminates with message "no waypoints....."
When i define a waypoint i can surely give one, but i want it to perform wherever the char is when it logs in, so is there a way to do it without waypoint...or is it possible to define a waypoint with my exact coordinates when i just lg in ?
e.g. dance, or do something right where the char is, when it logs in.
But without waypoints the bot terminates with message "no waypoints....."
When i define a waypoint i can surely give one, but i want it to perform wherever the char is when it logs in, so is there a way to do it without waypoint...or is it possible to define a waypoint with my exact coordinates when i just lg in ?
Re: Empty Waypoint File
What do you want the bot to do after it does the code in the onload?
- 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: Empty Waypoint File
Nothing at all, just perform the onload section WITHOUT moving anywhere, maybe print out some log file.
e.g. i could use it to log in some chars and only check some info and print into logfile.
e.g. i could use it to log in some chars and only check some info and print into logfile.
Re: Empty Waypoint File
If you don't want it to do anything then you want it to end. Normally you end scripts with an error message, eg.
But if you have code in an onload that ends and the waypoint file has no waypoints then it will stop with the "No waypoints" error which is fine too. Just because you get that error doesn't mean the script failed to perform as expected.
Code: Select all
error("This is not an error. We are just stopping the script.")
- 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: Empty Waypoint File
Ok, thank you, i will try without any waypoint though.
I was just wondering if it was an error and is hindering the execution of my onLoad section, as i notoced that even if the commands in onLoad have not yet been executed it terminates the bot, or when i had a random waypoint it startet moving before, or sometimes without even executing my onLoad section.
I will try to put some yrest() in the onLoad to give it little more time.
I was just wondering if it was an error and is hindering the execution of my onLoad section, as i notoced that even if the commands in onLoad have not yet been executed it terminates the bot, or when i had a random waypoint it startet moving before, or sometimes without even executing my onLoad section.
I will try to put some yrest() in the onLoad to give it little more time.
Re: Empty Waypoint File
If it seemed to miss commands then there is probably something wrong with your code.
- 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: Empty Waypoint File
Well i have really trouble bringing it to work, i have one script which seemed to work once, but i think it only works in 1 out of 10 tries or so. Really strange.
What i have is a start.bat file which starts
This file starts RoM correctly, though i have to confirm both MM executions seperately. I usually wait for the first being completed only then confirm the second one.
RoM starts good, logs in the right character and then should execute the command in the waypointfile, but it doesn't.
After a few seconds it just ends with the expected message, that the waypoint file is empty.
I tried to execute the waypoint file when the char is already logged in, and once or twice it actually logged in to the SiegeWar, but then trying again it doesn't.
I really don't know why it sometimes works, but most of the times it does not
Using the script command "GuildHousesWar_EnterWar();" in an inGame macro works fine
What i have is a start.bat file which starts
Code: Select all
FOR /F "tokens=1 delims=" %%A in ('cd') do SET folder=%%A
START ../../micromacro.exe "%folder%/login.lua" acc:5 char:1 client:rom1 profile:l1-10 path:BK_joins
START ../../micromacro.exe "%folder%/login.lua" acc:6 char:2 client:rom1 profile:l1-10 path:BK_joins
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
yrest(2000)
RoMScript("GuildHousesWar_EnterWar();")
yrest(5000)
</onLoad>
</waypoints>
RoM starts good, logs in the right character and then should execute the command in the waypointfile, but it doesn't.
After a few seconds it just ends with the expected message, that the waypoint file is empty.
I tried to execute the waypoint file when the char is already logged in, and once or twice it actually logged in to the SiegeWar, but then trying again it doesn't.
I really don't know why it sometimes works, but most of the times it does not
Using the script command "GuildHousesWar_EnterWar();" in an inGame macro works fine
Code: Select all
Wegpunktpfad bk_joins.xml geladen.
Es wurde keine Rückkehrpfaddatei mit dem Defaultnamen bk_joins_return.xml gefund
en.
Wir benutzen nun die normale Wegepunktdatei bk_joins.xml.
Die Option 'ARROW_QUIVER' wurde von '0' auf '2' geändert.
The game client did not crash.
2:12pm - D:\GAMES\micromacro_v103\scripts\rom/login.lua:51: D:/GAMES/micromacro_
v103/scripts/rom/bot.lua:671: Keine Wegepunkte in der Wegepunkt-Datei.
Re: Empty Waypoint File
I suspect it's just a timing issue. Sometimes you just need to give the game a bit more time to finish loading. Try increasing the yrest before the command to something much bigger such as 10s.
See if that helps.
In this situation, there is no point in having a yrest after the command.
Code: Select all
yrest(10000)
In this situation, there is no point in having a yrest after the command.
- 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: Empty Waypoint File
Ok, thank you.
I'll try it tomorrow. I added some code though to improve my chances.
ZoneID 402 should be siege war... i'll see tomorrow if it works
I'll try it tomorrow. I added some code though to improve my chances.
Code: Select all
yrest(10000)
local ZoneID = getZoneId();
repeat
printf("Trying to Enter Siege War \n")
RoMScript("GuildHousesWar_EnterWar();")
ZoneID = getZoneId()
until ZoneID == 402
Re: Empty Waypoint File
Well, no success
I tried with RoMScript and sendMacro
Code i try to execute is
Strange was, that i once got the char to enter the war when i executed it "manually" after being logged in already. But this also worked only once, after that i tried again and it didn't work.
Even more strange was, that also the ingame macro key was no longer working. This worked initially.
Any ideas what may be broken there ?
edit: 402 is the correct ZoneId, i checked it when i was in siege war. But that's not important as it only gets important once being IN the war^^
Code: Select all
Trying to Enter Siege War
Drücke MACRO: RoMScript ausführen "GuildHousesWar_EnterWar()".
Trying to Enter Siege War
Drücke MACRO: RoMScript ausführen "GuildHousesWar_EnterWar()".
Trying to Enter Siege War
Drücke MACRO: RoMScript ausführen "GuildHousesWar_EnterWar()".
Trying to Enter Siege War
Drücke MACRO: RoMScript ausführen "GuildHousesWar_EnterWar()".
Trying to Enter Siege War
Drücke MACRO: RoMScript ausführen "GuildHousesWar_EnterWar()".
Trying to Enter Siege War
Drücke MACRO: RoMScript ausführen "GuildHousesWar_EnterWar()".
Trying to Enter Siege War
Drücke MACRO: RoMScript ausführen "GuildHousesWar_EnterWar()".
Code i try to execute is
Code: Select all
yrest(500)
local ZoneID = getZoneId();
repeat
printf("Trying to Enter Siege War \n")
yrest(10000)
sendMacro("GuildHousesWar_EnterWar()");
ZoneID = getZoneId()
until ZoneID == 402
Even more strange was, that also the ingame macro key was no longer working. This worked initially.
Any ideas what may be broken there ?
edit: 402 is the correct ZoneId, i checked it when i was in siege war. But that's not important as it only gets important once being IN the war^^
Re: Empty Waypoint File
Everything looks ok. Are you sure it's not a normal reason such as; failing to register in the first place, trying to enter at the wrong time, taking to long to enter that the other guild has already taken your castle? Things like that? Are you getting any messages on screen when you try to enter?
- 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: Empty Waypoint File
NO, i think it should work, none of these "problems" are actually true.
I tried it while i was entering siege war "normally" with another char. Right from the start, the siege war today took quite a bit of time, so i had time to test with "sendMacro" and "RomScript"
I tried even without the start batch, and once i was successfull, but was not able to reproduce it afterwards.
I left war, and tried to go in again with script, but nothing. War was still going on, and manually i entered without problems.
And there are no messages on screen or chat. Very frustrating^^
I tried it while i was entering siege war "normally" with another char. Right from the start, the siege war today took quite a bit of time, so i had time to test with "sendMacro" and "RomScript"
I tried even without the start batch, and once i was successfull, but was not able to reproduce it afterwards.
I left war, and tried to go in again with script, but nothing. War was still going on, and manually i entered without problems.
And there are no messages on screen or chat. Very frustrating^^
Re: Empty Waypoint File
I don't know then.
Lisas "siege" addon used to work well. http://www.solarstrike.net/phpBB3/viewt ... 998#p35998 From what I can tell it uses "GuildHouseWarEnterButton_OnClick()". That function does thiswhich is basically the same thing so I don't think it will help but you could try it anyway.
But maybe if the addon itself works you can use that. It usually enters automatically when siege starts if you've already started your clients but if you miss the start you could still trigger it to enter siege. I think all you would need to do is set "siege.Time = 1"
BTW, sendMacro and RoMScript are basically the same command except sendMacro prints a message to the MM window.
Lisas "siege" addon used to work well. http://www.solarstrike.net/phpBB3/viewt ... 998#p35998 From what I can tell it uses "GuildHouseWarEnterButton_OnClick()". That function does this
Code: Select all
GuildHousesWar_EnterWar();
GuildWarFrame:Hide();
But maybe if the addon itself works you can use that. It usually enters automatically when siege starts if you've already started your clients but if you miss the start you could still trigger it to enter siege. I think all you would need to do is set "siege.Time = 1"
Code: Select all
RoMCode("siege.Time = 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: Empty Waypoint File
Well, i tried the addon today.
Maybe i have not yet set it up right. No character entered the war automatically, perhaps i need to change some keywords, but couldn't figure out where and which one^^
But with "join siege" in guild chat it worked partially, i say partially because some characters joined the war, other only wrote the message in guild chat but did not enter the war.
So i think it is actually not a problem with the command, but something with timing, or other ingame issues, difficult to say though which difficulties, and even harder to fix it.
Maybe i have not yet set it up right. No character entered the war automatically, perhaps i need to change some keywords, but couldn't figure out where and which one^^
But with "join siege" in guild chat it worked partially, i say partially because some characters joined the war, other only wrote the message in guild chat but did not enter the war.
So i think it is actually not a problem with the command, but something with timing, or other ingame issues, difficult to say though which difficulties, and even harder to fix it.
Re: Empty Waypoint File
The addon works like a charm for me.
Re: Empty Waypoint File
turbobay wrote:Maybe i have not yet set it up right. No character entered the war automatically, perhaps i need to change some keywords, but couldn't figure out where and which one^^
It monitors system messages for "enter battle", if you have a different language client then you will need to edit it.
Click the little icon which should be near minimap and you can change the text, also there is a check box you can untick to turn it off.
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
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 2 guests