About: Destroy complete inventory   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Destroys all items (including equipped) and gold on a PC.

AttributesValues
rdfs:label
  • Destroy complete inventory
rdfs:comment
  • Destroys all items (including equipped) and gold on a PC.
  • This destroy complete inventory script destroys all items (including equipped items) and gold on a player character (PC). This can be used to cause all PCs to start on an even footing. This script is configured for use in an OnEnter or OnClientEnter event handler. /****************************** * This script clears the inventory of the entering player character. * It is suitable for use in an OnEnter or OnClientEnter event. *******************************/ void main() {}
dcterms:subject
abstract
  • This destroy complete inventory script destroys all items (including equipped items) and gold on a player character (PC). This can be used to cause all PCs to start on an even footing. This script is configured for use in an OnEnter or OnClientEnter event handler. /****************************** * This script clears the inventory of the entering player character. * It is suitable for use in an OnEnter or OnClientEnter event. *******************************/ void main() {int nSlot; object oPC = GetEnteringObject(); // Change this line for use in other events. // Make sure oPC is a PC (not necessary in a module's OnClientEnter). if ( !GetIsPC(oPC) ) return; // Destroy the items in the main inventory. object oItem = GetFirstItemInInventory(oPC); while ( oItem != OBJECT_INVALID ) { DestroyObject(oItem); oItem = GetNextItemInInventory(oPC); } // Destroy equipped items. for ( nSlot = 0; nSlot < NUM_INVENTORY_SLOTS; ++nSlot ) DestroyObject(GetItemInSlot(nSlot, oPC)); // Remove all gold. AssignCommand(oPC, TakeGoldFromCreature(GetGold(oPC), oPC, TRUE)); }
  • Destroys all items (including equipped) and gold on a PC.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software