Added Mine & Caverns raise & lower functionality
Added Mine & Caverns raise & lower functionality. Revamped Level 1 events to match PnP. Updated Level 1: Core. Added new Footcatcher trap type. Added Underwater heartbeat to Glop Lake Underwater. Full compile.
This commit is contained in:
24
_module/nss/at_spn_grn_slime.nss
Normal file
24
_module/nss/at_spn_grn_slime.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
//:: at_spn_grn_slime
|
||||
//::
|
||||
//:: Spawns a small green slime
|
||||
|
||||
#include "nw_i0_generic"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oSpawn;
|
||||
effect eVFX;
|
||||
object oSelf = OBJECT_SELF;
|
||||
|
||||
// Get the PC who is in this conversation.
|
||||
object oPC = GetPCSpeaker();
|
||||
string sName = GetName(oPC);
|
||||
string sTag = GetTag(oSelf);
|
||||
|
||||
// Spawn Small Green Slime.
|
||||
eVFX = EffectVisualEffect(VFX_COM_BLOOD_CRT_GREEN);
|
||||
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "zep_greenslimes", GetLocation(oSelf));
|
||||
AssignCommand(oSpawn, DetermineCombatRound(oPC));
|
||||
DelayCommand(0.3f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
|
||||
SetLocalInt(oPC, "FoundSlime"+sTag, 1);
|
||||
}
|
Reference in New Issue
Block a user