generated from Jaysyn/ModuleTemplate
47 lines
957 B
Plaintext
47 lines
957 B
Plaintext
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.6
|
|
|
|
For download info, please visit:
|
|
http://www.lilacsoul.revility.com */
|
|
|
|
//Put this OnEnter
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
|
|
|
if (DoOnce==TRUE) return;
|
|
|
|
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetItemPossessedBy(oPC, "Skeleton")== OBJECT_INVALID)
|
|
{
|
|
if (GetItemPossessedBy(oPC, "Skeleton2")== OBJECT_INVALID)
|
|
{
|
|
if (GetItemPossessedBy(oPC, "Skeleton3")== OBJECT_INVALID)
|
|
{
|
|
if (GetItemPossessedBy(oPC, "Skeleton4")== OBJECT_INVALID)
|
|
{
|
|
if (GetItemPossessedBy(oPC, "Skeleton5")== OBJECT_INVALID)
|
|
{
|
|
CreateItemOnObject("skeleton", oPC);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|