Aantioch_Infernum/_module/nss/onclose_water.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

24 lines
568 B
Plaintext

#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;
}