Server L2J Kamael

Forum for the Vault L2J testers
 
HomeSearchRegisterLog in

Share
 

 [Help] Java race

Go down 
AuthorMessage
Vault
n00b
n00b
Vault

Number of posts : 17
Registration date : 2007-07-19

[Help] Java race Empty
PostSubject: [Help] Java race   [Help] Java race Icon_minitimeSat 21 Jul - 14:50

voila faudrait rajouter une ligne pour selection perso kamael si quelqu'un ses comment faire je deja eseyer mes apres sa compile pas

Quote :
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.sf.l2j.gameserver.clientpackets;

import net.sf.l2j.gameserver.datatables.CharTemplateTable;
import net.sf.l2j.gameserver.model.base.ClassId;
import net.sf.l2j.gameserver.serverpackets.CharTemplates;
import net.sf.l2j.gameserver.templates.L2PcTemplate;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
* This class ...
*
* @version $Revision: 1.3.4.5 $ $Date: 2005/03/27 15:29:30 $
*/
public class NewCharacter extends L2GameClientPacket
{
private static final String _C__0E_NEWCHARACTER = "[C] 0E NewCharacter";
private final static Log _log = LogFactory.getLog(NewCharacter.class.getName());

/**
* packet type id 0x0e
* format: c
* @param rawPacket
*/
protected void readImpl()
{

}

protected void runImpl()
{
if (_log.isDebugEnabled()) _log.debug("CreateNewChar");

CharTemplates ct = new CharTemplates();

L2PcTemplate template = CharTemplateTable.getInstance().getTemplate(0);
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.fighter); // human fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.mage); // human mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.elvenFighter); // elf fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.elvenMage); // elf mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.darkFighter); // dark elf fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.darkMage); // dark elf mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.orcFighter); // orc fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.orcMage); // orc mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.dwarvenFighter); // dwarf fighter
ct.addChar(template);

sendPacket(ct);
}

/* (non-Javadoc)
* @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
*/
public String getType()
{
return _C__0E_NEWCHARACTER;
}
}
Back to top Go down
Stun
Admin


Number of posts : 28
Registration date : 2007-07-19

[Help] Java race Empty
PostSubject: Re: [Help] Java race   [Help] Java race Icon_minitimeSat 21 Jul - 16:42

Je fait tourner a deux trois collègues qui verront peut etre...

Tu a quel log d'erreur?
Back to top Go down
https://kamael-l2j.forums-actifs.com
Vault
n00b
n00b
Vault

Number of posts : 17
Registration date : 2007-07-19

[Help] Java race Empty
PostSubject: Re: [Help] Java race   [Help] Java race Icon_minitimeSat 21 Jul - 17:02

c'est bon je pu compiler now je test
Back to top Go down
rapacce



Number of posts : 9
Registration date : 2007-08-02

[Help] Java race Empty
PostSubject: Re: [Help] Java race   [Help] Java race Icon_minitimeThu 2 Aug - 0:21

Quote :
///VOILa le java a rajouter dans classID pour la selection des perso.
//qui se trouve dans src\main\java\net\sf\l2j\gameserver\model\base
--- (revision 1760)
+++ (working copy)
@@ -188,19 +188,19 @@


package net.sf.l2j.gameserver.model.base;



//ajouter le dummy entry
dummyEntry34 (122, false, null, null), //apres le dummyEntry30 de votre classId.java

maleSoldier (0x7B, false, Race.kamael, null),
femaleSoldier (0x7C, false, Race.kamael, null),
+ maleSoldier (0x7B, false, Race.kamael, null),
+ femaleSoldier (0x7C, false, Race.kamael, null),
trooper (0x3D, false, Race.kamael, maleSoldier),
warder (0x3E, false, Race.kamael, femaleSoldier),
berserker (0x77, false, Race.kamael, trooper),
- maleSoulbreaker (0x78, false, Race.kamael, trooper),
- femaleSoulbreaker (0x78, false, Race.kamael, null, warder),
+ maleSoulbreaker (0x78, false, Race.kamael, trooper),
+ femaleSoulbreaker (0x78, false, Race.kamael, warder),
arbalester (0x79, false, Race.kamael, warder),
//pas encore FIXER
- inspector (0x7A, false, Race.kamael, trooper, warder),
+ inspector (0x7A, false, Race.kamael, warder),
doombringer (0x7B, false, Race.kamael, berserker),
- maleSoulhound (0x80, false, Race.kamael, maleSoulbreaker),
- femaleSoulhound (0x7D, false, Race.kamael, femaleSoulbreaker),
+ maleSoulhound (0x80, false, Race.kamael, maleSoulbreaker),
+ femaleSoulhound (0x7D, false, Race.kamael, femaleSoulbreaker),
trickster (0x7E, false, Race.kamael, arbalester),
judicator (0x7F, false, Race.kamael, inspector);



Last edited by on Thu 2 Aug - 1:05; edited 6 times in total
Back to top Go down
rapacce



Number of posts : 9
Registration date : 2007-08-02

[Help] Java race Empty
PostSubject: Re: [Help] Java race   [Help] Java race Icon_minitimeThu 2 Aug - 0:51

study
Back to top Go down
aggeloosss
Flooder
Flooder


Number of posts : 48
Age : 29
Registration date : 2007-08-19

[Help] Java race Empty
PostSubject: Re: [Help] Java race   [Help] Java race Icon_minitimeTue 21 Aug - 15:15

creating server???
Back to top Go down
Rouxlas
n00b
n00b
Rouxlas

Number of posts : 10
Age : 32
Localisation : Greece
Registration date : 2007-08-20

[Help] Java race Empty
PostSubject: Re: [Help] Java race   [Help] Java race Icon_minitimeTue 21 Aug - 18:01

Vault wrote:
voila faudrait rajouter une ligne pour selection perso kamael si quelqu'un ses comment faire je deja eseyer mes apres sa compile pas

Quote :
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.sf.l2j.gameserver.clientpackets;

import net.sf.l2j.gameserver.datatables.CharTemplateTable;
import net.sf.l2j.gameserver.model.base.ClassId;
import net.sf.l2j.gameserver.serverpackets.CharTemplates;
import net.sf.l2j.gameserver.templates.L2PcTemplate;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
* This class ...
*
* @version $Revision: 1.3.4.5 $ $Date: 2005/03/27 15:29:30 $
*/
public class NewCharacter extends L2GameClientPacket
{
private static final String _C__0E_NEWCHARACTER = "[C] 0E NewCharacter";
private final static Log _log = LogFactory.getLog(NewCharacter.class.getName());

/**
* packet type id 0x0e
* format: c
* @param rawPacket
*/
protected void readImpl()
{

}

protected void runImpl()
{
if (_log.isDebugEnabled()) _log.debug("CreateNewChar");

CharTemplates ct = new CharTemplates();

L2PcTemplate template = CharTemplateTable.getInstance().getTemplate(0);
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.fighter); // human fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.mage); // human mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.elvenFighter); // elf fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.elvenMage); // elf mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.darkFighter); // dark elf fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.darkMage); // dark elf mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.orcFighter); // orc fighter
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.orcMage); // orc mage
ct.addChar(template);

template = CharTemplateTable.getInstance().getTemplate(ClassId.dwarvenFighter); // dwarf fighter
ct.addChar(template);

sendPacket(ct);
}

/* (non-Javadoc)
* @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
*/
public String getType()
{
return _C__0E_NEWCHARACTER;
}
}

Vault I will find the right id's for the Kamael Classes in a few days and i will share theme.
Back to top Go down
http://l2dark.freehostia.com
Sponsored content




[Help] Java race Empty
PostSubject: Re: [Help] Java race   [Help] Java race Icon_minitime

Back to top Go down
 
[Help] Java race
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Server L2J Kamael :: JAVA Contribution-
Jump to: