View Single Post
  #2  
Old 02-04-2008, 11:57 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Maybe I am just incorrect in how I think $item works. I don't know if it would even work properly if I made a $item definition for all 7 armor slot pieces. From what I am reading, $item is mainly for slots 1-4 on turn in, so you would normally only use $item1 to $item4.

I tried experimenting a little with it last night and I think I was able to get it to work with any variable I defined. For example, if I wanted to set it to:

Code:
sub_EVENT_ITEM {
my $drop = 1200;
my $helm = 1201 || 1202 || 1203;
my $bracer = 1204 || 1205 || 1206;
#etc for the rest of the armor set, and each line would really have 16 options.  1 for each class.

  if (plugin::check_handin(\%itemcount, $drop => 1, $helm => 1)){
  quest::summonitem(1300); #summons upgraded helm
}
}
It seemed to take any "$something" name, but setting it this way had the same results as using $item1, $item2, etc. So, I still need to know where I am going wrong in trying to make the variable equal multiple possible items using ORs.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote