No categories assigned
LUA:SetAdventureClass
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SetAdventureClass()
Sets the class of the given spawn
Syntax
SetAdventureClass(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int8)
- param1 is the spawn who's class we want to change
- param2 is the ID of the class we want to set the spawn to
Usage
function hailed(NPC, Spawn)
SetAdventureClass(Spawn, 1)
end
When hailed the players class will be changed to Fighter