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

Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 70
  1. #21  
    Donator
    Guy Sully's Avatar
    Join Date
    May 2009
    Posts
    295
    Thanks given
    10
    Thanks received
    11
    Rep Power
    41
    Alright I how do I change the prices for the items in the shops?
    ..because everything is 1 coin. ;P

    Quote Originally Posted by Swarfega View Post
    "Will hold at least 40% more players then an average Delta Scape"

    From what I hear, Delta starts lagging at 15 players online.
    40% of 15:
    0.4 x 15 = 6
    15 + 6 = 21
    Gz.
    Reply With Quote  
     

  2. #22  
    Registered Member hontiris1's Avatar
    Join Date
    Feb 2009
    Posts
    769
    Thanks given
    89
    Thanks received
    14
    Rep Power
    37
    Well is not much as a sniped, and your welcome to who ever it helped. i just felt like posting it sense none did at that time.
    Reply With Quote  
     

  3. #23  
    Banned

    Join Date
    Oct 2010
    Posts
    716
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    Quote Originally Posted by Keep Faith View Post
    Alright I how do I change the prices for the items in the shops?
    ..because everything is 1 coin. ;P
    Yeah i'd like to know this aswell.
    Reply With Quote  
     

  4. #24  
    Banned
    Join Date
    Oct 2010
    Posts
    248
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    Nice, This will hep ALOT of people.
    Reply With Quote  
     

  5. #25  
    Registered Member
    Join Date
    Apr 2008
    Posts
    150
    Thanks given
    3
    Thanks received
    1
    Rep Power
    2
    sure helped me since im gettng used to pi still repped
    Reply With Quote  
     

  6. #26  
    Registered Member
    Join Date
    Apr 2009
    Posts
    63
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    Thanks, but you didn't explain the 2 2 on the beginning of the item ID tab, and I would like to know what they mean.
    Reply With Quote  
     

  7. #27  
    Registered Member hontiris1's Avatar
    Join Date
    Feb 2009
    Posts
    769
    Thanks given
    89
    Thanks received
    14
    Rep Power
    37
    Okay i'm going to explain how to change the prices and others as requested on the thread.

    A little "thanks" to the threads wouldn't hurt.
    Reply With Quote  
     

  8. #28  
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    I've created a tut like this for Emulous. Which is PI.
    Reply With Quote  
     

  9. #29  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    31
    Posts
    2,779
    Thanks given
    974
    Thanks received
    411
    Rep Power
    0
    Spoiler for The Guide:
    Quote Originally Posted by hontiris1 View Post
    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.


    Added to the list, Quoted so that you're not removing it.

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣



    Reply With Quote  
     

  10. #30  
    Banned
    Join Date
    Mar 2008
    Posts
    1,937
    Thanks given
    131
    Thanks received
    61
    Rep Power
    0
    holy crap worst shops tutorial ever, first of all not everyone has
    case 683:
    c.getShops().openShop(3);

    so you might wanna fix that up, you forgot to add in parts about shopassistant.java,
    wow this is bad.
    Reply With Quote  
     

Page 3 of 7 FirstFirst 12345 ... 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
  •