Initial commit
Initial commit.
This commit is contained in:
14
_module/nss/spawn_percy.nss
Normal file
14
_module/nss/spawn_percy.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user