Lankhmar_PRC8/_module/nss/enter_sp_slayer2.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

42 lines
886 B
Plaintext

#include "nw_i0_generic"
#include "x0_i0_partywide"
void main()
{
object oTarget;
object oSpawn;
location lTarget;
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "redcloakofpro")== OBJECT_INVALID)
return;
// Give 10 experience (to party) to the PC.
GiveXPToAll(oPC, 10);
oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "toughslayer3", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "toughslayer4", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
DestroyObject(OBJECT_SELF);
}