54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
object oTarget;
|
|
object oSpawn;
|
|
location lTarget;
|
|
oTarget = GetWaypointByTag("wp_elfguy_01");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "elvendarman002", lTarget);
|
|
|
|
oTarget = GetWaypointByTag("wp_elfguy_02");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "elvendarman004", lTarget);
|
|
|
|
oTarget = GetWaypointByTag("wp_elfguy_03");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "elvendarman005", lTarget);
|
|
|
|
oTarget = GetWaypointByTag("wp_elfguy_04");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "elvendarman006", lTarget);
|
|
|
|
effect eEffect;
|
|
eEffect = EffectDamage(1000, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_NORMAL);
|
|
|
|
DelayCommand(8.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetObjectByTag("ELFTAB1")));
|
|
|
|
eEffect = EffectDamage(1000, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_NORMAL);
|
|
|
|
DelayCommand(10.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetObjectByTag("ELFTAB2")));
|
|
|
|
eEffect = EffectDamage(1000, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_NORMAL);
|
|
|
|
DelayCommand(12.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetObjectByTag("ELFTAB3")));
|
|
|
|
eEffect = EffectDamage(1000, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_NORMAL);
|
|
|
|
DelayCommand(14.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetObjectByTag("ELFTAB4")));
|
|
|
|
|
|
|
|
}
|
|
|