42 lines
776 B
Plaintext
42 lines
776 B
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oTarget;
|
||
|
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
//if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
//int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
||
|
|
||
|
//if (DoOnce==TRUE) return;
|
||
|
|
||
|
//SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
||
|
|
||
|
//oTarget = GetObjectByTag("seachest2");
|
||
|
|
||
|
//object oItem;
|
||
|
//oItem = GetFirstItemInInventory(oPC);
|
||
|
|
||
|
//while (GetIsObjectValid(oItem))
|
||
|
// {
|
||
|
// AssignCommand(oTarget, ActionTakeItem(oItem, oPC));
|
||
|
|
||
|
// oItem = GetNextItemInInventory(oPC);
|
||
|
// }
|
||
|
|
||
|
//int nInt;
|
||
|
//for (nInt=0; nInt<NUM_INVENTORY_SLOTS; nInt++)
|
||
|
// {
|
||
|
// oItem = GetItemInSlot(nInt, oPC);
|
||
|
|
||
|
// if (GetIsObjectValid(oItem))
|
||
|
// AssignCommand(oTarget, ActionTakeItem(oItem, oPC));
|
||
|
// }
|
||
|
|
||
|
AssignCommand(oTarget, TakeGoldFromCreature(GetGold(oPC), oPC));
|
||
|
|
||
|
}
|
||
|
|