Thread: [PI] how to add your own shops.

Page 1 of 7 123 ... LastLast
Results 1 to 10 of 70
  1. #1 [PI] how to add your own shops. 
    Registered Member hontiris1's Avatar
    Join Date
    Feb 2009
    Posts
    769
    Thanks given
    89
    Thanks received
    14
    Rep Power
    37
    Purpose: To help new PI users.
    Difficulty: (this is spoon fed).
    Assumed Knowledge: not being "the troll"
    Classes Modified: AnctionHandler.java, shops.cfg.
    Tested On(if it applies): PI

    first search in ActionHandler.java

    Code:
    case 683:
    				c.getShops().openShop(3);
    and add under it:

    Code:
    case 553:
    				c.getShops().openShop(11);
    case 553:

    the 553 number is the npc, wish will hold the shop.

    openShop(11);

    the 11 inside the parenthesis, is the shop id it will have, wish wil be used for shops.cfg! (NOTE: if the shop id that you put for the 11 is already made like 1, 2, 3 etc... you will get error's so make sure to add a shop id that's not already added.)

    now you must go to shops.cfg and add:

    Code:
    shop = 11	runes		2	2	561	2000	554	2000	555	2000	556	2000	557	2000	558	2000	559	2000	562	2000	563	2000	565	2000	560	2000
    shop = 11

    the 11 is the id that you used for openShop(11);

    runes

    is the name of the shop that you want.

    Code:
    2	2	561	2000	554	2000	555	2000	556	2000	557	2000	558	2000	559	2000	562	2000	563	2000	565	2000	560	2000
    Red # = the Item ID. & Green # = The amount of the item that you want on the shop.



    now you add the npc to the spawn-config.cfg.

    __________________________________________________ __________________________________________________ _________________________

    How to Change prices!

    First you will go to "prices.text" (prices is located where your cfg files are at like shops.cfgs, spawn-config.cfg etc...)

    You will see items ID's & numbers next to it.

    Example:

    Code:
    0 1
    1 1
    2 5
    3 1
    4 5
    5 10
    6 187500
    7 187500
    8 187500
    9 187500
    10 187500
    11 187500
    12 187500
    13 187500
    14 1
    15 10
    16 10
    17 10
    18 2
    19 3
    20 1
    Red = Item ID. & green = price for the item.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jul 2010
    Age
    29
    Posts
    1,143
    Thanks given
    7
    Thanks received
    48
    Rep Power
    0
    Not bad
    Reply With Quote  
     

  3. #3  
    Welcome To The Rodeo

    Zro.'s Avatar
    Join Date
    May 2009
    Posts
    4,376
    Thanks given
    94
    Thanks received
    241
    Rep Power
    714
    Has been done already
    Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Oct 2009
    Posts
    1,595
    Thanks given
    100
    Thanks received
    50
    Rep Power
    232
    easy shit xD

    Reply With Quote  
     

  5. #5  
    Registered Member hontiris1's Avatar
    Join Date
    Feb 2009
    Posts
    769
    Thanks given
    89
    Thanks received
    14
    Rep Power
    37
    easy shit, and has been done already;

    but not posted on tut...
    Reply With Quote  
     

  6. #6  
    Registered Member Brony's Avatar
    Join Date
    May 2010
    Age
    14
    Posts
    477
    Thanks given
    17
    Thanks received
    23
    Rep Power
    19
    I didnt saw any thread with a tutorial about how to add your own shops and maybe this is helpfull for someone.

    OT:Good job Hontiris u explain it well to
    Reply With Quote  
     

  7. #7  
    Registered Member hontiris1's Avatar
    Join Date
    Feb 2009
    Posts
    769
    Thanks given
    89
    Thanks received
    14
    Rep Power
    37
    Quote Originally Posted by X-Tjardo View Post
    I didnt saw any thread with a tutorial about how to add your own shops and maybe this is helpfull for someone.

    OT:Good job Hontiris u explain it well to
    ahh thanks, i'm going to be making some more TUTs when i get back in to rsps, almost 99 mining in runescape 98 atm and 56k to 99.

    i currently have 3 TUTs not hard but it helps

    (rep would be nice and a thanks)
    Reply With Quote  
     

  8. #8  
    Registered Member JakeIsEpicCoder's Avatar
    Join Date
    Sep 2010
    Age
    30
    Posts
    46
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    I think almost every PI coder with even abit expiriense can do this but i thinks noobs gonna use this Good job.
    Reply With Quote  
     

  9. #9  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    why do people flame? he's just trying to be helpful and help out the new coders. Is that such a bad thing?

    Nice work on this guide, im sure it will help many new coders
    Reply With Quote  
     

  10. #10  
    Registered Member F4ll3n's Avatar
    Join Date
    Aug 2010
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I've seen a TUT about this somewhere in the forums....
    Reply With Quote  
     

Page 1 of 7 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

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