Lankhmar_PRC8/_module/nss/ent_take_sechest.nss

42 lines
776 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
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));
}