Jump to content
sandbox

@minimart

Recommended Posts

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

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

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

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

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

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

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

 

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

 

 

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

 

 

 

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

 

 

 

 

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

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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.