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