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

Sudden Death Rune.

SnorkY

Veteran OT User
Joined
Nov 28, 2007
Messages
1,395
Reaction score
264
Hi, I have a problem with my sudden death runes.

I have tested for an hour now and can figure out why paladins SDS allmost does as much as when sorcs shoot SDS.

Where shall i change it?

I use SQL and here comes my SD script.

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -50, -1.7, 0)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 
Code:
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)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)
function onCastSpell(cid, var)
 return doCombat(cid, combat, var)
end

-1.3, -30, -1.8, 0 <- -1.3 represents the minimum damage and -1.8 represents the maximum. So the place where you see -1.3 must be lower than where you see -1.8
 
Ya thanks it workded :D

Can you please respond on my "house bug" thread in the same place as this thread is,

THANKS HERO :D
 
Back
Top