Hi all,
The script I made from the script wizard doesn’t take the xps I ask it to take from the PC. Can someone tell me why?
//:: FileName at_516
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 2
//:://////////////////////////////////////////////
void main()
{
{
object vase2 = GetObjectByTag("vase2");
object oPlayer = GetPCSpeaker();
effect eVis = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY);
{
GiveXPToCreature(GetPCSpeaker(), -500);
DelayCommand(0.0, ActionSpeakString("Ah....your lifeforce is so sweet!"));
DelayCommand(0.0, ActionCastFakeSpellAtObject(SPELL_NEGATIVE_ENERGY_BURST, oPlayer));
DelayCommand(2.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eVis, oPlayer, 0.5));
DelayCommand(2.5, AssignCommand(oPlayer, JumpToObject(vase2)));
}
}
}```