Quest questions
Hey guys, i have looked around but haven't found a topic yet, i have a question.
I am more experienced in php, perl seems quite similiar but it is a new feeling to fiddle with, if i already have an item from an npc after hailing, is there a if (hasitem == 0) { etc etc }else{ moving onto next conversation } function already built inside? |
Yes
Code:
|
Thanks mate, replacing $value with item related
|
Quote:
Code:
if (plugin::check_hasitem($client, $itemnum)) { |
Thanks mate!
|
This is a sample of something I am using for a handin right now, which works for me.
Code:
if (plugin::check_handin(\%itemcount, 13005 => 1) && ($ulevel > 14)) { |
Quote:
Code:
if(quest::istaskcompleted(114)) { |
You'll want to do this backwards:
Code:
if (plugin::check_handin(\%itemcount, 13005 => 1) && ($ulevel > 14)) { Code:
if ($ulevel > 14 && plugin::check_handin(\%itemcount, 13005 => 1)) { |
Quote:
Note: 'elsif' is invalid due to there being no conditional in parentheses. If you do not have an elsif condition just use 'else'. |
Quote:
the npc to eat the item if the level is not met. (along with a rude comment for player), haha |
Quote:
|
All times are GMT -4. The time now is 01:22 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.