Fixed missing Factions on Animated Statues
Fixed missing Factions on Animated Statues. Added XP to next level for lvl 40+ characters. Added Dragon AI for CODI Core AI. Tweaked Beholders & some Dragons to use CODI Core AI. Fixed CODI Core NPC onSPawn script to run PRC scripts properly. Full compile. Updated release archive.
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
#include "prc_inc_util"
|
||||
|
||||
|
||||
void ActionDoLevelUp(object oCreature, int iLevels);
|
||||
int LevelMob(object oCreature, int iLevels);
|
||||
int GetPackage(int iClass);
|
||||
void ActionDoLevelUp(object oCreature, int iLevels);
|
||||
|
||||
|
||||
void ActionDoLevelUp(object oCreature, int iLevels)
|
||||
{
|
||||
@@ -13,35 +9,38 @@ void ActionDoLevelUp(object oCreature, int iLevels)
|
||||
|
||||
int LevelMob(object oCreature, int iLevels)
|
||||
{
|
||||
int iNewLevel;
|
||||
int iIndex;
|
||||
int iClass;
|
||||
int iPackage;
|
||||
int iNewLevel;
|
||||
int iIndex;
|
||||
int iClass;
|
||||
int iPackage;
|
||||
|
||||
if (GetClassByPosition(2,oCreature) == CLASS_TYPE_INVALID)
|
||||
{
|
||||
iClass = GetClassByPosition(1,oCreature);
|
||||
iPackage =PACKAGE_INVALID;
|
||||
} else {
|
||||
iClass = CLASS_TYPE_INVALID;
|
||||
iPackage =PACKAGE_INVALID;
|
||||
}
|
||||
if (GetClassByPosition(2,oCreature) == CLASS_TYPE_INVALID)
|
||||
{
|
||||
iClass = GetClassByPosition(1,oCreature);
|
||||
iPackage =PACKAGE_INVALID;
|
||||
}
|
||||
else
|
||||
{
|
||||
iClass = CLASS_TYPE_INVALID;
|
||||
iPackage =PACKAGE_INVALID;
|
||||
}
|
||||
|
||||
iIndex = 1;
|
||||
while (iIndex <= iLevels)
|
||||
{
|
||||
iNewLevel=LevelUpHenchman(oCreature,iClass,TRUE,iPackage);
|
||||
iIndex++;
|
||||
}
|
||||
iIndex = 1;
|
||||
|
||||
while (iIndex <= iLevels)
|
||||
{
|
||||
iNewLevel=LevelUpHenchman(oCreature,iClass,TRUE,iPackage);
|
||||
iIndex++;
|
||||
}
|
||||
|
||||
//Force Rest to mem spells
|
||||
PRCForceRest(oCreature);
|
||||
//Force Rest to mem spells
|
||||
ForceRest(oCreature);
|
||||
|
||||
//Give more treasure to be lvl appropriate
|
||||
//rem this out cuz too much code is running and getting error
|
||||
//CTG_GenerateNPCTreasure(TREASURE_TYPE_MONSTER, oCreature);
|
||||
//Give more treasure to be lvl appropriate
|
||||
//rem this out cuz too much code is running and getting error
|
||||
//CTG_GenerateNPCTreasure(TREASURE_TYPE_MONSTER, oCreature);
|
||||
|
||||
return iNewLevel;
|
||||
return iNewLevel;
|
||||
}
|
||||
|
||||
//Setup Random Packages, note that Wizards won't get random packages
|
||||
@@ -168,7 +167,5 @@ switch (iClass)
|
||||
break;
|
||||
}
|
||||
|
||||
return iPackage;
|
||||
}
|
||||
|
||||
//:: void main (){}
|
||||
return iPackage;
|
||||
}
|
Reference in New Issue
Block a user