Updated scripts to use MyPRCGetRacialType
Updated scripts to use MyPRCGetRacialType. Full compile.
This commit is contained in:
@@ -28,17 +28,19 @@ or in a module is very subjective. Some will consider this amount far too gener
|
||||
and some too greedy.
|
||||
*/
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
void main()
|
||||
{
|
||||
if(d100()>66) return;
|
||||
object oCreature = OBJECT_SELF;
|
||||
object oMarker;
|
||||
if(GetRacialType(oCreature) == RACIAL_TYPE_ANIMAL
|
||||
|| GetRacialType(oCreature) == RACIAL_TYPE_VERMIN) return;
|
||||
if(MyPRCGetRacialType(oCreature) == RACIAL_TYPE_ANIMAL
|
||||
|| MyPRCGetRacialType(oCreature) == RACIAL_TYPE_VERMIN) return;
|
||||
float fChallengeFactor = GetChallengeRating(oCreature) * 30.0;
|
||||
float fFactor = IntToFloat(Random(5) + 2);
|
||||
int iTreasure = FloatToInt(fChallengeFactor / fFactor);
|
||||
int iType = GetRacialType(oCreature);
|
||||
int iType = MyPRCGetRacialType(oCreature);
|
||||
CreateItemOnObject("NW_IT_GOLD001", oCreature, iTreasure);
|
||||
if(iType == RACIAL_TYPE_UNDEAD || iType == RACIAL_TYPE_ABERRATION)
|
||||
oMarker = CreateItemOnObject("NW_IT_MSMLMISC21", oCreature, 1);
|
||||
|
Reference in New Issue
Block a user