[Release] Editing Chars Starting Values

ツ
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
This might have been released already, im not really sure. If it has, please dont flame, just tryin to help :p.


In MapleCharacter.java

Find:
Code:
 public static MapleCharacter getDefault(MapleClient client) {
  MapleCharacter ret = new MapleCharacter();
  ret.client = client;
  ret.hp = 50;
  ret.maxhp = 50;
  ret.mp = 50;
  ret.maxmp = 50;
  ret.map = null;
  // ret.map = ChannelServer.getInstance(client.getChannel()).getMapFactory().getMap(0);
  ret.exp.set(0);
  ret.gm = false;
  ret.job = MapleJob.BEGINNER;
  ret.meso.set(0);
  ret.level = 1;
  ret.pvpdeaths = 0;
         ret.pvpkills = 0;
  ret.accountid = client.getAccID();
  ret.buddylist = new BuddyList(25);
  ret.nxcash = 0;
  ret.maplepoints = 0;
  ret.gifttokens = 0;
  ret.incs = false;

Those are the values imput into the DB when you create your character. You can edit them as you like.

For example:

Changing:
Code:
ret.gm = false;
To:
Code:
ret.gm = true;
Would make everyone on your server start as a GM.



Just in case you didnt know any of them:
ret.client = client; // Registers your client (ip, macs, ect)
ret.hp = 50; // Starting CURRENT hp
ret.maxhp = 50; // Starting MAX hp
ret.mp = 50; // Starting CURRENT mp
ret.maxmp = 50; // Starting MAX mp
ret.map = null; // Change null to (?? Sum1 help me out?) To allow changing the begining map (below)
// ret.map = ChannelServer.getInstance(client.getChannel()).getMapFactory().getMap(0); // Starting map
ret.exp.set(0); // Starting exp
ret.gm = false; // Is GM on start. (true = yes, false = no)
ret.job = MapleJob.BEGINNER; // Starting job
ret.meso.set(0); // Starting mesos
ret.level = 1; // Starting level
ret.pvpdeaths = 0; // Starting pvp deaths
ret.pvpkills = 0; // Starting pvp kills
ret.accountid = client.getAccID(); // Gives the account an id (ignore this)
ret.buddylist = new BuddyList(25); // Starting buddy capacity
ret.nxcash = 0; // Starting nx cash
ret.maplepoints = 0; // Starting maple points
ret.gifttokens = 0; // Starting gift tokens
ret.incs = false; // I dunno o_O


Again, this might have already been released, i was just lookin around in the files and saw this, just thought id post it incase someone didnt already know about it.



If you got any questions, ask here and ill try to help as best as i can :p.
 
Last edited:
You've got my respect!
Joined
Apr 8, 2008
Messages
508
Reaction score
147
The release section is just getting worse and worse
this isn't even a release it's a guide
 
ツ
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
The release section is just getting worse and worse
this isn't even a release it's a guide

A guide would be me explaining step by step how to get to it, edit it, and save it. Im releasing WHERE it is found, in case people did not know.


Other then Trait0r, glad everyone enjoys :D
 
Experienced Elementalist
Joined
Jul 10, 2008
Messages
299
Reaction score
3
Bleh i never had to edit my server to make everyone start as a gm (not that i did this) but you can just change the default value of GM to 1 and it saves you the trouble of compiling. And about the starting stats, nice i guess. I never really looked into it. Btw ret.map is obviously the map. When its nulled it sets the map to 0, which is where all the noobs start.
 
ツ
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
Bleh i never had to edit my server to make everyone start as a gm (not that i did this) but you can just change the default value of GM to 1 and it saves you the trouble of compiling. And about the starting stats, nice i guess. I never really looked into it.


Yea i know you can edit the default values, but i just thot id share this :p.
 
Experienced Elementalist
Joined
Jul 10, 2008
Messages
299
Reaction score
3
Yea i know you can edit the default values, but i just thot id share this :p.

// ret.map = ChannelServer.getInstance(client.getChannel()).get MapFactory().getMap(0); // Starting map

Thats wrong :) Starting map is the one you see below that. As you can see that function is commented, meaning it has no effect. IM not being flameful, im just saying that :p
 
Legendary Battlemage
Loyal Member
Joined
Dec 7, 2007
Messages
622
Reaction score
11
o Thx for the Notice ima play around with it =P i can give like 50k nx starters to each ^.^

lmao ret.incs = false; // I dunno o_O
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
I wouldn't recommend giving nx at the beginning...
Reason why: They will keep creating characters until their nx is like unlimited >_>
 
ツ
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
// ret.map = ChannelServer.getInstance(client.getChannel()).get MapFactory().getMap(0); // Starting map

Thats wrong :) Starting map is the one you see below that. As you can see that function is commented, meaning it has no effect. IM not being flameful, im just saying that :p

Its comented out because its set at the default value, if its comented out they start at the lowest number map (i.e. 0). If you uncomment it, and add a map id, then they start there instead. But i think u gotta do sumthin with the line about it, change null to ????

P.S.

How is:

ret.exp.set(0); // Starting exp

Your starting map? x.X

Already released.

I said it might already have been, but i didnt see it, so i thought id put it up.
 
Mythic Archon
Loyal Member
Joined
Jul 23, 2008
Messages
796
Reaction score
56
ret.map = null; // I dunno o_O
// ret.map = ChannelServer.getInstance(client.getChannel()).get MapFactory().getMap(0); // Starting map

//ret.map is definitely not starting map
I'm pretty sure the one above it is starting map.
// means it's not part of the script
 
ツ
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
ret.map = null; // I dunno o_O
// ret.map = ChannelServer.getInstance(client.getChannel()).get MapFactory().getMap(0); // Starting map

//ret.map is definitely not starting map
I'm pretty sure the one above it is starting map.
// means it's not part of the script

K, for everyone saying this.

Notice how, ret.map = null? If you change null to (??? Dunno yet), then it enables the line below (you gotta comment it back in), so you can set the begining map.


Just so people stop postin stuff like that :p
 
Master Summoner
Loyal Member
Joined
Jul 27, 2008
Messages
583
Reaction score
0
the first one is basically character.map = null...

the second one is chacarte.map = mapId(0) in resumen.

the second one is in comment.. because it's not in use.. you can use it and i believe the "syntasis" is correct, so it's just about to change the mapID to change the start.. nothing to spam that much.
 
You've got my respect!
Joined
Apr 8, 2008
Messages
508
Reaction score
147
A guide would be me explaining step by step how to get to it, edit it, and save it. Im releasing WHERE it is found, in case people did not know.


Other then Trait0r, glad everyone enjoys :D
Still it's better off as a guide, rather than a release
 
ツ
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
But the thing is, its NOT a guide, its a release.
 
Master Summoner
Loyal Member
Joined
Jul 27, 2008
Messages
583
Reaction score
0
So, if someone come in here and says..

[Realese] Spam post

Hey I'm spamming..

It's a release too...
 
Back
Top