RoT2_PRC8/_module/nss/aw_egg.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

14 lines
590 B
Plaintext

void main()
{
object oPC;
object oTarget;
oTarget = GetItemActivatedTarget();
int Dur=3;
int nInt;
nInt = GetObjectType(oTarget);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_GREEN_MEDIUM), GetLocation(oTarget));
DelayCommand(0.2,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_YELLOW_SMALL), GetLocation(oTarget)));
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_IMP_HEAD_ACID), GetLocation(oTarget), RoundsToSeconds(Dur));
SpeakString(GetName(OBJECT_SELF)+" has thrown an egg at "+GetName(oTarget));
}