24 lines
568 B
Plaintext
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;
|
|
|
|
|
|
}
|