Finished PRC8 integration
Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
This commit is contained in:
@@ -13,13 +13,14 @@
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "jw_exp_giver"
|
||||
#include "jw_custom_spells"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//Declare major variables
|
||||
object oCaster = OBJECT_SELF;
|
||||
int nMetaMagic = GetMetaMagicFeat();
|
||||
int nMetaMagic = PRCGetMetaMagicFeat();
|
||||
float fDelay;
|
||||
effect eExplode = EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES);
|
||||
// effect eVis = EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES);
|
||||
@@ -69,5 +70,5 @@ sObject="ah_banering9";
|
||||
CreateItemOnObject(sObject,OBJECT_SELF,1);
|
||||
|
||||
givexp(OBJECT_SELF,GetLastKiller());
|
||||
|
||||
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||||
}
|
||||
|
@@ -40,5 +40,5 @@ void main()
|
||||
|
||||
|
||||
givexp(OBJECT_SELF,GetLastKiller());
|
||||
|
||||
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||||
}
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
// Start The Visual Effects
|
||||
effect vfx = EffectVisualEffect(VFX_DUR_PARALYZED);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, vfx, OBJECT_SELF);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
// Start The Visual Effects
|
||||
effect vfx = EffectVisualEffect(VFX_DUR_PROT_SHADOW_ARMOR);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, vfx, OBJECT_SELF);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
// Start The Visual Effects
|
||||
effect vfx = EffectVisualEffect(VFX_DUR_MIND_AFFECTING_FEAR);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, vfx, OBJECT_SELF);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
// Start The Visual Effects
|
||||
effect vfx = EffectVisualEffect(VFX_DUR_PROT_SHADOW_ARMOR);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, vfx, OBJECT_SELF);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
// Start The Visual Effects
|
||||
effect vfx = EffectVisualEffect(VFX_DUR_GHOSTLY_VISAGE);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, vfx, OBJECT_SELF);
|
||||
|
@@ -18,6 +18,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
int nRandom;
|
||||
int nEffect;
|
||||
|
@@ -37,6 +37,7 @@
|
||||
#include "dmfi_plychat_inc"
|
||||
#include "dmfi_plchlishk_i"
|
||||
#include "dmfi_getln_inc"
|
||||
#include "prc_inc_util"
|
||||
|
||||
int iNightMusic;
|
||||
int iDayMusic;
|
||||
@@ -3701,7 +3702,7 @@ void DoRestFunction(int iRest, object oUser)
|
||||
while (GetIsObjectValid(oLoop))
|
||||
{
|
||||
if (oArea == GetArea(oLoop))
|
||||
ForceRest(oLoop);
|
||||
PRCForceRest(oLoop);
|
||||
oLoop = GetNextPC();
|
||||
}
|
||||
}
|
||||
@@ -4142,7 +4143,7 @@ void DoRestFunction(int iRest, object oUser)
|
||||
oLoop = GetFirstPC();
|
||||
while (GetIsObjectValid(oLoop))
|
||||
{
|
||||
ForceRest(oLoop);
|
||||
PRCForceRest(oLoop);
|
||||
oLoop = GetNextPC();
|
||||
}
|
||||
break;
|
||||
|
@@ -4,6 +4,7 @@
|
||||
//::
|
||||
//:: Useful functions for the DM's Helper
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
void dmwand_AbilityCheck(int nAbility, int nSecret = TRUE)
|
||||
{
|
||||
@@ -585,7 +586,7 @@ void dmwand_PlayerListConv(string sParams)
|
||||
|
||||
string dmwand_Race(object oEntity)
|
||||
{
|
||||
switch (GetRacialType(oEntity))
|
||||
switch (MyPRCGetRacialType(oEntity))
|
||||
{
|
||||
case RACIAL_TYPE_ALL: return "All"; break;
|
||||
case RACIAL_TYPE_ANIMAL: return "Animal"; break;
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -2,10 +2,21 @@
|
||||
//:: FileName fr_halfelf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 21.12.2002 0:29:22
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is a half-elf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if(!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_HALFELF))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -60,3 +71,4 @@ int StartingConditional()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
*/
|
@@ -5,27 +5,28 @@
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 26.12.2003 22:31:19
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
//accept a dwarf
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DWARF)
|
||||
if(MyPRCGetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DWARF)
|
||||
return TRUE;
|
||||
|
||||
//test lore for others
|
||||
else{
|
||||
else
|
||||
{
|
||||
//int iDice = d20(1);
|
||||
int iLore = GetSkillRank(SKILL_LORE, GetPCSpeaker());
|
||||
if(iLore >= 15)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
SpeakString("[You do not understand the dwarven language well enough to read complicated content the book.]");
|
||||
return FALSE;
|
||||
}
|
||||
{
|
||||
SpeakString("[You do not understand the dwarven language well enough to read the content of this book.]");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@@ -5,7 +5,22 @@
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 3.1.2004 20:17:29
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is a dwarf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if(!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_DWARF))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -61,4 +76,4 @@ int StartingConditional()
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
} */
|
||||
|
@@ -1,11 +1,25 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName fr_if_elf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 28.3.2003 20:01:39
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is an elf or half-elf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if (!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF
|
||||
|| MyPRCGetRacialType(oPC) == RACIAL_TYPE_HALFELF))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -57,4 +71,4 @@ int StartingConditional()
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
} */
|
||||
|
@@ -19,6 +19,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
AssignCommand(OBJECT_SELF, PlayAnimation(ANIMATION_LOOPING_WORSHIP, 0.7, 600.0));
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_GHOST_TRANSPARENT),OBJECT_SELF);
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_FROST_L),OBJECT_SELF);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_GHOST_TRANSPARENT),OBJECT_SELF);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_GHOST_SMOKE_2),OBJECT_SELF);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_GHOSTLY_VISAGE),OBJECT_SELF);
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_GLOW_GREEN),OBJECT_SELF);
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_ICESKIN),OBJECT_SELF);
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_ICESKIN),OBJECT_SELF);
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_GLOW_BLUE),OBJECT_SELF);
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
|
@@ -12,7 +12,7 @@
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Oct 16, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_inc_spells"
|
||||
#include "NW_I0_GENERIC"
|
||||
|
||||
void main()
|
||||
@@ -47,7 +47,7 @@ void main()
|
||||
}
|
||||
else if(GetIsEnemy(GetLastPerceived()))
|
||||
{
|
||||
if(!GetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
if(!PRCGetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
{
|
||||
SetFacingPoint(GetPosition(GetLastPerceived()));
|
||||
SpeakString("NW_I_WAS_ATTACKED", TALKVOLUME_SILENT_TALK);
|
||||
|
@@ -1,11 +1,25 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName fr_race_elf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 21.12.2002 0:16:20
|
||||
//:: FileName fr_race_dwarf
|
||||
//::
|
||||
//:: Dupe of: fr_if_dwarf02
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is a dwarf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if(!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_DWARF))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -59,4 +73,4 @@ int StartingConditional()
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
} */
|
||||
|
@@ -1,11 +1,25 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName fr_race_elf
|
||||
//::
|
||||
//:: Dupe of: frost_elf
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 21.12.2002 0:16:20
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is an elf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if (!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -59,4 +73,4 @@ int StartingConditional()
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
} */
|
||||
|
@@ -10,16 +10,17 @@
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Jan 22, 2002
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
int nSpell = GetSpellId();
|
||||
object oTarget = GetSpellTargetObject();
|
||||
int nSpell = PRCGetSpellId();
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_POLYMORPH);
|
||||
effect ePoly;
|
||||
int nPoly;
|
||||
int nMetaMagic = GetMetaMagicFeat();
|
||||
int nMetaMagic = PRCGetMetaMagicFeat();
|
||||
int nDuration = GetLevelByClass(CLASS_TYPE_DRUID);
|
||||
//Enter Metamagic conditions
|
||||
if (nMetaMagic == METAMAGIC_EXTEND)
|
||||
|
@@ -16,7 +16,9 @@
|
||||
#include "jw_privates_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -2,61 +2,17 @@
|
||||
//:: FileName frost_elf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 16.9.2002 21:05:18
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is an elf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Reject player races
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DWARF)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GNOME)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFELF)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFLING)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFORC)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMAN)
|
||||
return FALSE;
|
||||
if (!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Reject other races
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ABERRATION)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ANIMAL)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_BEAST)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_CONSTRUCT)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DRAGON)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELEMENTAL)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_FEY)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GIANT)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_GOBLINOID)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_MAGICAL_BEAST)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_MONSTROUS)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_ORC)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_OUTSIDER)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_REPTILIAN)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_SHAPECHANGER)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_UNDEAD)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_VERMIN)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
@@ -2,13 +2,21 @@
|
||||
//:: FileName frost_not_elf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 16.9.2002 21:08:20
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns FALSE if the player is an elf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Reject player races
|
||||
if(MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* // Reject player races
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELF)
|
||||
return FALSE;
|
||||
|
||||
@@ -48,5 +56,4 @@ int StartingConditional()
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_VERMIN)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
return TRUE; */
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -1,4 +1,6 @@
|
||||
#include "prc_inc_spells"
|
||||
#include "NW_I0_SPELLS"
|
||||
|
||||
void main()
|
||||
{
|
||||
if (GetLocalInt(OBJECT_SELF,"GZ_OBJECT_DETONATING") == TRUE)
|
||||
@@ -71,7 +73,7 @@ void main()
|
||||
nDamage = (d6(3)*nArmed)+5;
|
||||
nDamage=nDamage/FloatToInt(fDistance);
|
||||
//Adjust the damage based on the Reflex Save, Evasion and Improved Evasion.
|
||||
nDamage = GetReflexAdjustedDamage(nDamage, oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_FIRE);
|
||||
nDamage = PRCGetReflexAdjustedDamage(nDamage, oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_FIRE);
|
||||
//Set the damage effect
|
||||
eDam = EffectDamage(nDamage, DAMAGE_TYPE_FIRE);
|
||||
if(nDamage > 0)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
#include "prc_inc_racial"
|
||||
|
||||
void DoSmoke()
|
||||
{
|
||||
effect eSmoke = EffectVisualEffect(VFX_FNF_SMOKE_PUFF);
|
||||
@@ -13,9 +15,9 @@ void DoFlee()
|
||||
{
|
||||
if ((!GetIsPC(oTarget)) && GetLocalInt(oTarget,"GZ_CRE_PKEGFLEE")!=TRUE)
|
||||
{
|
||||
if (GetRacialType(oTarget) == RACIAL_TYPE_HUMAN || GetRacialType(oTarget) == RACIAL_TYPE_DWARF || GetRacialType(oTarget) == RACIAL_TYPE_ELF || GetRacialType(oTarget) == RACIAL_TYPE_FEY ||
|
||||
GetRacialType(oTarget) == RACIAL_TYPE_GNOME || GetRacialType(oTarget) == RACIAL_TYPE_HALFELF || GetRacialType(oTarget) == RACIAL_TYPE_HALFLING ||
|
||||
GetRacialType(oTarget) == RACIAL_TYPE_HALFORC || GetRacialType(oTarget) == RACIAL_TYPE_OUTSIDER)
|
||||
if (MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HUMAN || MyPRCGetRacialType(oTarget) == RACIAL_TYPE_DWARF || MyPRCGetRacialType(oTarget) == RACIAL_TYPE_ELF || MyPRCGetRacialType(oTarget) == RACIAL_TYPE_FEY ||
|
||||
MyPRCGetRacialType(oTarget) == RACIAL_TYPE_GNOME || MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HALFELF || MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HALFLING ||
|
||||
MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HALFORC || MyPRCGetRacialType(oTarget) == RACIAL_TYPE_OUTSIDER)
|
||||
{
|
||||
int nRand=d8();
|
||||
switch(nRand)
|
||||
|
@@ -11,7 +11,7 @@
|
||||
//:: Created On: 06-13-2002
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "prc_inc_spells"
|
||||
#include "nw_i0_generic"
|
||||
|
||||
/*
|
||||
@@ -61,7 +61,7 @@ int GZHasNegativeEffects(object oPC)
|
||||
|
||||
int GZGetIsBlindOrDeaf(object oPC)
|
||||
{
|
||||
int bBlind = ((GetHasEffect(EFFECT_TYPE_BLINDNESS,oPC) == TRUE) || (GetHasEffect(EFFECT_TYPE_DEAF,oPC)==TRUE));
|
||||
int bBlind = ((PRCGetHasEffect(EFFECT_TYPE_BLINDNESS,oPC) == TRUE) || (PRCGetHasEffect(EFFECT_TYPE_DEAF,oPC)==TRUE));
|
||||
return bBlind;
|
||||
}
|
||||
|
||||
@@ -73,37 +73,37 @@ int GZGetIsDamaged(object oPC)
|
||||
|
||||
int GZGetHasAbilityDamage(object oPC)
|
||||
{
|
||||
int bAbilityDmg = (GetHasEffect(EFFECT_TYPE_ABILITY_DECREASE,oPC) == TRUE);
|
||||
int bAbilityDmg = (PRCGetHasEffect(EFFECT_TYPE_ABILITY_DECREASE,oPC) == TRUE);
|
||||
return bAbilityDmg;
|
||||
}
|
||||
|
||||
int GZGetIsPoisoned(object oPC)
|
||||
{
|
||||
int bPoisoned = (GetHasEffect(EFFECT_TYPE_POISON,oPC) == TRUE);
|
||||
int bPoisoned = (PRCGetHasEffect(EFFECT_TYPE_POISON,oPC) == TRUE);
|
||||
return bPoisoned;
|
||||
}
|
||||
|
||||
int GZGetIsDiseased(object oPC)
|
||||
{
|
||||
int bDiseased = (GetHasEffect(EFFECT_TYPE_DISEASE,oPC) == TRUE);
|
||||
int bDiseased = (PRCGetHasEffect(EFFECT_TYPE_DISEASE,oPC) == TRUE);
|
||||
return bDiseased;
|
||||
}
|
||||
|
||||
int GZGetIsCursed(object oPC)
|
||||
{
|
||||
int bCursed = (GetHasEffect(EFFECT_TYPE_CURSE,oPC) == TRUE);
|
||||
int bCursed = (PRCGetHasEffect(EFFECT_TYPE_CURSE,oPC) == TRUE);
|
||||
return bCursed;
|
||||
}
|
||||
|
||||
int GZGetIsPolymorphed(object oPC)
|
||||
{
|
||||
int bPoly = (GetHasEffect(EFFECT_TYPE_POLYMORPH,oPC) == TRUE);
|
||||
int bPoly = (PRCGetHasEffect(EFFECT_TYPE_POLYMORPH,oPC) == TRUE);
|
||||
return bPoly;
|
||||
}
|
||||
|
||||
int GZHasNegativeLevels(object oPC)
|
||||
{
|
||||
int bLvl = (GetHasEffect(EFFECT_TYPE_NEGATIVELEVEL,oPC) == TRUE);
|
||||
int bLvl = (PRCGetHasEffect(EFFECT_TYPE_NEGATIVELEVEL,oPC) == TRUE);
|
||||
return bLvl;
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
// Modified by Celedhros, 29 July 2002
|
||||
// Added PHB deviation rules, enhanced visual effects, and various bug fixes
|
||||
|
||||
#include "prc_inc_racial"
|
||||
#include "hc_text_grenade"
|
||||
|
||||
void main()
|
||||
@@ -100,7 +100,7 @@ void main()
|
||||
DestroyObject(oItem);
|
||||
return;
|
||||
}
|
||||
if(sNM == "hc_holywater" && GetRacialType(oTarget) != RACIAL_TYPE_UNDEAD)
|
||||
if(sNM == "hc_holywater" && MyPRCGetRacialType(oTarget) != RACIAL_TYPE_UNDEAD)
|
||||
{
|
||||
SendMessageToPC(oPC, NOEFFECT);
|
||||
DestroyObject(oItem);
|
||||
@@ -169,7 +169,7 @@ void main()
|
||||
lTarget = Location(oDeviation,vDeviation,fDeviation);
|
||||
}
|
||||
// Apply visual effects at target location
|
||||
if (sNM == "hc_holywater" && GetRacialType(oTarget) == RACIAL_TYPE_UNDEAD && touchAttack == 1)
|
||||
if (sNM == "hc_holywater" && MyPRCGetRacialType(oTarget) == RACIAL_TYPE_UNDEAD && touchAttack == 1)
|
||||
{
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, lTarget);
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eExplode, lTarget);
|
||||
@@ -202,7 +202,7 @@ void main()
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eSplash, oSplashTarget);
|
||||
SignalEvent(oSplashTarget, EventSpellCastAt(oPC, SPELL_MAGIC_MISSILE));
|
||||
oSplashTarget = GetNextObjectInShape(SHAPE_SPHERE, nSplashRange, lTarget, TRUE, OBJECT_TYPE_CREATURE);
|
||||
} else if (sNM == "hc_holywater" && GetRacialType(oTarget) == RACIAL_TYPE_UNDEAD){
|
||||
} else if (sNM == "hc_holywater" && MyPRCGetRacialType(oTarget) == RACIAL_TYPE_UNDEAD){
|
||||
// Apply holy water splash damage to valid target in radius and get next target
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eSplash, oSplashTarget);
|
||||
SignalEvent(oSplashTarget, EventSpellCastAt(oPC, SPELL_MAGIC_MISSILE));
|
||||
|
@@ -16,5 +16,5 @@ DelayCommand(1.6,DeathEffect(OBJECT_SELF));
|
||||
|
||||
|
||||
givexp(OBJECT_SELF,GetLastKiller());
|
||||
|
||||
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
||||
}
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -1,3 +1,5 @@
|
||||
#include "prc_inc_racial"
|
||||
|
||||
location GetLocationAboveAndInFrontOf(object oPC, float fDist, float fHeight)
|
||||
{
|
||||
float fDistance = -fDist;
|
||||
@@ -29,7 +31,7 @@ void SmokePipe(object oActivator)
|
||||
// Set height based on race and gender
|
||||
if (GetGender(oActivator) == GENDER_MALE)
|
||||
{
|
||||
switch (GetRacialType(oActivator))
|
||||
switch (MyPRCGetRacialType(oActivator))
|
||||
{
|
||||
case RACIAL_TYPE_HUMAN:
|
||||
case RACIAL_TYPE_HALFELF:
|
||||
@@ -62,7 +64,7 @@ void SmokePipe(object oActivator)
|
||||
else
|
||||
{
|
||||
// FEMALES
|
||||
switch (GetRacialType(oActivator))
|
||||
switch (MyPRCGetRacialType(oActivator))
|
||||
{
|
||||
case RACIAL_TYPE_HUMAN:
|
||||
case RACIAL_TYPE_HALFELF:
|
||||
@@ -121,7 +123,7 @@ void SmokePipe(object oActivator)
|
||||
AssignCommand(oActivator, ActionDoCommand(ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SMOKE_PUFF), lAboveHead)));
|
||||
|
||||
// if female, turn head to left
|
||||
if ((GetGender(oActivator) == GENDER_FEMALE) && (GetRacialType(oActivator) != RACIAL_TYPE_DWARF))
|
||||
if ((GetGender(oActivator) == GENDER_FEMALE) && (MyPRCGetRacialType(oActivator) != RACIAL_TYPE_DWARF))
|
||||
AssignCommand(oActivator, ActionPlayAnimation(ANIMATION_FIREFORGET_HEAD_TURN_LEFT, 1.0, 5.0));
|
||||
|
||||
// funky effect
|
||||
|
@@ -1,8 +1,10 @@
|
||||
//////////////////////////////////
|
||||
/// Script: jth_dmwand
|
||||
/// Purpose: include file for a DM's Helper wand
|
||||
/// Author: Dopple (dopple@why-bother-me.com
|
||||
//: Script: jth_dmwand
|
||||
//: Purpose: include file for a DM's Helper wand
|
||||
//: Author: Dopple (dopple@why-bother-me.com
|
||||
//////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
// function for OnActivateItem
|
||||
object oMySpeaker = GetLastSpeaker();
|
||||
object oMyTarget = GetLocalObject(oMySpeaker, "dmwandtarget");
|
||||
@@ -230,7 +232,7 @@ string Alignment(object oEntity)
|
||||
string Race(object oEntity)
|
||||
{
|
||||
// Returns striong version of objects race
|
||||
switch (GetRacialType(oEntity))
|
||||
switch (MyPRCGetRacialType(oEntity))
|
||||
{
|
||||
case RACIAL_TYPE_ALL: return "All"; break;
|
||||
case RACIAL_TYPE_ANIMAL: return "Animal"; break;
|
||||
|
@@ -15,6 +15,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
SetLocalInt(OBJECT_SELF,"njw_current",3);
|
||||
SetLocalInt(OBJECT_SELF,"njw_completed",2);
|
||||
SetLocalInt(OBJECT_SELF,"njw_steps",0);
|
||||
|
@@ -23,6 +23,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
object oObject;
|
||||
int nCounter;
|
||||
|
@@ -12,7 +12,10 @@
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{ object oObject;
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
object oObject;
|
||||
int nCounter;
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -15,6 +15,8 @@ int GetFactionEmpskill (object oPC);
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
if (GetIsPC(GetMaster(OBJECT_SELF)))
|
||||
{
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
/////
|
||||
void jw_woken();
|
||||
@@ -415,7 +416,7 @@ object oTarget;
|
||||
if ((!IsInConversation(OBJECT_SELF))&&(!GetIsInCombat(OBJECT_SELF)))
|
||||
{
|
||||
// if I am asleep
|
||||
if (GetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
if (PRCGetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
{
|
||||
// get the nearest enemy creature to me
|
||||
oTarget = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC);
|
||||
@@ -467,7 +468,7 @@ int nFoundchair=0;
|
||||
{
|
||||
|
||||
|
||||
if (GetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
if (PRCGetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
{
|
||||
effect eSleep = GetFirstEffect(OBJECT_SELF);
|
||||
// scroll through my current effects
|
||||
@@ -829,7 +830,7 @@ void jw_forcewake()
|
||||
object oTarget;
|
||||
|
||||
// if I am asleep
|
||||
if (GetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
if (PRCGetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
{
|
||||
|
||||
effect eSleep = GetFirstEffect(OBJECT_SELF);
|
||||
|
@@ -23,6 +23,8 @@ DelayCommand(0.5,BurningObject(OBJECT_SELF));
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 50) //boulder smash
|
||||
|
@@ -23,6 +23,8 @@ DelayCommand(0.5,BurningObject(OBJECT_SELF));
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
|
||||
object oObject;
|
||||
string sString;
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -15,6 +15,7 @@
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "nw_i0_spells"
|
||||
#include "jw_privates_inc"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void BurningObject(object oTarget)
|
||||
{
|
||||
@@ -24,6 +25,8 @@ DelayCommand(0.5,BurningObject(OBJECT_SELF));
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
@@ -94,7 +97,7 @@ void main()
|
||||
nAmount = 15;
|
||||
}
|
||||
int nDamage = nAmount * 10;
|
||||
if (GetMetaMagicFeat() == METAMAGIC_EXTEND)
|
||||
if (PRCGetMetaMagicFeat() == METAMAGIC_EXTEND)
|
||||
{
|
||||
nDuration *= 2;
|
||||
}
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -15,6 +15,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
object oObject;
|
||||
effect eEffect;
|
||||
|
@@ -5,11 +5,13 @@
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 13/08/2002 15:46:13
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFORC)
|
||||
if(MyPRCGetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HALFORC)
|
||||
return FALSE;
|
||||
|
||||
// Reject other races
|
||||
|
@@ -5,13 +5,25 @@
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 27/08/2002 01:36:24
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_class_const"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
int iBard = GetLevelByClass(CLASS_TYPE_BARD, oPC) +
|
||||
GetLevelByClass(CLASS_TYPE_HARPER, oPC) +
|
||||
GetLevelByClass(CLASS_TYPE_DIRGESINGER, oPC) +
|
||||
GetLevelByClass(CLASS_TYPE_DRAGONSONG_LYRIST, oPC) +
|
||||
GetLevelByClass(CLASS_TYPE_SUBLIME_CHORD, oPC) +
|
||||
GetLevelByClass(CLASS_TYPE_VIRTUOSO, oPC);
|
||||
|
||||
// Restrict based on the player's class
|
||||
int iPassed = 0;
|
||||
if(GetLevelByClass(CLASS_TYPE_BARD, GetPCSpeaker()) >= 1)
|
||||
|
||||
if(iBard >= 1)
|
||||
iPassed = 1;
|
||||
|
||||
if(iPassed == 0)
|
||||
return FALSE;
|
||||
|
||||
|
@@ -5,13 +5,25 @@
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 16/03/2003 17:00:27
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_class_const"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
int iRogue = GetLevelByClass(CLASS_TYPE_ROGUE, oPC)
|
||||
+ GetLevelByClass(CLASS_TYPE_SCOUT, oPC)
|
||||
+ GetLevelByClass(CLASS_TYPE_BEGUILER, oPC)
|
||||
+ GetLevelByClass(CLASS_TYPE_NINJA, oPC)
|
||||
+ GetLevelByClass(CLASS_TYPE_FACTOTUM, oPC)
|
||||
+ GetLevelByClass(CLASS_TYPE_PSYCHIC_ROGUE, oPC);
|
||||
|
||||
// Restrict based on the player's class
|
||||
int iPassed = 0;
|
||||
if(GetLevelByClass(CLASS_TYPE_ROGUE, GetPCSpeaker()) >= 1)
|
||||
|
||||
if(iRogue >= 1)
|
||||
iPassed = 1;
|
||||
|
||||
if(iPassed == 0)
|
||||
return FALSE;
|
||||
|
||||
|
@@ -15,6 +15,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -1,11 +1,24 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName jw_chk_isdwarf
|
||||
//::
|
||||
//:: Dupe of: fr_race_dwarf
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 20/04/2003 15:56:25
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is a dwarf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if(!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_DWARF))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -60,3 +73,4 @@ int StartingConditional()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
*/
|
@@ -1,11 +1,56 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName jw_chk_not_dwarf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 20/04/2003 19:14:24
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns FALSE if PC is a dwarf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Reject other races
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ABERRATION)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ANIMAL)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_BEAST)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_CONSTRUCT)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DRAGON)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELEMENTAL)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_FEY)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GIANT)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_GOBLINOID)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_MAGICAL_BEAST)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_MONSTROUS)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_ORC)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_OUTSIDER)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_REPTILIAN)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_SHAPECHANGER)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_UNDEAD)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_VERMIN)
|
||||
return FALSE;
|
||||
|
||||
if(MyPRCGetRacialType(oPC) == RACIAL_TYPE_DWARF)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -49,4 +94,4 @@ int StartingConditional()
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
} */
|
||||
|
@@ -1,11 +1,26 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName jw_chkelfhalfelf
|
||||
//::
|
||||
//:: Dupe of: fr_if_elf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 11/10/2002 19:05:09
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is an elf or half-elf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if (!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF
|
||||
|| MyPRCGetRacialType(oPC) == RACIAL_TYPE_HALFELF))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -58,3 +73,4 @@ int StartingConditional()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
*/
|
@@ -1,11 +1,31 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName jw_chkelfhalfelf
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 11/10/2002 19:05:09
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is an elf or half-elf
|
||||
//:: or has a Lore of 15 ranks or more.
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if (GetSkillRank(SKILL_LORE, oPC) > 14)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_ELF
|
||||
|| MyPRCGetRacialType(oPC) == RACIAL_TYPE_HALFELF))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
if (GetSkillRank(SKILL_LORE,GetPCSpeaker())>14)
|
||||
@@ -64,3 +84,4 @@ int StartingConditional()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
*/
|
@@ -1,11 +1,57 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName jw_chknothuman
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 11/10/2002 19:23:01
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is not a human
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if (!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_HUMAN))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Reject other races
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ABERRATION)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ANIMAL)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_BEAST)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_CONSTRUCT)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_DRAGON)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_ELEMENTAL)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_FEY)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_GIANT)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_GOBLINOID)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_MAGICAL_BEAST)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_MONSTROUS)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_ORC)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_OUTSIDER)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_HUMANOID_REPTILIAN)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_SHAPECHANGER)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_UNDEAD)
|
||||
return FALSE;
|
||||
if(GetRacialType(GetPCSpeaker()) == RACIAL_TYPE_VERMIN)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -50,3 +96,4 @@ int StartingConditional()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
*/
|
@@ -15,6 +15,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -17,6 +17,7 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
SetLocalInt(OBJECT_SELF,"njw_current",3);
|
||||
SetLocalInt(OBJECT_SELF,"njw_completed",2);
|
||||
|
@@ -1,11 +1,23 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName jw_conisdwarf
|
||||
//::
|
||||
//:: Dupe of: fr_if_dwarf02
|
||||
//::
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 04/08/2002 10:39:31
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_racial"
|
||||
|
||||
//:: Returns TRUE if PC is a dwarf
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if(!(MyPRCGetRacialType(oPC) == RACIAL_TYPE_DWARF))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* int StartingConditional()
|
||||
{
|
||||
|
||||
// Reject player races
|
||||
@@ -60,3 +72,4 @@ int StartingConditional()
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
*/
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -1,5 +1,7 @@
|
||||
|
||||
#include "NW_I0_SPELLS"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
// The creature running this script tries to use a medicine bag on oTarget
|
||||
void medicinebag(object oTarget);
|
||||
// Paladin uses holy symbol. nLevel is the paladin level
|
||||
@@ -442,7 +444,7 @@ void cascade(object oTarget)
|
||||
if (!ScrollResist(OBJECT_SELF, oFirstTarget))
|
||||
{
|
||||
//Adjust damage via Reflex Save or Evasion or Improved Evasion
|
||||
nDamStrike = GetReflexAdjustedDamage(nDamage, oFirstTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
nDamStrike = PRCGetReflexAdjustedDamage(nDamage, oFirstTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
//Set the damage effect for the first target
|
||||
eDamage = EffectDamage(nDamStrike, DAMAGE_TYPE_FIRE);
|
||||
//Apply damage to the first target and the VFX impact.
|
||||
@@ -478,7 +480,7 @@ void cascade(object oTarget)
|
||||
nDamage = d6(nCasterLevel);
|
||||
|
||||
//Adjust damage via Reflex Save or Evasion or Improved Evasion
|
||||
nDamStrike = GetReflexAdjustedDamage(nDamage, oTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
nDamStrike = PRCGetReflexAdjustedDamage(nDamage, oTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
//Apply the damage and VFX impact to the current target
|
||||
eDamage = EffectDamage(nDamStrike, DAMAGE_TYPE_FIRE);
|
||||
if(nDamStrike > 0) //age > 0)
|
||||
@@ -578,7 +580,7 @@ void minorcascade(object oTarget)
|
||||
if (!ScrollResist(OBJECT_SELF, oFirstTarget))
|
||||
{
|
||||
//Adjust damage via Reflex Save or Evasion or Improved Evasion
|
||||
nDamStrike = GetReflexAdjustedDamage(nDamage, oFirstTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
nDamStrike = PRCGetReflexAdjustedDamage(nDamage, oFirstTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
//Set the damage effect for the first target
|
||||
eDamage = EffectDamage(nDamStrike, DAMAGE_TYPE_FIRE);
|
||||
//Apply damage to the first target and the VFX impact.
|
||||
@@ -614,7 +616,7 @@ void minorcascade(object oTarget)
|
||||
nDamage = d6(nCasterLevel);
|
||||
|
||||
//Adjust damage via Reflex Save or Evasion or Improved Evasion
|
||||
nDamStrike = GetReflexAdjustedDamage(nDamage, oTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
nDamStrike = PRCGetReflexAdjustedDamage(nDamage, oTarget, 24, SAVING_THROW_TYPE_FIRE);
|
||||
//Apply the damage and VFX impact to the current target
|
||||
eDamage = EffectDamage(nDamStrike, DAMAGE_TYPE_FIRE);
|
||||
if(nDamStrike > 0) //age > 0)
|
||||
@@ -704,19 +706,19 @@ void garrote(object oTarget, int nStrength)
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetRacialType(oTarget)==RACIAL_TYPE_UNDEAD)
|
||||
if (MyPRCGetRacialType(oTarget)==RACIAL_TYPE_UNDEAD)
|
||||
{
|
||||
DelayCommand(fDelay,FloatingTextStringOnCreature("Undead cannot be strangled",OBJECT_SELF));
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetRacialType(oTarget)==RACIAL_TYPE_ELEMENTAL)
|
||||
if (MyPRCGetRacialType(oTarget)==RACIAL_TYPE_ELEMENTAL)
|
||||
{
|
||||
DelayCommand(fDelay,FloatingTextStringOnCreature("Elementals cannot be strangled",OBJECT_SELF));
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetRacialType(oTarget)==RACIAL_TYPE_CONSTRUCT)
|
||||
if (MyPRCGetRacialType(oTarget)==RACIAL_TYPE_CONSTRUCT)
|
||||
{
|
||||
DelayCommand(fDelay,FloatingTextStringOnCreature("Constructs cannot be strangled",OBJECT_SELF));
|
||||
return;
|
||||
@@ -949,26 +951,26 @@ void blindust(object oVictim)
|
||||
{
|
||||
|
||||
// Dont have any effect on Undead/Magical Beasts/Elementals and Constructs
|
||||
if(GetRacialType(oVictim) == RACIAL_TYPE_UNDEAD)
|
||||
if(MyPRCGetRacialType(oVictim) == RACIAL_TYPE_UNDEAD)
|
||||
{
|
||||
|
||||
SendMessageToPC(oRogue, "The dust has no effect on this kind of target");
|
||||
|
||||
return;
|
||||
}
|
||||
if(GetRacialType(oVictim) == RACIAL_TYPE_MAGICAL_BEAST)
|
||||
if(MyPRCGetRacialType(oVictim) == RACIAL_TYPE_MAGICAL_BEAST)
|
||||
{
|
||||
SendMessageToPC(oRogue, "The dust has no effect on this kind of target");
|
||||
|
||||
return;
|
||||
}
|
||||
if(GetRacialType(oVictim) == RACIAL_TYPE_ELEMENTAL)
|
||||
if(MyPRCGetRacialType(oVictim) == RACIAL_TYPE_ELEMENTAL)
|
||||
{
|
||||
SendMessageToPC(oRogue, "The dust has no effect on this kind of target");
|
||||
|
||||
return;
|
||||
}
|
||||
if(GetRacialType(oVictim) == RACIAL_TYPE_CONSTRUCT)
|
||||
if(MyPRCGetRacialType(oVictim) == RACIAL_TYPE_CONSTRUCT)
|
||||
{
|
||||
SendMessageToPC(oRogue, "The dust has no effect on this kind of target");
|
||||
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -15,6 +15,8 @@
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nEvent = GetUserDefinedEventNumber();
|
||||
if (nEvent == 7777)
|
||||
{ SetCommandable(TRUE);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -18,6 +18,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
SetStartLocation();
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
|
||||
object oObject;
|
||||
string sString;
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
|
||||
object oObject;
|
||||
string sString;
|
||||
|
@@ -14,6 +14,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
object oObject;
|
||||
int nCounter;
|
||||
int nIdx;
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_GHOSTLY_PULSE),OBJECT_SELF);
|
||||
SetStartLocation();
|
||||
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
object oObject;
|
||||
int nCounter;
|
||||
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
//// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
@@ -16,6 +16,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -15,6 +15,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
/// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
|
||||
//SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user