18 lines
209 B
Plaintext
18 lines
209 B
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetLastUsedBy();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (GetGold(oPC) < 3)
|
||
|
return;
|
||
|
|
||
|
CreateItemOnObject("pulfood005", oPC);
|
||
|
|
||
|
AssignCommand(oPC, TakeGoldFromCreature(3, oPC, TRUE));
|
||
|
|
||
|
}
|
||
|
|