How to change the channel with bot?
-
- Posts: 94
- Joined: Sat Apr 17, 2010 1:18 pm
How to change the channel with bot?
I want to change the channel form 1 -> 2 or form 2 ->1 ,how to do that?thx
-
- Posts: 94
- Joined: Sat Apr 17, 2010 1:18 pm
Re: How to change the channel with bot?
anyone help me please
Re: How to change the channel with bot?
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
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
-
- Posts: 94
- Joined: Sat Apr 17, 2010 1:18 pm
Re: How to change the channel with bot?
That`s great.Thank you very much
-
- Posts: 7
- Joined: Sun Apr 04, 2010 3:38 am
Re: How to change the channel with bot?
hello one question, where do i have do paste it?
-
- Posts: 53
- Joined: Mon May 10, 2010 10:37 am
Re: How to change the channel with bot?
Paste it where U want to be executed:Servus1982 wrote:hello one question, where do i have do paste it?
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
Who is online
Users browsing this forum: No registered users and 4 guests