Battledale_PRC8/_module/nss/nk_fp_gong.nss
Jaysyn904 7b9e44ebbb 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.
2024-03-11 23:44:08 -04:00

16 lines
642 B
Plaintext

void main()
{
location lImpSummon = GetLocation(GetWaypointByTag("NK_FP_WP_IMPSUMMON"));
location lImpWP = GetLocation(GetWaypointByTag("NK_FP_WP_IMPWALK"));
object oImp = GetNearestObjectByTag("NK_FP_IMPGUARD", OBJECT_SELF, 1);
PlaySound("as_cv_gongring3");
if (oImp == OBJECT_INVALID)
{
CreateObject(OBJECT_TYPE_CREATURE, "nk_fp_impguard", lImpSummon, TRUE);
oImp = GetNearestObjectByTag("NK_FP_IMPGUARD", OBJECT_SELF, 1);
AssignCommand(oImp, ActionMoveToLocation(lImpWP, TRUE));
DelayCommand(1.5, (AssignCommand(oImp, ActionSpeakString("Who go there?", TALKVOLUME_TALK))));
}
}