Thread: Item System
View Single Post
  #8  
Old 09-23-2008, 03:10 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Nice script. Open source is win.
Quote:
Originally Posted by xXziroXx View Post
All items are stored in .arc files (yes, laugh away Chris and Inverness)
When I read that I knew what I was gonna say in my reply but you had to kill it.

By the way, I have a few notes after looking through the script.
First, if the npc name is ItemCache then you can simply use ItemCache.varname rather than findnpc("ItemCache").varname.
Second, would be a bit more efficient to check if an object is existing by using varname.type() == 2 rather than varname.objecttype() == "TStaticVar".
Third, Stefan made it so you can use var = {} rather than var = new[0]
__________________
Reply With Quote