generated from Jaysyn/ModuleTemplate
177 lines
3.4 KiB
Plaintext
177 lines
3.4 KiB
Plaintext
void main()
|
|
{
|
|
|
|
object oItem;
|
|
object oPC = GetPCLevellingUp();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetHitDice(oPC) == 5)
|
|
{
|
|
oItem = GetItemPossessedBy(oPC, "Skeleton");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
CreateItemOnObject("skeleton2", oPC);
|
|
|
|
CreateItemOnObject("skelmage", oPC);
|
|
|
|
CreateItemOnObject("raiseclaygolem", oPC);
|
|
|
|
}
|
|
else
|
|
{
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetHitDice(oPC) == 10)
|
|
{
|
|
oItem = GetItemPossessedBy(oPC, "Skeleton2");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
oItem = GetItemPossessedBy(oPC, "SkelMage");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
CreateItemOnObject("skeleton3", oPC);
|
|
|
|
CreateItemOnObject("skelmage2", oPC);
|
|
}
|
|
else
|
|
{
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetHitDice(oPC) == 15)
|
|
{
|
|
oItem = GetItemPossessedBy(oPC, "Skeleton3");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
oItem = GetItemPossessedBy(oPC, "SkelMage2");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
CreateItemOnObject("skeleton4", oPC);
|
|
|
|
CreateItemOnObject("skelmage3", oPC);
|
|
|
|
CreateItemOnObject("necromaticregene", oPC);
|
|
}
|
|
else
|
|
{
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetHitDice(oPC) == 20)
|
|
{
|
|
oItem = GetItemPossessedBy(oPC, "Skeleton4");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
oItem = GetItemPossessedBy(oPC, "SkelMage3");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
CreateItemOnObject("skeleton5", oPC);
|
|
|
|
CreateItemOnObject("skelmage4", oPC);
|
|
|
|
CreateItemOnObject("ironmaiden", oPC);
|
|
}
|
|
else
|
|
{
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetHitDice(oPC) == 25)
|
|
{
|
|
oItem = GetItemPossessedBy(oPC, "SkelMage4");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
CreateItemOnObject("skelmage5", oPC);
|
|
}
|
|
else
|
|
{
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetHitDice(oPC) == 30)
|
|
{
|
|
|
|
CreateItemOnObject("raisefiregolem", oPC);
|
|
}
|
|
else
|
|
{
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC)== ALIGNMENT_EVIL)
|
|
{
|
|
if ((GetLevelByClass(CLASS_TYPE_SORCERER, oPC)>0)||
|
|
(GetLevelByClass(CLASS_TYPE_WIZARD, oPC)>0))
|
|
{
|
|
if (GetHitDice(oPC) == 40)
|
|
{
|
|
|
|
CreateItemOnObject("raisesteelgolem", oPC);
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|