Djinni Wiki
Advertisement

function LevelUpHenchman (object oCreature, int nClass, int bReadyAllSpells = FALSE)

Levels up a creature using default settings. If successfull it returns the level the creature now is, or 0 if it fails. If you want to give them a different level (i.e. Give a Fighter a level of Wizard) you can specify that in the nClass. However, if you specify a class to which the creature no package specified, they will use the default package for that class for their levelup choices. (i.e. no Barbarian Savage/Wizard Divination combinations). If you turn on bReadyAllSpells, all memorized spells will be ready to cast without resting.

  • Return type: int
  • Include file: nwscriptdefn
Advertisement