Jaysyn904 a0fa1baf2b Tweaked XP onEnter script
Tweaked XP onEnter script.  Updated release archive.
2024-01-26 10:05:19 -05:00

23 lines
459 B
Plaintext

#include "x0_i0_partywide"
void main()
{
//:: Declare major variables
object oPC = GetEnteringObject();
string sTag = GetTag(OBJECT_SELF);
int iXP = GetXP(oPC);
//:: XP boost is only availible to new characters
if (iXP > 0 ) return;
//:: Make sure they can only get the boost once
if (GetLocalInt(oPC, sTag) >= 1) return;
GiveXPToCreature(oPC, 60000);
//:: Set variable on PC for XP boost.
SetLocalInt(oPC, sTag, 1);
}