• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved How to add delay to ssa??

Xarly

Member
Joined
Mar 9, 2015
Messages
360
Reaction score
20
Hello guys some one can help me, how i can add a little delay of 2 sec to the ssa?? thanks in advance ppl! if some one can help Rep++!! thanks im using tfs 1.0

EDIT: Used this script the ssa got exhausted but the problem its the ssa never break if i use the script >.< if someone can help! thanks @Limos if u can help thanks bro!

Code:
local condition = Condition(CONDITION_EXHAUST_COMBAT)
condition:setParameter(CONDITION_PARAM_TICKS, 2 * 1000)

function onEquip(cid, item, slot)
local player = Player(cid)
if(player:getCondition(CONDITION_EXHAUST_COMBAT) == nil) then
return true
end
return false
end


function onDeEquip(cid, item, slot)
local player = Player(cid)
player:addCondition(condition)
return true
end


Code:
<movevent event="Equip" itemid="2197" slot="necklace" script="ssa.lua"/>
<movevent event="DeEquip" itemid="2197" slot="necklace" script="ssa.lua"/>
 
Last edited:
Back
Top