Thread: Item system
View Single Post
  #2  
Old 02-23-2010, 05:40 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
If it's just a simple weapon-script based item system.

PHP Code:
function addItem(itemnamequantity) {
  
player.addweapon(itemname);
  
clientr.item.(@itemname) += quantity;

Otherwise you're going the MUDLib route, and Ziro has one posted in the code gallery.
__________________
Quote:
Reply With Quote