Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • King Bosnia: Any recommendations to private servers?
      October 18, 2018, 04:47:35 PM
    • FightMexoxo: oi i have the files if anyone whats em
      October 18, 2018, 12:44:42 AM
    • The Wanderer: Whoops
      October 15, 2018, 12:56:18 AM
    • The Wanderer: Making own operating system
      October 15, 2018, 12:56:11 AM
    • Travas: no
      October 07, 2018, 04:03:36 PM
    • Saltyspade10: Server still up and running?
      October 05, 2018, 07:13:41 PM
    • Wesam: Can someone upload moparscape.jar?
      October 05, 2018, 11:43:43 AM
    • Ligoe: yo
      September 30, 2018, 12:48:15 PM
    • Ligoe: how come i can't login the game
      September 30, 2018, 12:48:03 PM
    • fuzzout: Anybody here with experience in using Luna source? I'm looking to develop something, but can't seem to get any of my clients to work with it...
      September 26, 2018, 10:47:27 AM
    • `Discardedx2`: ?
      September 21, 2018, 12:24:09 PM
    • Pookey71: ARE YOU HERE TO RECEIVE MY LIMP PENIS!?
      September 20, 2018, 11:55:24 PM
    • Pookey71: THIS IS DEMOCRACY MANIFESTO
      September 20, 2018, 11:55:07 PM
    • Vasi28: Гранд
      September 03, 2018, 07:06:22 PM
    • Rash: test
      August 30, 2018, 09:09:18 PM
    • Guruu:[link]
      August 30, 2018, 12:04:45 AM
    • Guruu: am i allowed to post links shoutbox?
      August 30, 2018, 12:03:46 AM
    • drubrkletern:[link] feedback wanted
      August 28, 2018, 03:55:17 PM
    • bugz000: Anyone got a link for the old ass silab client and cache.zip? from mopar 3.2 era :) 317
      August 25, 2018, 12:48:15 AM
    • cholland2015: Does anyone know where I can download the old moparscape client/server?
      August 24, 2018, 02:30:51 PM

    Author Topic: NetWealth in Yell  (Read 439 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineHairyNips

    • Member
    • **
    • Posts: 57
    • Thanks: +0/-0
      • View Profile
    NetWealth in Yell
    « on: June 07, 2015, 02:05:12 PM »
    I've been searching for quite some time for a 667 method that makes it so that when you yell, along with your name, it displays your net wealth. In this method it has things that calculate your inventory value, bank value, and gear value, etc, and place it in your yell. Does anyone have this method? Let me know, really need it.
    Runescape Gambling

    OfflineCres

    • Member
    • ****
    • Posts: 1,392
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #1 on: June 07, 2015, 02:23:11 PM »
    there is no such function, you have to make it yourself
    And I can find myself alone with just my thoughts
    As time crumbles away

    Avenged Sevenfold - Darkness Sourrounding
    Runescape Gambling

    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,322
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #2 on: June 07, 2015, 02:51:29 PM »
    Could see this causing a lot of overhead unless you figure out a good way to cache the wealth and only calculate it when something changes either in the inventory, bank, or equipment slots. Not really worth it in my opinion.
    hi. check out luna:)
    Runescape Gambling

    OfflineHairyNips

    • Member
    • **
    • Posts: 57
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #3 on: June 07, 2015, 03:11:47 PM »
    Well I'll just look into myself then. Can you guys help me with one other problem? So there are these trees in the skilling zone I created, and once you chop them down they're gone for a long ass time. How can I make it so the tree never dissapears and you can always cut it.

    OfflineJust Creative

    • Member
    • **
    • Posts: 34
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #4 on: June 07, 2015, 03:50:03 PM »
    For the second problem you have. Sometimes to solve problems I have is to check out other code.
    So lets say you have a normal tree look for something in your files that makes it come back so then you can add it to your custom code you have added. If you don't understand PM me or reply here.

    OfflineHairyNips

    • Member
    • **
    • Posts: 57
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #5 on: June 07, 2015, 06:50:54 PM »
    I understand and consistently use the method. I was looking for guidance more as someone who knew what method handled that.

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #6 on: June 08, 2015, 12:55:22 AM »
    It helps if you provide something for us to work with..

    I can tell you how to make a tree "infinite". But without seeing the code, you're going to read what I say and wonder where to begin.

    It'd really depend on your code.
    I assume your woodcutting system has a method where you cut the tree and it uses a client object as a argument.
    You'd first add a method that returns a boolean into player.java, checking if the player is in the area of the custom trees (Alternatively you could check the tree's coords against the same method, but having an x and y argument instead of none, and the method would probably not have to be in Player.java).
    Then in your woodcutting method, in the code that removes the tree (It'll be like createObject or removeObject or something similar) add an if statement around it. The if statement will be checking if the method you created above is FALSE. if it is false, then go ahead and delete the tree.. If it's true, they're in the zone, so keep the tree.

    OfflineX-J-K-X

    • Member
    • ****
    • Posts: 1,951
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #7 on: June 08, 2015, 09:58:51 AM »
    It helps if you provide something for us to work with..

    I can tell you how to make a tree "infinite". But without seeing the code, you're going to read what I say and wonder where to begin.

    It'd really depend on your code.
    I assume your woodcutting system has a method where you cut the tree and it uses a client object as a argument.
    You'd first add a method that returns a boolean into player.java, checking if the player is in the area of the custom trees (Alternatively you could check the tree's coords against the same method, but having an x and y argument instead of none, and the method would probably not have to be in Player.java).
    Then in your woodcutting method, in the code that removes the tree (It'll be like createObject or removeObject or something similar) add an if statement around it. The if statement will be checking if the method you created above is FALSE. if it is false, then go ahead and delete the tree.. If it's true, they're in the zone, so keep the tree.

    tldr: remove the line that deletes the object or creates the stump  :D

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #8 on: June 08, 2015, 01:20:29 PM »
    It helps if you provide something for us to work with..

    I can tell you how to make a tree "infinite". But without seeing the code, you're going to read what I say and wonder where to begin.

    It'd really depend on your code.
    I assume your woodcutting system has a method where you cut the tree and it uses a client object as a argument.
    You'd first add a method that returns a boolean into player.java, checking if the player is in the area of the custom trees (Alternatively you could check the tree's coords against the same method, but having an x and y argument instead of none, and the method would probably not have to be in Player.java).
    Then in your woodcutting method, in the code that removes the tree (It'll be like createObject or removeObject or something similar) add an if statement around it. The if statement will be checking if the method you created above is FALSE. if it is false, then go ahead and delete the tree.. If it's true, they're in the zone, so keep the tree.

    tldr: remove the line that deletes the object or creates the stump  :D
    No, because he only wants the trees in that zone to do it....
    Now if he wanted it globally, then yes, it'd be easier to just comment out the line.

    Offlinegrandstinger

    • Member
    • **
    • Posts: 81
    • Thanks: +0/-0
      • View Profile
    Re: NetWealth in Yell
    « Reply #9 on: June 08, 2015, 02:21:43 PM »
    It's not hard, just make it yourself ;)

    if you still need the netwealth pm me and i'll help you out a bit.

    « Last Edit: June 08, 2015, 02:24:13 PM by grandstinger »

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal