[Release] Editing Chars Starting Values

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:
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.
 
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.
 
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
 
// 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.
 
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
 
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
 
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.
 
Back