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

Raise sd damage and lower paralyze mana cost

zednem

New Member
Joined
Nov 15, 2008
Messages
108
Reaction score
0
There is a way to a item raise the damage of sd in 30% or lower paralyze mana cost to 600, but that item just have the duration of 1 min and it will be rechargeble(looks like soft boots).
 
sudden death.lua
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function getCombatFormulas(cid, lv, maglv)
	local formula_min = -((lv*0.25 + maglv*3) * 1.7)
	local formula_max = -((lv*0.25 + maglv*3) * 2.1)

	if(formula_max < formula_min) then
		local tmp = formula_max
		formula_max = formula_min
		formula_min = tmp
	end
	return formula_min, formula_max
end

function getCombatFormulas(cid, lv, maglv)
	local formula_min = -((lv*0.25 + maglv*3) * 1.7)*1.3
	local formula_max = -((lv*0.25 + maglv*3) * 2.1)*1.3

	if(formula_max < formula_min) then
		local tmp = formula_max
		formula_max = formula_min
		formula_min = tmp
	end
	return formula_min, formula_max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")
setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "Formula")

function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 2270, 1) then
   	return doCombat(cid, combat1, var)
else
	return doCombat(cid, combat, var)
end
end

movements.xml
PHP:
<movement type="Equip" item="7697" slot="ring" event="script" value="ring.lua" />
<movement type="DeEquip" item="7697" slot="ring" event="script" value="ring.lua" />

ring.lua
Lua:
function onEquip(cid, item, slot)
      setPlayerStorageValue(cid,2270,1)
  return TRUE
end
function onDeEquip(cid, item, slot)
      setPlayerStorageValue(cid,2270,-1)
  return TRUE
end

Someone can probably do better than this, but imo this'll do the job ;)
 
Back
Top