i like your kitty pick, ehm i really want them cause i will make a pvp E server so normal items will be worthless:/be careful with what your doing, you dont want to unbalance the vocations.
knight will have the uh, mage the sd, pally i will create something to them that gives heal & manaBut u still want knights and paladins to have the same ratio of fairness, if your making PVPE just make all runes and pots infinite
yes but how do i make it depending on the ml then?just copy normal sd files and change the formula
function onGetFormulaValues(cid, level, maglevel)
min = maglevel*7
max = maglevel*10
return -min, -max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
gonna test it out and see ^^ thx anywayThe script is in spells. You can use a callback like this, instead of setCombatFormula.
Code:function onGetFormulaValues(cid, level, maglevel) min = maglevel*7 max = maglevel*10 return -min, -max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000) -- time in seconds x1000
function onUse(cid, item, fromPosition, itemEx, toPosition)
local manamax = getPlayerMaxMana(cid)
local min = .15 -- this means 3% minimum healing
local max = .18 -- this means 5% maximum healing
local mana_add = math.random((manamax * (min/10)), (manamax * (max/10)))
if(hasCondition(cid, CONDITION_EXHAUST)) then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return doPlayerSendCancel(cid, "You are exhausted")
end
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(cid), 28)
doSendAnimatedText(getPlayerPosition(cid),""..mana_add.."", 204)
doAddCondition(cid, exhaust)
return true
end
thx natalaaction.xml
<action itemid="runeid" event="script" value="other/Manarune.lua"/>
data/action/scripts/others
Manarune.lua
LUA:local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000) -- time in seconds x1000 function onUse(cid, item, fromPosition, itemEx, toPosition) local manamax = getPlayerMaxMana(cid) local min = .15 -- this means 3% minimum healing local max = .18 -- this means 5% maximum healing local mana_add = math.random((manamax * (min/10)), (manamax * (max/10))) if(hasCondition(cid, CONDITION_EXHAUST)) then doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) return doPlayerSendCancel(cid, "You are exhausted") end doPlayerAddMana(cid, mana_add) doSendMagicEffect(getThingPos(cid), 28) doSendAnimatedText(getPlayerPosition(cid),""..mana_add.."", 204) doAddCondition(cid, exhaust) return true end
Created my own but i have one qeustion when it means like 40- 60- is it better damage or what?you still need Super sd?
Created my own but i have one qeustion when it means like 40- 60- is it better damage or what?
you mean in this COMBAT_FORMULA_LEVELMAGIC, -1, -50, -1, -40, 5, 5, 4, 7)?you need to change magic level so its will be strong