Battledale_PRC8/_module/nss/fr_pax_clonegold.nss

16 lines
426 B
Plaintext
Raw Normal View History

void main()
{
int nNth=1;
while(GetNearestObject(OBJECT_TYPE_CREATURE, OBJECT_SELF, nNth)!=OBJECT_INVALID)
{
if(GetIsPC(GetNearestObject(OBJECT_TYPE_CREATURE, OBJECT_SELF, nNth))!=TRUE)
{
int nGold = GetGold(GetNearestObject(OBJECT_TYPE_CREATURE, OBJECT_SELF, nNth));
TakeGoldFromCreature(nGold, GetNearestObject(OBJECT_TYPE_CREATURE, OBJECT_SELF, nNth), TRUE);
}
nNth++;
}
}