Re: GoThroughPortal() - (Rock5 please come)
Posted: Wed Dec 12, 2012 4:11 pm
Can we solve this in different ways ?
MicroMacro home
https://www.solarstrike.net/phpBB3/
rock5 I tryied to portal range to 50 and I set waypoint close to the exit portal but bot is didnt see the exit portal when I set portal range to 150 char is going to wrong portalrock5 wrote:Not needed. GoThroughPortal saves your current position then tries to portal. If it changes location then the portal worked and the function returns true. If your location doesn't change then it returns false and it can try again. This is 100% reliable. I don't use a zone check because some teleports can be to the same zone.
Code: Select all
GoThroughPortal(nil,110987)
Portal not found within range of 150 , I am near the portal :Srock5 wrote:It is possible it has like a double portal.
Ok, try thisCode: Select all
GoThroughPortal(nil,110987)
thanx now going to true portal but when leave the dungeon bot says distance break :Slisa wrote:110578
that's as much as I am going to say.
Sorry I went out of ks and tested the function outside then accidentally copied the wrong id.mrtgtr wrote:I think portal ID is wrong
It looks like it portals before it decides it reached the ids coords. The important thing is did it work? The distance break message didn't cause it to error did it?mrtgtr wrote:thanx now going to true portal but when leave the dungeon bot says distance break :S
I dont understand google translate is absurd translaterock5 wrote:Sorry I went out of ks and tested the function outside then accidentally copied the wrong id.mrtgtr wrote:I think portal ID is wrong
It looks like it portals before it decides it reached the ids coords. The important thing is did it work? The distance break message didn't cause it to error did it?mrtgtr wrote:thanx now going to true portal but when leave the dungeon bot says distance break :S
Code: Select all
<!-- # 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>