generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
46
_module/nss/hasuzoarmorperce.nss
Normal file
46
_module/nss/hasuzoarmorperce.nss
Normal file
@@ -0,0 +1,46 @@
|
||||
//Goes OnPerceived of a creature
|
||||
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetLastPerceived();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (!GetLastPerceptionSeen()) return;
|
||||
if (GetItemPossessedBy(oPC, "UzoArmor")!= OBJECT_INVALID)
|
||||
{
|
||||
ActionSpeakString("Hello, Sir.");
|
||||
|
||||
}
|
||||
else if (GetItemPossessedBy(oPC, "UzoArmor")== OBJECT_INVALID)
|
||||
{
|
||||
ActionSpeakString("Hello Bastard.");
|
||||
|
||||
}
|
||||
|
||||
else if (GetItemPossessedBy(oPC, "RuneKnightArmor")!= OBJECT_INVALID)
|
||||
{
|
||||
ActionSpeakString("Hello Fellow Rune Knight.");
|
||||
|
||||
}
|
||||
else if (GetItemPossessedBy(oPC, "RuneKnightArmor")== OBJECT_INVALID)
|
||||
{
|
||||
ActionSpeakString("Die Guardiana Scum!");
|
||||
|
||||
object oTarget = OBJECT_SELF;
|
||||
|
||||
AdjustReputation(oPC, oTarget, -100);
|
||||
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user