How do you use transpoter runes

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

How do you use transpoter runes

#1 Post by newton666 » Sun May 26, 2013 2:16 am

just wondering how do you use transpoter runes in a script?
e.g like teleporting to logar ? thx

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

Re: How do you use transpoter runes

#2 Post by lisa » Sun May 26, 2013 2:28 am

forum search for teleport got this as first result.
http://www.solarstrike.net/phpBB3/viewt ... ort#p49960
I posted code for using the teleport to heffner, that is for using the skill.

If you mean the actual transport book, using the runes, the code looks like this.

Code: Select all

RoMScript("TB_Teleport(0,21)") --teleports to slot 21 in teleport book
wiki is here
http://runesofmagic.gamepedia.com/API:TB_Teleport
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: How do you use transpoter runes

#3 Post by rock5 » Sun May 26, 2013 5:31 am

This is the code I used with my ribbons script. It allows for different index numbers.

Code: Select all

local portIndex = getPortIndex("Silverspring-Lake of Magic Mist")
if inventory:itemTotalCount("Transport Rune") > 0 and portIndex then
	RoMScript("TB_Teleport(0,"..portIndex..")")
	waitForLoadingScreen(30)
	yrest(3000)
end
  • 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: How do you use transpoter runes

#4 Post by lisa » Sun May 26, 2013 7:14 am

couldn't find getPortIndex in the default bot, userfunction maybe?
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: How do you use transpoter runes

#5 Post by rock5 » Sun May 26, 2013 8:21 am

I should really make more effort at checking my posts before I click send. :oops: Lucky, you are always there to catch my mistakes. :D

Code: Select all

	function getPortIndex(_name)
		local i = 1
		repeat
			local TB_ID,note,ZoneID,X,Y,Z,Name,icon=RoMScript("TB_GetTeleportInfo("..i..")")
			if note == _name then
				return i
			elseif TB_ID == 0 then
				return false
			else
				i = i + 1
			end
		until false
	end
  • 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 6 guests