2021-08-29 23:34:48 -04:00
|
|
|
// prc_rest,x2_mod_def_rest
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// This script has been auto-generated by HakInstaller to call
|
|
|
|
// multiple handlers for the onplayerrest event.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
ExecuteScript("prc_rest", OBJECT_SELF);
|
|
|
|
ExecuteScript("x2_mod_def_rest", OBJECT_SELF);
|
2023-09-23 22:02:32 -04:00
|
|
|
|
|
|
|
// Find the nearest summoned Efreeti with the specified tag
|
|
|
|
object oSummonedEfreeti = GetNearestObjectByTag("SUM_EFREETI001");
|
|
|
|
|
|
|
|
// Check if the summoned Efreeti exists and is valid
|
|
|
|
if (GetIsObjectValid(oSummonedEfreeti))
|
|
|
|
{
|
|
|
|
// Destroy the summoned Efreeti immediately
|
|
|
|
DestroyObject(oSummonedEfreeti, 0.0f);
|
|
|
|
}
|
|
|
|
|
2021-08-29 23:34:48 -04:00
|
|
|
}
|