Added creatures & models

Added creatures & models in support for Horsefly Swamp Update.  Full compile.
This commit is contained in:
Jaysyn904
2023-08-10 23:50:38 -04:00
parent abae0284e0
commit 9448afd228
397 changed files with 53090 additions and 159 deletions

View File

@@ -42,7 +42,7 @@ void main()
{
//:: Declare major variables
object oCaster = OBJECT_SELF ; //:: Where the spell came from
object oTarget = GetSpellTargetObject(); //:: What the spell is aimed at
object oTarget = PRCGetSpellTargetObject(); //:: What the spell is aimed at
int nRaceType = MyPRCGetRacialType(oTarget);
int nChaMod = GetAbilityModifier(5, oCaster);

View File

@@ -8,8 +8,8 @@ void main()
{
object oPC = OBJECT_SELF;
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
object oItem = PRCGetSpellCastItem();
object oTarget = PRCGetSpellTargetObject();
string sGrapplerName = GetName(oPC);

View File

@@ -15,8 +15,8 @@ void main()
{
object oGGG = OBJECT_SELF;
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
object oItem = PRCGetSpellCastItem();
object oTarget = PRCGetSpellTargetObject();
string sID = GetObjectUUID(oGGG);
string sLeft = sID + "LeftClaw";

View File

@@ -18,8 +18,8 @@ void main()
{
object oGGG = OBJECT_SELF;
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
object oItem = PRCGetSpellCastItem();
object oTarget = PRCGetSpellTargetObject();
string sID = GetObjectUUID(oGGG);
int nDuration = 4;

View File

@@ -46,7 +46,7 @@ void DoGhoulBite(object oTarget, object oCaster)
void main()
{
object oTarget = GetSpellTargetObject();
object oTarget = PRCGetSpellTargetObject();
object oCaster = OBJECT_SELF;
DelayCommand(0.1,DoGhoulBite(oTarget,oCaster));

View File

@@ -35,9 +35,9 @@ void DoGhoulClaw(object oTarget, object oCaster)
void main()
{
object oTarget = GetSpellTargetObject();
object oTarget = PRCGetSpellTargetObject();
object oCaster = OBJECT_SELF;
DelayCommand(0.1,DoGhoulClaw(oTarget,oCaster));
}
}

View File

@@ -8,8 +8,8 @@ void main()
{
object oPC = OBJECT_SELF;
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
object oItem = PRCGetSpellCastItem();
object oTarget = PRCGetSpellTargetObject();
string sGrapplerName = GetName(oPC);

View File

@@ -7,7 +7,7 @@
#include "NW_I0_GENERIC"
#include "nw_i0_spells"
#include "nw_i0_plot"
#include "prc_inc_racial"
#include "prc_inc_spells"
void DoLevelDrain(object oTarget, object oCaster)
@@ -46,7 +46,7 @@ void main()
{
//:: Declare major variables
object oCaster = OBJECT_SELF ; //:: Where the spell came from
object oTarget = GetSpellTargetObject(); //:: What the spell is aimed at
object oTarget = PRCGetSpellTargetObject(); //:: What the spell is aimed at
int nRaceType = MyPRCGetRacialType(oTarget);
int nChaMod = GetAbilityModifier(5, oCaster);

View File

@@ -1,5 +1,5 @@
//::///////////////////////////////////////////////
//:: Actuvate Item Script
//:: Activate Item Script
//:: NW_S3_ActItem01
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
@@ -13,11 +13,13 @@
//:://////////////////////////////////////////////
//:: Modified by The DMFI Team to handle activation of DMFI Wands & Widgets
#include "prc_inc_spells"
void main()
{
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
location lLocal = GetSpellTargetLocation();
object oItem = PRCGetSpellCastItem();
object oTarget = PRCGetSpellTargetObject();
location lLocal = PRCGetSpellTargetLocation();
if (GetStringLeft(GetTag(oItem), 5) == "dmfi_" ||
GetStringLeft(GetTag(oItem), 8) == "hlslang_")

View File

@@ -7,7 +7,7 @@
#include "NW_I0_GENERIC"
#include "nw_i0_spells"
#include "nw_i0_plot"
#include "prc_inc_racial"
#include "prc_inc_spells"
void DoParalyze(object oTarget, object oCaster)
@@ -28,7 +28,7 @@ void main()
{
//:: Declare major variables
object oCaster = OBJECT_SELF ; //:: Where the spell came from
object oTarget = GetSpellTargetObject(); //:: What the spell is aimed at
object oTarget = PRCGetSpellTargetObject(); //:: What the spell is aimed at
int nRaceType = MyPRCGetRacialType(oTarget);
int nChaMod = GetAbilityModifier(5, oCaster);

View File

@@ -34,6 +34,7 @@
**************************************************/
#include "x2_inc_switches"
#include "prc_inc_spells"
const int PW_BITE_DC=22;
@@ -47,9 +48,9 @@ void main()
// * Note that this event fires for non PC creatures as well.
if (nEvent ==X2_ITEM_EVENT_ONHITCAST)
{
oItem = GetSpellCastItem(); // The item casting triggering this spellscript
oItem = PRCGetSpellCastItem(); // The item casting triggering this spellscript
object oSpellOrigin = OBJECT_SELF ;
object oSpellTarget = GetSpellTargetObject();
object oSpellTarget = PRCGetSpellTargetObject();
if(!ReflexSave(oSpellTarget, PW_BITE_DC))
{

View File

@@ -77,6 +77,30 @@ void NoFreeGear(object oNPC)
SetDroppableFlag(oWeapon, FALSE);
}
void Bullywug(object oNPC)
{
int nAppearance = Random(3) + 3053; // Randomly choose between 3053, 3054, and 3055
DelayCommand(0.1f, SetCreatureAppearanceType(oNPC, nAppearance));
/* switch(nRandom)
{
case 1:
{ nAppearance = 3053; break;} //:: Bullywug: Brown-Green* (baba yaga)
case 2:
{ nAppearance = 3054; break;} //:: Bullywug: Green* (baba yaga)
case 3:
{ nAppearance = 3055; break;} //:: Bullywug: Brown* (baba yaga)
}
DelayCommand(0.0f, SetCreatureAppearanceType(oNPC, nAppearance)); */
}
void main()
{
string sTag;
@@ -112,6 +136,14 @@ void main()
NoFreeGear(oNPC);
}
//:: Randomize Bullywug appearance
if(sResRef == "ra_bullywug001")
{
oNPC = OBJECT_SELF;
Bullywug(oNPC);
}
sTag=GetLocalString(OBJECT_SELF,"X3_HORSE_OWNER_TAG");
if (GetStringLength(sTag)>0)
{ // look for master

View File

@@ -13,8 +13,8 @@ void main()
{
//:: Declare major variables
object oNPC = OBJECT_SELF;
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
object oItem = PRCGetSpellCastItem();
object oTarget = PRCGetSpellTargetObject();
int oFort = GetFortitudeSavingThrow(oTarget);
int nDC = 10 + (GetHitDice(oNPC) / 2) + GetAbilityModifier(ABILITY_CONSTITUTION, oNPC);

View File

@@ -4,7 +4,8 @@
//:: Modified by: DM Heatstroke 01-04-11
//::
#include "NW_I0_SPELLS"
//#include "NW_I0_SPELLS"
#include "prc_inc_spells"
#include "nw_i0_plot"
void DoStrDamage(object oTarget, object oCaster)
@@ -59,7 +60,7 @@ void DoStrDamage(object oTarget, object oCaster)
void main()
{
object oTarget = GetSpellTargetObject();
object oTarget = PRCGetSpellTargetObject();
object oCaster = OBJECT_SELF;
/* int bIsPoisoned = GetLocalInt(oTarget,"IsPoisoned");

View File

@@ -106,7 +106,8 @@ string GetTemplateByCR(int nCR, string sGroupType)
default:
sRetTemplate = "";
break;
} }
}
}
else
{

View File

@@ -14,6 +14,7 @@
//:://////////////////////////////////////////////
#include "x0_i0_spells"
//#include "prc_inc_spells"
const int BEHOLDER_RAY_DEATH = 1;
const int BEHOLDER_RAY_TK = 2;
@@ -314,3 +315,5 @@ void BehDoFireBeam(int nRay, object oTarget)
}
//void main(){}

View File

@@ -18,7 +18,6 @@
#include "x2_inc_beholder"
void main()
{
int nApp = GetAppearanceType(OBJECT_SELF);

View File

@@ -25,8 +25,8 @@ void DoBeholderPetrify(int nDuration,object oSource, object oTarget, int nSpellI
void main()
{
int nSpell = GetSpellId();
object oTarget = GetSpellTargetObject();
int nSpell = PRCGetSpellId();
object oTarget = PRCGetSpellTargetObject();
int nSave, bSave;
int nSaveDC = 15;
float fDelay;