CreateGenericClassItem(object, object, int)

Creates a treasure item for wizards, sorcerers, clerics, monks, rogues and bards

void CreateGenericClassItem(
    object oTarget,
    object oAdventurer,
    int nSpecific = 0
);

Parameters

oTarget

Object to create item on.

oAdventurer

A player object

nSpecific

0 for generic, 1 for specific (Default: 0)


Description

this function just returns an item that is more appropriate for wizards, sorcerers, clerics, monks, rogues and bards. The function determines the class and level of the PC and then calls the appropriate CreateGeneric<CLASS>Weapon or the CreateSpecific<CLASS>Weapon.



Remarks

Found in nw_o2_coninclude.nss

This can be used to create the item in any object with an inventory.


Requirements

#include "nw_o2_coninclude"

Version

1.61

See Also

categories: Item Creation Functions


 author: Michael Nork, editor: Lilac Soul