Initial commit
Initial commit [v9.7]
This commit is contained in:
58
_module/nss/walk_away_roggrb.nss
Normal file
58
_module/nss/walk_away_roggrb.nss
Normal file
@@ -0,0 +1,58 @@
|
||||
#include "nw_i0_generic"
|
||||
#include "x0_i0_partywide"
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
int nInt;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
// Give 5 experience (to party) to the PC.
|
||||
GiveXPToAll(oPC, 5);
|
||||
|
||||
oTarget = GetWaypointByTag("WP_SPn_RoggorB");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "slayerthug", lTarget);
|
||||
oTarget = oSpawn;
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_SPn_RoggorB");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "slayerthug", lTarget);
|
||||
oTarget = oSpawn;
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_SPn_RoggorB");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "slayerthug", lTarget);
|
||||
oTarget = oSpawn;
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
oTarget = GetWaypointByTag("WP_SPn_RoggorB");
|
||||
lTarget = GetLocation(oTarget);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "slayerthug", lTarget);
|
||||
oTarget = oSpawn;
|
||||
SetIsTemporaryEnemy(oPC, oTarget);
|
||||
AssignCommand(oTarget, ActionAttack(oPC));
|
||||
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||||
|
||||
oTarget = GetObjectByTag("Roggor");
|
||||
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_SPn_RoggorB")));
|
||||
oTarget = GetObjectByTag("Roggor");
|
||||
|
||||
nInt = GetObjectType(oTarget);
|
||||
oTarget = GetObjectByTag("Roggor");
|
||||
DestroyObject(oTarget, 1.6);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user