Thread: Buy - x

Results 1 to 6 of 6
  1. #1 Buy - x 
    Registered Member
    Join Date
    Jul 2008
    Posts
    76
    Thanks given
    0
    Thanks received
    0
    Rep Power
    4
    I'm trying to add a buy - X option to my server, I'm using Richscape 4.3 and I'm told to look for:

    Code:
    public boolean buyItem(int itemID, int fromSlot, int amount) {
    in client.java, BUT it's nowhere to be found... Is it in a different format for Richscape sources or what? Any help is appreciated.
    Reply With Quote  
     

  2. #2  
    Retard Strength


    Join Date
    Dec 2007
    Posts
    1,539
    Thanks given
    32
    Thanks received
    74
    Rep Power
    97
    see if it finds anything with just public boolean buyItem
    Reply With Quote  
     

  3. #3  
    ímagination
    Guest
    Im no sure about richscape but search public boolean buyItem in client.java
    if that doesnt work, check if things are packeted - This may be the cause of it not neing in client.java
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2008
    Posts
    76
    Thanks given
    0
    Thanks received
    0
    Rep Power
    4
    Alright, I found what I needed, added it in, and now I have this error after fixing all of the sendMessage:

    Code:
    .\Client.java:2892: cannot find symbol
    symbol  : variable duelStatus
    location: class Client
                    } else if (XinterfaceID == 6669 && duelStatus >= 1) {
                                                       ^
    .\Client.java:2893: cannot find symbol
    symbol  : method fromDuel(int,int,int)
    location: class Client
                            fromDuel(XremoveID, XremoveSlot, EnteredAmount);
                            ^
    .\Client.java:10110: package server does not exist
                                                    server.shopHandler.ShopItemsN[My
    ShopID][fromSlot] -= 1;
                                                          ^
    .\Client.java:10111: package server does not exist
                                                    server.shopHandler.ShopItemsDela
    y[MyShopID][fromSlot] = 0;
                                                          ^
    .\Client.java:10112: package server does not exist
                                                    if ((fromSlot + 1) > server.shop
    Handler.ShopItemsStandard[MyShopID]) {
                                                                               ^
    .\Client.java:10113: package server does not exist
                                                            server.shopHandler.ShopI
    tems[MyShopID][fromSlot] = 0;
                                                                  ^
    .\Client.java:10122: package server does not exist
                                                    server.shopHandler.ShopItemsN[My
    ShopID][fromSlot] -= amount;
                                                          ^
    .\Client.java:10123: package server does not exist
                                                    server.shopHandler.ShopItemsDela
    y[MyShopID][fromSlot] = 0;
                                                          ^
    .\Client.java:10124: package server does not exist
                                                    if ((fromSlot + 1) > server.shop
    Handler.ShopItemsStandard[MyShopID]) {
                                                                               ^
    .\Client.java:10125: package server does not exist
                                                            server.shopHandler.ShopI
    tems[MyShopID][fromSlot] = 0;
                                                                  ^
    .\Client.java:10294: break outside switch or loop
                                            break;
                                            ^
    .\Client.java:10298: break outside switch or loop
                                    break;
                                    ^
    Note: .\Stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    12 errors
    Press any key to continue . . .
    Any help please?
    Reply With Quote  
     

  5. #5  
    ímagination
    Guest
    remove server. from every line (that you just added)
    Reply With Quote  
     

  6. #6  
    Phreestile
    Guest
    Yeah this tutorial you've added was taken from Emulous or something else with a differant style framework. Takeout the server. infront of shopHandler

    Example:
    it was server.shopHandler.ShopItemsDela
    shopHandler.ShopItemsDela
    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

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