No categories assigned

LUA:SetAgi

LUA Functions: SetAgi()

Adds the given amount of agility to the given spawn


Syntax

SetAgi(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn who's agility we want to modify
param2 is the amount to change agility by


Usage

function hailed(NPC, Spawn)
    SetAgi(Spawn, -10)
end

When the NPC is hailed the player will loose 10 agility