|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Mar 2006
Posts: 34
|
This is an XP (level) system that is based upon the race, level system created by atticus. Original post: Atticus589 Presents >RCL< ver-1.
Last Update: 04/16/2006 I am not taking credit for this system, I am only improving his system as he has not even replied to his thread for some time now. I am only taking credit for the work I have done and any future work I may do. You can add this system to a shard at any stage of development, new or old. You can also remove it just as easily. It will not interfere with any distro systems. I have removed the races from this system, I have removed the special items from this system, I have reworked the code to about a 10th the size of the original code, and I have added some great extra features that I thought should be included in a level system. Previous features: Earn experience for crafting, or killing. Gain levels by earning a certain amount of experience. Removed features: Race system. Special items available for purchase with points. Harvest xp. (Will add this back in at a later date if there is a demand for it.) Added/Improved features: Ability to respec (redo) skills. - You can now use skill points to turn down your skills. Crafting XP now based upon the skill required to craft the item. [nolevels command to allow players to either use the xp system, or the standard skill gain. (Once players choose to not use the xp system for their character, it will not let them switch back.) More balanced xp gain system, raised the maximum level to 50. (After level 50, players earn "After Experience", when they earn a certain amount of "After Experience" they earn skill points. Players can not gain more than 10% of their current level from killing one creature. If a player does not have the veryfire stone in their pack, this system will automatically add it. Planned features for future releases: Preventing players from over-equipping wearables. Perk system, every 10 levels, players can choose a special ability. If enough people need assistance removing atticus's race level system, I will create a how-to. Just let me know if you need any assistance, you can do that by replying to the thread for this script. All input welcome, suggestions, comments, questions, etc. I would especially like to know what features people would like to see in future releases. Last edited by theaxiom; 04-18-2006 at 07:52 PM. |
|
|
|
|
#2 (permalink) |
|
Forum Newbie
Join Date: Oct 2005
Location: Oregon
Age: 26
Posts: 87
|
Hmm, well I got some errors
Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (5 errors, 5 warnings)
- Warning: Scripts\Custom\motd.cs: CS0183: (line 201, column 47) The given expr
ession is always of the provided ('Server.Mobiles.PlayerMobile') type
- Warning: Scripts\Donation Items\StatBall.cs: CS0162: (line 142, column 6) Unr
eachable code detected
- Warning: Scripts\Ore, Woods, and Leathers\Rewards.cs: CS0162: (line 238, colu
mn 73) Unreachable code detected
- Warning: Scripts\Ore, Woods, and Leathers\Rewards.cs: CS0162: (line 239, colu
mn 69) Unreachable code detected
- Warning: Scripts\Special Mobiles & their Items\Jack The Ripper\BaseKiller.cs:
CS0168: (line 98, column 9) The variable 'item' is declared but never used
- Error: Scripts\SkillCheck.cs: CS0246: (line 194, column 63) The type or names
pace name 'VERYFIRE' could not be found (are you missing a using directive or an
assembly reference?)
- Error: Scripts\SkillCheck.cs: CS0246: (line 197, column 21) The type or names
pace name 'VERYFIRE' could not be found (are you missing a using directive or an
assembly reference?)
- Error: Scripts\SkillCheck.cs: CS0103: (line 198, column 21) The name 'v' does
not exist in the class or namespace 'Server.Misc.SkillCheck'
- Error: Scripts\SkillCheck.cs: CS0246: (line 200, column 25) The type or names
pace name 'v' could not be found (are you missing a using directive or an assemb
ly reference?)
- Error: Scripts\SkillCheck.cs: CS0246: (line 204, column 48) The type or names
pace name 'VERYFIRE' could not be found (are you missing a using directive or an
assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
__________________
My favorite internet qoutes: 'Woah, my ninja skills cost 99.99 a month, so I gave them up after the free trial.' - Lord Kaza, RunUO forums. (PS I know him IRL lol) 'Do you really think tacos beat chicken soldiers?' - Special People, Patamalia forums. 'Well, have a good life :\ Though, as we all should know, UO will grab you...and pull you in and you will be a slave to the RPGness once more.' - Starnum, Patamalia Forums. |
|
|
|
|
#3 (permalink) |
|
Newbie
Join Date: Mar 2006
Posts: 34
|
Whoops looks like I ended up deleting a line of code that was important.
![]() Open SkillCheck.cs and look for this: Code:
using Server.Mobiles; Code:
using Server.Items; // XP system |
|
|
|
|
#5 (permalink) |
|
Forum Newbie
Join Date: Oct 2005
Location: Oregon
Age: 26
Posts: 87
|
ah, thank you this system is great!
Only problem now is from this I am guessing, I can't log in, I try and the server crashes as soon as I do
__________________
My favorite internet qoutes: 'Woah, my ninja skills cost 99.99 a month, so I gave them up after the free trial.' - Lord Kaza, RunUO forums. (PS I know him IRL lol) 'Do you really think tacos beat chicken soldiers?' - Special People, Patamalia forums. 'Well, have a good life :\ Though, as we all should know, UO will grab you...and pull you in and you will be a slave to the RPGness once more.' - Starnum, Patamalia Forums. Last edited by Donky-Bull; 04-16-2006 at 03:47 AM. |
|
|
|
|
#7 (permalink) | ||
|
Newbie
Join Date: Mar 2006
Posts: 34
|
Quote:
![]() Quote:
I have reviewed the instructions for installing this script and have cleaned them up a bit to make them easier, especially this bit: --------------------------------------------- Scripts\Engines\Craft\Core\CraftItem.cs --------------------------------------------- Search for this line: Code:
if ( gainSkills ) // This is a passive check. Success chance is entirely dependant on the main skill from.CheckSkill( craftSkill.SkillToMake, minSkill, maxSkill ); Code:
if ( gainSkills ) // This is a passive check. Success chance is entirely dependant on the main skill
{
// Begin XP system
Mobile m = from;
m.Backpack.FindItemByType(typeof(VERYFIRE));
int m_Exists = m.Backpack.GetAmount(typeof(VERYFIRE));
if (m_Exists == 0)
m.Backpack.DropItem(new VERYFIRE());
VERYFIRE v;
v = m.Backpack.FindItemByType(typeof(VERYFIRE)) as VERYFIRE;
int amount = Convert.ToInt32(maxMainSkill * 10);
amount = Convert.ToInt32(amount * .5);
if (v.Level == 50)
{
v.EXP += amount;
m.SendMessage(600, "You have gained {0} After XP!", amount);
if (v.EXP >= 10000)
{
v.EXP -= 10000;
v.SkillPoints++;
m.SendMessage(600, "Your After XP has added up to 10000, you have now gained 1 Skill Point!");
}
m.SendMessage(88, "You have to gain {0} XP to gain another Skill Point.", v.LevelXp - v.EXP);
}
else
{
if (amount > v.LevelXp * .1)
amount = Convert.ToInt32(v.LevelXp * .1);
v.EXP += amount;
m.SendMessage(600, "You have gained {0} XP!", amount);
if (v.EXP >= v.LevelXp)
{
v.Level++; // Increase the level by 1
v.EXP -= v.LevelXp; // Set the total XP to the new level XP minus current XP.
v.LevelXp = Convert.ToInt32(v.LevelXp * 1.1); // Set the new level XP to 110% of the previous level XP.
v.SkillPoints += 15; // Give the player 15 Skill Points for gaining a new level.
m.Title = "[" + v.Level + "]"; // Change the player's title to reflect their new level.
m.FixedParticles(0x376A, 9, 32, 5030, EffectLayer.Waist); // Show special effects to catch the player's attention for gaining a new level.
m.PlaySound(533); // Play a special sound to catch the player's attention for gaining a new level.
m.SendMessage(600, "You are now level " + v.Level + "."); // Notify the player of their new level.
if (v.Level == 2)
m.SendGump(new LevelInfoGump());
}
if (v.Level == 50)
{
v.EXP = 0;
v.LevelXp = 10000;
v.SkillPoints += 20;
m.SendMessage(600, "Congratulations! You are now level 50 which is the highest level in the game. You have received 20 extra Skill Points as a reward.");
m.SendMessage(600, "From now on you will gain After XP. Once you gain a total of 10000 After XP, you will gain another Skill Point.");
}
m.SendMessage(88, "You have to gain {0} XP to advance to the next level.", v.LevelXp - v.EXP);
}
m.SendMessage(88, "You have {0} XP total.", v.EXP);
// End XP system
from.CheckSkill( craftSkill.SkillToMake, minSkill, maxSkill );
}
I am looking for great suggestions as to what people would like to see in this script, so feel free to let me know. This is just the beginning of a great system. Last edited by theaxiom; 04-16-2006 at 02:18 PM. |
||
|
|
|
|
#9 (permalink) | |
|
Newbie
Join Date: Mar 2006
Posts: 34
|
Quote:
Here is the current required XP table: Code:
Level - Required XP 2 - 1000 3 - 1100 4 - 1210 5 - 1331 6 - 1464 7 - 1611 8 - 1772 9 - 1949 10 - 2144 11 - 2358 12 - 2594 13 - 2853 14 - 3138 15 - 3452 16 - 3797 17 - 4177 18 - 4595 19 - 5054 20 - 5560 21 - 6116 22 - 6727 23 - 7400 24 - 8140 25 - 8954 26 - 9850 27 - 10835 28 - 11918 29 - 13110 30 - 14421 31 - 15863 32 - 17449 33 - 19194 34 - 21114 35 - 23225 36 - 25548 37 - 28102 38 - 30913 39 - 34004 40 - 37404 41 - 41145 42 - 45259 43 - 49785 44 - 54764 45 - 60240 46 - 66264 47 - 72890 48 - 80180 49 - 88197 50 - 97017 |
|
|
|
|
|
#12 (permalink) |
|
k, that problem is fixed, but now whenever I try to log onto the shard, I get this error and the server crashes:
Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Server.Misc.SkillCheck.Gain(Mobile from, Skill skill) at Server.Misc.SkillCheck.CheckSkill(Mobile from, Skill skill, Object amObj, Double chance) at Server.Misc.SkillCheck.Mobile_SkillCheckDirectLoca tion(Mobile from, SkillName skillName, Double chance) at Server.Mobile.CheckSkill(SkillName skill, Double chance) at Server.Misc.RegenRates.CheckBonusSkill(Mobile m, Int32 cur, Int32 max, SkillName skill) at Server.Misc.RegenRates.Mobile_StamRegenRate(Mobile from) at Server.Mobile.GetStamRegenRate(Mobile m) at Server.StamTimer..ctor(Mobile m) at Server.Mobile.CheckStatTimers() at Server.Mobile.set_Player(Boolean value) at Server.Misc.CharacterCreation.EventSink_CharacterC reated(CharacterCreatedEventArgs args) at Server.Network.PacketHandlers.CreateCharacter(NetS tate state, PacketReader pvSrc) at Server.Network.MessagePump.HandleReceive(NetState ns) at Server.Network.MessagePump.Slice() at Server.Core.Main(String[] args) |
|
|
|
|
|
#13 (permalink) |
|
Join Date: Sep 2004
Age: 18
Posts: 23
|
Really nice script ive tried to find a script like that for a while and when i dont want to find a level system i found one
thx alot for this script but there only one thing i want to change is the title i want to set it for : Level 2 . Level 3 ..... because now its only (2) and and i to know if its possible because i got race in my shard and they got title it is possible to add the level 2 to the title they actually ad |
|
|
|
|
#14 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#15 (permalink) |
|
Join Date: Sep 2004
Age: 18
Posts: 23
|
its always talking of the script your suposed to modify maybe you can try to take back you backup after backup again and try modify them again maybe you made something bad ..... ( its just a idea like that )
and if you find a way to change the title when you level up please tell me |
|
|
|
|
#16 (permalink) |
|
Join Date: Sep 2004
Age: 18
Posts: 23
|
Ok i found how to set Title that i want just need to go in modifed script and set the title we want for the craftitem and the basecreature
but now its kinda ... too fast is there a way to set we need more XP from each level ? Edit : And i want to know too how do we set its take normal skill gain system and the XP system Last edited by UndSk8; 05-06-2006 at 12:22 AM. |
|
|
|
|
#19 (permalink) | |
|
Join Date: Nov 2005
Age: 19
Posts: 12
|
Quote:
|
|
|
|
|
|
#21 (permalink) | ||||||
|
Join Date: Sep 2004
Age: 18
Posts: 23
|
Quote:
for change the title you need to go there : Quote:
Quote:
Exemple : Undsk8 [Level 50] you need to take the Quote:
Quote:
If you dont understand add me on MSN : ArthasGm@hotmail.com Quote:
|
||||||
|
|
|
|
#24 (permalink) |
|
Forum Newbie
Join Date: Oct 2004
Age: 32
Posts: 35
|
I get the same thing when someone try's to make a new account... Not sure what the deal is... Can someone that knows alittle more about scripting help out? Doesn't seem to be any replys from the guy that made it about whats going on...
|
|
|
|
|
#25 (permalink) |
|
Forum Novice
|
i cant seem to find this line in my scripts...
Titles.AwardKarma( ds.m_Mobile, totalKarma, true ); could someone tell me what line it is around in the: scripts\engines\AI\Creature\BaseCreature.cs I have daats Owltr so if you guys no what line it is on in there i would be greatful thanks a lot |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|