Quote:
Originally Posted by Kingly_Krab
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