Sometimes char does not leave the dungeon (Bug)
Sometimes char does not leave the dungeon (Bug)
I am farming item and sell to npc, sometimes char is going to leave point from dungenon and It isn't exiting from dungenon. It must be go to back and come back to exiting point. I am set waypoint (a few steps go back and come back),
It is going to exiting point If char is leave to dungenon game is crushed and macro is fail. If char is dont leave to dungenon go back, come back and char leaving to dungenon correctly.
How we will fix it ?
It is going to exiting point If char is leave to dungenon game is crushed and macro is fail. If char is dont leave to dungenon go back, come back and char leaving to dungenon correctly.
How we will fix it ?
Last edited by mrtgtr on Wed Dec 12, 2012 6:34 pm, edited 3 times in total.
Re: Sometimes Char is not exiting from dungenon
It's really hard to understand your english. What I did understand is that you want to leave an instance through a portal but sometimes it doesn't enter it.
Did you try rock's GoToPortal userfunction?
http://www.solarstrike.net/phpBB3/viewt ... gotoportal
Just use GoThroughPortal() and it will find the nearest portal and enter it.
AlterEgo95
Did you try rock's GoToPortal userfunction?
http://www.solarstrike.net/phpBB3/viewt ... gotoportal
Just use GoThroughPortal() and it will find the nearest portal and enter it.
AlterEgo95
Re: Sometimes Char is not exiting from dungenon
Char is going to dungeon leave point(in kalin)AlterEgo95 wrote:It's really hard to understand your english. What I did understand is that you want to leave an instance through a portal but sometimes it doesn't enter it.
Did you try rock's GoToPortal userfunction?
http://www.solarstrike.net/phpBB3/viewt ... gotoportal
Just use GoThroughPortal() and it will find the nearest portal and enter it.
AlterEgo95
and sometimes it does not leave the dungeon, needs to go forward to come back again for exit.
so we can do something like this :
Go x: y: z: if you are still in kalin.
I think u understand, sorry my englinsh I am from turkey and I saw the first school education up to five :D:D:D
Re: Sometimes Char is not exiting from dungenon
mrtgtr please learn to use forum search, 7 of the topics on first page of forum are started by you and most of them could have been answered with a forum search.
you want to farm kalin shrine? already 3 topics posted for it.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2449
http://www.solarstrike.net/phpBB3/viewt ... =27&t=3779
http://www.solarstrike.net/phpBB3/viewt ... =27&t=4178
you want to farm kalin shrine? already 3 topics posted for it.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2449
http://www.solarstrike.net/phpBB3/viewt ... =27&t=3779
http://www.solarstrike.net/phpBB3/viewt ... =27&t=4178
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: Sometimes Char is not exiting from dungenon
lisa the waypoint prepared for kalin does not work correctly char is stuck and wait it didnt work rightlisa wrote:mrtgtr please learn to use forum search, 7 of the topics on first page of forum are started by you and most of them could have been answered with a forum search.
you want to farm kalin shrine? already 3 topics posted for it.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2449
http://www.solarstrike.net/phpBB3/viewt ... =27&t=3779
http://www.solarstrike.net/phpBB3/viewt ... =27&t=4178
please answer my question I want to write my waypoints.
Re: Sometimes Char is not exiting from dungeon
please help control zone code ?
Re: Sometimes Char is not exiting from dungeon
If you want it to check and make sure that you have left the zone you can use it like this. But it is very important that you put the following code in a waypoint that is not in the portal. If you have a point inside the portal, remove it. At a waypoint away from the portal use.AlterEgo95 wrote:Did you try rock's GoToPortal userfunction?
viewtopic.php?f=27&t=3828&hilit=gotoportal
Just use GoThroughPortal() and it will find the nearest portal and enter it.
Code: Select all
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
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: Sometimes Char is not exiting from dungeon
Error. I cant do GoThroughPortal() my codes is hererock5 wrote:If you want it to check and make sure that you have left the zone you can use it like this. But it is very important that you put the following code in a waypoint that is not in the portal. If you have a point inside the portal, remove it. At a waypoint away from the portal use.AlterEgo95 wrote:Did you try rock's GoToPortal userfunction?
viewtopic.php?f=27&t=3828&hilit=gotoportal
Just use GoThroughPortal() and it will find the nearest portal and enter it.That will do everything for you. If it succeeds in going through the portal then it will go to the next waypoint after waiting for the loading screen. If it fails, it will go to the last wayapoint and try again.Code: Select all
if not GoThroughPortal() then __WPL:setWaypointIndex(__WPL.LastWaypoint - 1) end
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-18563" z="12443" y="-778">
<!-- [Housemaid potions]
This checks if we have housemaid potion buff.
If we dont have that buff then bot drinks potion if we have
potions on inventory and it is set to use it.
Bugs:
- It uses luck potion randomly sometimes.
- Maybe add timer into check so it would try to use another in 1.45h or so.
Version history:
1.2 - New food: Special Spicy Meatsauce Burrito and little remade code.
Buff names can all be seen once and change if needed.
1.1 - Corrected Luck potion buff name
1.0 - Added time after using potions so it would use all potions after first kill.
It was using all too fast. Potions get cooldown after using one so it skips others.
0.9 - Added Housekeeper Special Caviar Sandwich to list
0.8 - Remade code. Now it uses only 1 if to check all and if all conditions are true then it uses potion.
Its easier to add potions later if needed.
-->
<!-- User setting starts here -->
<!-- Define these if you want to use something. True uses it and false ignores it. -->
local useSpeed = true; -- Housemaid speed potion
local useFrog = false; -- Housemaid frog potion
local useLuck = true; -- Housemaid luck potion
local useSaltedFish = true; -- Housemaid food
local useCaviarSandwich = true; -- Housemaid food
local useSpecialMeatsauceBurrito = true; -- Housemaid food
<!-- Potions id and its buff name. If using other than english client then change buff name. -->
local pot1ID = 207200; -- Unbridled Enthusiasm
local buff1Name = "Unbridled Enthusiasm";
local pot2ID = 207201; -- Princely Look
local buff2Name = "Princely Look";
local pot3ID = 207203; -- Turn of Luck Powder Dust
local buff3Name = "Turn of Luck Powder Dust";
local pot4ID = 207213; -- Special Spicy Meatsauce Burrito
local buff4Name = "Spicy Meatsauce Burrito";
local pot5ID = 207211;
local buff5Name = "Caviar Sandwich";
local pot6ID = 207209;
local buff6Name = "Salted Fish with Sauce";
<!-- User settings end here -->
<!-- Unbridled Enthusiasm potion -->
if not player:hasBuff(buff1Name) and inventory:itemTotalCount(pot1ID) >= 1 and useSpeed == true then
inventory:useItem(pot1ID);
inventory:update();
yrest(750);
end
<!-- Princely looking potion -->
if not player:hasBuff(buff2Name) and inventory:itemTotalCount(pot2ID) >= 1 and useFrog == true then
inventory:useItem(pot2ID);
yrest(900); -- Lets wait till we cast. After that we loot. I don't know if we could loot before casting.
inventory:update();
end
<!-- Lucky Target potion -->
if not player:hasBuff(buff3Name) and inventory:itemTotalCount(pot3ID) >= 1 and useLuck == true then
inventory:useItem(pot3ID);
inventory:update();
yrest(750);
end
<!-- Special Spicy Meatsauce Burrito -->
if not player:hasBuff(buff4Name) and inventory:itemTotalCount(pot4ID) >= 1 and useSpecialMeatsauceBurrito == true then
inventory:useItem(pot4ID);
inventory:update();
yrest(750);
end
<!-- Special Caviar Sandwich -->
if not player:hasBuff(buff5Name) and inventory:itemTotalCount(pot5ID) >= 1 and useCaviarSandwich == true then
inventory:useItem(pot5ID);
inventory:update();
yrest(750);
end
<!-- Special Salted Fish with Sauce -->
if not player:hasBuff(buff6Name) and inventory:itemTotalCount(pot6ID) >= 1 and useSaltedFish == true then
inventory:useItem(pot6ID);
inventory:update();
yrest(750);
end
RoMScript("InviteByName('Xxxxx');");
yrest(1250)
RoMScript("SetInstanceLevel('normal')");
yrest(1000)
</waypoint>
<!-- # 2 --><waypoint x="-18607" z="12306" y="-778">
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
end
waitForLoadingScreen();
yrest(2000)
player:update();
</waypoint>
<!-- # 3 --><waypoint x="4713" z="911" y="679"> </waypoint>
<!-- # 4 --><waypoint x="4569" z="908" y="679"> </waypoint>
<!-- # 5 --><waypoint x="4377" z="906" y="679"> </waypoint>
<!-- # 6 --><waypoint x="4371" z="979" y="679"> </waypoint>
<!-- # 7 --><waypoint x="4368" z="821" y="679"> </waypoint>
<!-- # 8 --><waypoint x="4205" z="795" y="679"> </waypoint>
<!-- # 9 --><waypoint x="4202" z="997" y="679"> </waypoint>
<!-- # 10 --><waypoint x="4420" z="917" y="679"> </waypoint>
<!-- # 11 --><waypoint x="4696" z="907" y="679">
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
end
waitForLoadingScreen();
yrest(2000)
player:update();
RoMScript("LeaveParty()");
yrest(500)
function settings.profile.events.onSkillCast()
inventory:update()
If 1 > inventory:itemTotalCount(0) then
loadPaths("kalinselltonpc.xml");
end
</waypoint>
</waypoints>
where is wrong in this codes ?
Re: Sometimes Char is not exiting from dungeon
when it come this line:
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
end
bot is give error
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
end
bot is give error
Re: Sometimes Char is not exiting from dungeon
not If but ifIf 1 > inventory:itemTotalCount(0) then
loadPaths("kalinselltonpc.xml");
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: Sometimes Char is not exiting from dungeon
Lisa I fix that line but when it come this line:lisa wrote:not If but ifIf 1 > inventory:itemTotalCount(0) then
loadPaths("kalinselltonpc.xml");
end
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
end
bot is give error
No return path with default naming kalin_return.xml found.
We use the normal waypoint path kalin.xml now.
Waypoint #2 is closer then #1. Hence we start with waypoint #2.
Moving to waypoint #2, (18607, 12306)
Did not find any crashed clients.
1:33am - [string "..."]:2: attempt to call global 'GoThroughPortal' (a nil value)
I could not do a kind of
Re: Sometimes Char is not exiting from dungenon
mrtgtr wrote:1:33am - [string "..."]:2: attempt to call global 'GoThroughPortal' (a nil value)
you need to go to the web address provided to you already and get the userfunction.AlterEgo95 wrote:It's really hard to understand your english. What I did understand is that you want to leave an instance through a portal but sometimes it doesn't enter it.
Did you try rock's GoToPortal userfunction?
http://www.solarstrike.net/phpBB3/viewt ... gotoportal
Just use GoThroughPortal() and it will find the nearest portal and enter it.
AlterEgo95
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: Sometimes Char is not exiting from dungeon
I wish I had known in English : ( : (
Re: Sometimes Char is not exiting from dungeon
I'm reading reading and I don't understand anything
please help me for set my codes
please help me for set my codes
Re: Sometimes Char is not exiting from dungeon
If you are new to something you should start with the basics, instance farming like KS isn't the basics, it would be moderate to advanced.mrtgtr wrote:I'm reading reading and I don't understand anything
please help me for set my codes
When I started I did small loops to farm some low level mobs using createpath and I progressed from there.
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: Sometimes Char is not exiting from dungeon
lisa I am find barely. I solve the problem but now when char kill mobs while going out Char is waiting on exit point.It islisa wrote:If you are new to something you should start with the basics, instance farming like KS isn't the basics, it would be moderate to advanced.mrtgtr wrote:I'm reading reading and I don't understand anything
please help me for set my codes
When I started I did small loops to farm some low level mobs using createpath and I progressed from there.
trying to go to wall.
Bot says this :
Targetting object 110426, range 48 796011154738
I am waiting to rock5 here it is rock5's teleport code
Re: GoThroughPortal() - (Rock5 please come)
Remove "waitForLoadingScreen()". I said the GoThroughPortal does the waiting for you.
- 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: GoThroughPortal() - (Rock5 please come)
I have remove already.rock5 wrote:Remove "waitForLoadingScreen()". I said the GoThroughPortal does the waiting for you.
but Bot says this :
Targetting object 110426, range 48 796011154738
My codes
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-18605" z="12256" y="-778">
<!-- [Housemaid potions]
This checks if we have housemaid potion buff.
If we dont have that buff then bot drinks potion if we have
potions on inventory and it is set to use it.
Bugs:
- It uses luck potion randomly sometimes.
- Maybe add timer into check so it would try to use another in 1.45h or so.
Version history:
1.2 - New food: Special Spicy Meatsauce Burrito and little remade code.
Buff names can all be seen once and change if needed.
1.1 - Corrected Luck potion buff name
1.0 - Added time after using potions so it would use all potions after first kill.
It was using all too fast. Potions get cooldown after using one so it skips others.
0.9 - Added Housekeeper Special Caviar Sandwich to list
0.8 - Remade code. Now it uses only 1 if to check all and if all conditions are true then it uses potion.
Its easier to add potions later if needed.
-->
<!-- User setting starts here -->
<!-- Define these if you want to use something. True uses it and false ignores it. -->
local useSpeed = true; -- Housemaid speed potion
local useFrog = false; -- Housemaid frog potion
local useLuck = true; -- Housemaid luck potion
local useSaltedFish = true; -- Housemaid food
local useCaviarSandwich = true; -- Housemaid food
local useSpecialMeatsauceBurrito = true; -- Housemaid food
<!-- Potions id and its buff name. If using other than english client then change buff name. -->
local pot1ID = 207200; -- Unbridled Enthusiasm
local buff1Name = "Unbridled Enthusiasm";
local pot2ID = 207201; -- Princely Look
local buff2Name = "Princely Look";
local pot3ID = 207203; -- Turn of Luck Powder Dust
local buff3Name = "Turn of Luck Powder Dust";
local pot4ID = 207213; -- Special Spicy Meatsauce Burrito
local buff4Name = "Spicy Meatsauce Burrito";
local pot5ID = 207211;
local buff5Name = "Caviar Sandwich";
local pot6ID = 207209;
local buff6Name = "Salted Fish with Sauce";
<!-- User settings end here -->
<!-- Unbridled Enthusiasm potion -->
if not player:hasBuff(buff1Name) and inventory:itemTotalCount(pot1ID) >= 1 and useSpeed == true then
inventory:useItem(pot1ID);
inventory:update();
yrest(750);
end
<!-- Princely looking potion -->
if not player:hasBuff(buff2Name) and inventory:itemTotalCount(pot2ID) >= 1 and useFrog == true then
inventory:useItem(pot2ID);
yrest(900); -- Lets wait till we cast. After that we loot. I don't know if we could loot before casting.
inventory:update();
end
<!-- Lucky Target potion -->
if not player:hasBuff(buff3Name) and inventory:itemTotalCount(pot3ID) >= 1 and useLuck == true then
inventory:useItem(pot3ID);
inventory:update();
yrest(750);
end
<!-- Special Spicy Meatsauce Burrito -->
if not player:hasBuff(buff4Name) and inventory:itemTotalCount(pot4ID) >= 1 and useSpecialMeatsauceBurrito == true then
inventory:useItem(pot4ID);
inventory:update();
yrest(750);
end
<!-- Special Caviar Sandwich -->
if not player:hasBuff(buff5Name) and inventory:itemTotalCount(pot5ID) >= 1 and useCaviarSandwich == true then
inventory:useItem(pot5ID);
inventory:update();
yrest(750);
end
<!-- Special Salted Fish with Sauce -->
if not player:hasBuff(buff6Name) and inventory:itemTotalCount(pot6ID) >= 1 and useSaltedFish == true then
inventory:useItem(pot6ID);
inventory:update();
yrest(750);
end
</waypoint>
<!-- # 2 --><waypoint x="-18595" z="12299" y="-778">
RoMScript("InviteByName('xxxxx');");
yrest(1250)
RoMScript("SetInstanceLevel('normal')");
yrest(1000)
</waypoint>
<!-- # 3 --><waypoint x="-18563" z="12458" y="-778">
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
end
</waypoint>
<!-- # 4 --><waypoint x="4713" z="911" y="679"> </waypoint>
<!-- # 5 --><waypoint x="4569" z="908" y="679"> </waypoint>
<!-- # 6 --><waypoint x="4377" z="906" y="679"> </waypoint>
<!-- # 7 --><waypoint x="4371" z="979" y="679"> </waypoint>
<!-- # 8 --><waypoint x="4368" z="821" y="679"> </waypoint>
<!-- # 9 --><waypoint x="4205" z="795" y="679"> </waypoint>
<!-- # 10 --><waypoint x="4202" z="997" y="679"> </waypoint>
<!-- # 11 --><waypoint x="4420" z="917" y="679"> </waypoint>
<!-- # 12 --><waypoint x="4696" z="907" y="679"> </waypoint>
<!-- # 13 --><waypoint x="4685" z="812" y="679">
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
end
</waypoint>
<!-- # 14 --><waypoint x="-18636" z="12189" y="-778">
player:update();
RoMScript("LeaveParty()");
yrest(500)
function settings.profile.events.onSkillCast()
inventory:update()
if 1 > inventory:itemTotalCount(0) then
loadPaths("kalingerigelme.xml");
end
</waypoint>
</waypoints>
Re: GoThroughPortal() - (Rock5 please come)
I think that means it's trying to go to the wrong object. The portal function recognizes the portal because it has no name. Maybe there is something closer on the other side of the wall with no name. Try moving the waypoint away from that wall and closer to the portal. You can get your coordinates by using "rom/getpos" in MicroMacro or running "Get_Player_Position.bat" in the rom folder.
- 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: GoThroughPortal() - (Rock5 please come)
I moved the waypoint away from that wall and near the portal. It went wrong place again It is try to go to wall adjacent on the portalrock5 wrote:I think that means it's trying to go to the wrong object. The portal function recognizes the portal because it has no name. Maybe there is something closer on the other side of the wall with no name. Try moving the waypoint away from that wall and closer to the portal. You can get your coordinates by using "rom/getpos" in MicroMacro or running "Get_Player_Position.bat" in the rom folder.
Bot is see the wrong portal and It is trying to go to there. :S
Who is online
Users browsing this forum: Google [Bot] and 5 guests