Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

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.

Reply
 
Thread Tools Display Modes
Old 07-05-2007, 05:30 PM   #26 (permalink)
Forum Expert
 
Ki Frost's Avatar
 
Join Date: Dec 2005
Age: 19
Posts: 739
Send a message via ICQ to Ki Frost Send a message via MSN to Ki Frost
Default

Quote:
Originally Posted by jingz2k2 View Post
Oh okay thank you very much.

I'll do that right away

---
Done
---
Restarting
---

Interesting... you used the style of welcometimer.cs! So cool=D

Many thanks again.. I hope this works out.

I will click on 'post' when it works!

******
Okay I got everyone's level back to zero with the current exp right.

But I still can't gain exp properly. I don't gain exp at all. Heheh oh well.

many thanks!
Jingz
Oh yea... that is a little bug that I have been meaning to post a fix for... lol, whoops. It is really simple to change. All you have to do is open your Level Handler.cs and find
Code:
public static void AddExp(Mobile m, Mobile k, Party p, Configured c)
then, find all the spots that are in that section that look like this.
Code:
pm.Exp += (int)give;
(there should only be two) and change them to
Code:
pm.kxp += (int)give;
that will fix that... I'll fix the download so ppl will quit asking about that
__________________
Ki Frost is offline   Reply With Quote
Old 07-05-2007, 06:47 PM   #27 (permalink)
Forum Novice
 
Join Date: Mar 2006
Posts: 220
Default

Nifty everything works fine now.

=)

Thank you very very much Ki Frost.
Thank you very much Grant.

I would like to modify a little bit,
How do I go about to make new characters start at level 1 instead of 0?
newChar.Level = 1; in CharacterCreation.cs doesn't work.

Any ideas?

Thank you again.
Jingz
jingz2k2 is offline   Reply With Quote
Old 07-05-2007, 07:05 PM   #28 (permalink)
Forum Expert
 
Ki Frost's Avatar
 
Join Date: Dec 2005
Age: 19
Posts: 739
Send a message via ICQ to Ki Frost Send a message via MSN to Ki Frost
Default

Quote:
Originally Posted by jingz2k2 View Post
Nifty everything works fine now.

=)

Thank you very very much Ki Frost.
Thank you very much Grant.

I would like to modify a little bit,
How do I go about to make new characters start at level 1 instead of 0?
newChar.Level = 1; in CharacterCreation.cs doesn't work.

Any ideas?

Thank you again.
Jingz
Sure, no probelm.

An easy way to do what you want, is, in the "Reset" file I gave you. Open it, and make it look like:
Code:
            if (pm.Level < 1)
            {
                pm.Level = 1;

                if (pm.ToLevel > 0)
                    pm.ToLevel = 0; //Resets all players.
            }
That way, when they log on, they will automatically be "Level 1"
__________________
Ki Frost is offline   Reply With Quote
Old 07-05-2007, 07:57 PM   #29 (permalink)
Forum Novice
 
Join Date: Mar 2006
Posts: 220
Default

I got a new problem now.

As I'm trying to level.

I tried reseting by set level 1 again.

My current exp stays the same and cannot be changed. Whenever I attack a mob, the game and server freezes.
jingz2k2 is offline   Reply With Quote
Old 07-06-2007, 05:01 AM   #30 (permalink)
Forum Newbie
 
grantsuo's Avatar
 
Join Date: Aug 2006
Location: Canada eh?
Age: 16
Posts: 48
Send a message via MSN to grantsuo Send a message via Skype™ to grantsuo
Default

im confused, lol does that mean to get to level one u need to gain 150 xp and to get to lvl 2 u need to gain 300 xp and to get to lvl 3 u need to gain 450xp and so on? or jsut u need 150 xp each to level,
and i ahve it low cuz i find that it takes alot fo killing to level
but ill test it as i go.

Last edited by grantsuo; 07-06-2007 at 05:04 AM.
grantsuo is offline   Reply With Quote
Old 07-06-2007, 05:08 AM   #31 (permalink)
Forum Novice
 
Join Date: Mar 2006
Posts: 220
Default

Yea UO does not have super powerups or super attacking skills like other grinding mmorpgs however we have Champion Spawns remember?

That's why I think it's a good idea to make it harder to level.
jingz2k2 is offline   Reply With Quote
Old 07-06-2007, 03:34 PM   #32 (permalink)
Forum Expert
 
Ki Frost's Avatar
 
Join Date: Dec 2005
Age: 19
Posts: 739
Send a message via ICQ to Ki Frost Send a message via MSN to Ki Frost
Default

Quote:
Originally Posted by grantsuo View Post
im confused, lol does that mean to get to level one u need to gain 150 xp and to get to lvl 2 u need to gain 300 xp and to get to lvl 3 u need to gain 450xp and so on? or jsut u need 150 xp each to level,
and i ahve it low cuz i find that it takes alot fo killing to level
but ill test it as i go.
No, the "300", "450", "600" are just the accumulated exp needed. Notice how when you level your "Exp" doesnt drop back down to 0 like it did in LS2? Thats because this style of the system is accumulative. Meaning, when you level you keep your old exp, you just need, in your case atm, 150 more to level.
Quote:
Originally Posted by jingz2k2
I got a new problem now.

As I'm trying to level.

I tried reseting by set level 1 again.

My current exp stays the same and cannot be changed. Whenever I attack a mob, the game and server freezes.
Does this happen only when you are leveling, or would be close to leveling, or does it happen in general?

If it is happening WHEN you are/would be leveling then it is more than likely the "for" loop in the DoLevel() code. if it is

for (int i = 0; ..... ....)

it needs to be

for (int i = 1; ..... ....)

and that will probably fix it. Why it does that when it is 0 I have no idea... :/
__________________
Ki Frost is offline   Reply With Quote
Old 07-06-2007, 03:41 PM   #33 (permalink)
Forum Newbie
 
grantsuo's Avatar
 
Join Date: Aug 2006
Location: Canada eh?
Age: 16
Posts: 48
Send a message via MSN to grantsuo Send a message via Skype™ to grantsuo
Default

Quote:
Originally Posted by jingz2k2 View Post
Nifty everything works fine now.

=)

Thank you very very much Ki Frost.
Thank you very much Grant.

I would like to modify a little bit,
How do I go about to make new characters start at level 1 instead of 0?
newChar.Level = 1; in CharacterCreation.cs doesn't work.

Any ideas?

Thank you again.
Jingz
np =] its was all pretty much ki i was jsut using his stuff to help you so credit more to him =]
grantsuo is offline   Reply With Quote
Old 07-06-2007, 05:17 PM   #34 (permalink)
Forum Novice
 
Join Date: Mar 2006
Posts: 220
Default

Thank you very very much Ki Frost.
Thank you very much Grant.

Note that Ki Frost gets 2x Verys and you get 1 hahaha Jk^^.
jingz2k2 is offline   Reply With Quote
Old 07-06-2007, 05:35 PM   #35 (permalink)
Forum Newbie
 
grantsuo's Avatar
 
Join Date: Aug 2006
Location: Canada eh?
Age: 16
Posts: 48
Send a message via MSN to grantsuo Send a message via Skype™ to grantsuo
Default

Quote:
Originally Posted by jingz2k2 View Post
Thank you very very much Ki Frost.
Thank you very much Grant.

Note that Ki Frost gets 2x Verys and you get 1 hahaha Jk^^.
lol there u go :P
grantsuo is offline   Reply With Quote
Old 07-07-2007, 05:42 AM   #36 (permalink)
Forum Newbie
 
grantsuo's Avatar
 
Join Date: Aug 2006
Location: Canada eh?
Age: 16
Posts: 48
Send a message via MSN to grantsuo Send a message via Skype™ to grantsuo
Default

how can i make it so that when I level my xp gets set back to 0 but i need to get 150 more xp to level then i did last time.. eg.

Lvl 1
145/150
then i level and jsut say gain 40xp
normally i would be at 185/300 for the next level
but instead i want it to be 0/300 meaning that i need to gain 300 experience to get to level 3
then the same for that liek 290/300 then i gain 20 xp or even jsut 10 and my xp will be 0/450 so i need to get 450 experience to advance to level 4 and so on
grantsuo is offline   Reply With Quote
Old 07-07-2007, 03:05 PM   #37 (permalink)
Forum Expert
 
Ki Frost's Avatar
 
Join Date: Dec 2005
Age: 19
Posts: 739
Send a message via ICQ to Ki Frost Send a message via MSN to Ki Frost
Default

Quote:
Originally Posted by grantsuo View Post
how can i make it so that when I level my xp gets set back to 0 but i need to get 150 more xp to level then i did last time.. eg.

Lvl 1
145/150
then i level and jsut say gain 40xp
normally i would be at 185/300 for the next level
but instead i want it to be 0/300 meaning that i need to gain 300 experience to get to level 3
then the same for that liek 290/300 then i gain 20 xp or even jsut 10 and my xp will be 0/450 so i need to get 450 experience to advance to level 4 and so on
In the on level code add something like

pm.kxp = 0; (that is if you have it based off of kills only. if it is skills and kills then not possible)
__________________
Ki Frost is offline   Reply With Quote
Old 09-08-2007, 04:03 PM   #38 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 22
Posts: 84
Default craft exp gains?

on screen says its gaining but nothings being added to total exp.
nm i fixed it

Last edited by Holstis; 09-08-2007 at 04:11 PM.
Holstis is offline   Reply With Quote
Old 09-09-2007, 05:05 PM   #39 (permalink)
Forum Novice
 
Riders Myst's Avatar
 
Join Date: Sep 2007
Posts: 103
Default

I dont understand how to put this script in at all on my shard I read everything on how to put it in and install it. You said something about having your files replace the files I already have and I did that and it still didn't work. I try running RunUO after I put the files in then it says the scripts or files cant be found or compiled or something like that.
Riders Myst is offline   Reply With Quote
Old 09-09-2007, 05:37 PM   #40 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 22
Posts: 84
Default

give me the errors
Holstis is offline   Reply With Quote
Old 10-03-2007, 11:01 AM   #41 (permalink)
Lurker
 
Join Date: Jan 2006
Posts: 5
Default

I use run2 I have used her scripts and he doesn't take exp the pg if he builds something, I have tried only him with the metals and not from exp
Gm Safen is offline   Reply With Quote
Old 10-11-2007, 08:06 PM   #42 (permalink)
Newbie
 
Join Date: Jul 2004
Age: 19
Posts: 48
Default

i was wondering if you clould give me the code to add skill ball when u level?
Scifer_12 is offline   Reply With Quote
Old 10-12-2007, 09:16 AM   #43 (permalink)
Newbie
 
Join Date: Jul 2004
Age: 19
Posts: 48
Default

good job on the level system works grate, but i wanted to ann a skill ball every time u level could u give me the proper code for this plz
Scifer_12 is offline   Reply With Quote
Old 11-02-2007, 12:05 PM   #44 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 27
Default

Out of curiosity, are all the fixes you went through here integrated into those first files you posted?
R-T-B is offline   Reply With Quote
Old 11-02-2007, 03:29 PM   #45 (permalink)
Forum Expert
 
Ki Frost's Avatar
 
Join Date: Dec 2005
Age: 19
Posts: 739
Send a message via ICQ to Ki Frost Send a message via MSN to Ki Frost
Default

Quote:
Originally Posted by R-T-B View Post
Out of curiosity, are all the fixes you went through here integrated into those first files you posted?
There is no reset file in the package.
There is no JUST kills exp setting.
There is no option to turn off accumulative exp.

Kills not giving Exp was fixed.


If/When i update this system those three things will be added, along with.

Less PlayerMobile Edits.
An Exp Bar that works (auto refreshes)
Scales Added to the craft section (maybe)
and probably some different packaging.(maybe)
(Like, One with just classic, one with just enviroment, one with just pvp, one with just kills, and one with all.)
__________________
Ki Frost is offline   Reply With Quote
Old 11-02-2007, 03:54 PM   #46 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 27
Default

Sounds great. I'll be eagerly awaiting.
R-T-B is offline   Reply With Quote
Old 11-09-2007, 01:31 AM   #47 (permalink)
Forum Expert
 
drgsldr69's Avatar
 
Join Date: Feb 2003
Location: illinois
Age: 32
Posts: 301
Send a message via ICQ to drgsldr69 Send a message via AIM to drgsldr69 Send a message via MSN to drgsldr69 Send a message via Yahoo to drgsldr69
Default

hopefully you will also have a nifty upgrade file to let us folks with the 3.0 version be able to upgrade easily lol. i ain't installed yet but will be either tonight before i goto sleep or first thing in the morning.

wait it is the morning lol ok afternoon
__________________
My online store - jdvaluestore.com
A D&D shard - dodronline.com
drgsldr69 is offline   Reply With Quote
Old 11-10-2007, 07:40 PM   #48 (permalink)
Forum Expert
 
drgsldr69's Avatar
 
Join Date: Feb 2003
Location: illinois
Age: 32
Posts: 301
Send a message via ICQ to drgsldr69 Send a message via AIM to drgsldr69 Send a message via MSN to drgsldr69 Send a message via Yahoo to drgsldr69
Default

ok everything works perfectly only one thing i would like to change and not exactly sure where i change it at.

to make people gain levels slower! all i killed was a few harpies and headless ones and a couple gazers and i jumped to level 178 did the first level of covetous. sorry but that was WAYYYYYY too fast. i wanna slow it down to where they kill a regular dragon = 1538 xp and it dont auto level them! i didnt even know i was gaining levels till i did a mouse over lol

just to test i killed a dragon at level 35 and now i am level 49 so i didnt just gain one level i gained 14 levels off a regular dragon!
gained 1 level at level 49 which put me to 50?
__________________
My online store - jdvaluestore.com
A D&D shard - dodronline.com

Last edited by drgsldr69; 11-10-2007 at 07:44 PM.
drgsldr69 is offline   Reply With Quote
Old 11-10-2007, 08:34 PM   #49 (permalink)
Forum Expert
 
drgsldr69's Avatar
 
Join Date: Feb 2003
Location: illinois
Age: 32
Posts: 301
Send a message via ICQ to drgsldr69 Send a message via AIM to drgsldr69 Send a message via MSN to drgsldr69 Send a message via Yahoo to drgsldr69
Default

Quote:
Originally Posted by LordHogFred View Post
Go to the LevelHandler.cs and find the DoLevel section.

Find this part of the section:
Code:
            for (int i = 1; pm.Exp >= pm.ToLevel; i++)
            {
And add this underneath:
Code:
int curlv = pm.Level + 1;
Then after that you will need to make various if statements like:
Code:
//Level 1 Exp
if ( curlv = 1 )
pm.ToLevel = 100;

//Level 2 Exp
else if ( curlv = 2 )
pm.ToLevel - 200;

etc, etc
Hope that helps you .
after doing this i get these errors when i try to load up many many of these as i set it up for 36 levels and i set the levels up exactly like they are in D&D 2.0
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/Level System 3/Core/Level Handler.CS:
    CS0029: Line 185: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 189: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 190: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 193: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 197: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 198: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 201: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 205: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 206: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 209: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 213: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 214: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 217: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 221: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 222: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 225: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 229: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 230: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 233: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 237: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 238: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 241: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 245: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 246: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 249: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 253: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 254: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 257: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 261: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 262: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 265: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 269: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 270: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 273: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 277: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 278: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 281: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 285: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 286: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 289: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 293: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 294: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 297: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 301: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 302: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 305: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 309: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 310: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 313: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 317: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 318: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
    CS0029: Line 321: Cannot implicitly convert type 'int' to 'bool'
    CS0029: Line 325: Cannot implicitly convert type 'int' to 'bool'
    CS0201: Line 326: Only assignment, call, increment, decrement, and new objec
t expressions can be used as a statement
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
oh yeah here is that section of coding lol

Code:
        public static void DoLevel(Mobile klr, Configured c)
        {
            PlayerMobile pm = klr as PlayerMobile;
            LevelHandler lh = new LevelHandler();

            double lvls = 0;

            for (int i = 1; pm.Exp >= pm.ToLevel; i++)
            {
			int curlv = pm.Level + 1;
			
			//Level 1 Exp
			if ( curlv = 1 )
			pm.ToLevel = 1;

			//Level 2 Exp
			else if ( curlv = 2 )
			pm.ToLevel - 2000;

			//Level 3 Exp
			if ( curlv = 3 )
			pm.ToLevel = 4000;

			//Level 4 Exp
			else if ( curlv = 4 )
			pm.ToLevel - 8000;
			
			//Level 5 Exp
			if ( curlv = 5 )
			pm.ToLevel = 16000;

			//Level 6 Exp
			else if ( curlv = 6 )
			pm.ToLevel - 32000;

			//Level 7 Exp
			if ( curlv = 7 )
			pm.ToLevel = 64000;

			//Level 8 Exp
			else if ( curlv = 8 )
			pm.ToLevel - 125000;
			
			//Level 9 Exp
			if ( curlv = 9 )
			pm.ToLevel = 250000;

			//Level 10 Exp
			else if ( curlv = 10 )
			pm.ToLevel - 500000;

			//Level 11 Exp
			if ( curlv = 11 )
			pm.ToLevel = 750000;

			//Level 12 Exp
			else if ( curlv = 12 )
			pm.ToLevel - 1000000;
			
			//Level 13 Exp
			if ( curlv = 13 )
			pm.ToLevel = 1250000;

			//Level 14 Exp
			else if ( curlv = 14 )
			pm.ToLevel - 1500000;

			//Level 15 Exp
			if ( curlv = 15 )
			pm.ToLevel = 1750000;

			//Level 16 Exp
			else if ( curlv = 16 )
			pm.ToLevel - 2000000;
			
			//Level 17 Exp
			if ( curlv = 17 )
			pm.ToLevel = 2250000;

			//Level 18 Exp
			else if ( curlv = 18 )
			pm.ToLevel - 2500000;

			//Level 19 Exp
			if ( curlv = 19 )
			pm.ToLevel = 2750000;

			//Level 20 Exp
			else if ( curlv = 20 )
			pm.ToLevel - 3000000;
			
			//Level 21 Exp
			if ( curlv = 21 )
			pm.ToLevel = 3500000;

			//Level 22 Exp
			else if ( curlv = 22 )