Code: Select all
function beingfollowed(pawn,alarmnumber)
cprintf(cli.lightblue,"Being Followed by someone \n");
sendMacro("CastSpellByName(\"Hide\");");
player:rest(120);
if alarmnumber == 2 then
sendMacro("CastSpellByName(\"Hide\");");
cprintf(cli.pink, "Being Followed by someone still \n")
RoMScript('SendChatMessage("What", "WHISPER", 0, "'..pawn.Name..'")')
logInfo(pawn.Name,"Was following you ", pawn.Name);
player:rest(180)
local tnames = {"Somechar","Anotherchar"}
if 3 >= alarmnumber then return end -- ignore the first couple and do the code on 3rd alarm
for k,v in pairs(tnames) do
if v == pawn.Name then
SetChannelForLogin("next")
RoMScript("ChangeChar('current')")
loadProfile()
return
end
end
end
end
Code: Select all
function beingfollowed(pawn,alarmnumber)
cprintf(cli.lightblue,"Being Followed by someone \n");
sendMacro("CastSpellByName(\"Hide\");");
player:rest(120);
if alarmnumber == 2 then
sendMacro("CastSpellByName(\"Hide\");");
cprintf(cli.pink, "Being Followed by someone still \n")
RoMScript('SendChatMessage("What", "WHISPER", 0, "'..pawn.Name..'")')
logInfo(pawn.Name,"Was following you ", pawn.Name);
player:rest(180)
if 3 >= alarmnumber then return end -- ignore the first couple and do the code on 3rd alarm
repeat parallelID = RoMScript("GetCurrentParallelID()"); yrest(500) until parallelID
if (3 > parallelID) then
sendMacro("ChangeParallelID(" .. parallelID+1 .. ");");
else
sendMacro("ChangeParallelID(1);");
end
player:rest(30);
end
end
end
end