Level System

A simple plugin to add XP and levels in the game

Total Downloads: 1,276 - First Release: Apr 9, 2016 - Last Update: Apr 1, 2018

5/5, 11 likes
  1. Ok I see that now, I was hoping I could turn off roping in my guild crest zone area. (my guild is the GrandExchange and is the only safespot on the map but people get roped out then robbed.) Would you consider adding something that would fix an issue like that?

    And here I go with Ideas again.....

    Example 1 - toggle ON = no roping in IsInOtherCrestArea (still allows you roping in your crested and uncrested areas) OFF= Default Level
    Example 2 - Have a config file to set roping levels in crested areas (ability to set level 1-100) vs. uncrested areas (uncrested default lvl 3)
    Example 3 - Take the average levels of all guild members in guild and that is the Level requirement for roping in that Guild's Zone or maybe set it to the lowest members level but make it change as they level up. this would create some competition to get levels up quick for better guild defense.
    You have been coming up with some awesome features in your plugin ! Keep up the good work!!!
     
  2. Ok I think may have got Example 1 working. It allows members roping others in your own guild while not allowing others to rope you , if you and another player are in someone else's guild you can not rope, but if you are in the wild or uncrested it is allowed. I tested on my test server , but it need to update it it has been throwing a CodeHatch.Melee.MelleeEvent file missing error. I tested in my Community Server and seems to be running. Let me know what you think . I added IsInOtherCrestArea , added a new message, set default level to 1 then switched the < to a >.

    Well functionally it did what i said but it starts acting up..... back to the drawing board.
     

    Attached Files:

    Last edited by a moderator: Dec 22, 2016
  3. Sometimes players just not initialized in LevelSystem after first time connect on server.
     
  4. *****BUG***** ?????????
    Ok so went went back to test the functions of /xpcrestroping on my test server with a fresh copy of LevelSystem and when you attempt fail an attempt to rope or be roped items in your hands are removed from target , sometimes they spin around and face the other way on one player but not for the other and the server throws " [E] The object mouseLookAxis is null. This is not expected." many times. Looks like it happens when "captureEvent.Cancel();" is called.
    Hopefully there is a workaround or fix for this, what if you could cancel at when targeting or not let player put rope in hands or when capture manager is called?
     

  5. I worked on Example 1 got that working , then I went on to Example 2 I now have "GuildRoping" set to level30 so you can not rope in a guild you dont belong to until you reach that level you set in the config, also the owner can rope you if he belongs to the guild.

    D-Kays original CrestRoping feature is working together with GuildRoping. So when the noob shows up you can turn on CrestRoping to by-pass the noob protection set by the Roping Level and rope him.

    I hope you implement this option in your plugin you will probably clean this up better than me I am finally starting to figure this stuff out !......seeing stuff finally work is awesome.
     

    Attached Files:

  6. LevelsSystem.cs

    I got a player with at Level 180 and is untouchable . How would the xpcurve settings help.

    I can set max to what ever I want in config right? ....
     
  7. To change the xpcurve you give a max level (and optionally edit the 4 xpcurve settings) and set recalculateXpCurve to true. When you upload the config onto the server and eighter reload the plugin or restart the server it will recalculate it's xpcurve curveand use the new curve (all values will go into the setting for the curve in the config for if you want to manually edit them).
     
  8. I like that you can play and grind to record epic amounts of xp to show you have played a bunch but the point system has got this guy invisible. If there was a way to set a Level where points are not given any more but xp still goes up ? Or can I set the max for each stat perk levels?
     
  9. Seems like a good idea to only have a certain amount of points you can get by leveling. It won't make people too op while still keeping the biggest purpose of the system.
    Will add it in next update.
     
  10. Awesome... cant wait to see it!
     
  11. Once I'm done remaking the Grand Exchange I'll start working on implementing it.
     
  12. Was that a work in process version you sent me with the TopGold or maybe it was just different version?
    The /removemarkall should be markremoveall to remove GE markers. (Let me know if you need help testing)
     
  13. Is there a way to make it so players can gain tiny amounts of exp for mining or chopping wood?

    Also, my logs are spamming this issue:


    Code:
    03:52 [Error] Failed to call hook 'OnCubePlacement' on plugin 'LevelSystem v0.5.4' (NullReferenceException: Object reference not set to an instance of an object)
    03:52 [Stacktrace]   at Oxide.Plugins.LevelSystem.OnCubePlacement (CodeHatch.Blocks.Networking.Events.CubePlaceEvent placeEvent) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.LevelSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  14. Mining Xp, Woodcutting Xp, Farming XP, Animal Harvesting XP , Fishing XP all would be nice!!
     
    Last edited by a moderator: Jan 21, 2017
  15. Like I said in previous posts, I lack the required hooks to give xp for those things.
    Hooks are pieces of code that get executed when something happens on the server. I need those hooks to execute the code that gives xp.
    I can't make it give xp if there are no hooks.
    I'm trying to create hooks for it but creating a good hook is difficult and takes a lot of time.

    I'll look into the error once I get home Sunday.
     
  16. I bet I have a work around for that
     
  17. Hi there, I love the idea for the mod, but I'm totally new at this and having a bit of an issue.
    I'm probably just dumb and don't know how to do it, but I'm trying to change the cube placing requirements for each tier and this is what I'm doing:


    // Placement settings:
    private int SodLevel => GetConfig("Placement", "Sod", 1);
    private int ThatchLevel => GetConfig("Placement", "Thatch", 1);
    private int ClayLevel => GetConfig("Placement", "Clay", 1);
    private int SprucheLevel => GetConfig("Placement", "Spruche", 1);
    private int WoodLevel => GetConfig("Placement", "Wood", 3);
    private int LogLevel => GetConfig("Placement", "Log", 3);
    private int CobblestoneLevel => GetConfig("Placement", "Cobblestone", 6);
    private int ReinforcedLevel => GetConfig("Placement", "Reinforced Wood (Iron)", 9);
    private int StoneLevel => GetConfig("Placement", "Stone", 12);


    If someone could help out this poor boy just playing around with mods I'd greatly appreciate it!
     
  18. Don't edit anything in the plugin. This might cause it to break. Those are the default values.
    If you want to change anything edit the LevelSystem.json file at saves\oxide\config.
     
  19. Yeah, I knew it was way easier than what I was trying. Thanks for helping me!
     
  20. Wulf could not make hooks for crafting and building?