Initial Upload
Initial Upload
This commit is contained in:
23
_module/nss/onclose_water.nss
Normal file
23
_module/nss/onclose_water.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "nw_i0_plot"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastClosedBy();
|
||||
location lPC = GetLocation(oPC);
|
||||
effect eVis = EffectVisualEffect(VFX_FNF_NATURES_BALANCE);
|
||||
|
||||
if(HasItem(OBJECT_SELF, "watergem"))
|
||||
|
||||
{
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "guardianspirit", lPC);
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, GetLocation(oSpawn));
|
||||
DelayCommand(2.0,AssignCommand(oSpawn, ActionStartConversation(oPC, "ghost")));
|
||||
ExecuteScript("ele_destroy",OBJECT_SELF);
|
||||
return;
|
||||
|
||||
}
|
||||
else
|
||||
return;
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user