• 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 spells tfs 1.2

abdala ragab

Veteran OT User
Joined
Aug 18, 2018
Messages
544
Solutions
14
Reaction score
406
Location
gamelaots.online
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 40)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 39)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionParam(condition, CONDITION_PARAM_MANAGAIN, 800)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 90733) == 3 then
strg = getPlayerStorageValue(cid, 90733)
doSendAnimatedText(getPlayerPosition(cid), "(Max)", 35)
    return doCombat(cid, combat, var)
end
end
This text works but does not show a word (Max) i use tfs 1.2 I wish you could help me
 
The function doSendAnimatedText was removed from newer tibia protocols but if you are using some downgraded version ,try to change the order of parameters
Lua:
doSendAnimatedText(message, position, color)
 
Back
Top