DevilSupremeRO Posted December 5, 2020 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 55 Reputation: 0 Joined: 08/21/20 Last Seen: October 31, 2022 Share Posted December 5, 2020 can anyone help me with teleport npc that requires like 3items with quantity of 500 or something? thanks in advance Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted December 7, 2020 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted December 7, 2020 Just add this before warp On this code . It will required player to have 1 Apple in he/her inventory to mes "[Quest Person]"; if (countitem(512) < 1) { // 512 is the item ID for Apple, found in db/item_db.yml mes "This is what NPC do if he/she dont have apple"; mes "Can you please bring me an apple?"; close; } mes "Oh, you brought an Apple!"; mes "I will warp you now since you have what i need."; warp "mapname",x,y; close; Quote Link to comment Share on other sites More sharing options...
0 DevilSupremeRO Posted December 9, 2020 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 55 Reputation: 0 Joined: 08/21/20 Last Seen: October 31, 2022 Author Share Posted December 9, 2020 On 12/8/2020 at 2:09 AM, Poring King said: Just add this before warp On this code . It will required player to have 1 Apple in he/her inventory to mes "[Quest Person]"; if (countitem(512) < 1) { // 512 is the item ID for Apple, found in db/item_db.yml mes "This is what NPC do if he/she dont have apple"; mes "Can you please bring me an apple?"; close; } mes "Oh, you brought an Apple!"; mes "I will warp you now since you have what i need."; warp "mapname",x,y; close; how to add more items? Quote Link to comment Share on other sites More sharing options...
0 Royr Posted December 9, 2020 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 90 Reputation: 34 Joined: 10/01/18 Last Seen: January 9, 2023 Share Posted December 9, 2020 (edited) On 12/5/2020 at 3:59 PM, DevilSupremeRO said: can anyone help me with teleport npc that requires like 3items with quantity of 500 or something? thanks in advance Try this added with Link Item Edited December 9, 2020 by Royr Quote Link to comment Share on other sites More sharing options...
0 Royr Posted December 9, 2020 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 90 Reputation: 34 Joined: 10/01/18 Last Seen: January 9, 2023 Share Posted December 9, 2020 (edited) On 12/7/2020 at 12:09 PM, Poring King said: Just add this before warp On this code . It will required player to have 1 Apple in he/her inventory to mes "[Quest Person]"; if (countitem(512) < 1) { // 512 is the item ID for Apple, found in db/item_db.yml mes "This is what NPC do if he/she dont have apple"; mes "Can you please bring me an apple?"; close; } mes "Oh, you brought an Apple!"; mes "I will warp you now since you have what i need."; warp "mapname",x,y; close; Doesn't make any sense. the person asking for : Quote Teleport npc that requires like 3items with quantity of 500 Edited December 9, 2020 by Royr Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted December 10, 2020 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted December 10, 2020 (edited) 14 hours ago, DevilSupremeRO said: how to add more items? if (countitem(itemID1) < 1 | countitem(ItemID2) < 1 | countitem(ItemID3) < 1 | so on so fort ){ mes "You dont have what i need"; end; } mes "I see you have all what i need i will warp you now"; warp "mapname",x,y; end; 11 hours ago, Royr said: Doesn't make any sense. the person asking for : He just ask for item requirement before to warp i meet what he need . I give him the basic example of scripting to learn i don't give so much freebies and make this person asking always relay on freebies . He/she should learn by his self .. As you can see he don't even know how to do some condition statement its the basic one then you give him more complicated scripting . You are right he can use your script well but did he learn ? I give him more informative scripting on the NPC script dialog so he knew how the script process . Edited December 10, 2020 by Poring King Quote Link to comment Share on other sites More sharing options...
Question
DevilSupremeRO
can anyone help me with teleport npc that requires like 3items with quantity of 500 or something? thanks in advance
Link to comment
Share on other sites
5 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.