Thread: New Shop System

Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1 New Shop System 
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    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:




    Spoiler for loading shops:

    [SHOP]
    [NAME = Melee Equipment]
    [CURRENCY = Coins]

    BUYS_BACK_SHOP_ITEMS = true
    BUYS_EVERYTHING = false

    Item = 0 1117 50 -1
    Item = 1 1075 50 -1
    Item = 2 1155 50 -1
    Item = 3 1321 50 -1
    Item = 4 1189 50 -1
    Item = 5 1115 50 -1
    Item = 6 1067 50 -1
    Item = 7 1153 50 -1
    Item = 8 1323 50 -1
    Item = 9 1191 50 -1
    Item = 10 1119 50 -1
    Item = 11 1069 50 -1
    Item = 12 1157 50 -1
    Item = 13 1325 50 -1
    Item = 14 1193 50 -1


    [ENDOFSHOP]



    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.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    強い者は生き残る
    Ashpire's Avatar
    Join Date
    Mar 2012
    Age
    27
    Posts
    2,721
    Thanks given
    914
    Thanks received
    1,897
    Rep Power
    2231
    You should add a scroll bar to that interface. Looks clean good job.
    Attached image
    Reply With Quote  
     

  4. #3  
    Registered Member
    Stanaveli's Avatar
    Join Date
    Aug 2014
    Posts
    1,490
    Thanks given
    184
    Thanks received
    653
    Rep Power
    1338
    Perhaps add currency's with their respective icons on the interface.

    Goodjob
    Keep your head up.



    Reply With Quote  
     

  5. #4  
    Registered Member
    hc747's Avatar
    Join Date
    Dec 2013
    Age
    26
    Posts
    1,474
    Thanks given
    3,312
    Thanks received
    691
    Rep Power
    1098
    Very nice, love the creativity of well done custom additions!
    Reply With Quote  
     

  6. #5  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Quote Originally Posted by Play Boy View Post
    You should add a scroll bar to that interface. Looks clean good job.
    it has one, it adjusts to the amount of items in the shop, I wrote that in the features. since there isn't enough items in the shop, the scrollmax int is less than the height, meaning the scrollbar doesn't appear. thanks though

    thanks everyone for the feedback and replies
    Reply With Quote  
     

  7. #6  
    Registered Member

    Join Date
    Jul 2007
    Age
    32
    Posts
    466
    Thanks given
    90
    Thanks received
    52
    Rep Power
    87

    here is little update currency support also need little move it

    also Im happy if someone work on my idea good job
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Quote Originally Posted by wolfenzi View Post

    here is little update currency support also need little move it

    also Im happy if someone work on my idea good job
    thanks it looks nicer now btw
    Reply With Quote  
     

  10. #8  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    It looks wonderful.
    One thing, it'd probably just me it just looks wierd to see two scrollers next to each other I don't know why.. I'd suggest you just making it some middle-mouse rotating, or another thing you can be some unique and change it to just arrows somethin like:


    (Notice the red arrows, couldn't done it better cus I were using the prntscr editting tool )

    Other then that, goodjob on improvements.
    Reply With Quote  
     

  11. #9  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Looks nice, should add a small text in the corner saying how much of the currency you have

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  12. #10  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Quote Originally Posted by Eclipse View Post
    Looks nice, should add a small text in the corner saying how much of the currency you have
    gud idea. I gave up on this system though. I just make shit and show it off then quit working on it.
    I guess i'm a loser.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Buying new shop system + interface!
    By Project Diversion in forum Buying
    Replies: 3
    Last Post: 01-06-2013, 06:05 AM
  2. New Shop system.
    By SWAT in forum Show-off
    Replies: 55
    Last Post: 05-26-2009, 04:02 AM
  3. New quest system - updated+sample quest
    By tj007razor in forum Tutorials
    Replies: 55
    Last Post: 12-05-2008, 01:47 PM
  4. New quest system - handled
    By tj007razor in forum Tutorials
    Replies: 83
    Last Post: 07-25-2008, 11:51 PM
  5. New Sound System Test!
    By Impulser in forum Music
    Replies: 0
    Last Post: 05-17-2008, 09:25 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •