Aantioch_Infernum/_module/nss/dragon_enter21.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

25 lines
637 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
if (GetItemPossessedBy(oPC, "dragoncall")== OBJECT_INVALID)
{
string oDeny= "You see a dragon circling high above, He notices you but makes no attempt to land.........";
SendMessageToPC(oPC, oDeny);
return;
}
{
effect eArrive = EffectAppear();
object oWP = GetObjectByTag("wp_landing");
object oFlyer = GetObjectByTag("DRAGON_FLYER");
AssignCommand( oFlyer, ClearAllActions());
DelayCommand( 0.5, ApplyEffectToObject( DURATION_TYPE_TEMPORARY, eArrive, oFlyer, 6.0 ));
AssignCommand( oFlyer, ActionJumpToObject( oWP ));
}
}