PoA_PRC8/_module/nss/givestars.nss

21 lines
341 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//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);
}
}