• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved [action] problem

ArionOts

New Member
Joined
Oct 17, 2014
Messages
22
Reaction score
0
HELLO Otlanders!
I have a little problem with script. There is http://www.wklej.org/id/1540909/
So when 2 players standing in good position and after use lever script dont teleporting to the new position and i get error in console
[27/11/2014 22:04:48] [Error - Action Interface]
[27/11/2014 22:04:48] data/actions/scripts/dng1.lua:eek:nUse
[27/11/2014 22:04:48] Description:
[27/11/2014 22:04:48] (luaGetThingFromPos) Tile not found
How should fix this?
 
Change all
Code:
for i = 1, #players_pos do
    player = getThingfromPos(players_pos)
To
Code:
for i = 1, #players_pos do
    player[i] = getThingfromPos(players_pos[i])
 
So Limos when i using this lever and standing one character on the teleport ground i now dont get any msg in console but when i'm standing 2 characters on the teleport ground i got error in console
[27/11/2014 22:40:14] [Error - Action Interface]
[27/11/2014 22:40:14] data/actions/scripts/dng1.lua:eek:nUse
[27/11/2014 22:40:14] Description:
[27/11/2014 22:40:14] (luaDoTeleportThing) Thing not found
 
Code:
for i = 1, #players_pos do
     player[i] = getThingfromPos(players_pos[i])
     if player[i].itemid > 0 then
         if string.lower(playersOnly) == "yes" then
             if isPlayer(player[i].uid) == TRUE then
                 all_ready = all_ready+1
             else
                 monsters = monsters+1
             end
         else
             all_ready = all_ready+1
         end
     end
end
if all_ready == #players_pos then
     for i = 1, #players_pos do
         player[i] = getThingfromPos(players_pos[i])
         if isPlayer(player[i].uid) == TRUE then
             if getPlayerLevel(player[i].uid) >= questLevel then
                 level = level+1
             end
         else
             level = level+1
         end
     end
     if level == #players_pos then
         if string.lower(playersOnly) == "yes" and monsters == 0 or string.lower(playersOnly) == "no" then
             for _, area in pairs(monster_pos) do
                 doSummonCreature(area.monster,{x=area.pos[1],y=area.pos[2],z=area.pos[3]})
             end
             for i = 1, #players_pos do
                 doSendMagicEffect(players_pos[i], CONST_ME_POFF)
                 doTeleportThing(player[i].uid, new_player_pos[i], FALSE)
                 doSendMagicEffect(new_player_pos[i], CONST_ME_ENERGYAREA)
 
Back
Top