Need help with a custom MMO plugin

Discussion in 'Plugin Development' started by poxsgaming, Jul 30, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    poxsgaming

    My coder needs help with some basic functions in the plugin we're developing.
    Completing listeners and other stuff.

    The plugin is called RSLevels, based on a game called runescape.
    It takes basic aspects of runescape and implements them into minecraft, without loosing that minecraft feel, nor feeling like runescape.
    The plugin gives no ingame advantages, aside from equipping restrictions and resource collection restrictions to extend the gameplay and create long term players.
    More will be explained when joining.

    We also need a custom economy plugin to work with this plugin if you're interested in helping out with that manner. Thanks.
     
  2. Offline

    AcePilot10

    Have you guys started?
     
  3. Offline

    poxsgaming

    Yes, the plugin has around 2 months worth of work into it.
     
  4. @poxsgaming why would you need a custom economy plugin and shall it work with vault?
     
  5. Offline

    CraftCreeper6

    @Shmobi
    Custom economy is great, working with cross-server essentials is a pain. It's a lot easier to use a MySQL database with a custom economy plugin.
     
  6. Offline

    poxsgaming

    My coder currently has his hands full with the main plugin, and we need the currency plugin to make most of the aspects of the main plugin to work.
    The currency would be called GP (Gold pieces).
    Needs the ability to give, send and set money to players. Later on we'll be working on some kind of trading system, which would open an interface where players can put in items and type in an amount for the trade and accept or decline.
    But for now we need the main aspects I mentioned above.
     
  7. Offline

    Eos

    @poxsgaming
    A currency system takes like 5-10 to make.
    You need the following functions
    getGold,
    setGold,
    takeGold,
    addGold
    canAffordGold.

    getGold
    Code:
        public int getGold() throws IOException {
    
            return getConfig().getInt("Gold");
    
        }
    setGold
    Code:
        public void setGold( int amount ) throws IOException {
    
            getConfig().set("Gold", amount);
    
        }
    takeGold
    Code:
        public void takeGold( int amount ) throws IOException {
    
            getConfig().set("Gold", getGold() - amount);
    
            if ( getConfig().getInt("Gold") < 0 ) {
    
                getConfig().set("Gold", 0);
    
            }
        }
    AddGold
    Code:
        public void addGold( int amount ) throws IOException {
    
            getConfig().set("Gold", getGold() + amount);
    
        }
    canAfford
    Code:
        public void canAfford( int price ) throws IOException {
    
            if (getGold() >= price) {
    
            }
    
        }
     
  8. Offline

    CraftCreeper6

    @Eos
    For the last one, make it return a boolean, seems more logical.

    Code:
    public boolean canAfford(int price)
        {
            return getGold()<price;
        }
     
  9. Offline

    poxsgaming

    Would this store the currency for each player?
    Also keep track through SQL to have a highscore on our website for GP.

    And we're still looking for a coder for the first things I mentioned on the post regarding the listeners in the main plugin. (this has nothing to do with the currency)
     
  10. Offline

    Eos

    @poxsgaming
    My coder needs help with some basic functions in the plugin we're developing.
    Completing listeners and other stuff.

    The text that is bold'ed is very vague and a complete turn off to other programmers. You need to be more detailed and you should mention what type of listeners need to be done. You should also give us a video of your plugin in action. You said you and your friend have been developing it for 2 months so you should have some features. Here's a tip if your plugin needs some sort of data stored that should be the FIRST thing you code into your plugin.
     
  11. Offline

    poxsgaming


    Read my initial post


    The plugin gives no ingame advantages, aside from equipping restrictions and resource collection restrictions to extend the gameplay and create long term players.
    More will be explained when joining.
     
  12. Offline

    mythbusterma

    @Eos

    I wouldn't say I've been working on it for two months, it's probably a lot less than that.

    Also, he isn't very technically adept so he doesn't know what needs to be done.

    I'm not sure why storing data should be the "first" thing, sounds like some pretty arbitrary/pointless advice. That being said, the data storage is done, so I don't know what you're on about.

    Furthermore, I like where your currency "plugin" doesn't even keep track of what player the money belongs to.

    If you're not looking to help, please don't post.
     
  13. Offline

    poxsgaming

    Bump

    Still looking for a coder

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 11, 2016
  14. Offline

    poxsgaming

  15. Offline

    poxsgaming

Thread Status:
Not open for further replies.

Share This Page