|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Lokai's Custom Race-Class System
--------------------------------------------------------------------------------------------------------------------- CHANGE LOG / NOTES 8/5/2006 Uploaded the zip again, some people are still getting crashes when typing [newstats, and I don't know why. I have not been able to duplicate it. 7/25/2006 Just put up a new version of the system. Please overwrite existing files with these to get the latest changes. Here is what this release changed:
In case anyone gets this and has never played D&D or a similar Role-Playing system, I wanted to explain a bit about why the Stats are set the way they are. Stats are designed to go roughly from 3-18 ( or 3d6.) So, a STR of 18 is like saying GM Strength. And 22 would be like saying Legendary Strength. This is a description of what each Stat should be used for when you are scripting effects of having high stats: Strength - Physical Damage, Hits, Physical Resistances, Weight Capacity, etc. Dexterity - Manual tasks, like Lockpicking; Chance to hit; Swing speed; Cast speed, Cast recovery. Intelligence - Spell Ability, Mental Resistances, Identification tasks, Knowledge tasks, Searching tasks. Constitution - Endurance, Max Hits, Hit Point bonuses, Fatigue reduction, Toughness. Charisma - Max followers increased, Decreased cost to hire, Increased payment for escorting, Taming bonus, Less chance of angering, greater Loyalty (pets, etc.) Wisdom - Prayer spell bonuses (Druid, Cleric), Chivalry (Knight, Paladin) bonuses, lower Tithe amounts. --------------------------------------------------------------------------------------------------------------------- I have had this and a few other Race-Class systems for a while, and have been playing around with them, but wanted to release this while the 2.0 servers are mostly still in Beta. What is this? The Custom Race-Class System is just that, a System. Specifically, it is a System for having Races, Classes, new Skills, new Stats, Levels, and Experience Points. There are 12 Classes defined, each with 5 new Skills of their own. There are 7 races, each with its own set of Stat bonuses, etc. This is what is known as EXTREME BETA stage. It compiles, but by itself will do absolutely nothing. With a few stock-script modifications, you can test out the new player type 'NewMobile' and see what the system is like. More about that later. What is this NOT? This is not complete. The skills are not written. (I have several templates ready to add code to them, and got started on the 'Hypnotism' skill.) Nothing special will 'happen' when players walk around and do things. So how do I test this out? OK, you will need to make a few modifications to some stock scripts to make this work. I decided not to rewrite the PlayerMobile for this. Instead I created a derived class, 'NewMobile', so thankfully you do not have to modify that. Instead, you need to tell the game that you want to play with a NewMobile player instead of a PlayerMobile player. You do that in CharacterCreation.cs. Simplest way is to change the 'CreateMobile( Account a )' routine by changing this line: PHP Code:
PHP Code:
Next, you will want to let players get Experience. You can do that by adding one line to any script that gives out things like Karma, Tokens, etc. For example, in BaseCreature.cs, after: PHP Code:
PHP Code:
You Double-Click the stone to select your Race and Class. They should also be accessible to the players during the game, since the Class Stone allows players to switch classes or advance levels if they have enough experience. Next, go Kill things or whatever, and use the [NewStats command to see your progress.
__________________
Advanced Player Gate with Shard Control - My Master Runebook - Linked Books & Bags - Full Toolbar (Fubar) - XML Bible system - Music Box - Enhancement Deeds - House Paints - Light Switch Last edited by Lokai; 08-05-2006 at 10:10 PM. |
|
|
|
|
|
#2 (permalink) |
|
The best of lurking
|
Ok so there were a few errors. But I have them fixed.
If you have Lokai's Advanced Player Gate. change: Code:
namespace Server.Custom Code:
namespace Server.Customs add to the top of newmobile.cs: Code:
using Server.Custom; ![]() Steel
__________________
|
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Also remember that any character you created before you added the system will not have the new props as they wont be a NewMobile but they would still be a PlayerMobile.
Which can cause crashes if you actually goto refrence those new props and the PlayerMobile doesn't have them.
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#4 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#5 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
I'm not knocking you in any way just making people aware. I'm looking for a way to add new skills for my Sub Races (for which I use a subclassed PlayerMobile....from way back in the early days of RunUO).
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII Last edited by Tru; 07-16-2006 at 04:10 PM. |
|
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#9 (permalink) | |
|
Forum Expert
|
Quote:
When the NewMobile is Deserializing, it creates a new LevelEntry, using itself as a parameter. Since all the variables have not been loaded yet, it is not able to construct the LevelEntry completely. This is not a significant problem, however, since right after that, I read in the Names and Values of the skills that it just choked on previously. This redundancy allows the player to (hopefully) have the same skills and such that it had prior to the restart. |
|
|
|
|
|
|
#11 (permalink) | |
|
Hey, I have my experience higher than my experience required. They both total up to 3000 instead of the required staying the same. So now what? It doesn't say level up or anything. Here's an example:
Quote:
__________________
Just because I'm a newb doesn't mean you have to rub it in... :( |
||
|
|
|
|
|
#12 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#13 (permalink) |
|
Ah, I get it now. It's just a little different than what I am used to. Thanks for the help to see my error. I just don't like how you have to double click the Class Stone again to level up. But good work.
__________________
Just because I'm a newb doesn't mean you have to rub it in... :( |
|
|
|
|
|
|
#14 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#16 (permalink) |
|
Forum Newbie
|
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527 Core: Running on .NET Framework Version 2.0.50727 Core: Optimizing for 4 processors Scripts: Compiling C# scripts...failed (1 errors, 0 warnings) Errors: + Misc/CharacterCreation.cs: CS0246: Line 613: The type or namespace name 'NewMobile' 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. Here is code: CharacterCreation.cs Code:
private static Mobile CreateMobile( Account a )
{
if ( a.Count >= a.Limit )
return null;
for ( int i = 0; i < a.Length; ++i )
{
if ( a[i] == null )
return (a[i] = new NewMobile());
}
return null;
}
Last edited by Blackfire; 07-21-2006 at 08:18 PM. |
|
|
|
|
|
#19 (permalink) |
|
Forum Expert
|
Just posted new release:
|
|
|
|