Player Mount Command

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Player Mount Command

#1 Post by mschmitd » Wed Jul 06, 2011 12:51 pm

Hi all

If i want use the mount i use this Command

player:mount();

but which command i use for dismount ?

player:?????


Greetings Mike

sry for my bad english

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Player Mount Command

#2 Post by lisa » Wed Jul 06, 2011 9:23 pm

usually when you cast a skill or attack a mob it autodismounts. I can't think of any reason to dismount just for the sake of dismounting. Maybe if you explained why you want to then we can work out the best way to do it.
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

mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Re: Player Mount Command

#3 Post by mschmitd » Thu Jul 07, 2011 5:24 am

@Lisa

Thank you for you quick answer

Greetings Mike

kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Player Mount Command

#4 Post by kanta » Sat Jul 09, 2011 6:29 pm

I would think you could also use the cancelbuff userfunction, but I've never actually been able to figure out how it works. I've tried several different ways to put it in the code but it never works.
Scout/Knight/Rogue 70/66/66

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Player Mount Command

#5 Post by lisa » Sat Jul 09, 2011 9:13 pm

The trouble with canceling buffs is you need to know the name of the buff you want to cancel.
It looks for the word "mount" in the buff name and cancels it, change mount to something that you would find in the name. I'm not in game and can't remember what the buffs say for mounts.

--untested.

Code: Select all

for i=1,20,1 do -- only looks for max of 20 buffs, can make it higher if needed.
   local name = RoMScript('UnitBuff( "player", '..i..' );')
local _name = string.find(name,"mount")
if _name then
RoMScript('CancelPlayerBuff('..i..');')
end
end
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

wizzyslo
Posts: 119
Joined: Sun Nov 01, 2009 6:09 pm

Re: Player Mount Command

#6 Post by wizzyslo » Sun Jul 10, 2011 7:02 am

At the end of wiki-->functions is code for buffs cancel

kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Player Mount Command

#7 Post by kanta » Mon Jul 11, 2011 8:32 pm

@Lisa
Thanks, I'll give that a try

@Wizzy
I know about that code. Never been able to get it to work.
Scout/Knight/Rogue 70/66/66

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Player Mount Command

#8 Post by rock5 » Mon Jan 16, 2012 3:42 am

I've added

Code: Select all

player:dismount()
to revision 690. Enjoy.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest