Thread: Money pouch..

Results 1 to 6 of 6
  1. #1 Money pouch.. 
    Donator
    Nadeem's Avatar
    Join Date
    Dec 2013
    Posts
    359
    Thanks given
    18
    Thanks received
    4
    Rep Power
    8
    Im wondering if there is any tutorial to make players buy from the shop throgh the pouch, beacuse he must put the money on the inventory first then he can buy
    I need to buy and sell directly fromt the shop to pouch and from the pouch to shop
    Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Mar 2014
    Posts
    21
    Thanks given
    0
    Thanks received
    4
    Rep Power
    11
    Assuming you are using a 718, there is a function to check the amount of money in a pouch, in shops.java, you should be able to modify the current code to implement checking the money pouch, if it is enough, take the money out of there, and add the item to the inventory. else if there is not enough, but combined with that in the inventory you are able, make it remove all in the pouch, then the rest from the inventory, and another else if to just take from the inventory.
    Reply With Quote  
     

  3. #3  
    Registered Member Blackmoon's Avatar
    Join Date
    Jun 2014
    Posts
    633
    Thanks given
    47
    Thanks received
    107
    Rep Power
    42
    Add a method that checks the money pouch + inventory which will return total coins that the player holds. Then make it remove the coins from pouch, and if coins on pouch is not enough, take the rest from inventory.
    Reply With Quote  
     

  4. #4  
    Donator
    Nadeem's Avatar
    Join Date
    Dec 2013
    Posts
    359
    Thanks given
    18
    Thanks received
    4
    Rep Power
    8
    Quote Originally Posted by Kethsi View Post
    Add a method that checks the money pouch + inventory which will return total coins that the player holds. Then make it remove the coins from pouch, and if coins on pouch is not enough, take the rest from inventory.
    Thanks "
    Reply With Quote  
     

  5. #5  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    go to the method that checks if the player has the money, and make it check through the money pouch.
    Reply With Quote  
     

  6. #6  
    Computer Engineer
    Join Date
    Aug 2014
    Posts
    1,051
    Thanks given
    365
    Thanks received
    215
    Rep Power
    16
    Quote Originally Posted by Hitten View Post
    go to itemassistant and add into the playerHasItemAmount Boolean to check that if it's item id 995, it checks if there's money in the pouch
    This isn't pi.
    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. Money Pouch - 99%
    By TheLife in forum Tutorials
    Replies: 142
    Last Post: 12-21-2015, 11:47 AM
  2. help with money pouch error.
    By puresdeath in forum Help
    Replies: 10
    Last Post: 01-10-2012, 10:02 PM
  3. [PI] Money Pouch Problem
    By Gr1nderscape in forum Help
    Replies: 6
    Last Post: 01-06-2012, 08:57 AM
  4. Help me Dementhium Money Pouch
    By A Thugz Life in forum Help
    Replies: 2
    Last Post: 01-06-2012, 02:48 AM
  5. Money pouch problem
    By Gr1nderscape in forum Help
    Replies: 2
    Last Post: 12-17-2011, 06:26 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
  •