• 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 a script to make the player dont die, only go to temple

jonathan.dsa

New Member
Joined
Nov 17, 2011
Messages
61
Reaction score
0
Hello dears, i need a script to make player dont die, when take lasthit, he go to temple, someboy have that script? *-*

- - - Updated - - -

some a arena pvp, dont lose level skill loot, and dont appear the death window to press ok
 
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131) then      
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
                doTeleportThing(cid, {x = 1002, y = 1001, z = 4})
	end
	return true
	end
You should change the itemid for the item of you want.

HOW TO PVP ARENA TUTORIAL

1.- Open your Map editor and ofc open your map.
2.- Select PvP Tool.
2wdbmdh.png

3.- Put that tool in the zone of you want to be the PvP Zone.
Should be like this img:
x1ncap.png

4.- Close & save your map
5.- Open your server and test it
 

Attachments

Last edited:
but how i can change for if he kill in a range? area? how i can change for put it here:
Lua:
function onPrepareDeath(cid)

	-- CONFIG --
	local a = {
	l = {x=32363,y=32223,z=7}, -- top left pos of arena
	r = {x=32374,y=32232,z=7}, -- bot right pos of arena
	e = {x=32369,y=32233,z=7} -- loser 'll be teleported in this pos when dies
	}
	-- CONFIG --
	local p = getCreaturePosition(cid) -- don't touch

	if isInRange(p, a.l, a.r)  then
       --here

	return FALSE
	end
	return true
end

- - - Updated - - -

omg, very simple, thank very much nark, rep+ for u
 
Back
Top