Market_Def (ShopNPC)

solvent

LOMCN Veteran
Veteran
Jul 24, 2006
457
0
63
On The Sun
Im Try To Make A Shop Sell A List Of Items, I Simply Just Copied And Pasted A Stander NPC Script That Sells Pots. Removed All The Pots And Replaced Them With The Items I Want It To Sell, But The Box Where You Normaly See What You Can Buy Dont Appear. But If I Put Pots Back In The Script With The Items I Want To Sell The Box Does Appear And All Works Fine.

Is There A Way To Make It Sell What I Want It To And Not Have To Add Stuff Like Pots Etc. ?

/B
 

solvent

LOMCN Veteran
Veteran
Jul 24, 2006
457
0
63
On The Sun
(@buy @sell @repair @s_repair @storage @getback)
%100
+0
+42
[@main]
Welcome. You can buy all kind of Drugs here\
<Buy/@buy> Drug\ \
<Cancel/@exit>

[@buy]
What item do you want?\ \ \
<Back/@main>
[goods]
;Item Amount Time
(HP)SmallDrugBundle 200 1
(MP)SmallDrugBundle 200 1
(HP)MediumDrugBundle 200 1
(MP)MediumDrugBundle 200 1
(HP)DrugBundle 200 1
(MP)DrugBundle 200 1
GoldTeleport 50 5
SilverTeleport 50 5

Gold And Silver Teleport Are The Items I Made And Want The NPC To Sell.
These Script Is Just Copied And Pasted From Bichon Pot Shop.

/B
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
(@buy @sell)
%100
+0
+42
+ < STD for scoll
[@main]
Welcome. You can buy all kind of Drugs here\
<Buy/@buy> Drug\ \
<Cancel/@exit>

[@buy]
What item do you want?\ \ \
<Back/@main>
[goods]
;Item Amount Time
(HP)SmallDrugBundle 200 1
(MP)SmallDrugBundle 200 1
(HP)MediumDrugBundle 200 1
(MP)MediumDrugBundle 200 1
(HP)DrugBundle 200 1
(MP)DrugBundle 200 1
GoldTeleport 50 5
SilverTeleport 50 5

make you add the std for the scolls to the setting and make they are in ur db
 
Upvote 0

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
so when you run that script.. nothing comes up when you click buy??

or are you deleting the pots and just leaving the teleport items in there??
 
Upvote 0

solvent

LOMCN Veteran
Veteran
Jul 24, 2006
457
0
63
On The Sun
When I Run That Script The Pots And Teleports Appear And I Can Buy Them, But If I Remove The Pots From The Script Nothing Happens When I Click Buy. I Want It So Just Teleport Appear There Not Pots Aswell.

/B
 
Upvote 0

solvent

LOMCN Veteran
Veteran
Jul 24, 2006
457
0
63
On The Sun
Think Its Fixed Didnt Notice IceMan First Reply, I Deleted Every Think From Market_Saved And Market_Price Then Rebooted. The NPC Now Selling What I Want It To And Nothing Else. So Hope It Stays Like That Now! :P

Thanks For All Replys And Help.

/B
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,211
30
2,811
540
u really need to learn how to use caps lock properly.
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,211
30
2,811
540
BECAUSE ITS REALLY ANNOYING TO LOOK AT TEXT LIKE THIS ALL THE TIME. HAVING CAPS LOCK ON DOESNT MAKE PEOPLE READ YOUR POST ANY QUICKER, ITS JUST PLAIN ANNOYING.

and it has nothing to do with the topic.
 
Upvote 0

Cryogenisis

Loyal Member
Loyal Member
Jun 21, 2015
64
0
32
Hello!

inm using up to date 2.6+ rubym2

i'm having same problem, but where i delete the Sav file and reboot everything (servers, gates and even sql) doesnt replace the file...

maybe im not "rebooting" it the right way...

Thanks

Cryo
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
Just delete the files inside market saved and price. Reboot the m2 server and wait 5 mins. Should remake the files
 
Upvote 0

FirEStorm

Mir Atlaints
Veteran
Aug 29, 2011
567
31
115
CaiRo-EGYPT
u need to read the scripts first
loook

(@buy @sell @repair @s_repair @storage @getback) @buy its give the npc buy The possibility of buying @sell for selling @repair for repair @s_repair for special repair
%100
+0 here for std mode of scroll
+42 here for pots
if u add
+5 << here u can repair , sell and buy wepens
+10 << here u can sell , buy and repair male armours
+11 << female armours

[@main]
Welcome. You can buy all kind of Drugs here\
<Buy/@buy> Drug\ \
<Cancel/@exit>

[@buy]
What item do you want?\ \ \
<Back/@main>
[goods]
;Item Amount Time
(HP)SmallDrugBundle 200 1 here the name of items and the amount and the time to create the amount of goods again
(MP)SmallDrugBundle 200 1
(HP)MediumDrugBundle 200 1
(MP)MediumDrugBundle 200 1
(HP)DrugBundle 200 1
(MP)DrugBundle 200 1
GoldTeleport 50 5
SilverTeleport 50 5
 
Upvote 0

Cryogenisis

Loyal Member
Loyal Member
Jun 21, 2015
64
0
32
u need to read the scripts first
loook

(@buy @sell @repair @s_repair @storage @getback) @buy its give the npc buy The possibility of buying @sell for selling @repair for repair @s_repair for special repair
%100
+0 here for std mode of scroll
+42 here for pots
if u add
+5 << here u can repair , sell and buy wepens
+10 << here u can sell , buy and repair male armours
+11 << female armours

[@main]
Welcome. You can buy all kind of Drugs here\
<Buy/@buy> Drug\ \
<Cancel/@exit>

[@buy]
What item do you want?\ \ \
<Back/@main>
[goods]
;Item Amount Time
(HP)SmallDrugBundle 200 1 here the name of items and the amount and the time to create the amount of goods again
(MP)SmallDrugBundle 200 1
(HP)MediumDrugBundle 200 1
(MP)MediumDrugBundle 200 1
(HP)DrugBundle 200 1
(MP)DrugBundle 200 1
GoldTeleport 50 5
SilverTeleport 50 5

Hello thanks for reply!

i now have found out, you have to wait a while... im learning with mir2server its about patience :)

and thanks, this will teach me more, im still learning.

i now have all files clean and sorted, im gonig to enjoy this learning curve.

looking forward to more input, will check back!

Thanks

Cryo
 
Upvote 0