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.
This commit is contained in:
15
_module/nss/nk_fp_gong.nss
Normal file
15
_module/nss/nk_fp_gong.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
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))));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user