Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
/*:://////////////////////////////////////////////
|
|
//:: Spell Name Wish - On Heartbeat of Djinni
|
|
//:: Spell FileName PHS_S_WishC
|
|
//:://////////////////////////////////////////////
|
|
//:: Spell Effects Applied / Notes
|
|
//:://////////////////////////////////////////////
|
|
Heartbeat script of the Djinni.
|
|
|
|
Just checks for timestop. If none is applied, it destroys ourself, if we
|
|
have been here for 2 seconds or more.
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Jasperre
|
|
//::////////////////////////////////////////////*/
|
|
|
|
#include "PHS_INC_WISH"
|
|
|
|
void main()
|
|
{
|
|
// Get us
|
|
object oSelf = OBJECT_SELF;
|
|
|
|
// Gets set after 2 seconds to allow this to check properly.
|
|
if(!GetLocalInt(oSelf, "PHS_HEARTBEAT_VALID")) return;
|
|
|
|
// Check for time stop, if we havn't got it, we go, because something has
|
|
// removed it somehow (DM maybe?)
|
|
// * Also checks if wisher is still valid (not logged out etc.)
|
|
if(PHS_GetHasEffect(EFFECT_TYPE_TIMESTOP, oSelf) ||
|
|
!GetIsObjectValid(GetLocalObject(oSelf, "PHS_WISHER")))
|
|
{
|
|
PHS_CompletelyDestroyObject(oSelf);
|
|
}
|
|
}
|