Battledale_PRC8/_module/nss/jw_barrel_smash.nss
Jaysyn904 7b9e44ebbb 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.
2024-03-11 23:44:08 -04:00

55 lines
1.2 KiB
Plaintext

#include "NW_O2_CONINCLUDE"
#include "NW_I0_GENERIC"
#include "jw_privates_inc"
void main()
{
CreateObject(OBJECT_TYPE_CREATURE,"nw_btlfire",GetLocation(OBJECT_SELF));
object oObject=GetObjectByTag("PR_YW_Up");
AssignCommand(oObject,ActionCloseDoor(oObject));
DelayCommand(0.6,SetLocked(oObject,TRUE));
//////////////::////////////////////////////////////////////////////////////////////
//:: General Treasure Spawn Script
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Spawns in general purpose treasure, usable
by all classes.
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: February 26 2001
//:://////////////////////////////////////////////
object oLastOpener = GetLastOpener();
if (GetIsPC(oLastOpener))
{
SetTarget(oLastOpener);
SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);
}
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
{
return;
}
GenerateLowTreasure(oLastOpener, OBJECT_SELF);
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
if (GetIsPC(oLastOpener))
{
SetTarget(oLastOpener);
SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);
}
}