Jump to content

Recommended Posts

Posted

File Name: Auto shop

File Submitter: Kurofly

File Submitted: 27 Apr 2015

File Category: Utilities

Content Author: Kurofly


This script will allow players to shop their items while playing via a shop NPC, this is kind of an alternative to the auction system.
Note: There's also a french version since I'm french ^^

  • There is a user setup, be sure to check it out !

  • User can add a cost to shop creation and/or a tax, there's also a delay after which the shop is deleted.
  • Players can create a shop using an item or via the '@shop' command, depending on the mode value in the user setup
  • Players can shop any kind of item apart from bound and time-limit items
  • You can add items, change prices, modify your shop name anytime using the '@shop' command
  • You can disconnect and reconnect anytime, if you sold something and/or your shop was deleted you will get your money and items on relog
  • In case the server reboots you also get back the shop creation's cost or the item you used to open it


Please report any bug you find.
If I can't answer you while you are experiencing bugs, consider following this step:

  • Make sure no one is selling when you do this because they will loose all of their sales !!


Note: you can just reloadscript before doing this to give them back all of their items.

//bindatcmd "delall",strnpcinfo(3)+"::OnDelall",99,99;	/*In case you have problems I recommend you to uncomment this command and to execute it. It will erase all the data of every shop and every player.	I myself experienced some issues not directly related to the script but to unexpected events so reseting data should temporarly solve the problem.	Please contact me on rA (Kurofly) if you experience any bug*/



Click here to download this file

  • Upvote 2
Posted

It reminds me of Royal Quest Online :3 the Autoshop is something like this but it's an ITEMS there are 3 types of items item_db2.txt or sql.
Small Trade Pot (8 Hours) Medium Trade Pot(12 Hours) Large Trade Pot(24 Hours) after the expiration of time all items return VIA email :3

 

I hope you could add feature like this, it's usefull in order players can able to buy that 3 types of items in the cashop less hassle on vending merchant :3
 

 

And also, possible to add this if a player won't type there shop name by DEFAULT: "(charname) and Default shop" e.g (Elysium) Shop Sale also restriction items to sell? e.g bound items or whatsoever etc etc also with quantity of items to see in the shop.

THANK YOU this is good addition to my upcoming server :3

Posted (edited)

/?

      :huh:

I don't understand the first part ><

 

for the default shop name I can easily add an option for that, don't know why I didn't think about it sooner.

 

for the item restriction I can check if the player has restricted items in his inventory but I would still have a problem:

   example: if a player has two same equips but one refined and wants to sell one, I will won't be able to check if he's selling the refined one or the other.

In this case I can still ask the player to store the restricted equip before trying to sell the other one to make sure he doesn't sell a restricted equip.

 

EDIT: I'm just so stupid, there's actually all the sales details I need set when calling the OnSellItem label

 

In fact I can manage to make a player sell refined or slotted equips but I didn't find any way to make it appear on the shop, you normally can't sell refined or slotted items via a NPC shop so there's no way to display them in it (or i don't know one).

 

for the item quantity there's also no way to display it since NPC shops are supposed to sell as many items as you want but I think I'll just add a message window on which I'll diplay the item quantity & price and ask how many the player wants.

 

So so so.. you made me think a bit about it so now I have an idea  :lol:

 

I'll make it so that when a player wants to buy an item, the item specs quantity and price will appear in a window so that I'll be able to sell refined or slotted equips.

I'll also tell the player if some items have specs when he opens a shop.

That'll be really boring if you want to buy a lot of stuff but I guess you usually don't buy a lot in other people's shop.

Maybe I could add a '@buy' command which would allow a player to open a shop from a distance.

 

Hmmmmmmmmmmmmmmmmmm;

I need to change almost everything in my script to do this because I'll have to make use of sql tables so I'll need a bit of time and I don't won't have much untill the 20th but you gave me good ideas so I'll do it.

 

Could you please explain your first part a bit more clearly? Because I really don't understand ><

Tell me if you have other ideas.

Edited by Kurofly
Posted

Sorry if it takes some more time than expected, I'm adding a lot of features and I had to clean up the mess I made changing the whole data storing.

It'll be uploaded tomorrow.


The 'shopping' thing will look like this (still need a bit of work but it's almost done)

 

post-27270-0-40585900-1433968561_thumb.jpg

You can sell any time of equipment apart from bound ones

post-27270-0-79849300-1433968600_thumb.jpg

Everything displays accordingly

post-27270-0-58856400-1433968684_thumb.jpg

post-27270-0-24673000-1433968691_thumb.jpg

post-27270-0-41508800-1433968709_thumb.jpg

post-27270-0-30995100-1433968735_thumb.jpg

post-27270-0-14319500-1433968745_thumb.jpg

post-27270-0-70695400-1433968753_thumb.jpg

When two or more items of the same id are in the shop, you'll be asked which one you want to buy (since there's actually no way to display it directly in the shop)

post-27270-0-39667900-1433968922_thumb.jpg

post-27270-0-66336900-1433968931_thumb.jpg

You can also directly see the effects of the cards slotted in the items (credits to emistry, thank you if you pass by there^^)

post-27270-0-18985700-1433968939_thumb.jpg

You can disable it if you don't have a recent enough version, all the details are in the script

post-27270-0-49916100-1433968946_thumb.jpg

 

Wow that makes a lot of screens ><

Well it's just to let you know how it'll look like.

 

I still have to test it to its limits and to make sure there'll be no bugs (I found a funny one today and I really didn't expect it^^), get over with the ticket mode system (both will be usable at the same time if you want), make some things clearer and try to prevent some people from finding cheats.

 

I really care about bugs and cheats because I'm making a system which can be, if abused, used to duplicate any item and/or to get infinite money. That'd be as bad for you as it'd be for me  :D

 

Well let me know if you have any ideas, I'm really curious about them ^^

  • Upvote 1
Posted

Can't keep a promise, can i ? :lol: 

 

Well it's almost done, the only thing left to do is to set up the modes combinations.

 

I've tested it to its limits, or so I believe so it should be stable (I can't list all the things I prevented because that would make an entire post^^)

 

I had to study for my finals that begins tomorrow so I didn't have enough time to finish  but I'll post it tomorrow for sure.

 

Hope you'll enjoy, see you tomorrow!


Uploaded !

  • 1 year later...
  • 5 months later...
  • 10 months later...
Posted

Hello,

I installed AutoShop 2.0 but I did not succeed,
By using the @shop command and filling in the data correctly, the store simply does not open.
Analyzing the tables in the database,

I realize that only "autoshop_items" has been filled: 

1.png.3eb25d868b4669c765453beeba1e2dfd.png

as "autoshop" remains empty.

2.png.2f514f443f6eb78da39fe4d678f8073a.png

Obs. 1. Translated by google translator. 2. Version 1.0 worked perfectly

Thank you!

  • 1 year later...
Posted
On 2/1/2018 at 2:36 AM, bkmarcos said:

Hello,

I installed AutoShop 2.0 but I did not succeed,
By using the @shop command and filling in the data correctly, the store simply does not open.
Analyzing the tables in the database,

I realize that only "autoshop_items" has been filled: 

1.png.3eb25d868b4669c765453beeba1e2dfd.png

as "autoshop" remains empty.

2.png.2f514f443f6eb78da39fe4d678f8073a.png

Obs. 1. Translated by google translator. 2. Version 1.0 worked perfectly

Thank you!

me too ?

  • 2 months later...
  • 1 year later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...