Thread: Coins

Results 1 to 3 of 3
  1. #1 Coins 
    Donator
    Pretty_Stinky's Avatar
    Join Date
    Mar 2015
    Posts
    154
    Thanks given
    1
    Thanks received
    11
    Rep Power
    0
    hello when i buy an item from my shop but dosnt take the coins
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    So make it remove whatever currency you wish for it to remove inside your buy item method.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Why you reading this?

    LoveandPower's Avatar
    Join Date
    Sep 2010
    Posts
    2,166
    Thanks given
    907
    Thanks received
    288
    Rep Power
    390
    Also to go along with what arch said make sure it removes the coins before the purchase

    Normally you will find something like this in a shop class. You really need to look at the code and understand what is going on and why it does what it does. Shopping is very important and if done incorrectly can cause severe dupes.

    Code:
    PI
    int ShopValue = (int)Math.floor(getItemShopValue(removeId, 0, removeSlot));
    
    Ruse
    player.getInventory().delete(currency.getId(), value, false);
    
    Hyperion
    player.getInventory().remove(new Item(currencyForShop, amount * amountPrItem));
    Spoiler for sig too large:


    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. Replies: 3
    Last Post: 01-14-2009, 08:18 AM
  2. Club Penguin - I am selling coins
    By Hobojoe in forum PC
    Replies: 4
    Last Post: 01-13-2009, 06:01 PM
  3. Proper coin currency
    By wizzyt21 in forum Tutorials
    Replies: 13
    Last Post: 12-17-2008, 09:30 PM
  4. Buying G coins for Sf... $5 worth
    By Torag in forum PC
    Replies: 1
    Last Post: 04-20-2008, 06:21 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
  •