enable swim/fly from current location

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
legoson
Posts: 18
Joined: Tue Jul 02, 2013 6:54 pm

enable swim/fly from current location

#1 Post 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.
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: enable swim/fly from current location

#2 Post 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.

Code: Select all

teleport(nil,nil,player.Z + 10)
you would also need to make sure if you want to do more than 1 movement to update the player coords.

Code: Select all

player:update()
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.
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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: enable swim/fly from current location

#3 Post 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.
  • 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
legoson
Posts: 18
Joined: Tue Jul 02, 2013 6:54 pm

Re: enable swim/fly from current location

#4 Post 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.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: enable swim/fly from current location

#5 Post 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.
  • 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: enable swim/fly from current location

#6 Post 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.
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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: enable swim/fly from current location

#7 Post 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?
  • 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: enable swim/fly from current location

#8 Post 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.
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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: enable swim/fly from current location

#9 Post 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
  • 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: enable swim/fly from current location

#10 Post 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 =)
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
Post Reply