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

i need pvp zone script

laxante

New Member
Joined
Mar 13, 2009
Messages
120
Reaction score
4
hello people

i need script arena pvp for tfs 0.3.4 and i need configure this in creature scripts

ty

i pay rep++ xd
 
Here you have a 100% working PvP-Arena for TFS 0.3!
I could not have made it without Tufte. (Give him REP++!)


Code:
local arena = {
  frompos = {x=31950, y=32068, z=0},
  topos = {x=32192, y=32256, z=15},
  exit = {x=32097, y=32219, z=7} 
}

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
  if isPlayer(cid) == TRUE then
    if isInArea(getPlayerPosition(cid), arena.frompos, arena.topos) then
      if doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid), TRUE) == TRUE then
        if doTeleportThing(cid, arena.exit) == TRUE then
          doSendMagicEffect(arena.exit, 10)
          doPlayerSendTextMessage(mostDamageKiller,MESSAGE_STATUS_CONSOLE_BLUE,'[ARENA] You have defeated '..getPlayerName(cid)..'!')
          doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,'[ARENA] You where defeated by '..getPlayerName(mostDamageKiller)..'!')
          return FALSE
        end
      end
    end
  end
  return TRUE
end

Also, dont fotget to give me REP++

That might work for ya
 
wn si coloke el script qlo en los creatures pero nose ke poner en el craturescirpt.xml ;3 nose i colokarle event "script" o no colokarse de ambas formas no funciona o ajduntarlo al scirpt kill.lua no cacho -__-
 
Back
Top