How to change the channel with bot?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
miximixi007
Posts: 94
Joined: Sat Apr 17, 2010 1:18 pm

How to change the channel with bot?

#1 Post by miximixi007 »

I want to change the channel form 1 -> 2 or form 2 ->1 ,how to do that?thx
miximixi007
Posts: 94
Joined: Sat Apr 17, 2010 1:18 pm

Re: How to change the channel with bot?

#2 Post by miximixi007 »

anyone help me please
RoMain
Posts: 10
Joined: Wed Apr 21, 2010 8:49 pm

Re: How to change the channel with bot?

#3 Post by RoMain »

id = RoMScript("GetCurrentParallelID()");
if id == 1 then
RoMScript("ChangeParallelID(2)");
elseif id == 2 then
RoMScript("ChangeParallelID(1)");
end;
yrest(30000);

changes to channel 2 when on channel 1 and the other way round
miximixi007
Posts: 94
Joined: Sat Apr 17, 2010 1:18 pm

Re: How to change the channel with bot?

#4 Post by miximixi007 »

That`s great.Thank you very much :D
Servus1982
Posts: 7
Joined: Sun Apr 04, 2010 3:38 am

Re: How to change the channel with bot?

#5 Post by Servus1982 »

hello one question, where do i have do paste it?
filipsworks
Posts: 53
Joined: Mon May 10, 2010 10:37 am

Re: How to change the channel with bot?

#6 Post by filipsworks »

Servus1982 wrote:hello one question, where do i have do paste it?
Paste it where U want to be executed:

4 example U can paste it into waypoint file like that

<!-- # 6 -->
<waypoint x="-128" z="-8708">
id = RoMScript("GetCurrentParallelID()");
if id == 1 then
RoMScript("ChangeParallelID(2)");
elseif id == 2 then
RoMScript("ChangeParallelID(1)");
end;
yrest(30000);
</waypoint>

or <onCast /> section in your profile file...

Dunno is lua can execute loops in loops but if can U can try to use smth like this:

if (condition)
then

id = RoMScript("GetCurrentParallelID()");
if id == 1 then
RoMScript("ChangeParallelID(2)");
elseif id == 2 then
RoMScript("ChangeParallelID(1)");
end;
yrest(30000);
else
do.nothing;
end
Post Reply