About: Strip a pc of all items and gold   Sponge Permalink

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

This is the basics of how to strip a PC useing the OnEnter of a trigger, area, or OnClientEnter of a Module. Further modification can be done for your application. void main() { object oPC = GetEnteringObject(); if(!GetIsPC(oPC)) return; // Check Equip Items and get rid of them int i; for(i=0; i<14; i++) { object oEquip = GetItemInSlot(i,oPC); if(GetIsObjectValid(oEquip)) { SetPlotFlag(oEquip,FALSE); DestroyObject(oEquip); } } // Check general Inventory and clear it out. object oItem = GetFirstItemInInventory(oPC); while(GetIsObjectValid(oItem)) { SetPlotFlag(oItem,FALSE); DestroyObject(oItem); oItem = GetNextItemInInventory(oPC); } //Take their Gold int nAmount = GetGold(oPC); if(nAmount > 0) { AssignCommand(oPC,TakeGoldFromCreature(nAmount,oPC,TRUE)); } }

AttributesValues
rdfs:label
  • Strip a pc of all items and gold
rdfs:comment
  • This is the basics of how to strip a PC useing the OnEnter of a trigger, area, or OnClientEnter of a Module. Further modification can be done for your application. void main() { object oPC = GetEnteringObject(); if(!GetIsPC(oPC)) return; // Check Equip Items and get rid of them int i; for(i=0; i<14; i++) { object oEquip = GetItemInSlot(i,oPC); if(GetIsObjectValid(oEquip)) { SetPlotFlag(oEquip,FALSE); DestroyObject(oEquip); } } // Check general Inventory and clear it out. object oItem = GetFirstItemInInventory(oPC); while(GetIsObjectValid(oItem)) { SetPlotFlag(oItem,FALSE); DestroyObject(oItem); oItem = GetNextItemInInventory(oPC); } //Take their Gold int nAmount = GetGold(oPC); if(nAmount > 0) { AssignCommand(oPC,TakeGoldFromCreature(nAmount,oPC,TRUE)); } }
dcterms:subject
abstract
  • This is the basics of how to strip a PC useing the OnEnter of a trigger, area, or OnClientEnter of a Module. Further modification can be done for your application. void main() { object oPC = GetEnteringObject(); if(!GetIsPC(oPC)) return; // Check Equip Items and get rid of them int i; for(i=0; i<14; i++) { object oEquip = GetItemInSlot(i,oPC); if(GetIsObjectValid(oEquip)) { SetPlotFlag(oEquip,FALSE); DestroyObject(oEquip); } } // Check general Inventory and clear it out. object oItem = GetFirstItemInInventory(oPC); while(GetIsObjectValid(oItem)) { SetPlotFlag(oItem,FALSE); DestroyObject(oItem); oItem = GetNextItemInInventory(oPC); } //Take their Gold int nAmount = GetGold(oPC); if(nAmount > 0) { AssignCommand(oPC,TakeGoldFromCreature(nAmount,oPC,TRUE)); } }
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