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

[LUA][8.6a different SD

Luciano

Member
Joined
Feb 18, 2010
Messages
998
Reaction score
24
Hi :)
I need a different Sudden Death Rune,
I need it to hit the amount of lv the player hasx2
example:
One player lv 500 would hit 1k on monster (and 500 on players, right?)
And the effect if possible, be that "lighter" sd, a thiner one, i dont know it. but if that isnt possible, its ok.
Thanks and +rep :)
Server: 0.3.6 compiled for 8.6
 
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local targer = itemEx.uid
	if not(isCreature(target)) then 
		doPlayerSendCancel(cid, "You can use this rune only on creatures.")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
		return true
	end
	local damage = not(isNpc(target)) and (isMonster(target) and (getPlayerLevel(cid)*2) or getPlayerLevel(cid)) or 0
	doSendMagicEffect(getCreaturePosition(target), CONST_ME_MORTAREA)
	doCreatureAddHealth(target, -damage, true)
	return true
end
 
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local targer = itemEx.uid
	if not(isCreature(target)) then 
		doPlayerSendCancel(cid, "You can use this rune only on creatures.")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
		return true
	end
	local damage = not(isNpc(target)) and (isMonster(target) and (getPlayerLevel(cid)*2) or getPlayerLevel(cid)) or 0
	doSendMagicEffect(getCreaturePosition(target), CONST_ME_MORTAREA)
	doCreatureAddHealth(target, -damage, true)
	return true
end
thx :D repped
 
Back
Top