MMD_PRC8/_module/nss/spawn_percy.nss

15 lines
300 B
Plaintext
Raw Normal View History

2024-08-02 23:18:00 -04:00
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);
}
}