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"/>
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: