Rocky Road Posted November 14, 2015 Posted November 14, 2015 Hi guys, Does anyone have an Monster Hunting NPC that will ask for an item before he ask you a favor to kill atleast 3 type of monster and after killing that monster he will grant you a 1 item? please i need some of this script thanks Quote
0 Emistry Posted November 14, 2015 Posted November 14, 2015 https://github.com/rathena/rathena/blob/master/npc/custom/quests/hunting_missions.txt Quote
0 Rocky Road Posted November 15, 2015 Author Posted November 15, 2015 https://github.com/rathena/rathena/blob/master/npc/custom/quests/hunting_missions.txt Uhmm i know this script but does this script will ask you first for an item before he ask you a favor to kill a monster? Quote
0 Rain408 Posted November 19, 2015 Posted November 19, 2015 (edited) Check if ( item ( "item ID > "x amount") ) I'm not sure if I type it out correctly, but just add that check at the front of your script. Then the npc will only proceed to giving out mission if they have requirement. Note I'm at work so I can't provide more accurate information Edited November 19, 2015 by Rain408 Quote
0 Rocky Road Posted November 19, 2015 Author Posted November 19, 2015 Check if ( item ( "item ID > "x amount") ) I'm not sure if I type it out correctly, but just add that check at the front of your script. Then the npc will only proceed to giving out mission if they have requirement. Note I'm at work so I can't provide more accurate information Thanks i will try it boss thanks for the help Quote
0 Rain408 Posted November 19, 2015 Posted November 19, 2015 (edited) Check if ( item ( "item ID > "x amount") ) I'm not sure if I type it out correctly, but just add that check at the front of your script. Then the npc will only proceed to giving out mission if they have requirement. Note I'm at work so I can't provide more accurate information Thanks i will try it boss thanks for the help Here the correct text: if (countitem(7189) > 19) { } Here an exmaple if (countitem("Item ID") > " item number") { "your txt/quest" } else { mes "sorry."; // put whatever message you want close; } There you go, an outline of how to set the item check Edited November 19, 2015 by Rain408 Quote
0 Rocky Road Posted November 19, 2015 Author Posted November 19, 2015 Check if ( item ( "item ID > "x amount") ) I'm not sure if I type it out correctly, but just add that check at the front of your script. Then the npc will only proceed to giving out mission if they have requirement. Note I'm at work so I can't provide more accurate information Thanks i will try it boss thanks for the help Here the correct text: if (countitem(7189) > 19) { } Here an exmaple if (countitem("Item ID") > " item number") { "your txt/quest" } else { mes "sorry."; // put whatever message you want close; } There you go, an outline of how to set the item check Do i just need to put that on the top of the script?? Quote
0 Rain408 Posted November 19, 2015 Posted November 19, 2015 Check if ( item ( "item ID > "x amount") ) I'm not sure if I type it out correctly, but just add that check at the front of your script. Then the npc will only proceed to giving out mission if they have requirement. Note I'm at work so I can't provide more accurate information Thanks i will try it boss thanks for the help Here the correct text: if (countitem(7189) > 19) { } Here an exmaple if (countitem("Item ID") > " item number") { "your txt/quest" } else { mes "sorry."; // put whatever message you want close; } There you go, an outline of how to set the item check Do i just need to put that on the top of the script?? if (countitem("Item ID") > " item number") { "your txt/quest"// Add your script right here } else { mes "sorry."; // put whatever message you want close; } Quote
0 PandaLovesHamster Posted November 19, 2015 Posted November 19, 2015 Something like this: prt_in,89,72,6 script Hunter Association 951,{ if(countitem(item_here)) > item_quantity){ function Chk; ... } else{ mes "Not enough."; close; } Quote
0 Rocky Road Posted November 19, 2015 Author Posted November 19, 2015 Something like this: prt_in,89,72,6 script Hunter Association 951,{ if(countitem(item_here)) > item_quantity){ function Chk; ... } else{ mes "Not enough."; close; } then i will just add the whole script of monster hunting buttom of that script? Quote
0 PandaLovesHamster Posted November 20, 2015 Posted November 20, 2015 Yup. The else would be at most bottom part. Quote
0 Rocky Road Posted November 22, 2015 Author Posted November 22, 2015 Yup. The else would be at most bottom part. cool thanks i will try it Quote
Question
Rocky Road
Hi guys,
Does anyone have an Monster Hunting NPC that will ask for an item before he ask you a favor to kill atleast 3 type of monster and after killing that monster he will grant you a 1 item? please i need some of this script thanks
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.