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

Castellhoff

New Member
Joined
Oct 23, 2013
Messages
23
Reaction score
0
Hello,

Can anybody tell me how to make PVP Arena in a 10.10 server?
It's urgent please..

Thank you
 
Hi,

You will need some LUA scripting knowledge to make an pvp arena but okay.
First thing what you have to do is make an arena in your map editor ofcourse haha.

Then you will have to decide how players can enter this arena. For example we can use a lever.

if a player stands on a specific tile and uses the lever and all your other requirments are met(which you can add yourself in the script) the player will be teleported to the pvp arena. Now when the player uses the lever you can add several conditions to him so he won't die in the arena for example or won't get skulled if he attacks other players however this is for the more advanced version.
Now in the lever script you add something like this:
NOTE THIS IS ONLY AN EXAMPLE
##
this makes the lever switch and teleports the player into the arena.
local Pos = {x=10, y=20, z= 30}
local playerPos = getPlayerPosition
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 1946) then
doTransformItem(item.uid, 1945)
doSendMagicEffect(arena.fromPos, CONST_ME_POFF)
doTeleportThing(pid, Pos)
doSendMagicEffect(Pos, CONST_ME_TELEPORT)
doPlayerSendTextMessage(pid, MESSAGE_INFO_DESCR, "FIGHT!")
end

end



so this is an example. If you want to add special pvp features you need to do a bit more research in code;)
 
Last edited:
Back
Top