Thread: Getting Coins for skilling

Results 1 to 3 of 3
  1. #1 Getting Coins for skilling 
    Registered Member
    Join Date
    Feb 2016
    Posts
    17
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    hey guys, i always liked the idea that grinderscape has of getting coins when you are skilling, for example, when you catch a fish you also get 5k coins, and i downloaded venciollio and i was wondering how do i add that feature to skilling only.. help me please?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2013
    Posts
    610
    Thanks given
    292
    Thanks received
    120
    Rep Power
    39
    No idea how that source works, but you should go to the file which holds information for fishing and after the message "You catch a..", add a statement which adds money to the player's bank (they probably won't have inventory space)

    For example:
    p.getBank().add(995, 5000);

    The "p" will depend on what name you set for the player object and the getBank() name also varies with the name set for the bank object in your player/client class.

    Also, please post this in help next time. Thanks
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2018
    Posts
    33
    Thanks given
    6
    Thanks received
    0
    Rep Power
    11
    what you do depending on the skill is you go to the script for that skill example Mining under where addOre is you add the ore then the money so should look like this

    Code:
    player.getInventory().addItem(955, 1000);
    too add to inventory or you could add to money pouch by this
    player.getPouch().addMoney(100);
    player.getPouch()refreshPouch(true);
    so the codes above will add 100 gp to pouch and refresh pouch so it will show how much exactly is in your pouch .
    means you will obtain 1000 gp per time you mine a ore. can set them to do it for all ores different prices even different skills.
    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: 07-07-2013, 06:33 PM
  2. How to use XML for skills? *Answe*
    By Gore in forum Tutorials
    Replies: 6
    Last Post: 12-10-2008, 05:12 AM
  3. Getting mapdata for all
    By Palidino in forum RS 503+ Client & Server
    Replies: 64
    Last Post: 08-28-2008, 09:34 PM
  4. Buying G coins for Sf... $5 worth
    By Torag in forum PC
    Replies: 1
    Last Post: 04-20-2008, 06:21 PM
  5. Making you get a Real skill cape when you get 99
    By runescape69 in forum Tutorials
    Replies: 5
    Last Post: 09-06-2007, 01:57 AM
Tags for this Thread

View Tag Cloud

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