I've been trying to make a new eoj farming waypoint for the sarlo zone since there are too many people in TB.
I noticed there are three channels and I would like to change to the next channel when I win the event.
The piece of script I found most suitable is this one.
Code: Select all
<onload>
function doquest()
local gomsg = getTEXT("SC_ZONE_PE_3TH_ST1START")
repeat
yrest(10)
until getLastWarning(gomsg, 10)
local endmsg = getTEXT("SC_ZONE_PE_3TH_FAIL")
repeat
yrest(10)
quest()
until getLastWarning(endmsg, 10)
sendMacro("ChangeParallelID(2);");
player:rest(30)
local id = RoMScript("GetCurrentParallelID()")
if id ~= 2 then
RoMScript("ChangeChar(1,nil,2)")
waitForLoadingScreen()
repeat
yrest(10)
until getLastWarning(gomsg, 10)
end
repeat
yrest(10)
quest()
until getLastWarning(endmsg, 10)
sendMacro("ChangeParallelID(3);");
player:rest(30);
id = RoMScript("GetCurrentParallelID()")
if id ~= 3 then
RoMScript("ChangeChar(1,nil,3)")
waitForLoadingScreen()
repeat
yrest(10)
until getLastWarning(gomsg, 10)
end
repeat
yrest(10)
quest()
until getLastWarning(endmsg, 10)
sendMacro("ChangeParallelID(1);");
player:rest(30);
id = RoMScript("GetCurrentParallelID()")
if id ~= 1 then
RoMScript("ChangeChar(1,nil,1)")
waitForLoadingScreen()
repeat
yrest(10)
until getLastWarning(gomsg, 10)
end
end
function quest()
RoMScript("AcceptBorderQuest()")
RoMScript("ScriptBorder:Hide()")
player:target_NPC("the npc name")
CompleteQuestByName("your quest name","public")
end
</onload>I'm not sure why but this is not working for me , i put the name of the quest and the npc but once I win he event nothing happens.I would apreciate any tip on the issue.
Thank you.

