|
||
|
|||||||
| 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 |
|
|
#26 (permalink) | |
|
Forum Expert
|
Quote:
Code:
public static void AddExp(Mobile m, Mobile k, Party p, Configured c) Code:
pm.Exp += (int)give; Code:
pm.kxp += (int)give; ![]()
__________________
|
|
|
|
|
|
|
#27 (permalink) |
|
Forum Novice
Join Date: Mar 2006
Posts: 220
|
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 |
|
|
|
|
|
#28 (permalink) | |
|
Forum Expert
|
Quote:
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.
}
__________________
|
|
|
|
|
|
|
#30 (permalink) |
|
Forum Newbie
|
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. |
|
|
|
|
|
#32 (permalink) | ||
|
Forum Expert
|
Quote:
Quote:
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... :/
__________________
|
||
|
|
|
|
|
#33 (permalink) | |
|
Forum Newbie
|
Quote:
|
|
|
|
|
|
|
#36 (permalink) |
|
Forum Newbie
|
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 |
|
|
|
|
|
#37 (permalink) | |
|
Forum Expert
|
Quote:
pm.kxp = 0; (that is if you have it based off of kills only. if it is skills and kills then not possible)
__________________
|
|
|
|
|
|
|
#39 (permalink) |
|
Forum Novice
Join Date: Sep 2007
Posts: 103
|
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.
|
|
|
|
|
|
#45 (permalink) | |
|
Forum Expert
|
Quote:
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.)
__________________
|
|
|
|
|
|
|
#47 (permalink) |
|
Forum Expert
|
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 |
|
|
|
|
|
#48 (permalink) |
|
Forum Expert
|
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. |
|
|
|
|
|
#49 (permalink) | |
|
Forum Expert
|
Quote:
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.
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 )
|