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

TFS 1.2 Mana Rune

Methemia

Member
Joined
Feb 1, 2015
Messages
60
Reaction score
9
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 900))

function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local mana_minimum = (level * 5) + (mlevel * 3) - 50
local mana_maximum = (level * 6) + (mlevel * 4)
local mana_add = math.random(mana_minimum, mana_maximum)

doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "mana...", TALKTYPE_ORANGE_1)
return TRUE
end
AAKpX2X.png

my server based in data pack TFS 1.1
help :(
 
CONDITION_EXHAUST does not exist in 1.x
Code:
CONDITION_NONE
CONDITION_POISON
CONDITION_FIRE
CONDITION_ENERGY
CONDITION_BLEEDING
CONDITION_HASTE
CONDITION_PARALYZE
CONDITION_OUTFIT
CONDITION_INVISIBLE
CONDITION_LIGHT
CONDITION_MANASHIELD
CONDITION_INFIGHT
CONDITION_DRUNK
CONDITION_EXHAUST_WEAPON
CONDITION_REGENERATION
CONDITION_SOUL
CONDITION_DROWN
CONDITION_MUTED
CONDITION_CHANNELMUTEDTICKS
CONDITION_YELLTICKS
CONDITION_ATTRIBUTES
CONDITION_FREEZING
CONDITION_DAZZLED
CONDITION_CURSED
CONDITION_EXHAUST_COMBAT
CONDITION_EXHAUST_HEAL
CONDITION_PACIFIED
CONDITION_SPELLCOOLDOWN
CONDITION_SPELLGROUPCOOLDOWN

Take your pick
 
CONDITION_EXHAUST_HEAL is what you are looking for. Also getConfigInfo does not exist in 1.x and I don't know what it should be so hopefully someone else knows :D
 
CONDITION_EXHAUST_HEAL is what you are looking for. Also getConfigInfo does not exist in 1.x and I don't know what it should be so hopefully someone else knows :D

current compat.lua on the git:
Code:
function getConfigInfo(info)
if type(info) ~= "string" then
return nil
end
dofile('config.lua')
return _G[info]
end
 
Back
Top