HiddenTradition_PRC8/_module/nss/ro_dei_hermes.nss
2024-06-20 15:47:42 -04:00

24 lines
504 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
SetDeity(oPC, "Hermes");
//Visual effects can't be applied to waypoints, so if it is a WP
//apply to the WP's location instead
int nInt;
nInt = GetObjectType(oPC);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL), oPC);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL), GetLocation(oPC));
CreateItemOnObject("rodofhermes", oPC);
}