• 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!

PVP Arena

Joined
Jul 15, 2008
Messages
38
Reaction score
0
Location
BRAZIL
Can someone explain how to do a PVP arena in TFS?


EDIT:

Lemme be more clear:
I want something like
- Use a Lever, teleport 2 players
- The players battle until die
- When 1 die, the player is teleported out.


Basic is that
 
Last edited:
Those functions are for spells, you can set PvP Arena by MapEditor.
 
How?

Can someone explain to me?

EDIT:

Lemme be more clear:
I want something like
- Use a Lever, teleport 2 players
- The players battle until die
- When 1 die, the player is teleported out.
 
Last edited:
Open your MapEditor (the *.exe one will make it pop-up), then open your map with it. Done already?

Ok, now select PvP-Arena Tool and draw it everywhere you want it to be, just like PZ-Area.

Now save your map and restart your server (if it wasnt closed when editing the map, still it is the *.exe one to start the server).

To make it work with a lever, you need a script to check if the second player is in the right spot, if he is then it will teleport him.

Clear enough?
 
Nice nice...
An idiot trying to be great.
Go play Tetris noob.
---

If someone can help me out to create a PVP ARENA like i described, i would thank.
 
Nice nice...
An idiot trying to be great.
Go play Tetris noob.
---

If someone can help me out to create a PVP ARENA like i described, i would thank.

The idiot here actually is YOU who cant understand a simple thing like that PLAYER VERSUS PLAYER ARENAS ARE DONE WITH MAPEDITOR.
 
Last edited by a moderator:
Ease down here. Marcinek explained exactly what you needed to do. No need to be angry with him.
 
Code:
function onUse(cid, position, item)
    player2pos = { x = , y = , z = }
    player2 = getThingfromPos(player2pos)
    player1npos = { x = , y = , z = }
    player2npos = { x = , y = , z = }
    lvl = 0
    if isPlayer(player2.uid) == TRUE then
        if getPlayerLevel(cid) >= lvl and getPlayerLevel(player2.uid) >= lvl then
            doTeleportThing(cid, player1npos, 0)
            doTeleportThing(player2.uid, player2npos, 0)
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Fight!")
            doPlayerSendTextMessage(player2.uid, MESSAGE_EVENT_ADVANCE, "Fight!")
        else
            doPlayerSendTextMessage(cid, 22, "Only players of level "..lvl.." and higher may participate in arena.")
        end
    else
        doPlayerSendTextMessage(cid, 22, "There is no player to duel.")
    end
    return TRUE
end

Im not sure about the player2.uid thing

Die thing is handled by PvP-Arena itself.
 
Last edited:

Similar threads

Back
Top