Post: [PI] how to add your own shops
03-06-2015, 02:18 AM #1
Stunz
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({});
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

    case 683:
c.getShops().openShop(3);


and add under it:

    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:

    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.

    2	2	[COLOR="red"]561[/COLOR]	[COLOR="Lime"]2000[/COLOR]	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:

    [COLOR="Red"]0[/COLOR] [COLOR="Lime"]1[/COLOR]
[COLOR="Red"]1[/COLOR] [COLOR="lime"]1[/COLOR]
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.

The following user thanked Stunz for this useful post:

KillManz G

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo