• 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 Custom runes

Pete Doherty

New Member
Joined
Sep 12, 2008
Messages
60
Reaction score
0
I am trying to add the old damage system to 8.6. And as I find the new system to be a bit too tricky to modify, because of its added parameters, I am looking for a code more like this:

Code:
function onGetFormulaValues(Cid, level, magic) 
min = (level * 2 + magic * 3) * 2.0 
max = (level * 2 + magic * 3) * 2.8
end

Is this possible? My code above makes 0 dmg.

EDIT: I'm using TFS 0.4.
 
Last edited:
try something like this

function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local mana_minimum = (level * 1.3) + (mlevel * 2) - 50
local mana_maximum = (level * 1.5) + (mlevel * 2)

I use this for my mana rune, should be the same if you know how to change scripts
 
Back
Top