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