View Single Post
  #2  
Old 08-05-2010, 07:34 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

From your example, I am not sure where you are getting the ItemType hash of arrays from. Should it not be this?:

Code:
my $Item = $Weapons{$LevelCategory} [rand @Weapons{$LevelCategory}];
On another note, your post is probably a nice example of how to make use of arrays, hashes, and hashes of arrays lol.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote