sandbox Posted February 28, 2014 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
Kido Posted February 28, 2014 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
sandbox Posted February 28, 2014 Author Posted February 28, 2014 Just edit the bindatcmd name and then the shop items, also the SHOP & NPC name Quote
Kido Posted February 28, 2014 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
Kido Posted March 14, 2014 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
sandbox Posted March 14, 2014 Author Posted March 14, 2014 welcome guys feedbacks are always appreciated Quote
mrdominic Posted April 7, 2014 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
sandbox Posted April 7, 2014 Author Posted April 7, 2014 No need to restart your server, just load the script Quote
kitty14 Posted May 15, 2014 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
sandbox Posted May 16, 2014 Author Posted May 16, 2014 Have you configured it properly? What's your revision #? Quote
kitty14 Posted May 16, 2014 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
sandbox Posted May 16, 2014 Author Posted May 16, 2014 I see no errors, I even compiled it. That's weird =/ Quote
kitty14 Posted May 17, 2014 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
Capuche Posted May 17, 2014 Posted May 17, 2014 There is a bug with the case Change the label OnAtcommand to OnCmd for example Quote
kitty14 Posted August 31, 2014 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
Yonko Posted September 3, 2014 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
kitty14 Posted September 4, 2014 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
Yonko Posted September 5, 2014 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
kitty14 Posted September 5, 2014 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
Dolphin86 Posted October 6, 2014 Posted October 6, 2014 can someoe share a copy of full list shop? Quote
rappar Posted April 27, 2022 Posted April 27, 2022 how can I use this with an item instead of @minimart? thanks Quote
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.