Initial Upload
Initial Upload
This commit is contained in:
29
_module/nss/svirf_hostile_ck.nss
Normal file
29
_module/nss/svirf_hostile_ck.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "nw_i0_generic"
|
||||
#include "prc_inc_racial"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastPerceived();
|
||||
object oTarget = OBJECT_SELF;
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (!GetLastPerceptionSeen()) return;
|
||||
|
||||
if ((MyPRCGetRacialType(oPC)==RACIAL_TYPE_DWARF)||
|
||||
(MyPRCGetRacialType(oPC)==RACIAL_TYPE_HALFLING)||
|
||||
(MyPRCGetRacialType(oPC)==RACIAL_TYPE_GNOME))
|
||||
{
|
||||
string sDeny="hello friend";
|
||||
ActionSpeakString(sDeny);
|
||||
}
|
||||
else
|
||||
{
|
||||
AdjustReputation(oPC, oTarget, -100);
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_HOSTILE);
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user