Page 1 of 1
enable swim/fly from current location
Posted: Tue Jul 02, 2013 6:59 pm
by legoson
Hello, I've been using rombot for a while now to do my minis. but I've come to a place were I need to just enable swim/fly from my current location. This is my first time attempting to do a waypoint file.
I've tried to put just fly inside a waypoint tags but it wants waypoints too. is there a way to use like current location?
<waypoint x="current" y="current" z="+10">fly()</waypoints>
Im pretty new to this so please don't flame.
This way i can turn fly on from where ever im standing and then fly to where i need then turn fly off?
Thanks.
Re: enable swim/fly from current location
Posted: Tue Jul 02, 2013 7:56 pm
by lisa
If you want to do code but not actually use any waypoints you need to put the code in the onload of the waypoint file. You would also need to make sure it doesn't leave the onload section by doing a loop or ending the script.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
fly()
print("now I am entering an infinite loop, press ctrl+L to end it")
while(true) do
yrest(1000)
end
</onload>
</waypoints>
Now as to the actual moving to point, you need to use either the moveto or the teleport functions.
you would also need to make sure if you want to do more than 1 movement to update the player coords.
Since you didn't actually give any more info as to what you are doing that is about all I can say that may help you.
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 12:07 am
by rock5
Sounds like maybe all you want to do is start fly. You don't need a waypoint for that. Just start the commandline and type 'fly()' and 'flyoff()' at the command prompt.
@Lisa, I don't think the bot needs to be running for it to continue to fly. Just having 'fly()' in the onload should work. No loop necessary.
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 12:51 am
by legoson
Thank you for your replies, yes i just wanted to be able to turn fly on and off basically. I actually found a waypoint file lisa made for turning fly on/off and speedhack on/off (pretty sure it was lilsa). so that's actually perfect for my needs to turn swim on and off.
I'll still be able to use this information though, again thank you.
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 1:14 am
by rock5
I think I'll whip up a program that can be used to turn on and off the hacks without the need for the bot. Shouldn't take too long.
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 3:11 am
by lisa
rock5 wrote:I think I'll whip up a program that can be used to turn on and off the hacks without the need for the bot. Shouldn't take too long.
I looked at doing the exact same thing back when Romeo's broke, I didn't end up finding any time for it though lol
legoson wrote: I actually found a waypoint file lisa made for turning fly on/off and speedhack on/off
yeah it is on the topic where u got the fly/swim hack userfunction, I find it works well, that was my "easy" solution when Romeo's broke.
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 5:58 am
by rock5
I've already got working code with the fly and wall hacks but I'm not sure how it should be controlled. The idea is it should be controllable via in game key presses but practically all keys are mapped to a function already. The only idea I can think of is to use keys with modifiers such as ctrl-w to toggle wall and ctrl-f to toggle fly. The problem with that is if the combo isn't mapped to anything in game then it ignores the modifier, eg. If you press ctrl-w it moves forward. The only solution I can think of is to map all the key combos you want to use to some unused action keys. There are 2 problems with that, 1 is that it would require users to setup those mappings and 2, a user might be using all their action keys.
I never used romeos hacks. How did they work? Were they controlled in game or did you have to go to it's interface to change states?
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 8:00 am
by lisa
I just used the number pad for them, in game it just changes the raid icons. If you arn't in party or not raid/party leader then using numberpad keys will do nothing in game.
Not all keyboards have the num pad but majority do, you could always have an option for users to change the settings if they wish.
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 1:20 pm
by rock5
Well I've done my initial release that includes swim,wall and speed hacks. See what you think
http://solarstrike.net/phpBB3/viewtopic ... 751#p50751
Re: enable swim/fly from current location
Posted: Wed Jul 03, 2013 8:37 pm
by lisa
Ahh I thought you meant you were making a stand alone programme, didn't realise you were making a script to work with MM still
I'll give it a go later tonight if I get some spare time =)