Diana Posted March 14, 2021 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Share Posted March 14, 2021 Hello, I searched for Vending control and I got this one But it has too much bugs Any working script? Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted March 15, 2021 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted March 15, 2021 Console Errors? did you use cartesian coordinate plane when adding it to x and y axis? Quote Link to comment Share on other sites More sharing options...
0 mrfizi Posted March 25, 2021 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Share Posted March 25, 2021 (edited) On 3/15/2021 at 6:36 AM, Diana said: Hello, I searched for Vending control and I got this one But it has too much bugs Any working script? No bug on that script. Just add your x and y coordinate. Example: x1/y1 x2 x3 y2 y3 y4 // x and y horizone .. setarray .x_line, x1,x2,x3; setarray .y_line, y1,y2,y3,y4; Hope this can help you to set the vending location/coordinate. Edited March 25, 2021 by mrfizi Quote Link to comment Share on other sites More sharing options...
0 kalabasa Posted March 25, 2021 Group: Members Topic Count: 123 Topics Per Day: 0.05 Content Count: 478 Reputation: 14 Joined: 11/30/17 Last Seen: January 23 Share Posted March 25, 2021 can you give us a more in depth examples? Quote Link to comment Share on other sites More sharing options...
0 Diana Posted March 25, 2021 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Author Share Posted March 25, 2021 Thank you guys for replying, it works but I can't set the x and y successfully as example here is the points I want, and want it to move down tell the gate to prt_fild08 How can I set it? points are: 163,111 152,111 155,111 and move down 2 steps and add new point to sale? Quote Link to comment Share on other sites More sharing options...
0 mrfizi Posted March 26, 2021 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Share Posted March 26, 2021 19 hours ago, Diana said: points are: 163,111 152,111 155,111 and move down 2 steps and add new point to sale? Try this: // x and y horizone .. setarray .x_line, 152,155,163; setarray .y_line, 111,109,106,103,101,99,96,93,91,89; Add more x or y line if you want more. and don't forget to add more duplicate npc vend_slot prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot1 858 For my example, x * y = 30 NPC. So i need to duplicate 30 npc: Spoiler // Add more if needed. prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot1 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot2 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot3 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot4 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot5 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot6 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot7 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot8 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot9 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot10 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot11 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot12 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot13 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot14 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot15 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot16 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot17 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot18 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot19 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot20 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot21 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot22 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot23 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot24 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot25 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot26 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot27 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot28 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot29 858 prontera, 1, 1, 4 duplicate(vend_slot) #vend_slot30 858 Hope this can help you. 1 Quote Link to comment Share on other sites More sharing options...
0 Diana Posted March 26, 2021 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Author Share Posted March 26, 2021 @mrfizi That example helped me!! Thank you Quote Link to comment Share on other sites More sharing options...
0 JoseRicart Posted June 14, 2024 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 15 Reputation: 1 Joined: 02/19/14 Last Seen: July 27, 2024 Share Posted June 14, 2024 Hello, Sorry to open this topic, im using the same script but somehow i cant open a Vending. And i dont get an error console In the corret cell when i press Vending, nothing happens When i use the Vending in the incorrect cell, If i use Vending in another City, it works Quote Link to comment Share on other sites More sharing options...
0 mrfizi Posted June 14, 2024 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Share Posted June 14, 2024 check your novending mapflag. Quote Link to comment Share on other sites More sharing options...
0 JoseRicart Posted June 15, 2024 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 15 Reputation: 1 Joined: 02/19/14 Last Seen: July 27, 2024 Share Posted June 15, 2024 5 hours ago, mrfizi said: check your novending mapflag. Is at default setup Quote Link to comment Share on other sites More sharing options...
0 mrfizi Posted June 15, 2024 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Share Posted June 15, 2024 (edited) npc/mapflag/novending.txt (if you have this on your server) remove novending mapflag from your map. Example; Prontera: //prontera mapflag novending Then open player.conf https://github.com/rathena/rathena/blob/master/conf/battle/player.conf#L184 change 3 to 2. min_npc_vendchat_distance: 2 The distance is depend on your vending distance. Set it 2 or below depend on your setting. Edited June 15, 2024 by mrfizi add more info 1 Quote Link to comment Share on other sites More sharing options...
0 JoseRicart Posted June 15, 2024 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 15 Reputation: 1 Joined: 02/19/14 Last Seen: July 27, 2024 Share Posted June 15, 2024 5 hours ago, mrfizi said: npc/mapflag/novending.txt (if you have this on your server) remove novending mapflag from your map. Example; Prontera: //prontera mapflag novending Then open player.conf https://github.com/rathena/rathena/blob/master/conf/battle/player.conf#L184 change 3 to 2. min_npc_vendchat_distance: 2 The distance is depend on your vending distance. Set it 2 or below depend on your setting. Hey, About the mapflag, i dont have one on the server and if i remove the script from the .conf file, i can use Vending. Anyway, I made the changes you recommended (i change and recompile everything) and even reconfigured the cells, leaving two in between each Vending Spot and it still doesn't work for me. Quote Link to comment Share on other sites More sharing options...
0 JoseRicart Posted June 15, 2024 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 15 Reputation: 1 Joined: 02/19/14 Last Seen: July 27, 2024 Share Posted June 15, 2024 I managed to fix it, I had not realized that the cells had to be both horizontal and vertical and I only had the horizontal ones, configuring the vertical ones solved it. Thanks! @mrfizi Quote Link to comment Share on other sites More sharing options...
0 mrfizi Posted June 16, 2024 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Share Posted June 16, 2024 You're welcome. Btw, you don't need to recompile your server if you're just configure your conf file and script. use @reloadscript npc/filedirectory/yourscript.txt and for conf file just use @reloadbattleconf But, if it involve mapflag setting, I recommended you to restart your server. 1 Quote Link to comment Share on other sites More sharing options...
0 lewishamilton099 Posted June 24, 2024 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 06/24/24 Last Seen: June 24, 2024 Share Posted June 24, 2024 Variables are the building blocks of all programming languages; they are locations where data is kept. retro bowl Quote Link to comment Share on other sites More sharing options...
Question
Diana
Hello, I searched for Vending control and I got this one
But it has too much bugs
Any working script?
Link to comment
Share on other sites
14 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.