Page 2 of 8
Re: Rock5's travelTo userfunction
Posted: Fri Aug 23, 2013 4:25 am
by turbobay
Thanks for your fast reply.
Well, i thought it could be the WaitForLoadingScreen(), commented it and tried again, but still was stuck...BUT i forgot to save my file. Shame on me

Actually this is working now, sorry for the confusion.
After all the char needs to register the snoop in Varanas for Haven-Transport, or is it just necessary to register at least one snoop to get access to the travelTo-function?
Without registering in Varanas i got an error "not path can be found..."
Re: Rock5's travelTo userfunction
Posted: Fri Aug 23, 2013 4:48 am
by rock5
The TravelTo function can actually check to see if certain snoops have been visited, mainly the majot hubs such as Varanas, Heffner, Rorazan, etc. If you haven't clicked the Varanas Snoop yet then it doesn't get included in the path calculation. Without the Varanas snoop it can't find the path to haven. You should click the snoops and open up the paths before using the userfunction.
Re: Rock5's travelTo userfunction
Posted: Mon Sep 02, 2013 3:17 pm
by wiedzmin97
Why i get this error when char going to teleport with snoop?:
Code: Select all
The game client did not crash.
10:8pm - .../scripts/rom/userfunctions/userfunction_travelTo.lua:201: attempt to
index global 'bit32' (a nil value)
pls help .
Re: Rock5's travelTo userfunction
Posted: Mon Sep 02, 2013 3:25 pm
by rock5
That is a new function available in the 1.03 version of Micromacro. You'll need to update it.
Re: Rock5's travelTo userfunction
Posted: Wed Dec 04, 2013 10:10 am
by noobbotter
Rock,
I was using your new travelTo function yesterday. I was using it separately on several characters (using same script) to go from Harf Trading Post to Varanas Central. All but one of my characters worked fine. The one that didn't work, gave an error of trying to go to Obsidian Stronghold. That particular character had never been to OS but I'm pretty sure that some of the others had never been there as well. I'm going to test it again tonight to see if I get the same error or not, but it seems like for some reason it tried to go to Varanas Central via Obsidian Stronghold instead of going through Silverfall. Weird how it only did that on one character though. I'll let you know what I get after more testing tonight.
Re: Rock5's travelTo userfunction
Posted: Wed Dec 04, 2013 11:04 am
by rock5
Well OS is one of the teleports that it's supposed to be able to tell if it's been there, so it shouldn't have tried to go there. If it tried to go there then there was a hiccup and it thought it had been there.
Next time it happens, restart the script (assuming your script can resume from where it stopped), and if it then goes the right way then there was a hiccup in my function. If it still tries to go to OS then restart the client and try again. If it works then there was a bug in the game. If it still doesn't work then we'll have to take more complex steps to figure out what's going on.
Re: Rock5's travelTo userfunction
Posted: Thu Dec 05, 2013 8:09 am
by noobbotter
Well, I haven't seen it happen again yet, so it may have just been a hiccup.
Re: Rock5's travelTo userfunction
Posted: Sat Dec 21, 2013 1:16 am
by Eggman1414
What should the optionString var be when adding a new portal? For instance, I am trying to add Sarlo to the function but am unable for the bot to find Sarlo?
this is what I added
Under Node List
Code: Select all
Sarlo = {Zone=26, Npc={Id=118219, X=-17872, Z=-3332, Y=804}, ConnectsTo={"Syrbal"}},
and under optionString
I have also tried "ZONE_Z26_Sarlo" but that didnt work either
Re: Rock5's travelTo userfunction
Posted: Sat Dec 21, 2013 11:26 am
by rock5
I thought I added Sarlo. Yes I did, but I forgot to post it. I'll do that now.
You were close. I think you just forgot to add a link from Syrbal to Sarlo.
Re: Rock5's travelTo userfunction
Posted: Tue Dec 24, 2013 11:35 am
by Bill D Cat
Just a thought; but would it be worth the effort to add a few more travel points to cover the guild castle managers?
Suggesting: VaranasCastleWest, VaranasCastleEast, and ObsidianCastle.
Re: Rock5's travelTo userfunction
Posted: Wed Dec 25, 2013 11:15 am
by rock5
Nearly anything could be added if there is enough demand for it. I put some effort into the userfunction to make it easy to expand.
Re: Rock5's travelTo userfunction
Posted: Wed Dec 25, 2013 2:30 pm
by Bill D Cat
Locations Added:
Code: Select all
VaranasCastleWest = Guild Castle Manager in Varanas Lower City West
VaranasCastleEast = Guild Castle Manager in Varanas Lower City East
ObsidianCastle = Guild Castle Manager in Obsidian Stronghold
-- File removed. Added to first post --
Re: Rock5's travelTo userfunction
Posted: Wed Dec 25, 2013 5:15 pm
by kuripot
i dont know how to use this.. can you gave some example?? its look like gotoguild userfunction?? i just put the command and automatically go to his destination?? example if i standing in snoop varanas and i want to go to sarlo.. how can make this???
Re: Rock5's travelTo userfunction
Posted: Wed Dec 25, 2013 5:47 pm
by BlubBlab
Theoretically it would be this
perhaps you must target Sturobold first
I do it anyway, so I don't care
Re: Rock5's travelTo userfunction
Posted: Wed Dec 25, 2013 6:34 pm
by Bill D Cat
As BlubBlab said, you just use the name of the destination as the argument to the function. But you can only use it to travel to those locations (Snoop the Stubborn, Dalanas Envoy, etc) that you have already visited and unlocked. So if you have never talked to the transporter in Sarlo to unlock it (or failed to unlock any of the others in the chain from Rorazan), then you can not use this function to take you there.
Re: Rock5's travelTo userfunction
Posted: Wed Dec 25, 2013 10:52 pm
by rock5
And you need to be near a travel point for it to work.
@Bill D Cat. I don't know if I would have made a point for both the house maid and guild. They are in the same location. Also there are house maids everywhere, so what are we going to start doing, adding all house maids?
Re: Rock5's travelTo userfunction
Posted: Thu Dec 26, 2013 1:11 am
by Bill D Cat
True. Same general location, different target NPC. I suppose it could just be one waypoint for both of them. I also didn't include the house maids in Obsidian because they are both direct line-of-sight from the closest transporters. Edited the file to remove the redundant locations for house maids.
@Rock5: Be near a travel location or have your main transport skills off cool-down so it can get you to a known location such as Heffner.
Re: Rock5's travelTo userfunction
Posted: Sat Jan 11, 2014 7:33 am
by Lamkefyned
<<--Error-->>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
<!-- AMBOLIA Campo de Instruccion Script -->
<!-- V1 -->
<!-- 07/01/2014 -->
<!-- FUNCIONS INSTRUCCIONES -->
cprintf(cli.lightblue,"Ambolia Script \n");
cprintf(cli.lightred,"--- Script Compatible Solo Con Idioma Ingles --- \n");
cprintf(cli.lightred,"--- NECESARIO --- \n");
cprintf(cli.lightred,"--- POCION: Entusiasmo Desenfrenado --- \n");
cprintf(cli.lightred,"--- TITULO: Huida Prodigiosa --- \n");
<!-- FUNCIONS START GMDETECT -->
startGMDetect()
</onLoad>
<!-- # 1 --><waypoint x="-22128" z="6416" y="-179">
player:mount()
travelTo("MercenarySquare")
</waypoint>
</waypoints>
Re: Rock5's travelTo userfunction
Posted: Sat Jan 11, 2014 8:25 am
by rock5
What teleport point are you teleporting from? Are you too far away from the teleport point? And was Recall on cooldown?
Re: Rock5's travelTo userfunction
Posted: Sat Jan 11, 2014 10:13 pm
by Lamkefyned
obsidian from the guild