Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
75
_module/nss/jw_halfling_usd.nss
Normal file
75
_module/nss/jw_halfling_usd.nss
Normal file
@@ -0,0 +1,75 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Custom User Defined Event
|
||||
//:: FileName
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By:
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
#include "jw_custom_spells"
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "jw_privates_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if(nUser == 1002) // PERCEIVE
|
||||
{
|
||||
object oPC=GetLastPerceived();
|
||||
|
||||
if ((GetIsPC(oPC))&&(GetRacialType(oPC)!=RACIAL_TYPE_HALFLING))
|
||||
{
|
||||
SetIsTemporaryEnemy(oPC,OBJECT_SELF,TRUE,600.0);
|
||||
if (!GetIsFighting(OBJECT_SELF))
|
||||
{
|
||||
DetermineCombatRound(oPC);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else if(nUser == 1003) // END OF COMBAT
|
||||
{
|
||||
if ((GetLocalInt(OBJECT_SELF,"donegarrote")!=1)&&(GetLevelByClass(CLASS_TYPE_ROGUE,OBJECT_SELF)>1)&&(d3()==1))
|
||||
{
|
||||
object oDamager=GetVictim();
|
||||
if (GetObjectSeen(oDamager))
|
||||
{
|
||||
SetFacingPoint(GetPosition(oDamager));
|
||||
garrote(oDamager, 1);
|
||||
SetLocalInt(OBJECT_SELF,"donegarrote",1);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(nUser == 1004) // ON DIALOGUE
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1005) // ATTACKED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1006) // DAMAGED
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1007) // DEATH
|
||||
{
|
||||
|
||||
}
|
||||
else if(nUser == 1008) // DISTURBED
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user