PoA_PRC8/module/nss/givestars.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

21 lines
341 B
Plaintext

//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
if (GetGold(oPC) >= 10000)
{
CreateItemOnObject("legendarystars1", oPC,500);
AssignCommand(oPC, TakeGoldFromCreature(10000, oPC, TRUE));
}
else
{
FloatingTextStringOnCreature("You do not have enough gold!", oPC);
}
}