/ Guide]Adding stuff when making char

Joined
Apr 29, 2008
Messages
1,297
Reaction score
509
Hmmm.. Maybe this should be in the guide section..
If it is, tell me, I'll delete it and put it in the guide section.

Go to MapleCharacter.java
Its in net\sf\odinms\client

Find this line
Code:
	public static MapleCharacter getDefault(MapleClient client) {
		MapleCharacter ret = new MapleCharacter();
		ret.client = client;
		ret.hp = 50; //Current Hp
		ret.maxhp = 50; //Max Hp
		ret.mp = 50; //Current Mp
		ret.maxmp = 50; //Max Mp
		ret.map = null;
		// ret.map = ChannelServer.getInstance(client.getChannel()).getMapFactory().getMap(0);
		ret.exp.set(0);
		ret.gm = false; //Is Gm or not. True for everyone is a gm
		ret.job = MapleJob.BEGINNER; //Starting Jobs
		ret.meso.set(0); //Start mesos
		ret.level = 1; //Starting level
		ret.pvpdeaths = 0;
        	ret.pvpkills = 0;
		ret.accountid = client.getAccID();
		ret.buddylist = new BuddyList(25); //Buddy List Slot Max = 50
		ret.nxcash = 0; //Nx Cash
		ret.maplepoints = 0; //Maple Points
		ret.gifttokens = 0; //Gift Tokens
		ret.incs = false;

You can change it to anything you want
Not much of a release though.
But it may help noobs.
 
Re: [Release? / Guide]Adding stuff when making char

It's for editing characters that are to be made. Like I edited so all characters you make from then on will begin the game with 500 hp, or something like that. I think...
 
Re: [Release? / Guide]Adding stuff when making char

Uhh sry dont completely understand what this does?

Those are the values set for when you create a char.

So say you change:

ret.maxhp = 50; //max hp

to:

ret.maxhp = 1000; //max hp

When you create a char, your char would start with a max hp of 1000, instead of the regular 50. Just edit the values you want in there to customize char create.
 
Back