I am curious how we could make a party XP reward local? By that I mean localized to party members on a specific map, rather than being applied regardless of their location?
This is the script we currently use for one of these rewards. Any help would be appreciated.
#include "x0_i0_partywide"
void main()
{
object oPC = GetLastOpenedBy();
effect eEffect = EffectVisualEffect(VFX_FNF_IMPLOSION, FALSE);
location lLoc = GetLocation(OBJECT_SELF);
GiveXPToAll(oPC, 50000);
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eEffect, lLoc, 0.0f);
DestroyObject(OBJECT_SELF, 0.0f);
}





Retour en haut






