69 lines
2.0 KiB
Plaintext
69 lines
2.0 KiB
Plaintext
|
|
||
|
#include "NW_i0_Plot"
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
object oItem;
|
||
|
|
||
|
oItem = GetItemPossessedBy(oPC, "food_cherie");
|
||
|
|
||
|
int stackSize = GetItemStackSize(oItem);
|
||
|
|
||
|
if ( stackSize == 1 )
|
||
|
{
|
||
|
DestroyObject( oItem );
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
stackSize -= 1;
|
||
|
SetItemStackSize( oItem, stackSize );
|
||
|
}
|
||
|
|
||
|
AssignCommand(oPC, TakeGoldFromCreature(3000, oPC, TRUE));
|
||
|
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
CreateItemOnObject("arrowsofice", oPC);
|
||
|
|
||
|
}
|
||
|
|