Thread: Shop Prices.

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Shop Prices. 
    Registered Member
    Join Date
    Sep 2009
    Posts
    111
    Thanks given
    10
    Thanks received
    2
    Rep Power
    6
    Hey Guys. I think i got my Zarpor Shop Editor Fixed

    But now i changed shop prices, with the tool or manually in the prices.txt.
    I compile it, or Just do it toug eclipse ( wich should auto maticly compile)
    I go ingame , Go to my PKP Shop and My items still have thair OLD price. Not the new ones.My Shops also count in points ( Also shops that dont need points but coins) How do i change this? Points -> Coins

    #1, Shop prices aint changing ingame, Need to get this fixed ( Maybe i have to change the prices some where else? )

    #2 Changing The shops that have a payment value Points , Changing those to Coins.

    Thanks in advance

    EDIT: I went to ShopAssistant.java, Searched for my shop ID ( 25 ) Found the whole thing it had c.points, what should i change it to to have it to gold? ( coins)
    Hello.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2009
    Posts
    111
    Thanks given
    10
    Thanks received
    2
    Rep Power
    6
    Guys.. Answer ffs
    Hello.
    Reply With Quote  
     

  3. #3  
    Kneel before me.

    Join Date
    Sep 2012
    Posts
    200
    Thanks given
    202
    Thanks received
    91
    Rep Power
    125
    remove the shopassistant code. if you want to edit the prices of the pkpoints they are in there simply change them I think it will be a return statement not sure actually will check.
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Sep 2009
    Posts
    111
    Thanks given
    10
    Thanks received
    2
    Rep Power
    6
    I deleted the Code of the shop witht he id 25 ( barrows shop that counts with point insteed of coins ) It still shows as point.. even when i deleted the code. I also cant find prices in the shopassistent,
    Hello.
    Reply With Quote  
     

  6. #5  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    when its a pkp shop u need to set the pkp prices

    Go to you shopassistans.java and search for

    public int getSpecialItemValue(int id) {
    you should see something like

    case 2460:
    case 2462:
    case 2464:
    case 2466:
    case 2468:
    case 2470:
    case 2472:
    case 2474:
    case 2476:
    case 8936:
    case 8938:
    return 50;
    thats case (item ID):
    return (pkp price);

    this sets the price of the pkp item in shop
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    Registered Member
    Join Date
    Sep 2009
    Posts
    111
    Thanks given
    10
    Thanks received
    2
    Rep Power
    6
    Yes i found that out allready. Now i just have to find out how to switch my barrows store from pkp to coins.
    Hello.
    Reply With Quote  
     

  9. #7  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    oh
    well thats easy too,

    again shopassistant.java, and search there for the shopID and delete everything u find. For example

    my shop ID is 27 ( u find shop id in shops.cfg)

    then search for

    c.myShopId == 27
    and delete

    if (c.myShopId == 27) {
    handleOtherShop(itemID);
    return false;
    }
    else if(c.myShopId == 27) {
    if (c.votePoints >= TotPrice2) {
    if (c.getItems().freeSlots() > 0) {
    buyDelay = System.currentTimeMillis();
    c.votePoints -= TotPrice2;
    c.getItems().addItem(itemID, 1);
    Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
    Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
    if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) {
    Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0;
    }
    } else {
    c.sendMessage("You don't have enough space in your inventory.");
    break;
    }
    } else {
    c.sendMessage("You don't have enough Donor Points.");
    break;
    }
    }
    if (c.myShopId == 27) {
    if (c.votePoints >= getSpecialItemValue(itemID)) {
    if (c.getItems().freeSlots() > 0){
    c.votePoints -= getSpecialItemValue(itemID);
    c.getItems().addItem(itemID,1);
    c.getItems().resetItems(3823);
    }
    } else {
    c.sendMessage("You do not have enough Vote Points to buy this item.");
    }
    Kinda easy, i hope i helped you.
    Reply With Quote  
     

  10. #8  
    Registered Member
    Join Date
    Sep 2009
    Posts
    111
    Thanks given
    10
    Thanks received
    2
    Rep Power
    6
    I did this, and it still counts in points..
    Hello.
    Reply With Quote  
     

  11. #9  
    Registered Member
    Join Date
    Aug 2012
    Posts
    177
    Thanks given
    5
    Thanks received
    3
    Rep Power
    17
    If you want to make it easy on yourself just change the shop id and it'll be coins...
    Reply With Quote  
     

  12. #10  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    jelle if it still count in points, u did it wrong
    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

Similar Threads

  1. Prices in shop different from prices.txt
    By nathanrr44 in forum Help
    Replies: 14
    Last Post: 04-05-2012, 08:05 AM
  2. How do you edit shop prices and shop names?
    By Phat Hero in forum Help
    Replies: 1
    Last Post: 12-16-2011, 02:14 AM
  3. [pi] The shop prices :S?
    By Zebra in forum Help
    Replies: 9
    Last Post: 04-08-2011, 04:04 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •