21 lines
722 B
Plaintext
21 lines
722 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetExitingObject();
|
||
|
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "dragoncall")== OBJECT_INVALID) return;
|
||
|
|
||
|
object oItem;
|
||
|
location lPC = GetLocation(oPC);
|
||
|
effect eVisual = EffectVisualEffect(VFX_FNF_SUNBEAM);
|
||
|
string sSoundName = "c_dragnold_bat2";
|
||
|
oItem = GetItemPossessedBy(oPC, "dragoncall");
|
||
|
|
||
|
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
|
||
|
DelayCommand(6.0, AssignCommand(oPC, SpeakString("What the hells that!!???", TALKVOLUME_TALK)));
|
||
|
AssignCommand(oPC, DelayCommand(7.0, PlaySound(sSoundName)));
|
||
|
DelayCommand(7.2, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual, oPC));
|
||
|
DelayCommand(7.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(105, DAMAGE_TYPE_FIRE, DAMAGE_POWER_NORMAL), oPC));
|
||
|
}
|