enable swim/fly from current location
enable swim/fly from current location
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.
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
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.
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.
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>
Code: Select all
teleport(nil,nil,player.Z + 10)
Code: Select all
player:update()
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: enable swim/fly from current location
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.
@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.
- 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: enable swim/fly from current location
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.
I'll still be able to use this information though, again thank you.
Re: enable swim/fly from current location
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.
- 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: enable swim/fly from current location
I looked at doing the exact same thing back when Romeo's broke, I didn't end up finding any time for it though lolrock5 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.
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.legoson wrote: I actually found a waypoint file lisa made for turning fly on/off and speedhack on/off
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: enable swim/fly from current location
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?
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?
- 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: enable swim/fly from current location
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.
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.
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: enable swim/fly from current location
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
http://solarstrike.net/phpBB3/viewtopic ... 751#p50751
- 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: enable swim/fly from current location
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 =)
I'll give it a go later tonight if I get some spare time =)
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