mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
610 B
610 B
Function: SetAdventureClass(spawn, value)
Description: Changes the Spawn(Player) class to the new value. Class list is available at https://wiki.eq2emu.com/ReferenceLists/ClassList
Parameters:
spawn(Spawn) - Spawn object representingspawn.value(int32) - Integer valuevalue.
Returns: None.
Example:
-- From ItemScripts/BardCertificationPapers.lua
StartDialogConversation(conversation, 2, Item, Player, "You are now known as \n\n"..GetName(Player).." the Bard.")
if GetClass(Player)== 1 or GetClass(Player)== 0 then
SetAdventureClass(Player,35)