• 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 Help With Pushing tile .Lua script

Yusuf El-Shora

Herizona-Ots
Joined
Jul 19, 2015
Messages
170
Reaction score
6
Location
Lala-Land
Well hello everyone ..
I'm setting up my own otserver and fixing staff..

But now I searching for a script that pushes players when the are teleported to temple ..
So players dont stuck on each other the script function is to push them in any random direction ..

Also I making Zombie event but it's closed with stones so when players ready I make /zombie start
And zombie spawns and the stones being removed so the can run ..
But the only thing isnot working is the stones it stand still..

Using tfs 0.4

That's all
Thanks in advance!
 
Last edited:
You need to read the help thread rules...

1)What distro are you using
2)If you want a script made post it in the request section
3)If you want help with a script post the script
4)Try to include as much detail as possible so we know what you want (ex. pictures, ect.)
 
Well hello everyone ..
I'm setting up my own otserver and fixing staff..

But now I searching for a script that pushes players when the are teleported to temple ..
So players dont stuck on each other the script function is to push them in any random direction ..

Also I making Zombie event but it's closed with stones so when players ready I make /zombie start
And zombie spawns and the stones being removed so the can run ..
But the only thing isnot working is the stones it stand still..

That's all
Thanks in advance!
For the stones issue, you'll want to use doTransformItem instead of doRemoveItem.
 
You need to read the help thread rules...

1)What distro are you using
2)If you want a script made post it in the request section
3)If you want help with a script post the script
4)Try to include as much detail as possible so we know what you want (ex. pictures, ect.)
oh thanks bro i will
 
push script
Code:
function onStepIn(cid, item, pos)
local tp = {
            {x=32082, y=32221, z=7}, ---- change for whatever you want
            {x=32083, y=32221, z=7}, ---- change for whatever you want
            {x=32084, y=32221, z=7}, ---- change for whatever you want
            {x=32083, y=32223, z=7} ---- change for whatever you want
           }
    if isCreature(cid) == TRUE then
        doTeleportThing(cid, tp[math.random(#tp)])
    end
return true
end

Code:
<movevent type="StepIn" actionid="34000" event="script" value="pushtemple.lua" />

and about zombie u can show us script to know where the error
 
push script
Code:
function onStepIn(cid, item, pos)
local tp = {
            {x=32082, y=32221, z=7}, ---- change for whatever you want
            {x=32083, y=32221, z=7}, ---- change for whatever you want
            {x=32084, y=32221, z=7}, ---- change for whatever you want
            {x=32083, y=32223, z=7} ---- change for whatever you want
           }
    if isCreature(cid) == TRUE then
        doTeleportThing(cid, tp[math.random(#tp)])
    end
return true
end

Code:
<movevent type="StepIn" actionid="34000" event="script" value="pushtemple.lua" />

and about zombie u can show us script to know where the error
PHP:
function onSay(cid, words, param, channel)
    if(getStorage(ZE_STATUS) ~= 2) then
        local players_on_arena_count = #getZombiesEventPlayers()
        if(param == 'force') then
            if(players_on_arena_count > 0) then
                setZombiesEventPlayersLimit(players_on_arena_count  )
                addZombiesEventBlockEnterPosition()
                doSetStorage(ZE_STATUS, 2)
                doBroadcastMessage("Zombie Arena Event started.")
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Zombies event started.")
            else
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot start Zombies event. There is no players on arena.")
            end
        else
            if(param ~= '' and tonumber(param) > 0) then
                setZombiesEventPlayersLimit(tonumber(param))
            end
            removeZombiesEventBlockEnterPosition()
            doSetStorage(ZE_STATUS, 1)
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Event started.")
            doPlayerBroadcastMessage(cid, "Zombie Arena Event teleport is opened. We are waiting for " .. getZombiesEventPlayersLimit() - players_on_arena_count .. " players to start.")
        end
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Zombies event is already running.")
    end
    return true
end
 
Back
Top