Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32043

[TFS 1.2] Outfit bonuses

$
0
0
inside of data/events/scripts/creature.lua (make sure onChangeOutfit is set to 1 in events.xml)
Lua:
function createBonusCondition(id, params)
    local condition = Condition(CONDITION_ATTRIBUTES, CONDITIONID_DEFAULT)
    condition:setParameter(CONDITION_PARAM_TICKS, -1)
    condition:setParameter(CONDITION_PARAM_SUBID, id)
    for i = 1, #params do
        local param = params[i].param
        local value = params[i].value
        condition:setParameter(param, value)
    end
    return...
[TFS 1.2] Outfit bonuses

Viewing all articles
Browse latest Browse all 32043

Trending Articles