• Log in or sign up for an account here: https://www.sythe.org/login

[Req. Help]Change Max Skill Level

Status
Not open for further replies.

M3dalz

Member
Joined
May 16, 2009
Sythe Gold
0
Messages
82
Age
36
Location
BumFuck Nowhere
Hey I got into RSPS a while ago and forgot alot of things. I was into PS's when testscape was looked up to =) I had an idea to make a certain kind of server(Not giving any details yet) and need to know where I can change a few things in it. I am not a coder anymore but more so a lore master and idealist... I will be adding simple things myself such as talking NPC's and Quests....My idea for this server is very new and never before seen before. I will open a thread later on after I have added what I would!!! ( A hint of who this would be for is not so much hardcore pvpers but yet casuals who like a good story behind a world yet It can be for those who like to have things done fast with skip options such as "Lets just cut the bullshit and get started") All Credit will be given to everyone who can help me as long as the creator of the source I will be using and it will not be a leach source but a clean source with all skills working and most of items working properly!

1. Where can I change the max level for all the skills at? Like I wanted them to stop at 30 or 50...

2. After #1 is done can someone make/give or even find a code to stop giving experience in skills after it hits a certain experience?

All Credit will be given to the people/person who can help this =)!
 
search this for your first problem

Code:
getLevelForXP(int exp)

there you will see a code very similar to this :)

Code:
	public int getLevelForXP(int exp) {
    		int points = 0;
    		int output = 0;

    		for (int lvl = 1; lvl <= 99; lvl++) {
			points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
			output = (int)Math.floor(points / 4);
			if (output >= exp) {
	    		return lvl;
			}
    		}
    		return 99;


so if you would like to change that code for max level of say 125? it would need to look like this

Code:
	public int getLevelForXP(int exp) {
    		int points = 0;
    		int output = 0;

    		for (int lvl = 1; lvl <= 125; lvl++) {
			points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
			output = (int)Math.floor(points / 4);
			if (output >= exp) {
	    		return lvl;
			}
    		}
    		return 125;


so i just changed the 99s to 125.

for question 2

just under that you will see

Code:
public boolean addSkillXP

then you will see stuff like
int defence
int strenght
int attack

not in that order but at the bottom of that you will see this

Code:
if ((amount + playerXP[skill]) < 0 || playerXP[skill] > 2000000000) {
			sendMessage("Max XP value reached");
			return false;
		}

that is just saying to stop xp gain once a players skill xp reaches 200m
so you would need to get the xp that you want it to change to
my best advice would be to get pring and train your acc to the level you want, then check the xp and change the 200m to whatever that xp was


although id just advise to leave the xp to gain to 200m?
that way there is maybe something people still feel like they would like to achieve after getting max level


hope i helped, and good luck with your project. Let me know how it goes
 
Thanks for the help =) also instead of using an item with high stats I am making the cap low for now such as 20-40 and for this I can use an XP table to find out what level I want. Also is there a certain name you would like when I give credits?
 
Pizza Muncher
Brony
MushyMuncher
Le Monkey
Not sure if srs or just newfag...
Bojack
Penguin
Wubba Lubba Dub Dub
Gohan has AIDS
Dunce
I'm LAAAAAAAME
Rust Player
Sythe Awards 2020 Winner
Yellow rat
Thanks for the help =) also instead of using an item with high stats I am making the cap low for now such as 20-40 and for this I can use an XP table to find out what level I want. Also is there a certain name you would like when I give credits?

Code:
	public int getLevelForXP(int exp) {
    		int points = 0;
    		int output = 0;

    		for (int lvl = 1; lvl <= 125; lvl++) {
			points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));
			output = (int)Math.floor(points / 4);
			if (output >= exp) {
	    		return lvl;
			}
    		}
    		return 125;

When I changed my server's stats to 135, I also changed the...

Code:
			points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0));

Which balanced out the experience to the level. Not sure if you stated that clearly, or if it's required.
(edit) Since I was doing level 135 and wanted to keep the max experience at 200 million, I changed the numbers in that code to where 200,000,000 experience got you level 135. So you could change it to where 13 million experience is only level 40 or whatnot.
 
Well what I am going to do is go in the code and change the hit XP to lower it. If you could show me where to change that. Otherwise I would make say a cap of 40 per skill and It would take a while to get to just by farming but I'm also adding all the quests by myself. I think I was going to do like 5 long quests per skill thats an important skill to another. Ex. Caped level Thieving can obtain a bar from a chest (Going to be hard to get to) and it can be given to someone with cap smithing to make a key for a different use. A list of things I will need later on after I get a compiler working.

0. A clean server with all current silabs in it like d claws and pl8 for later use in the story!
1. Clearing Out Entire Quest Log and Adding a title that explains those quests.
2.Code to make the players mini-map dot disappear if they have all piece's of an outfit.
3. A good working Agility course/Custom Course.
4. Editing Smithing Major. Like change all of req levels and add new items.
5. An End-Game Areas/Capped Level Areas (Yes this server is inspired by some WoW features.
6. mySQL Help for highscores and Registration<---Not untill it's completed)

Now the most imporant one of all......

7. Once you've reached say cap level of 20 then you can wear a skillcape.....ALSO with this the cap will be changed as I make new areas so if i raised a cap skill level of 30-40 it will take off the skillcape so you don't have people running around with a skill cape at the old cap of 20 when it's moved up.
8. Skill Related Clothing/Armor at Diff levels. Say a woodcutter just got 10 woodcutting then the player may wear lumberjack or a certain gloves!
9. At start game an option on if you want to just PK and have fun or Go through a story and quests and all! If you choose PK there would need to be a way to block all methods of trading each other as a PVP only character would be tele'd to a different spot on the map and blocked off of tele's and all...They would be given access to every weapon currently in game and well as enough money to get started...They would of course be able to enter highscores for player killcount or somthing not sure about that one yet!!! IF that is not possible then PVPer would be able to join a world PVP server but not sure....I like the first idea for this better anyways as it would be way easier!

As you can see this will have a complete story to the entire world as well as have extensive coding involved and this will not be possible to do without some good coders that can make custom codes and get credit!!! Any codes claimed as your own must be yours and if not the code will be removed or I will find the creator of the code and give them credits!



I plan to make this as big as DODIAN or LOSTPKZ or Runekeep or any other server out there! Also I will soon within a week release some of the story that it will be about.....Its going to be something RP'ers would love and Pkers wouldn't mind either...you know something for every kind of player and their tastes
 
Well what I am going to do is go in the code and change the hit XP to lower it. If you could show me where to change that. Otherwise I would make say a cap of 40 per skill and It would take a while to get to just by farming but I'm also adding all the quests by myself. I think I was going to do like 5 long quests per skill thats an important skill to another. Ex. Caped level Thieving can obtain a bar from a chest (Going to be hard to get to) and it can be given to someone with cap smithing to make a key for a different use. A list of things I will need later on after I get a compiler working.

0. A clean server with all current silabs in it like d claws and pl8 for later use in the story!
1. Clearing Out Entire Quest Log and Adding a title that explains those quests.
2.Code to make the players mini-map dot disappear if they have all piece's of an outfit.
3. A good working Agility course/Custom Course.
4. Editing Smithing Major. Like change all of req levels and add new items.
5. An End-Game Areas/Capped Level Areas (Yes this server is inspired by some WoW features.
6. mySQL Help for highscores and Registration<---Not untill it's completed)

Now the most imporant one of all......

7. Once you've reached say cap level of 20 then you can wear a skillcape.....ALSO with this the cap will be changed as I make new areas so if i raised a cap skill level of 30-40 it will take off the skillcape so you don't have people running around with a skill cape at the old cap of 20 when it's moved up.
8. Skill Related Clothing/Armor at Diff levels. Say a woodcutter just got 10 woodcutting then the player may wear lumberjack or a certain gloves!
9. At start game an option on if you want to just PK and have fun or Go through a story and quests and all! If you choose PK there would need to be a way to block all methods of trading each other as a PVP only character would be tele'd to a different spot on the map and blocked off of tele's and all...They would be given access to every weapon currently in game and well as enough money to get started...They would of course be able to enter highscores for player killcount or somthing not sure about that one yet!!! IF that is not possible then PVPer would be able to join a world PVP server but not sure....I like the first idea for this better anyways as it would be way easier!

As you can see this will have a complete story to the entire world as well as have extensive coding involved and this will not be possible to do without some good coders that can make custom codes and get credit!!! Any codes claimed as your own must be yours and if not the code will be removed or I will find the creator of the code and give them credits!



I plan to make this as big as DODIAN or LOSTPKZ or Runekeep or any other server out there! Also I will soon within a week release some of the story that it will be about.....Its going to be something RP'ers would love and Pkers wouldn't mind either...you know something for every kind of player and their tastes

for the changing xp rates search this in client.java

Code:
if (FightType == 1) // Accurate

and you will see this
Code:
					if (FightType == 1) // Accurate
					{
						TotalExp = (double)(60 * hitDiff);
						TotalExp = (double)(TotalExp * CombatExpRate);
						addSkillXP((int)(TotalExp), playerAttack);
					}
					else if (FightType == 2) // Agressive
					{
						TotalExp = (double)(60 * hitDiff);
						TotalExp = (double)(TotalExp * CombatExpRate);
						addSkillXP((int)(TotalExp), playerStrength);
					}
					else if (FightType == 4) // Defensive
					{
						TotalExp = (double)(60 * hitDiff);
						TotalExp = (double)(TotalExp * CombatExpRate);
						addSkillXP((int)(TotalExp), playerDefence);
					}
					else if (FightType == 3) // Controlled
					{
						TotalExp = (double)(60 * hitDiff);
						TotalExp = (double)(TotalExp * CombatExpRate);
						addSkillXP((int)(TotalExp), playerStrength);
					}
					TotalExp = (double)(15 * hitDiff);
					TotalExp = (double)(TotalExp * CombatExpRate);
					addSkillXP((int)(TotalExp), playerHitpoints);
					actionTimer = 7;


that would give 60 xp per damage to the relevant atting style and 15xp per damage to hp on my server those are the rates i use and they take about 3 days to get 99 in a combat skill :P

just change the 60 and the 15 to whatever xp you would like it to give

also my name on all forums is nemoigescape, which is my server name :p my name in my server is rocky tho so im not to bothered :P

also by the looks of most of your problems i can give you a hand, may i also just ask what surce you have used, eg. czar, delta, dodian?
Once again goodluck :P
 
Currently ZDR but I am having prolbems with my JDK as its not compiling so after I fix that I might use devolution for everything =) thanks BTW
 
Currently ZDR but I am having prolbems with my JDK as its not compiling so after I fix that I might use devolution for everything =) thanks BTW

aha my first source was devolution v7.0 /9thats the most common 1)

i learned absolutely nothing from this source and i didnt actually like it
i absolutely loved the mini game and the home (nice and noob freindly) after about a week the source got nulled up and i dont understand why hehe

I then went searching for something like what it sounds like your looking for a blank source so everything is your own work :S?

i stumbled across a source labbeled as a blank silab source, so i downloaded it found out it was czar, i have learned tons from coding this and love it. i have coverted my home into the devolution looks with the mini game added 3 level slayer tower, that actually gives xp from killing the monsters(not crappy chest)

I would more than happily hook you up with a link to a blank czar source if you like? and as its the same source as mine helping
you would be no problem :P


also i dont know if this is any help but this was my first ever guide made :P
http://www.sythe.org/showthread.php?t=623179
 
although id just advise to leave the xp to gain to 200m?
that way there is maybe something people still feel like they would like to achieve after getting max level


hope i helped, and good luck with your project. Let me know how it goes

There would be Items and places. I mean Once they hit the max level which even though it would be say 20 they can till get a skillcape I'm tryign to work it out so a 20 would take at least 2 weeks. Also along with that the level and max xp will change everytime I add new areas in which are design for them and all =)....I might do a pk points system as well for some armor. <---See My leveling system is pretty much based off of WoW... I would be thinking like level 20 mage set, A set with most str, and a set for Def as well as making one for range...Oh yeah and after they hit max level what do they do on regular servers? Same point as making the cap lvl 20 and moving it up cuz it means every time I make brand new stuff u can get like 10 levels and get access to new armor earned by pvp...


Oh and I'm am going to use Iclarity for this =) way cleaner and easier to use...Plus I can add everything I want and only that stuff since it's so clean theres no attacking or anything put in except 1 npc.....Which means as people reach higher levels more items for them....
 
I want to change the max level cap, im using a 508 server, what file do i go into to change it?
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top