LOGOUT_WHEN_STUCK
LOGOUT_WHEN_STUCK
Hi
I use the KS-Script for farming gold sometimes my char stuck in this Ini
normaly the bot automatic logout and kill the client !! but in this case you need only
a Automatic LeaveParty and a new Start from the KS-Script nearly the same as
after Death. Is there a Solution for this Problem ??
Greetings Mike
sry for my bad English
I use the KS-Script for farming gold sometimes my char stuck in this Ini
normaly the bot automatic logout and kill the client !! but in this case you need only
a Automatic LeaveParty and a new Start from the KS-Script nearly the same as
after Death. Is there a Solution for this Problem ??
Greetings Mike
sry for my bad English
Re: LOGOUT_WHEN_STUCK
Code: Select all
<onUnstickFailure><![CDATA[
-- Lua code to execute when MAX_UNSTICK_TRIALS is reached.
sendMacro("UseSkill(1,2)");
sendMacro("UseSkill(1,2)");
waitForLoadingScreen();
player:sleep();
]]></onUnstickFailure>
Botje
Re: LOGOUT_WHEN_STUCK
@Botje
Thanks for the Code example i think i can use this for my Problem
Greetings Mike
Thanks for the Code example i think i can use this for my Problem
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Greetings Mike
Re: LOGOUT_WHEN_STUCK
@rock5
<onUnstickFailure><![CDATA[
local zoneid = RoMScript("GetZoneID()")
if zoneid == 107 then -- Shrine of Kalin
RoMScript("SendChatMessage(\"Leave the Ini\",\"PARTY\",0,\"CharName\")") ;
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
else -- not in Shrine of Kalin
player:logout(nil,true); -- closes client
end
]]></onUnstickFailure>
Please can you check this Code ?
Greetings Mike
<onUnstickFailure><![CDATA[
local zoneid = RoMScript("GetZoneID()")
if zoneid == 107 then -- Shrine of Kalin
RoMScript("SendChatMessage(\"Leave the Ini\",\"PARTY\",0,\"CharName\")") ;
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
else -- not in Shrine of Kalin
player:logout(nil,true); -- closes client
end
]]></onUnstickFailure>
Please can you check this Code ?
Greetings Mike
Last edited by mschmitd on Mon Jul 18, 2011 6:10 am, edited 8 times in total.
Re: LOGOUT_WHEN_STUCK
seems fine to me, although i dont know if that would work that way, i would personally just make seperate waypoints for going to shop and back in, but thats just me.
if you make seperate file, you can just loadpath the right one.
Botje
if you make seperate file, you can just loadpath the right one.
Botje
Re: LOGOUT_WHEN_STUCK
@Botje
I have advanced the code i hope this work
Greetings Mike
I have advanced the code i hope this work
Greetings Mike
Re: LOGOUT_WHEN_STUCK
to be honest, i never worked with zoneid, so it would be best to ask Rock5.
im just a noob![Razz :P](./images/smilies/icon_razz.gif)
Botje
im just a noob
![Razz :P](./images/smilies/icon_razz.gif)
Botje
Re: LOGOUT_WHEN_STUCK
@Botje
Thanks for your Help
Greetings Mike
Thanks for your Help
![Smile :)](./images/smilies/icon_e_smile.gif)
Greetings Mike
Re: LOGOUT_WHEN_STUCK
No reason why it shouldn't work. You don't need to use "~= 107", it's obsolete. Just use
Code: Select all
if zoneid == 107 then -- Shrine of Kalin
...
else -- Not Shrine of Kalin
...
end
- 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: LOGOUT_WHEN_STUCK
@rock5
Thanks for your quick Answer
I have modified the Code.
Greetings Mike
Thanks for your quick Answer
I have modified the Code.
Greetings Mike
Re: LOGOUT_WHEN_STUCK
@rock5
is there a possibility to find out the index of
the stuck-waypoint ?? I will send the number of this Waypoint
to my Party member for debugging, so i later can modified the
Way-Point Script.
Greetings Mike
is there a possibility to find out the index of
the stuck-waypoint ?? I will send the number of this Waypoint
to my Party member for debugging, so i later can modified the
Way-Point Script.
Greetings Mike
Re: LOGOUT_WHEN_STUCK
Well... "__WPL.CurrentWaypoint" holds the point that it is currently trying to move toward. There is a problem with that as it might change as part of the unstick trials when it tries to go to the last waypoint. Also you don't know how far you are from the last or next waypoint.mschmitd wrote:is there a possibility to find out the index of the stuck-waypoint ??
What you really want is the actual location that you got stuck. Wouldn't it be better to send the current player coordinates? player.X, player.Z and player.Y?
- 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: LOGOUT_WHEN_STUCK
Yes i think you are right
The current Position of the player is a good idea![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
The current Position of the player is a good idea
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Re: LOGOUT_WHEN_STUCK
@rock5
Perhaps you can change the Bot ?
If the bot stucks inside from a Ini you can use the
same like the wall hack userfunktion ? And after
the Char is on the correct Waypoint you can change
back to the normal funktion without the wall hack
Greetings Mike
sry for my bad English
Perhaps you can change the Bot ?
If the bot stucks inside from a Ini you can use the
same like the wall hack userfunktion ? And after
the Char is on the correct Waypoint you can change
back to the normal funktion without the wall hack
Greetings Mike
sry for my bad English
Re: LOGOUT_WHEN_STUCK
then the hacks would need to be added into the bot aswell.
The bot is currently set up for people to customise what happens when stuck. there are already a few posts about it. I added in so you can call your own personal functions at 3, 6 and 9 unstick tries.
So for inside instance you can call a function at 3 unsticks to try walk hack and moving to nearest coords. then have another function at 6 so if you get to 6 you can leave party and start again from the outside waypoints.
The options are limitless
The bot is currently set up for people to customise what happens when stuck. there are already a few posts about it. I added in so you can call your own personal functions at 3, 6 and 9 unstick tries.
So for inside instance you can call a function at 3 unsticks to try walk hack and moving to nearest coords. then have another function at 6 so if you get to 6 you can leave party and start again from the outside waypoints.
The options are limitless
Remember no matter you do in life to always have a little fun while you are at it ![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: LOGOUT_WHEN_STUCK
@lisa
Thank you for this Information
I will try to implement this in my Profile
Mike
Thank you for this Information
I will try to implement this in my Profile
Mike
Re: LOGOUT_WHEN_STUCK
great idea ![Smile :)](./images/smilies/icon_e_smile.gif)
im gonna try that too![Razz :P](./images/smilies/icon_razz.gif)
Botje
![Smile :)](./images/smilies/icon_e_smile.gif)
im gonna try that too
![Razz :P](./images/smilies/icon_razz.gif)
Botje
Who is online
Users browsing this forum: Google [Bot] and 6 guests