Thread: Quest questions
View Single Post
  #1  
Old 01-04-2016, 09:05 PM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Quote:
Originally Posted by Kingly_Krab View Post
You'll want to do this backwards:
Code:
if (plugin::check_handin(\%itemcount, 13005 => 1) && ($ulevel > 14)) {
Should be:
Code:
if ($ulevel > 14 && plugin::check_handin(\%itemcount, 13005 => 1)) {
The reason being, you can meet the check_handin but fail the level check and the NPC will eat your items. So you want to check other criteria first.
Oh, I see what you mean, but I have an else statement as well, which does indeed cause
the npc to eat the item if the level is not met. (along with a rude comment for player), haha
Reply With Quote