sandbox Posted February 28, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 28, 2014 (edited) File Name: @minimart File Submitter: sandbox File Submitted: 28 Feb 2014 File Category: Utilities Content Author: sandbox Script Details & Usage It's a script intended to help ease the laziness of the players in the RO world today. It basically opens a Tool Dealer upon execution, so they could restock their supply or sell their junks easily. Suggestions for the improvement of this very simple script would be appreciated. Installation Enable the script on your NPC folder Carefully read the comments I made inside the script and make sure to configure it properly Terms & Conditions You are not allowed to reproduce or make profit of this script You are not allowed to take credit for this script. Though you can modify/edit it to your liking. I can give you support, but please, do not message me. It is your own responsibility to create a backup before implementing anything new. Pastebin: http://rathena.org/board/pastebin/f4nxnlt1r7c/ minimart.txt Edited March 2, 2014 by sandbox 2 Quote Link to comment Share on other sites More sharing options...
Kido Posted February 28, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 28, 2014 wow my players love it ! they also asked and i wonder too, if i can duplicate this script to make something ike @ammo so they type that and then buy arrows or bullets, or for example o have a lot of shops npc, let's say i want to make it @alchemist and then they will open a shop with alchemist items o: ? for example it would be like this right o:? //======Name======================================== // Mini Mart //======Version===================================== // 1.0 //======Author(s)=================================== // Sandbox //======Comments==================================== // This serves as a portable tool dealer.. // For players who are too busy or lazy // going back to town just to restock their supplies // or sell their junk //================================================== - script AlchemistShop -1,{ OnInit: bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",0,40; //Disabled on WoE maps? 1 = Yes, 0 = No set .WoeCheck,1; //Disabled on PvP maps? 1 = Yes, 0 = No set .PvpCheck,1; end; OnAtcommand: if(.WoeCheck == 1 && getmapflag(strcharinfo(3),mf_gvg)) { message strcharinfo(0),"You cannot use this command on GvG maps."; end; } else if (.PvpCheck == 1 && getmapflag(strcharinfo(3),mf_pvp)){ message strcharinfo(0),"You cannot use this command on PvP maps."; end; } callshop "AlchemistShop",0; end; } //Modify to your liking, by default it sells like the Tool Dealer - shop AlchemistShop -1,7134:-1,501:-1,502:-1,503:-1,504:-1,505:-1,657:-1,545:-1,546:-1,547:-1,921:-1,905:-1,7144:-1,1093:-1,507:-1,508:-1,509:-1,510:-1,911:-1,7133:-1,1092:-1,952:-1,1017:-1,708:-1,713:-1,518:-1,704:-1,7434:-1,716:-1,1012:-1,717:-1,950:-1,715:-1,7126:-1,1057:-1,7127:-1,7033:-1,7128:-1,1059:-1,7129:-1,929:-1,7130:-1,1032:-1,7131:-1,1050:-1,1051:-1,7132:-1,950:-1,1044:-1,7144:-1,7140:-1,7141:-1,7143:-1,7136:10000,7135:10000,1061:-1 o:! Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 28, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Author Share Posted February 28, 2014 Just edit the bindatcmd name and then the shop items, also the SHOP & NPC name Quote Link to comment Share on other sites More sharing options...
Kido Posted February 28, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 28, 2014 Just edit the bindatcmd name and then the shop items, also the SHOP & NPC name thaaanks o: i tested it with a few and the loved o:! ty again o:! Quote Link to comment Share on other sites More sharing options...
Angelisk Posted March 13, 2014 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 128 Reputation: 33 Joined: 01/21/13 Last Seen: November 8, 2024 Share Posted March 13, 2014 Thank you! Nice idea <3 Quote Link to comment Share on other sites More sharing options...
Kido Posted March 14, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted March 14, 2014 yeah o: i also created with this some other shop commands, for example a command for alchemist, whitesmiths and so on o: thanks again Sandbox o:!! Quote Link to comment Share on other sites More sharing options...
sandbox Posted March 14, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Author Share Posted March 14, 2014 welcome guys feedbacks are always appreciated Quote Link to comment Share on other sites More sharing options...
mrdominic Posted April 7, 2014 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 14 Reputation: 1 Joined: 12/11/12 Last Seen: September 6, 2022 Share Posted April 7, 2014 i just just need to Enable the script on my NPC folder, restart the server, and the @minimart command will appear at player command automatically? Quote Link to comment Share on other sites More sharing options...
sandbox Posted April 7, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Author Share Posted April 7, 2014 No need to restart your server, just load the script Quote Link to comment Share on other sites More sharing options...
kitty14 Posted May 15, 2014 Group: Members Topic Count: 103 Topics Per Day: 0.02 Content Count: 323 Reputation: 4 Joined: 12/09/13 Last Seen: May 9, 2023 Share Posted May 15, 2014 hello! when i @commands minimart is in there bur when i @minimart i got error npc_event: event not found [minimart::OnAtcommand] Quote Link to comment Share on other sites More sharing options...
sandbox Posted May 16, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Author Share Posted May 16, 2014 Have you configured it properly? What's your revision #? Quote Link to comment Share on other sites More sharing options...
kitty14 Posted May 16, 2014 Group: Members Topic Count: 103 Topics Per Day: 0.02 Content Count: 323 Reputation: 4 Joined: 12/09/13 Last Seen: May 9, 2023 Share Posted May 16, 2014 the newest oneyup here //======Name======================================== // Mini Mart //======Version===================================== // 1.0 //======Author(s)=================================== // Sandbox //======Comments==================================== // This serves as a portable tool dealer.. // For players who are too busy or lazy // going back to town just to restock their supplies // or sell their junk //================================================== - script minimart -1,{ OnInit: bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",0,40; //Disabled on WoE maps? 1 = Yes, 0 = No set .WoeCheck,0; //Disabled on PvP maps? 1 = Yes, 0 = No set .PvpCheck,1; end; OnAtcommand: if(.WoeCheck == 1 && getmapflag(strcharinfo(3),mf_gvg)) { message strcharinfo(0),"You cannot use this command on GvG maps."; end; } else if (.PvpCheck == 1 && getmapflag(strcharinfo(3),mf_pvp)){ message strcharinfo(0),"You cannot use this command on PvP maps."; end; } callshop "mini_mart",0; end; } //Modify to your liking, by default it sells like the Tool Dealer - shop mini_mart -1,1766:50,1755:20,1750:10,1754:20,1761:20,1752:20,1760:20,1759:20,1772:100,1757:30,1770:20,1769:30,1765:40,1763:30,1762:30,1767:30,1764:30,1751:20,1768:30,1753:30,1756:30,1758:30,1771:1000,13200:50,13202:100,13201:300,13206:500,13203:500,13207:500,13204:500,13205:500,13252:50,13254:500,13251:100,13253:300,13250:50,13256:50,13259:50,13258:50,13255:50,13257:50 //1750:-1,501:-1,502:-1,503:-1,504:-1,506:-1,645:-1,656:-1,601:-1,602:-1,1065:-1 Quote Link to comment Share on other sites More sharing options...
sandbox Posted May 16, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Author Share Posted May 16, 2014 I see no errors, I even compiled it. That's weird =/ Quote Link to comment Share on other sites More sharing options...
kitty14 Posted May 17, 2014 Group: Members Topic Count: 103 Topics Per Day: 0.02 Content Count: 323 Reputation: 4 Joined: 12/09/13 Last Seen: May 9, 2023 Share Posted May 17, 2014 really? cuz at first we can @minimart , but now we cant. and were getting the error npc_event: event not found [minimart::OnAtcommand] is there any other way? Quote Link to comment Share on other sites More sharing options...
Capuche Posted May 17, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted May 17, 2014 There is a bug with the case Change the label OnAtcommand to OnCmd for example Quote Link to comment Share on other sites More sharing options...
kitty14 Posted August 31, 2014 Group: Members Topic Count: 103 Topics Per Day: 0.02 Content Count: 323 Reputation: 4 Joined: 12/09/13 Last Seen: May 9, 2023 Share Posted August 31, 2014 There is a bug with the case Change the label OnAtcommand to OnCmd for example sorry for a very late responds . hmmm.. i tried to use this script again using this august revision this year.. still got same error npc_event: event not found [minimart::OnAtcommand] Quote Link to comment Share on other sites More sharing options...
Yonko Posted September 3, 2014 Group: Members Topic Count: 166 Topics Per Day: 0.03 Content Count: 789 Reputation: 50 Joined: 04/16/12 Last Seen: July 8, 2022 Share Posted September 3, 2014 There is a bug with the case Change the label OnAtcommand to OnCmd for example sorry for a very late responds . hmmm.. i tried to use this script again using this august revision this year.. still got same error npc_event: event not found [minimart::OnAtcommand] use this http://pastebin.com/ANxm4Tir Change 1 in highlighted syntax into 0 if you want to players with group_id 0 can use that command bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",1,40; Quote Link to comment Share on other sites More sharing options...
kitty14 Posted September 4, 2014 Group: Members Topic Count: 103 Topics Per Day: 0.02 Content Count: 323 Reputation: 4 Joined: 12/09/13 Last Seen: May 9, 2023 Share Posted September 4, 2014 There is a bug with the case Change the label OnAtcommand to OnCmd for example sorry for a very late responds . hmmm.. i tried to use this script again using this august revision this year.. still got same error npc_event: event not found [minimart::OnAtcommand] use this http://pastebin.com/ANxm4Tir Change 1 in highlighted syntax into 0 if you want to players with group_id 0 can use that command bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",1,40; still got the same error [error]: Npc_event not found [minimart: :OnAtcommand] Quote Link to comment Share on other sites More sharing options...
Yonko Posted September 5, 2014 Group: Members Topic Count: 166 Topics Per Day: 0.03 Content Count: 789 Reputation: 50 Joined: 04/16/12 Last Seen: July 8, 2022 Share Posted September 5, 2014 There is a bug with the case Change the label OnAtcommand to OnCmd for example sorry for a very late responds . hmmm.. i tried to use this script again using this august revision this year.. still got same error npc_event: event not found [minimart::OnAtcommand] use this http://pastebin.com/ANxm4Tir Change 1 in highlighted syntax into 0 if you want to players with group_id 0 can use that command bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",1,40; still got the same error [error]: Npc_event not found [minimart: :OnAtcommand] lol what emulator do you use? to me it works 100% Quote Link to comment Share on other sites More sharing options...
kitty14 Posted September 5, 2014 Group: Members Topic Count: 103 Topics Per Day: 0.02 Content Count: 323 Reputation: 4 Joined: 12/09/13 Last Seen: May 9, 2023 Share Posted September 5, 2014 There is a bug with the case Change the label OnAtcommand to OnCmd for example sorry for a very late responds . hmmm.. i tried to use this script again using this august revision this year.. still got same error npc_event: event not found [minimart::OnAtcommand] use this http://pastebin.com/ANxm4Tir Change 1 in highlighted syntax into 0 if you want to players with group_id 0 can use that command bindatcmd "minimart",strnpcinfo(3)+"::OnAtcommand",1,40; still got the same error [error]: Npc_event not found [minimart: :OnAtcommand] lol what emulator do you use? to me it works 100% im using rathena.. well at first it work for me, then i don't know what happen.. why im having error [error]: Npc_event not found [minimart: :OnAtcommand] Quote Link to comment Share on other sites More sharing options...
Dolphin86 Posted October 6, 2014 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 757 Reputation: 17 Joined: 01/07/12 Last Seen: December 18, 2024 Share Posted October 6, 2014 can someoe share a copy of full list shop? Quote Link to comment Share on other sites More sharing options...
andz00 Posted August 19, 2015 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 0 Joined: 08/17/15 Last Seen: August 3, 2020 Share Posted August 19, 2015 good Quote Link to comment Share on other sites More sharing options...
Xiao Posted January 4, 2016 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 65 Reputation: 0 Joined: 12/10/14 Last Seen: Thursday at 07:25 AM Share Posted January 4, 2016 Thanks Quote Link to comment Share on other sites More sharing options...
rappar Posted April 27, 2022 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 01/03/18 Last Seen: July 26, 2024 Share Posted April 27, 2022 how can I use this with an item instead of @minimart? thanks Quote Link to comment Share on other sites More sharing options...
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.