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.
This commit is contained in:
54
_module/nss/jw_barrel_smash.nss
Normal file
54
_module/nss/jw_barrel_smash.nss
Normal file
@@ -0,0 +1,54 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user