• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Scripter [LUA] Scripter needed !! Simple script 5 euros payment.

RoHaN-OTs

RoHaN-OTs.com
Joined
Jul 28, 2010
Messages
1,594
Reaction score
82
Location
Sweden
Hello,

I need a script for a SD Rune which damage should be based on HP (Health Points) Instead of ML (Magic level).

Simple script, 5 fast euro (through paypal).

Thanks in advance,

RoHaN
 
LUA:
local percentHealthMin = 10 --eg. You will hit for 10% of your max health at the minimum
local percentHealthMax = 20 --eg. You will hit for 20% of your max health at the maximum

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

function onCastSpell(cid, var)
	local min = getCreatureMaxHealth(cid) / (100/percentHealthMin)
	local max = getCreatureMaxHealth(cid) / (100/percentHealthMax)
	if doCombat(cid, combat, var) then
		return doTargetCombatHealth(cid, variantToNumber(var), COMBAT_DEATHDAMAGE, -min, -max, CONST_ME_MORTAREA)
	end
	
	return false
end

You can edit the 2 top numbers to change the damage however you like.
 
hello iam lua,xml scripter i can help you
and i wont take rl money i need only god postion in your server
i can also make custom spells,add new commands like /rename,!sex...etc
and new npc like rebirth npc
if u need my help msg me at [email protected]
 
Back
Top