Thread: Turn-in trouble
View Single Post
  #1  
Old 08-07-2007, 11:47 AM
sklead's Avatar
sklead
Sarnak
 
Join Date: Jul 2005
Posts: 38
Default Turn-in trouble

I've made a few quests that require items to be turned in. Some of them require 1 item, some require 2 or more, and some require multiple item turn-ins at different times. For the quests that need 1 or 2+ items at once, people can turn in 1 of any item (ex. You need an apple but you turn in a twig and it does the same thing). For the multiple turn-in quest, if you turn in 1 of any item, it gives you experience and/or the item(s) for every part of the quest (ex. You need a necklace, then after you get xp you need a ring, but it gives you xp as if you turned in both.). My question is, how might I fix this problem?

Quest needing 1 item:

Code:
sub EVENT_SAY{
  if ($text=~/Hail/i){quest::say("Aaarrggghhh! [Go away]!");}
  if ($text=~/go away/i){quest::say("I want my [axe]!");}
  if ($text=~/axe/i){quest::say("Those blasted Crushbone Orcs took it!");}
}
sub EVENT_ITEM{
  if ($item1=5014){quest::say("Ggrrr, I didn't need your help...");quest::exp(1000);}
}
Quest needing 2+:

Code:
sub EVENT_SAY{
  if ($text=~/hail/i){quest::say("Hello there, I am Ligi. I can craft any type of armor out of any materials! Say, you look like someone who might enjoy Orc Skin [armor].");}
  if ($text=~/armor/i){quest::say("Only the finest, especially from orc skins. Just bring me back one to four pieces of orc skin and I can craft some armor for you.");}
}
sub EVENT_ITEM{
  if ($itemcount{32638}=1){quest::say("Excellent! This is enough to make a fine pair of gloves.");quest::exp(2500);quest::summonitem(2010);}
  if ($itemcount{32638}=2){quest::say("Excellent! This is enough to make a fine pair of boots.");quest::exp(2500);quest::summonitem(2012);}
  if ($itemcount{32638}=3){quest::say("Excellent! This is enough to make a fine pair of sleeves.");quest::exp(2500);quest::summonitem(2008);}
  if ($itemcount{32638}=4){quest::say("Excellent! This is enough to make a fine tunic!");quest::exp(2500);quest::summonitem(2004);}
}
I havent finished my multiple stage quest, but I followed the guide in the wiki on here, but I still have the problem with the items.
Reply With Quote