Thread: Making Shops

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 Making Shops 
    Fluro
    Guest
    Hello!

    Since I haven't seen any tutorials like this around on rune-server i thought I would make my own tutorial on how to make shops.

    ** This tutorial is 100% by Me, Fluro. If you see it anywhere else please tell me! **

    Purpose: To add shops to your server
    Difficulty: 1/10 Not hard at all
    Assumed Knowledge: Normal 8 year old + brain standards
    Files Modified: shops.cfg & client.java

    -- This tutorial will add 150 rune scims to a shop when you trade the drogo dwarf --


    First, open up your shops.cfg file.
    There should already be a few things in there, they will look like this:
    shop = 3 Falador_General_Store 1 1 1931 5 1935 2 1735 2 1925 3 1923 2 1887 2
    Ok, so go down to the end of the list and find out what number it is. For me, the last number is 29. So we need to now add this:
    shop = 30<tab>@dre@Shop Name Here<tab2>1<tab>1<tab>1333<tab>150
    Where it says <tab> that means you need to press tab in shops.cfg
    In the pink is the shop number
    In the blue is the name of the shop ( you don't have to have @dre@ )
    In the green is the object id
    In the orange is the amount of the object before

    Now save shops.cfg


    Open client.java and search:
    WanneShop =
    You will get to something like this:
    } else if (NPCID == 548) { //Thessalia
    PutNPCCoords = true;
    WanneShop = 8;
    In the red is the Id for the npc which the shop is going to be located to
    In the green is the shop id.

    So now add this underneath

    } else if (NPCID == 579) { //drogo dwarf
    PutNPCCoords = true;
    WanneShop = 30;
    So now, when you the drogo dwarf ( 579 ) he will open up shop 30. You can add any items into shops.cfg. Just make sure you hit tab between each different section so like:
    ItemID<tab>Amount<tab>2ndItemID<tab>Amount and so on..

    You can make any npc open up the same shop as another npc. So you could make the drogo dwarf open up shop 1.


    End Result:





    Thanks for reading! Hope it works for you!!
    Last edited by Fluro; 06-13-2008 at 05:29 PM. Reason: Double posting is not allowed!
     

  2. #2  
    Zomage
    Guest
    Wow, Nice tutorial helped me out! I didn't know about adding the WanneShop = ##

    Thanks heaps!
     

  3. #3  
    Fluro
    Guest
    No probs
     

  4. #4  
    I LOVE CHEESE


    Join Date
    Oct 2007
    Age
    29
    Posts
    1,153
    Thanks given
    7
    Thanks received
    8
    Rep Power
    104
    This have been made 100 times rofl wy keep posting it?


     

  5. #5  
    Fluro
    Guest
    Clearly i said i haven't seen it before?? ( on rune-server )
     

  6. #6  
    I LOVE CHEESE


    Join Date
    Oct 2007
    Age
    29
    Posts
    1,153
    Thanks given
    7
    Thanks received
    8
    Rep Power
    104
    Um for runejava based sources:
    http://www.rune-server.org/showthread.php?t=57647
    Normal:
    http://www.rune-server.org/showthread.php?t=32413

    That was only at tut list lol i just searched for "shops" and like 20 dif pages but about 2 were for adding shops


     

  7. #7  
    Fluro
    Guest
    I'm sure you've posted something thats already been done.
     

  8. #8  
    Professional Upsetter


    Join Date
    Jul 2006
    Posts
    5,392
    Thanks given
    163
    Thanks received
    447
    Rep Power
    2040
    Please add steps and/or the official layout
    Ex-super moderator of Rune-Server.org and RSBot.org
     

  9. #9  
    I LOVE CHEESE


    Join Date
    Oct 2007
    Age
    29
    Posts
    1,153
    Thanks given
    7
    Thanks received
    8
    Rep Power
    104
    Have made only 5 tuts so Nah


     

  10. #10  
    Fluro
    Guest
    I love inside sins avatar and sig they are the best!
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •