Thread: Shop help for 508 codeusa paying $5

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Shop help for 508 codeusa paying $5 
    owner cody
    Guest
    ok im using codeusa, and tryed to make a shop, i got 3 errors uhm idk how to fix them theres 2 errors in
    npcoption1.java

    it has to do with the
    p.shopid
    p.viewings

    it says cannot find symbol variable
    and the other error is for
    item option
    unreachable statement for if

    if u can help im paying $5, add me or post here at
    [email protected]
    Reply With Quote  
     

  2. #2  
    Press Conference
    Guest
    ok, this is what you have to do
    follow tut
    http://www.rune-server.org/showthrea...highlight=shop

    Instead of the Shops.java, put this in instead
    Code:
    package net.com;
    
    /**
     * Created by IntelliJ IDEA.
     * User: Sere
     * Date: 6-mrt-2009
     * Time: 10:33:19
     *converted by Santaher0
     */
    public class Shops {
            public int maxItems = 40;
        /*init shops */
            public int[] Generalshoplumb            = new int[maxItems];
            public int[] GeneralshoplumbN           = new int[maxItems];
            public int[] Generalshopvarrock         = new int[maxItems];
            public int[] GeneralshopvarrockN        = new int[maxItems];
            public int[] Generalshopfalador         = new int[maxItems];
            public int[] GeneralshopfaladorN        = new int[maxItems];
           //public int[] CraftingShop             = {1623, 1621, 1619, 1617, 1625, 1627, 1629, 1631, 6571, 1755, 1737};  // the items
            //public int[] CraftingShopN          =  {1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 200, 500};   // the amout
            public int[] CraftingShop             = {995};  // the items
            public int[] CraftingShopN          =  {1};   // the amout
            public int[] pkshop             = {2528, 6737, 4151, 1079, 1215, 1127, 11283, 1725, 11732, 10828, 3751, 3105, 6524, 11696, 11694, 11698, 11700, 11724, 11726, 6585, 11728, 11718, 11720, 11722, 6570};  // the items
            public int[] pkshopN          =  {10, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 5, 5, 5, 5, 5, 5, 20, 5, 5, 5, 5, 20};   // the amout
        public int[] foodshop            = {391, 157, 145, 2444, 2440, 3024, 3144, 6107, 6108, 2577, 2581, 9185, 9244, 9243, 892, 9185, 861, 2503, 2497, 536, 1511, 946, 1517, 1521, 1513, 1777, 2363, 2347};  // the items
            public int[] foodshopN          =  {5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000};   // the amout
        public int[] barrowshop             = {5601, 11848, 11846, 11850, 11852, 4740, 11854, 11856, 11862, 11860, 11858, 11842, 11844, 11838, 11840, 11938, 11940, 14525, 14527, 14529};  // the items
            public int[] barrowshopN          =  {100, 1, 1, 1, 1, 1000, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};   // the amout
    	/*init shops */
        public Shops() {
    
            System.out.println("[ loaded shops ]");
            /**
             * this sets the shops empty
              */
    
        for (int i = 0; i < 40; i++) {
    
            Generalshoplumb[i]          =-1;
            Generalshopvarrock[i]       =-1;
            Generalshopfalador[i]       =-1;
    	//CraftingShop[i]		    =4;
        }
    
    
    }
    }
    That has my Shops.java

    Now go on your server, and find the npc you want for the shop
    Click on him. In your chatbox, or cmd box there should be something like
    Code:
    unhandled np option1-----------------> xxx
    xxx being the npc case id

    or it might say
    player unhandle npc xxx
    or something like it

    Then in go to NPCOption1.java add this

    Code:
    case xxx://Npc 545(runecrafting shopkeeper)
    Engine.shopHandler.openshop(p, 7);
    break;
    This opens shop 7, post errors or problems
    pm me for paypal info

    Credits to santaher0 for most of the data.
    Reply With Quote  
     

  3. #3  
    owner cody
    Guest
    Fail, i said codeusa idiot
    Reply With Quote  
     

  4. #4  
    Press Conference
    Guest
    Quote Originally Posted by owner cody View Post
    Fail, i said codeusa idiot
    codeusa is espeon
    That's why on my codeusa server, I used the espeon tutorial and I got it to work
    Reply With Quote  
     

  5. #5  
    owner cody
    Guest
    I'm missing content, and everything els.. i need the exact same tut or ill get like 100 error's like i just did.
    Reply With Quote  
     

  6. #6  
    Press Conference
    Guest
    You just need to change the imports.
    Reply With Quote  
     

  7. #7  
    owner cody
    Guest
    Here, add me on msn, im really conffused, i did change the imports everything to codeusa, made a new content folder put in shops.java and shophandler.java and did the engine.java and action buttons.java and actionserver.java.. and like 100 errors.
    Reply With Quote  
     

  8. #8  
    I sfogliare Rune-server ad alta


    Join Date
    Nov 2008
    Age
    30
    Posts
    1,702
    Thanks given
    41
    Thanks received
    18
    Rep Power
    791
    I wouldn't help him, he pulled his fail bell out on you.
    Reply With Quote  
     

  9. #9  
    Press Conference
    Guest
    Dude, c'mon I helped you fix it, why haven't you paid yet?
    Reply With Quote  
     

  10. #10  
    Registered Member
    `*Owned_You*'s Avatar
    Join Date
    Dec 2008
    Age
    30
    Posts
    873
    Thanks given
    13
    Thanks received
    9
    Rep Power
    99
    Rofl, Seriosuly leeching a source...
    if you dont know how to fix your own server shops then i sggest you go to fail.org.
    Code your own work

    < Want One? Try Here =]

    Reply With Quote  
     

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

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