[SOLVED] Auto click on Transport Portal

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
kutalmismete
Posts: 25
Joined: Thu May 26, 2016 6:26 am

[SOLVED] Auto click on Transport Portal

#1 Post by kutalmismete » Thu Oct 27, 2016 1:47 pm

I need code for entering portal that I opened.
"Transport portal opened by <character name>" is it. It isn't on database I checked as "Transport portal" and tried all NPC Ids but findNearestNameOrId function couldn't find anything. Can I enter portal that created by transport portal rune via micromacro ?
EDIT: I got this, sharing if anyone needs.

Code: Select all

local function goThroughPortal()
	mainFix = "name of portal creator"
	target = player:findNearestNameOrId("Transport portal opened by "..mainFix)
	if target then
		player:target(target.Address)
		Attack();
		yrest(50);
		Attack();
		yrest(500);
		RoMScript("StaticPopup_OnClick(StaticPopup1, 1);");
		waitForLoadingScreen();
		return true
	end
	return
end

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 38 guests