View Single Post
  #1  
Old 11-08-2011, 05:32 PM
Rhodan
Hill Giant
 
Join Date: Oct 2006
Posts: 179
Default Why this doesn't work

From the Lief Faladim NPC in Kithicor. THere are three hand ins and two work. The one that requires money doesn't and I don't see anything wrong (comparing to other quests).

Perhaps the $gold doesn't work properly? I summoned the exact items specified and handed in 2000 gold pieces at the same time. I get back the items but not the gold.

Code:
sub EVENT_ITEM {
    if(plugin::check_handin(\%itemcount, 12321 => 1, 12320 => 1)) {
	quest::summonitem(3190);
    } 
    if (plugin::check_handin(\%itemcount, 12305 => 1, 12306 => 1, $gold >= 2000)) {
    quest::say("Here are your boots.");
      quest::summonitem(3192);
    }
    if (plugin::check_handin(\%itemcount, 10059 => 1, 12328 => 1)) {
      quest::say("Here are your leggings.");
      quest::summonitem(3191);
    }
    else {
	plugin::return_items(\%itemcount);
	return 1;
    }
Reply With Quote