Jump to content

@minimart


sandbox

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

File Name: @minimart

File Submittersandbox

File Submitted: 28 Feb 2014

File CategoryUtilities

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 by sandbox
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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:!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

Just edit the bindatcmd name and then the shop items, also the SHOP & NPC name :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Just edit the bindatcmd name and then the shop items, also the SHOP & NPC name :D

 

thaaanks o: i tested it with a few and the loved o:!

ty again o:!

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   31
  • Joined:  01/21/13
  • Last Seen:  

Thank you! Nice idea <3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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:!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

welcome guys :) feedbacks are always appreciated

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  12/11/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

No need to restart your server, just load the script :D

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

hello! when i @commands minimart is in there bur when i @minimart i got error npc_event: event not found [minimart::OnAtcommand]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

Have you configured it properly? What's your revision #?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

the newest one

yup 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   173
  • Joined:  06/12/12
  • Last Seen:  

I see no errors, I even compiled it. That's weird =/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

There is a bug with the case

Change the label OnAtcommand to OnCmd for example

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

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]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

 

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;

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

 

 

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;

 

 

/wah still got the same error

[error]: Npc_event not found [minimart: :OnAtcommand]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

 

 

 

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;

 

 

/wah still got the same error

[error]: Npc_event not found [minimart: :OnAtcommand]

 

lol what emulator do you use? to me it works 100%

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

 

 

 

 

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;

 

 

/wah 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]

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  251
  • Topics Per Day:  0.06
  • Content Count:  698
  • Reputation:   15
  • Joined:  01/07/12
  • Last Seen:  

can someoe share a copy of full list shop?

Link to comment
Share on other sites

  • 10 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  08/17/15
  • Last Seen:  

good

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  12/10/14
  • Last Seen:  

Thanks

Link to comment
Share on other sites

  • 6 years later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  01/03/18
  • Last Seen:  

how can I use this with an item instead of @minimart? thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...