"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