Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.    


Início Postados Hoje Marcar Fóruns Como Lidos Álbums Banidos SE Team Medalhas
Voltar   Secret Experience > Área L2J > [L2J] Pedidos
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

Resposta
 
Ferramentas do Tópico Modos de Exibição
Antigo 15-06-2010, 11:44 PM   #1
Membro - Veterano
 
Avatar de DS-Dazzel
 
Registrado em: Mar 2009
Localização: Rio Verde
Posts: 689
Agradeceu: 422
Agradecido 366 Vezes em 161 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Meu Estado:
Nome Real: Danillo Silva Nascimento

Inventório de DS-Dazzel

Padrão Java Mod Donator VIP

alguem poderia disponibilizar um Mod de Java Donator VIP
para que eu possa add na rev l2j2010

DS-Dazzel está offline   Responder com Citação
Links Patrocinados
Antigo 15-06-2010, 11:49 PM   #2
B1Z4R0
Membro - Karma
 
Avatar de B1Z4R0
 
Registrado em: Sep 2009
Localização: Rio Verde GO
Posts: 383
Agradeceu: 265
Agradecido 274 Vezes em 113 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Meu Estado:
Enviar mensagem via Windows Live Messenger para B1Z4R0
Nome Real: Paulo Eduardo Ferreira

Inventório de B1Z4R0

Padrão

achei esse no PackMods que VicFelipe Posto, nao sei se é isso qeu vc quer
Donator, Hero & Nobless Status

Spoiler
This can be accomplished on any l2j gracia and interlude any pack xD

Well lets start shell we?Cheesy
At the bottom of the post i attached the admin commands...Cheesy

And first we chose a .properties file...lets say other.properties

# ---------------------------------
# Donator Color Name & Title Config
# ---------------------------------
# Donator Name Color Enabled?.
DonatorNameColorEnabled = false
# Donator Color Name Selection.
DonatorColorName = 00FFFF
# Donator Title Color Enabled?
DonatorTitleColorEnabled = false
# Donator Color Name Selection.
DonatorTitleColor = 00FFFF
we add this there.

Then in config.java we add the title color and name color of a donator ( RGB Code Color )
Code:

/** KidZor: Name Color System of Donator enable */
public static boolean DONATOR_NAME_COLOR_ENABLED;
/** KidZor: Color of donator name */
public static int DONATOR_NAME_COLOR;

/** KidZor: Title Color System of Donator enable */
public static boolean DONATOR_TITLE_COLOR_ENABLED;
/** KidZor: Color of donator name */
public static int DONATOR_TITLE_COLOR;

Code:

/** Donator color name **/
DONATOR_NAME_COLOR_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("Do natorNameColorEnabled", "False"));
DONATOR_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("DonatorColorName", "00FFFF"));
DONATOR_TITLE_COLOR_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("Do natorTitleColorEnabled", "False"));
DONATOR_TITLE_COLOR = Integer.decode("0x" + otherSettings.getProperty("DonatorTitleColor", "00FF00"));

and in enterworld.java (clientpaket) this little code, its for donators when they log and the color of the title and name ( if enabled in config
Code:

if (Config.DONATOR_NAME_COLOR_ENABLED)
{
if (activeChar.isDonator())
{
activeChar.getAppearance().setNameColor(Config.DON ATOR_NAME_COLOR);
activeChar.sendMessage("Welcome Back: " + activeChar.getName() + " to our Server!");
activeChar.sendMessage("Aww and btw " + activeChar.getName() + " please take time to vote ;)");
activeChar.sendMessage("Please, Enjoy your Stay !");
}
}
if (Config.DONATOR_TITLE_COLOR_ENABLED)
{
if (activeChar.isDonator())
{
activeChar.getAppearance().setTitleColor(Config.DO NATOR_TITLE_COLOR);
}
}

Its good to add it on line 312

Now in L2PlayableInstance.java

Code:

/** donator System **/
private boolean _donator = false;

/**
* Set the Donator Flag of the L2PlayableInstance.<BR><BR>
**/
public void setDonator(boolean value)
{
_donator = value;
}

/**
* Return True if the L2PlayableInstance is a Donator.<BR><BR>
**/
public boolean isDonator()
{
return _donator;
}

put it at the end it don't matter xD

And now L2PcInstance.java xD

find private static final String RESTORE_CHARACTER
and at the end of the string tipe " ,hero,donator " this sh1t loads u hero and donator xD

then we go find: player.setNoble(rset.getInt("nobless")==1);
then after it add the lines:

Code:

//L2J-Archid Donator and Hero Mod
player.setHero(rset.getInt("hero")==1);
player.setDonator(rset.getInt("donator")==1);


And after that find: public void leaveOlympiadObserverMode() line 8015
after the strings end put this code: ( it updates the status...changing the donator color name & title instantly when u do //setdonator xD )
Code:

public void updateNameTitleColor()
{
// Donator Color and title update
// Note: this code can be used for GM's too
if (isDonator())
getAppearance().setNameColor(Config.DONATOR_NAME_C OLOR);
getAppearance().setTitleColor(Config.DONATOR_TITLE _COLOR);
broadcastUserInfo();
}


And were almost done!

Now we add the the commands (The admin commands are attached at the end of the post add them in: gameserver/handler/admincommandhandlers )
After that's done we register our commands:
In l2j server or any tipe of that (L2J Archid, L2J Oneo)
net/sf/l2j/gameserver/gameserver.java
Code:

import net.sf.l2j.gameserver.handler.admincommandhandlers .AdminDonator;
import net.sf.l2j.gameserver.handler.admincommandhandlers .AdminHero;
import net.sf.l2j.gameserver.handler.admincommandhandlers .AdminNoble;

And then we add this (this register the commands xD )
Code:

_adminCommandHandler.registerAdminCommandHandler(n ew AdminDonator());
_adminCommandHandler.registerAdminCommandHandler(n ew AdminHero());
_adminCommandHandler.registerAdminCommandHandler(n ew AdminNoble());


Well that's kinda all...

Awwwww almost forgot xD
In command-privileges.properties
Add at the end
Code:

#################
### L2JArchid ###
#################
admin_sethero = 100
admin_setnoble = 100
admin_setdonator = 100


Admin Comands:
Admin Commands Java

K now that's all xD
Aww and please tell me this is useful or not cus it think it is >.>
Awwwww and btw The //sethero is permanently and it dosent interfere with Olympiad xD good for donate...

Shit i forgot this:
For the Db XD
Code:

ALTER TABLE `characters` ADD `donator` decimal(1,0) NOT NULL DEFAULT 0;
ALTER TABLE `characters` ADD `hero` decimal(1,0) NOT NULL DEFAULT 0;

Run this query in mysql..so the hero and the donator Stores xD Thx

B1Z4R0 está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : B1Z4R0 por gostar deste Post :
DS-Dazzel (15-06-2010)
Antigo 15-06-2010, 11:54 PM   #3
Membro - Veterano
 
Avatar de DS-Dazzel
 
Registrado em: Mar 2009
Localização: Rio Verde
Posts: 689
Agradeceu: 422
Agradecido 366 Vezes em 161 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Meu Estado:
Nome Real: Danillo Silva Nascimento

Inventório de DS-Dazzel

Padrão

mas esse pelo que me parece esta bugando na rev

DS-Dazzel está offline   Responder com Citação
Antigo 19-07-2010, 02:15 PM   #4
Mazokista
Membro - Veterano
 
Avatar de Mazokista
 
Registrado em: Dec 2009
Posts: 1,335
Agradeceu: 490
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Rate Designer: Iniciante
Meu Estado:
Enviar mensagem via Windows Live Messenger para Mazokista
Nome Real: Roberto

Inventório de Mazokista

Padrão

Pega Pra L2J Server ?
Da Pra Entender quase nada Nos Codigos *-* Poderia aruma ae manow
pra enteder melhor

Mazokista está offline   Responder com Citação
Resposta


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 11:03 PM.