1% credit to wolfenzi for the idea : http://www.rune-server.org/runescape...interface.html
99% credits to me - sprites, server sided code, client sided code, interface.
Idea:
I saw wolfenzi's custom shop interface in the client showoff section, and I got an idea.
The point of this shop system is to keep shops organized.
for example, 1 shopkeeper can own up to 10 different shops, each shop can hold up to 50 items (scrollbar adjusts to amount of items in shop, not visible in GIF)
in most servers you have shops that's packed with items, for example, equipment shop would have melee gear, magic gear, and range gear, all in the same shop. with my system I make it so that it's all owned by one shop keeper, but you select the shop you want to view.
another good reason for this is for a 'consumables shop' so you could have food shop, and potions shop, etc, and keep it organized and clean.
features:
-Custom loading shop system
-Object oriented code
-Custom system to handle which npcs own which shops
-Note button, lets you buy the items you want noted, unless they aren't notable.
-When buying an item, the item amount in shop updates for everyone
-Necessary checks to prevent dupes (checks coins, amount wanted to buy, price per item... etc)
-Shops are easy to create and load
-Scrollbar for the shop items (Not viewable in GIF, the scrollbar adjusts to the amount of items in the shop, and since there's not enough items, it doesn't appear)
-Currency system to handle what the shop's currency is
-Valuing items in the shop to see their real values
-Buy X works
-Selling back items (Sell X, Sell All, Sell 100, Sell 50, Sell 10, Sell 5, Sell 1, < item actions(not shown in GIF)
-Viewing the price that the shop will buy the items for
-Booleans for if the shop buys everything, or if the shop only buys items that are in his shop
-Every 17 cycles (around 10 seconds) if shop amount is less than the shop max amount for an item, the amount will go up by one.
-More (all i could think of)
GIF:
how loading works:
Item = 0 1117 50 -1
0 = shop slot
1117 = item id
50 = amount
-1 = price (if price is -1 it grabs the price from the item.cfg file)
[NAME = Melee Equipment]
[CURRENCY = Coins]
pretty easy to understand what this is.
BUYS_BACK_SHOP_ITEMS = true
if the shopkeeper will buy items that he has in his shop
BUYS_EVERYTHING = false
if the shopkeeper will buy all items.