1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Level System

Discussion in 'Script Support' started by drachai, Dec 22, 2013.

  1. drachai
    Offline

    drachai New Member

    Joined:
    Dec 21, 2013
    Messages:
    5
    Likes Received:
    1
    First of all hello to everyone this is my first message on community. Also so new on servuo (old sphere scripter).

    My question is :

    Is there any working level and class system on servuo? I searched all runuo forums, also found some system on runuo forums but didnt work :( (So many errors, some of the level systems :

    - Bacaw's Easy Level System v[2].0.1 (e)
    - Serbo Level Sys.zip
    - Level system 3
    - Race & Class System v2.rar

    all of them not working :(

    Thank You
     
  2. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,102
    Likes Received:
    117
    I'm not aware of any publicly released ones except the ones you mentioned.

    I think the big problem is most people write heavy edits to playermobile.cs which cause a lot of problems when releasing them. I think a better way would be to use xmlspawer attachments or the custom framework in servuo. I think RoninGT was working on one but he has been missing for a while.
     
  3. drachai
    Offline

    drachai New Member

    Joined:
    Dec 21, 2013
    Messages:
    5
    Likes Received:
    1
    Thank you for your fast and kind reply. I have little knowledge about xmlspawner but i am not sure about the capability of this system. I hope RoninGT releases something about that :)
     
  4. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    972
    Likes Received:
    152
    If you want to make a good level system don't use other peoples system. I made a basic one that takes the players skills and gives them a level based on that. monsters get a level based on a formula of their stats, skills, health, and damage. It's not too hard to achieve honestly. Get some more C script knowledge and it will all fall together i promise.

    Level system 3 : R-B1 does work with servuo, It is what i used before i made my own.
    I know the creator of Level system 1,2,3 and his un released to the public 4 5 and 6. Interesting guy, shame he never finished 5 and 6. each increase in number he made it more compact and independent from ACC. I'd suggest looking at all those level systems you've mentioned and seeing what you can make yourself, even if it's a challenge you will learn something from it.
     
    • Agree Agree x 2
  5. Drilikath
    Offline

    Drilikath New Member

    Joined:
    Mar 22, 2013
    Messages:
    15
    Likes Received:
    1
    Using XML Attachments you can make a simple attachment that holds the player level, current exp, Next Level and then attach it to the player when it is created or by some other means.

    Code (C#):
    1. using System;
    2. using System.Collections.Generic;
    3. using Server;
    4. using Server.Mobiles;
    5. using Server.Engines.XmlSpawner2;
    6.  
    7.  
    8.  
    9.  
    10. namespace Server.PlayerLevelSystem
    11. {
    12.     public class PlayerLevelAttachment : XmlAttachment
    13.     {
    14.         private int m_PlayerLevel = 0;
    15.         private int m_NextLevel = 0;
    16.         private int m_PlayerExp = 0;
    17.  
    18.  
    19.  
    20.  
    21.         [CommandProperty(AccessLevel.GameMaster)]
    22.         public int PlayerLevel { get { return m_PlayerLevel; } set { m_PlayerLevel = value; } }
    23.  
    24.  
    25.  
    26.  
    27.         [CommandProperty(AccessLevel.GameMaster)]
    28.         public int NextLevel { get { return m_NextLevel; } set { m_NextLevel = value; } }
    29.  
    30.  
    31.  
    32.  
    33.         [CommandProperty(AccessLevel.GameMaster)]
    34.         public int PlayerExp { get { return m_PlayerExp; } set { m_PlayerExp = value; } }
    35.  
    36.  
    37.  
    38.  
    39.         public PlayerLevelAttachment(ASerial serial)
    40.             : base(serial)
    41.         {
    42.         }
    43.  
    44.  
    45.  
    46.  
    47.         [Attachable]
    48.         public PlayerLevelAttachment()
    49.         {
    50.             PlayerLevel = 0;
    51.             NextLevel = 18000;
    52.             PlayerExp = 0;
    53.         }
    54.  
    55.  
    56.  
    57.  
    58.         public override void Serialize(GenericWriter writer)
    59.         {
    60.             base.Serialize(writer);
    61.  
    62.  
    63.  
    64.  
    65.             writer.Write((int) 0);
    66.             writer.Write((int)m_PlayerLevel);
    67.             writer.Write((int)m_NextLevel);
    68.             writer.Write((int)m_PlayerExp);
    69.  
    70.  
    71.  
    72.  
    73.         }
    74.  
    75.  
    76.  
    77.  
    78.         public override void Deserialize(GenericReader reader)
    79.         {
    80.             base.Deserialize(reader);
    81.  
    82.  
    83.  
    84.  
    85.             int version = reader.ReadInt();
    86.  
    87.  
    88.  
    89.  
    90.             m_PlayerLevel = reader.ReadInt();
    91.             m_NextLevel = reader.ReadInt();
    92.             m_PlayerExp = reader.ReadInt();
    93.  
    94.  
    95.  
    96.  
    97.         }
    98.     }
    99. }
    This is an example of what i use. If you need more help or would like to use it to move forward I can help you with the process.
     
    • Helpful Helpful x 1
  6. drachai
    Offline

    drachai New Member

    Joined:
    Dec 21, 2013
    Messages:
    5
    Likes Received:
    1
    Thank you for your information and suggestion . I totaly agree to use own system. But right now I'm little newbie on Servuo (I think my c# knowledge is not enough to make right now), I still need example of the level system.
    My project ; in my old emulator, i had already writen a level and class based system. Old system is very simple : the main idea is melee players able to fight bosses like other mmorpg. Player take quest on npc (kill,loot,take item to another npc) and gain more exp. after finish quest. But on old emulator problems are : Too many tags and gumps, monster ai is not enough and envoirement control is too hard,also we couldtn make a good pvp balance on classes etc..
    My goal is on this project make class and level system in uo on enhanced client with sa futures. Maybe some group dungeons like tank,dps, healers. I am not sure about the capability of my team knowledge :)


    @Drilikath thank you for example i'm going to looking it after work on tonight :) I think i'll need more help and i would like to use it to move forward :)
     
  7. jase giffin
    Offline

    jase giffin Active Member

    Joined:
    Sep 14, 2013
    Messages:
    253
    Likes Received:
    72

    !!!!!!BEST ANSWER!!!!!!
     
  8. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,102
    Likes Received:
    117
    We have several people here who are good with xmlspawner attachments. Start on it based on what Drilikath posted (its the same way i do my token system) and when you get stuck we will be happy to help!
     
    • Agree Agree x 1
    • Helpful Helpful x 1
  9. drachai
    Offline

    drachai New Member

    Joined:
    Dec 21, 2013
    Messages:
    5
    Likes Received:
    1
    i am going to work on it, but first i must work on structure and class :( newbie to work on it :D
     
  10. Aryman30
    Offline

    Aryman30 Member

    Joined:
    Jan 2, 2014
    Messages:
    52
    Likes Received:
    1
    -I'm agree to that systems too. Now i'm using ''race & class system v2'' with very modified playermobile. But that need a lot of changes in pm and is very complicated to pack this ideas to other users. I made own races and classes in pm based on d&d and i needed that to make special class items (paladin plate armor set, berserk light armor set, axes etc ) i needed to make this changes because my knowledge about xml attachments ale very poor... and there are my question. That is possible to make with xml?
     
  11. Drilikath
    Offline

    Drilikath New Member

    Joined:
    Mar 22, 2013
    Messages:
    15
    Likes Received:
    1
    Any system that needs playermobile edits can be done with XML attachments. Some code has to be changed for obvious reasons but. Making an xmlattachment for all the information and changing basearmor/weps/clothing etc etc can use the xmlattachment code to make it so the system is technically drag and drop. Any changes to BC usually can not be avoided but 2 lines of code vs 100's is a lot better in my book. Plus if something breaks or you want to change something going in and adding or removing attachments does not break the server.
     
  12. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,102
    Likes Received:
    117
    Changes to playermobile and basecreature can usually be totally avoided if you allow the properties to be get/set on the attachment instead of the player or basecreature. But even if you have to do minor changes to PM and BC, the real advantage is that you can make the changes without the need to Serialize/Deserialize the playermobile and basecreature. All serial/deserial is done on the attachment automatically.

    An example is the token system I did on my shard. I have an xmlattachment that is attached to all players. It tracks # of tokens, last death, last kill, and total kills. These are all values tracked on the attachment and associated with a particular playermobile - with no edits to the playermobile at all. The values can be called from any script, can be viewed by any GM, and remain between saves.

    The only reason I would need to edit my playermobile in this system is if I wanted to be able to call the property directly from the playermobile instead of going through the attachment. For example, a GM could use [get tokens and target a player instead of [get att and then looking at the attachment to get the token value. Even if I do the edit to playermobile, its a very simple get and set property that does not have to be serialized.

    My understanding is that the customs framework does something similar as well, storing in a core instead of attachment but I don't fully understand the system yet and have not played with it much. @Insanity mentioned a tutorial someday when he finishes his 50 other projects ;)
     
  13. Vorspire
    Offline

    Vorspire Vita-Nex: Core
    Admin ServUO Developer

    Joined:
    Jul 29, 2013
    Messages:
    845
    Likes Received:
    157
  14. Insanity
    Offline

    Insanity Active Member

    Joined:
    Mar 2, 2013
    Messages:
    276
    Likes Received:
    61
    The tutorial will be part of the wiki when it's made public. Sorry if you assumed it would be posted via the Archive.
     
  15. Vorspire
    Offline

    Vorspire Vita-Nex: Core
    Admin ServUO Developer

    Joined:
    Jul 29, 2013
    Messages:
    845
    Likes Received:
    157
    If you run out of options and you seriously want to avoid editing a file, you can always learn how to use System.Reflection to get and set fields and properties, or invoke methods on an object or static class, even if they are private.
    That's pretty much the fundamental core to VNc's Services/Modules API at the lowest level.
     
    • Winner Winner x 1
  16. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,102
    Likes Received:
    117
    Ah yeah, I was watching the tutorial section for it, my mistake. Looking forward to the Wiki!
     
  17. Aryman30
    Offline

    Aryman30 Member

    Joined:
    Jan 2, 2014
    Messages:
    52
    Likes Received:
    1
    anybody want my pm ??? :) i think is very inter... :):):):)
     
Similar Threads: Level System
Forum Title Date
Custom Releases Serbo Level System Apr 15, 2017
Script Support level system - lvl sys 3 update Oct 27, 2015
Custom Releases Jako Leveling System (Balanced Pet Leveling) Jun 6, 2015
Script Support XML Weapon Level System Menu with Enhanced Client Jun 3, 2014
Script Support Serbo Level System lvl sys 3 update - work but problem with playermobile Jan 14, 2014
Archived Bug Reports Conflicting Virtue Level Formulas Aug 1, 2017
Archived Bug Reports Arcane Circle - Used to only be level 6 in Prism of Light but now also Britain bank Jul 14, 2017