23 lines
459 B
Plaintext
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);
|
|
|
|
}
|