Thread: [PI] Shops Problem [PI]

Results 1 to 4 of 4
  1. #1 [PI] Shops Problem [PI] 
    Registered Member
    Join Date
    Mar 2011
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hi


    I'm working on a PI source which i will release soon but i need a few fixes. One of my problems is that i've created a few shops with items etc in them and i've spawned the shops yet i cant trade them. My character will walk to them and do nothing. I've added the e.g case: 554 open shop [shop 20] etc yet it still won't work.


    Thanks for any help.
    Reply With Quote  
     

  2. #2  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    The shop opens but you can't buy/sell?



    Try this:

    First of all, open your shops.cfg and you should find something like this:



    Code:
    shop = 29	PvP Points Shop	2	2	10548	10	6570	10	11694	10	11696	10	11700	10	11698	10	11730	10	15001	10	11720	10	11722	10	11718	10	11724	10	11726	10	11283	10	15018	10	15019	10	15020	10	15220	10	13736	10	13734	10	11663	10	11664	10	11665	10	8842	10	8839	10	8840	10
    shop = 30	Donator's Shop	2	2	10452	1	10458	1	10464	1	10446	1	10440	1	10456	1	10460	1	10468	1	10450	1	10444	1	10454	1	10462	1	10466	1	10448	1	10442	1	11195	1	20	1	2570	1
    shop = 31	Rune Essence	2	2	1437	25000
    To add a new shop, simply write:


    Code:
    shop = ** Name of your shop here 2	2	itemid	ammount	itemid	ammount	itemid	ammount
    The ** is the shopID. Simply look before and enter a number that isn't used already.
    It's the name that will appear once you open the shop. Separate each name with a space/underscore if it doesn't work.
    DO NOT CHANGE THESE, these are the buy/sell numbers for which a shop is allowed to sell/not to sell items.

    After adding the shop to shops.cfg, go to spawn-config.java and spawn the NPC you'd like to be the "owner" of the shop. For example Ellena (a farmer)


    Code:
    spawn = 2331 2811	3465 0 0	0	0	0	Skilling Supplies (Farmer/Ellena)
    That's the NPC ID, you can check that in NPC.cfg
    These are the NPC's X and Y coordinates.
    Change this to 1 if you want the NPC to walk around randomly
    Keep the rest at 0

    Now that you've spawned your NPC, save and close spawn-config.java.
    Open ActionHandler.java and search:


    Code:
    public void firstClickNpc(int npcType) {
    or if that doesn't work, search for


    Code:
    case 519:
    Which is Bob, should be your skilling shop.
    Lots of these cases should appear:


    Code:
    			case 549:
    				c.getShops().openShop(28);
    			break;
    			case 1336:
    				c.getShops().openShop(4);
    			break;
    			
    			case 2538:
    				c.getShops().openShop(6);
    			break;
    			
    			case 519: //Bob
    				c.getShops().openShop(8);
    			break;
    Under a break;, write:


    Code:
     case 2331:
    				c.getShops().openShop(**);
    			break;
    Write the shopID you wrote on shops.cfg
    Replace 2331 with the NPCID you wrote on spawn-config.cfg

    And that's about it.
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2011
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    thanks for that but i've got all that bit done its just the shop wont actually open. I'll click trade but it won't open the shops screen
    Reply With Quote  
     

  4. #4  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    Seeing as how it's a trade option, search for
    [code][public void secondClickNpc(int npcType) {]/code]
    and THEN add it. This makes the second option choice open it

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     


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. [PI] Shops Problem
    By Defiled-X in forum Help
    Replies: 4
    Last Post: 02-13-2011, 07:33 AM
  2. Shops Problem..
    By Igaming in forum Help
    Replies: 2
    Last Post: 04-08-2010, 08:37 PM
  3. Shops Problem
    By ballin in forum Help
    Replies: 5
    Last Post: 07-18-2009, 08:51 PM
  4. Shops problem
    By Inspired Dreams in forum Help
    Replies: 19
    Last Post: 04-15-2009, 08:27 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
  •