RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Level System 3

actually i tried the edit button it wouldnt let me post them . so i just said screw it and reposted again

ok i did those fixes but now im getting a error i wasnt getting before
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + custom/other/Level System - 3/Distros/PlayerMobile.cs:
    CS1513: Line 3688: } expected
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

now i looked in my code and on that line there is a }
ok i tried different ways of doing it and still can't figure that one out. if i add another } at that line then it says invalid case and mising;

this is the lines it is talking about

Code:
            if (Hidden)	//Hiding is the only buff where it has an effect that's serialized.
                AddBuff(new BuffInfo(BuffIcon.HidingAndOrStealth, 1075655));
        }   [COLOR="Red"]<--line 3688[/COLOR]

        public override void Serialize(GenericWriter writer)

when i add a } this is the error i get

Code:
Errors:
 + custom/other/Level System - 3/Distros/PlayerMobile.cs:
    CS1525: Line 3398: Invalid expression term 'case'
    CS1002: Line 3398: ; expected
    CS1525: Line 3398: Invalid expression term ':'
    CS1002: Line 3398: ; expected
    CS1525: Line 3446: Invalid expression term 'case'
    CS1002: Line 3446: ; expected
    CS1525: Line 3446: Invalid expression term ':'
    CS1002: Line 3446: ; expected
    CS1525: Line 3463: Invalid expression term 'case'
    CS1002: Line 3463: ; expected
    CS1525: Line 3463: Invalid expression term ':'
    CS1002: Line 3463: ; expected
    CS1525: Line 3468: Invalid expression term 'case'
    CS1002: Line 3468: ; expected
    CS1525: Line 3468: Invalid expression term ':'
    CS1002: Line 3468: ; expected
    CS1525: Line 3473: Invalid expression term 'case'
    CS1002: Line 3473: ; expected
    CS1525: Line 3473: Invalid expression term ':'
    CS1002: Line 3473: ; expected
    CS1525: Line 3478: Invalid expression term 'case'
    CS1002: Line 3478: ; expected
    CS1525: Line 3478: Invalid expression term ':'
    CS1002: Line 3478: ; expected
    CS1525: Line 3484: Invalid expression term 'case'
    CS1002: Line 3484: ; expected
    CS1525: Line 3484: Invalid expression term ':'
    CS1002: Line 3484: ; expected
    CS1525: Line 3491: Invalid expression term 'case'
    CS1002: Line 3491: ; expected
    CS1525: Line 3491: Invalid expression term ':'
    CS1002: Line 3491: ; expected
    CS1525: Line 3502: Invalid expression term 'case'
    CS1002: Line 3502: ; expected
    CS1525: Line 3502: Invalid expression term ':'
    CS1002: Line 3502: ; expected
    CS1525: Line 3508: Invalid expression term 'case'
    CS1002: Line 3508: ; expected
    CS1525: Line 3508: Invalid expression term ':'
    CS1002: Line 3508: ; expected
    CS1525: Line 3509: Invalid expression term 'case'
    CS1002: Line 3509: ; expected
    CS1525: Line 3509: Invalid expression term ':'
    CS1002: Line 3509: ; expected
    CS1525: Line 3539: Invalid expression term 'case'
    CS1002: Line 3539: ; expected
    CS1525: Line 3539: Invalid expression term ':'
    CS1002: Line 3539: ; expected
    CS1525: Line 3544: Invalid expression term 'case'
    CS1002: Line 3544: ; expected
    CS1525: Line 3544: Invalid expression term ':'
    CS1002: Line 3544: ; expected
    CS1525: Line 3553: Invalid expression term 'case'
    CS1002: Line 3553: ; expected
    CS1525: Line 3553: Invalid expression term ':'
    CS1002: Line 3553: ; expected
    CS1525: Line 3554: Invalid expression term 'case'
    CS1002: Line 3554: ; expected
    CS1525: Line 3554: Invalid expression term ':'
    CS1002: Line 3554: ; expected
    CS1525: Line 3559: Invalid expression term 'case'
    CS1002: Line 3559: ; expected
    CS1525: Line 3559: Invalid expression term ':'
    CS1002: Line 3559: ; expected
    CS1525: Line 3571: Invalid expression term 'case'
    CS1002: Line 3571: ; expected
    CS1525: Line 3571: Invalid expression term ':'
    CS1002: Line 3571: ; expected
    CS1525: Line 3586: Invalid expression term 'case'
    CS1002: Line 3586: ; expected
    CS1525: Line 3586: Invalid expression term ':'
    CS1002: Line 3586: ; expected
    CS1525: Line 3598: Invalid expression term 'case'
    CS1002: Line 3598: ; expected
    CS1525: Line 3598: Invalid expression term ':'
    CS1002: Line 3598: ; expected
    CS1525: Line 3605: Invalid expression term 'case'
    CS1002: Line 3605: ; expected
    CS1525: Line 3605: Invalid expression term ':'
    CS1002: Line 3605: ; expected
    CS1525: Line 3610: Invalid expression term 'case'
    CS1002: Line 3610: ; expected
    CS1525: Line 3610: Invalid expression term ':'
    CS1002: Line 3610: ; expected
    CS1525: Line 3615: Invalid expression term 'case'
    CS1002: Line 3615: ; expected
    CS1525: Line 3615: Invalid expression term ':'
    CS1002: Line 3615: ; expected
    CS1525: Line 3620: Invalid expression term 'case'
    CS1002: Line 3620: ; expected
    CS1525: Line 3620: Invalid expression term ':'
    CS1002: Line 3620: ; expected
    CS1525: Line 3626: Invalid expression term 'case'
    CS1002: Line 3626: ; expected
    CS1525: Line 3626: Invalid expression term ':'
    CS1002: Line 3626: ; expected
    CS1525: Line 3633: Invalid expression term 'case'
    CS1002: Line 3633: ; expected
    CS1525: Line 3633: Invalid expression term ':'
    CS1002: Line 3633: ; expected
    CS1525: Line 3638: Invalid expression term 'case'
    CS1002: Line 3638: ; expected
    CS1525: Line 3638: Invalid expression term ':'
    CS1002: Line 3638: ; expected
    CS1525: Line 3645: Invalid expression term 'case'
    CS1002: Line 3645: ; expected
    CS1525: Line 3645: Invalid expression term ':'
    CS1002: Line 3645: ; expected
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
 

Ki Frost

Sorceror
C h a o s;728617 said:
Hey just curious if your still providing support + updates for this.. :cool:

as stated somewhere before I am supporting it, and I will be doing updates later. Atm I have no free time, I will probably be able to work on it sometime after christmas...
 

C h a o s

Wanderer
well as your still supporting this im just curious if it's possible to make like a teleporter/ or a moongate require a player to be a certain level to use it (kinda like how u can set the mounts)

Any Simple quick way to do this, and if not, will you include something in a future update that allows you to? :D
 

Ki Frost

Sorceror
sure. its actually rather simple the way its setup. all you have to do is something like this:

Code:
        public override void OnDoubleClick(Mobile from)
        {
            if (!from.Player)
                return;

            if (from.InRange(GetWorldLocation(), 1))
[COLOR="Green"]            {
                PlayerMobile pm = from as PlayerMobile;

                if (pm.Level >= 15)
                    [COLOR="Blue"]CheckGate(from, 1);[/COLOR]
                else
                    from.SendMessage("You are not a high enough level!");
            }[/COLOR]
            else
                from.SendLocalizedMessage(500446); // That is too far away.
        }

        public override bool OnMoveOver(Mobile m)
        {
            if (m.Player)
[COLOR="seagreen"]            {
                PlayerMobile pm = m as PlayerMobile;

                if (pm.Level >= 15)
                    [COLOR="Blue"]CheckGate(m, 0);[/COLOR]
                else
                    m.SendMessage("You are not a high enough level!");
            }[/COLOR]

            return true;
        }
The things in GREEN are what I added and the things in BLUE where the original, you can see I didnt have to do much. That will check to see if they are level 15 or higher before it will "check" the gate. There are other ways, but this is the simplist


NOTE: I made that code using Moongate.cs ;)
 

pepolshet

Sorceror
Impossible!!!!!!!!!!!!!!!!!!!!!!!!!!!! I got only one question, how can i add the exp/level option when i [props a pet?
 

used212

Wanderer
hmm ki frost that is just freakking monumental ... how about leveling items ? :p :D
ur like age 18 ... and coding like that ... GEEZ .. way to go!! :)
 

Ki Frost

Sorceror
pepolshet;729218 said:
Impossible!!!!!!!!!!!!!!!!!!!!!!!!!!!! I got only one question, how can i add the exp/level option when i [props a pet?

Are you saying you want to make the level requirment be setable per pet in game? If you did that you would have to do some rewritting of the pet-level system and then do a props in BaseCreature thats changeable like you do in PlayerMobile. I'll try to add that in on an update... though it will be a little while :(
 

Scyld

Wanderer
Question about Level Rewards

Hi, I'm new and setting up my first shard. This level system was super easy to implement and it was easy to follow the changes in this thread. One question though: Is there a way to implement a reward system for leveling? Like for level 1 or if you do the range option, say levels 1-5, you get a skill ball, a special item, and some gold?
 

Ki Frost

Sorceror
Sneak Peek?

Hello,

I am beginning the work on the new level system! (Level System 3 Rework 1) and I was woundering if people had any suggestions that they would like me to try and add in.

Before you make a suggestion please look over the NEW Setup file first and make sure its not already in. If you have any questions regarding the meaning of something that is in the Setup file, I will awnser it (and hopefully not spoil ALL the fun).
Code:
using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server
{
    public class Setup
    {
        //Int's
        public int StartingLevelCap = 100;
        public int EndingLevelCap = 120;

        public int PartyRange = 13;
        public int ChanceForBonusStat = 33; //The number input is the % to get a bonus stat.

        //Exp Setups
        public const KillType active = KillType.AllKills; // -None, Open, OnlyPk, OnlyNPC, AllKills

        public bool ExpFromStats = true;
        public bool ExpFromSkills = true;
        public bool ExpFromOnlyFightSkills = false;//ExpFromSkills must be true for this to work.
        public bool ExpFromPetKills = true;
        public bool ExpFromCrafting = true;
        public bool ExpPartyShare = true;
        public bool ExpEvenPartyShare = true;//ExpPartyShare must be true for this to work.

        //View Configs
        public bool AllowExpBar = true;
        public bool RefreshExpBarOnGain = true;

        public bool ShowLevelInName = true;
        public bool ShowLevelBelowName = false;//do it this way?
        public bool ShowStaffLevel = true;
        public bool ShowLevelCap = true;
        public bool ShowLevelPaperdoll = true;
        public bool ShowNPCLevel = true;
        public bool ShowVendorLevels = false;//ShowNPCLevel must be true for this to work.

        //Misc Configs
        public bool AccumulativeExp = true;
        //while true, when you level your 'exp' doesnt drop back to 0 it stays at what it was when you leveled.
        //while false, when you level your 'exp' drops back to 0.
        //EXP is interchangeable. it will be the same amount to level if Accumulative or not...

        public bool BonusStatOnLevel = true;
        public bool StatRefillOnLevel = true;

        //Level To Ride (LTR) Mounts
        public int LTREveryMount = 0; //Set EVERY mount rideable at this level

        public int LTRBeetle = 0;
        public int LTRDesertOstard = 0;
        public int LTRFireSteed = 0;
        public int LTRForestOstard = 0;
        public int LTRFrenziedOstard = 0;
        public int LTRHellSteed = 0;
        public int LTRHiryu = 0;
        public int LTRHorse = 0;
        public int LTRKirin = 0;
        public int LTRLesserHiryu = 0;
        public int LTRNightMare = 0;
        public int LTRRidableLlama = 0;
        public int LTRRidgeback = 0;
        public int LTRSavageRidgeback = 0;
        public int LTRScaledSwampDragon = 0;
        public int LTRSeaHorse = 0;
        public int LTRSilverSteed = 0;
        public int LTRSkeletalMount = 0;
        public int LTRSwampDragon = 0;
        public int LTRUnicorn = 0;
    }

    public class NoKillType
    {
        public static bool Enabled { get { return Setup.active = KillType.None; } }
    }

    public class KillTypeOpen
    {
        public static bool Enabled { get { return Setup.active = KillType.Open; } }
    }

    public class KillTypePK
    {
        public static bool Enabled { get { return Setup.active = KillType.OnlyPK; } }
    }

    public class KillTypeNPC
    {
        public static bool Enabled { get { return Setup.active = KillType.OnlyNPC; } }
    }

    public class KillTypeAll
    {
        public static bool Enabled { get { return Setup.active = KillType.AllKills; } }
    }

    public enum KillType
    {
        None,
        Open,//Open is there for IF we get In-Game setup to work :)
        OnlyPK,
        OnlyNPC,
        AllKills
    }
}
ALSO! I have two questions about features in the system.
1: Which would you prefer two Bool's for level display (like it is now) or the Const setup like in the current system ('public const View Cnfg = View.InName;')

2:Who has a problem with the Removal/Reduction of the Advanced Exp setting in the current system?
(for those that don't know, pre-determind exp/range of exp for certain groups of cretures).

Other than that, feel free to comment, complain, compliment, or suggest. ;)
 

Trip3033

Sorceror
just a few suggestions

i got a couple of suggestions :p the first is...Can you change the Expernice amount that players can gain for each thing...like for example the more they level up the less xp they receive from easy creatures, and another one is a way that you can restrict weapons from the level of the players or atleast a code we can use to add to our custom made items or somthing......and the last one i have is a way your players get skill points and pick there stats and you get to pick how much they get from level 1 then decrease it from like 15% each 30 or 40 levels..unless thats already made..i duno i havn't used this system yet im just giving suggestion that i dont see in ur config file...lol your new remake system look like its going to be good thou for config when do you think your going to be done? and i got one question to ask how can you set a certain creature to level you want it as like lets say i create a boss and i want to make him level 110 how can i do that?
 

Trip3033

Sorceror
Well i tried ur leveling system and it seems pretty cool man good job i like it, but i have a small problem every once in a while my players freezes and get disconnect from your system and i dont know what or why this is happening......
 

Ki Frost

Sorceror
Trip3033;733108 said:
i got a couple of suggestions :p the first is...Can you change the Expernice amount that players can gain for each thing...like for example the more they level up the less xp they receive from easy creatures, and another one is a way that you can restrict weapons from the level of the players or atleast a code we can use to add to our custom made items or somthing......and the last one i have is a way your players get skill points and pick there stats and you get to pick how much they get from level 1 then decrease it from like 15% each 30 or 40 levels..unless thats already made..i duno i havn't used this system yet im just giving suggestion that i dont see in ur config file...lol your new remake system look like its going to be good thou for config when do you think your going to be done? and i got one question to ask how can you set a certain creature to level you want it as like lets say i create a boss and i want to make him level 110 how can i do that?
Done
Done
I dont do 'skill/stat point' settings, BUT!!! With the new system they will be EXTREMLY easy to add and I will provide information on how to do it ;)
Setting creature's levels is something I am trying to figure out atm... If I can get it to work it will be in.
How long will it take me? I would expect a beta out at about the 22nd... Maybe sooner or maybe later, depends on work and stuff :/
Trip3033 said:
Well i tried ur leveling system and it seems pretty cool man good job i like it, but i have a small problem every once in a while my players freezes and get disconnect from your system and i dont know what or why this is happening......
Not to sure on this one, But I would assume the new system will fix that. I have already noticed that its fixed about 5 of the bugs that kept appearing in the original LS3... ;)
 

Darky12

Sorceror
was wondering if anyone could help me with some error i'm getting
Code:
Scripts: Compiling C# scripts...failed (8 errors, 0 warnings)
Errors:
 + Mobiles/Animals/Mounts/LesserHiryu.cs:
    CS0115: Line 119: 'Server.Mobiles.LesserHiryu.GetControlChance(Server.Mobile
, bool)': no suitable method found to override
 + Mobiles/Animals/Mounts/Ridgeback.cs:
    CS0115: Line 48: 'Server.Mobiles.Ridgeback.GetControlChance(Server.Mobile, b
ool)': no suitable method found to override
 + Mobiles/Animals/Mounts/SavageRidgeback.cs:
    CS0115: Line 48: 'Server.Mobiles.SavageRidgeback.GetControlChance(Server.Mob
ile, bool)': no suitable method found to override
 + Mobiles/Animals/Mounts/ScaledSwampDragon.cs:
    CS0115: Line 47: 'Server.Mobiles.ScaledSwampDragon.GetControlChance(Server.M
obile, bool)': no suitable method found to override
 + Mobiles/Animals/Mounts/SwampDragon.cs:
    CS0115: Line 145: 'Server.Mobiles.SwampDragon.GetControlChance(Server.Mobile
, bool)': no suitable method found to override
 + Mobiles/Monsters/Misc/Melee/BladeSpirits.cs:
    CS0115: Line 17: 'Server.Mobiles.BladeSpirits.GetFightModeRanking(Server.Mob
ile, Server.Mobiles.FightMode, bool)': no suitable method found to override
 + Mobiles/Monsters/Misc/Melee/EnergyVortex.cs:
    CS0115: Line 17: 'Server.Mobiles.EnergyVortex.GetFightModeRanking(Server.Mob
ile, Server.Mobiles.FightMode, bool)': no suitable method found to override
 + Mobiles/Monsters/SE/FireBeetle.cs:
    CS0115: Line 80: 'Server.Mobiles.FireBeetle.GetControlChance(Server.Mobile,
bool)': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

this is a fresh install, only thing that was done, is update to SVN 282.
 

Alex21

Sorceror
Darky12;735662 said:
was wondering if anyone could help me with some error i'm getting
Code:
Scripts: Compiling C# scripts...failed (8 errors, 0 warnings)
Errors:
 + Mobiles/Animals/Mounts/LesserHiryu.cs:
    CS0115: Line 119: 'Server.Mobiles.LesserHiryu.GetControlChance(Server.Mobile
, bool)': no suitable method found to override
 + Mobiles/Animals/Mounts/Ridgeback.cs:
    CS0115: Line 48: 'Server.Mobiles.Ridgeback.GetControlChance(Server.Mobile, b
ool)': no suitable method found to override
 + Mobiles/Animals/Mounts/SavageRidgeback.cs:
    CS0115: Line 48: 'Server.Mobiles.SavageRidgeback.GetControlChance(Server.Mob
ile, bool)': no suitable method found to override
 + Mobiles/Animals/Mounts/ScaledSwampDragon.cs:
    CS0115: Line 47: 'Server.Mobiles.ScaledSwampDragon.GetControlChance(Server.M
obile, bool)': no suitable method found to override
 + Mobiles/Animals/Mounts/SwampDragon.cs:
    CS0115: Line 145: 'Server.Mobiles.SwampDragon.GetControlChance(Server.Mobile
, bool)': no suitable method found to override
 + Mobiles/Monsters/Misc/Melee/BladeSpirits.cs:
    CS0115: Line 17: 'Server.Mobiles.BladeSpirits.GetFightModeRanking(Server.Mob
ile, Server.Mobiles.FightMode, bool)': no suitable method found to override
 + Mobiles/Monsters/Misc/Melee/EnergyVortex.cs:
    CS0115: Line 17: 'Server.Mobiles.EnergyVortex.GetFightModeRanking(Server.Mob
ile, Server.Mobiles.FightMode, bool)': no suitable method found to override
 + Mobiles/Monsters/SE/FireBeetle.cs:
    CS0115: Line 80: 'Server.Mobiles.FireBeetle.GetControlChance(Server.Mobile,
bool)': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

this is a fresh install, only thing that was done, is update to SVN 282.

try posting in script support, might get answers quicker.
 

Shadow807

Wanderer
awesome

This is a really great script but i was wondering how could i make it so that each race or class gets a specific item after they use the stones?
 
Top