NPC Buy/Sell

Okay, what it does is this:

1. Any items you sell to an NPC ( A normal NPC doesn't support NPCs used through CallShop ), will get added to a SQL table.

2. When you use CallShop npc_name, 3; it will give those items back to you with an expiration date and bind them to your player.

3. It will then open a Sell window (sadly buy windows don't support detailed items) and then create a list of items based off of those that are both BOUND to your character and have an expiration time. ( Currently not possible unless you use my command ).

4. After that, you just choose the items you want to buy, and click SELL ( yeah lol, I know T.T ), and it'll give you those items back at the cost of the zeny.

5. The items you don't buy, will expire. And the items you did buy will be removed from the SQL table OR updated to show the new amount.

Lastly, the items you buy will be a permanent version, unbound and with no expiration time. If you use the sample script and leave the logout_clear, then it will delete all records of that character from the SQL table. ( Most MMO's do this so I like it xD ).

Edit: I'll post back with ScreenShots when I get time... For now DINNER !!

 
Last edited by a moderator:
this the topic I was talking about ...

http://www.eathena.ws/board/index.php?showtopic=270771

btw you should use a patch file instead

@evilpuncker

basically just make a shop window that sells signed item to the player, using shop interface

the trick is, instead of using buy window, this one using sell window with the sell button, but you don't sell the item, but buy it

 
Okay, I added the patch file to my first post D: now to dive into my next idea... add overflow zeny from vending directly into Client's integrated bank feature.

 
I still don't get it xD mind giving a video or screenies and showing an example of its usage? sorry for being noob xD

 
screenHercules013.jpgscreenHercules014.jpgscreenHercules015.jpgscreenHercules016.jpgscreenHercules017.jpgscreenHercules018.jpgscreenHercules019.jpgscreenHercules020.jpg

Here you go D:, I don't have time to make a video atm. But I'll try and get 1 up soon.

 
Yeah, sorry, that's my fault, I just copy pasted the table from my sql, and that's what my test server's sql_db table is called.

 
Back
Top