MMD_PRC8/_module/nss/spawn_percy.nss
Jaysyn904 adeff59f82 Initial commit
Initial commit.
2024-08-02 23:18:00 -04:00

15 lines
300 B
Plaintext

void main()
{
int iPercy = GetLocalInt(OBJECT_SELF,"percy");
object oPC = GetPCSpeaker();
location lPC = GetLocation(oPC);
int iLevel = GetHitDice(oPC);
if (iPercy != 1)
{
SetLocalInt(OBJECT_SELF,"percy",1);
CreateObject(OBJECT_TYPE_CREATURE,"percy",lPC,TRUE);
GiveXPToCreature(oPC,100*iLevel);
}
}