just wondering how do you use transpoter runes in a script?
e.g like teleporting to logar ? thx
How do you use transpoter runes
Re: How do you use transpoter runes
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.
wiki is here
http://runesofmagic.gamepedia.com/API:TB_Teleport
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
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

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How do you use transpoter runes
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
Re: How do you use transpoter runes
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

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How do you use transpoter runes
I should really make more effort at checking my posts before I click send.
Lucky, you are always there to catch my mistakes.


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
Who is online
Users browsing this forum: Bing [Bot] and 5 guests