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

Cant get this spell to show icons

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,003
Solutions
5
Reaction score
56
Cant get this spell to show icon 'strengthened' tried adding condition:setParameter(CONDITION_PARAM_SHOWICON, true) and redoing most of the condition, but still didnt worked

Lua:
local exhaust = {}

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 28)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
 
local condition = createConditionObject(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 30000)
condition:setParameter(CONDITION_PARAM_SKILL_SWORD, 40)
condition:setParameter(CONDITION_PARAM_SKILL_AXE, 40)
condition:setParameter(CONDITION_PARAM_SKILL_DISTANCE, 40)
condition:setParameter(CONDITION_PARAM_SKILL_SHIELD, 40)
condition:setParameter(CONDITION_PARAM_SKILL_FISHING, 40)
condition:setParameter(CONDITION_PARAM_SKILL_CLUB, 25)
condition:setParameter(CONDITION_PARAM_STAT_MAXHITPOINTS, 10000)
condition:setParameter(CONDITION_PARAM_STAT_MAXMANAPOINTS, 10000)
condition:setParameter(CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)
 
function onCastSpell(cid, var)
    local cur_time, playerid = os.mtime(), cid:getId()
    if not exhaust[playerid] then
        exhaust[playerid] = 0
    end
    if exhaust[playerid] > cur_time then
        local next_time = (exhaust[playerid] - cur_time) / 1000
        doPlayerSendCancel(cid, "You are exhausted.")
        return false
    end
    exhaust[playerid] = cur_time + 30000
    combat:execute(cid, var)
    return true
end
 
Back
Top