|
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 |
|
|||||||
| Registrar | Loteria VIP | Staff SE | Regras do fórum | Comunidade | Arcade | Postados Hoje | Pesquisar | Experience |
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||
|
|
![]() |
|
|
Ferramentas do Tópico | Modos de Exibição |
|
|
#1 |
|
Membro - Veterano
![]() Registrado em: Dec 2009
Posts: 1,335
Agradeceu: 490
Agradecido 803 Vezes em 427 Posts
Nome Real: Roberto
|
Esse Mod Fazer com qui voce Vire Nobles Com um Pouco de Adena .. Basta Digitar .noblesse ;)
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
+/*
+ * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
+ */
+package com.l2jarchid.gameserver.handler.voicedcommandhandlers;
+
+import com.l2jarchid.gameserver.handler.IVoicedCommandHandler;
+import com.l2jarchid.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jarchid.gameserver.network.SystemMessageId;
+
+/**
+ * @author LeVotuss
+ */
+public class Nobles implements IVoicedCommandHandler
+{
+ private static final String[] VOICED_COMMANDS = {"noblesse"};
+
+ public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+ {
+ if (command.equalsIgnoreCase("noblesse"))
+ {
+ if (activeChar.isNoble())
+ {
+ activeChar.sendMessage("You are allready Noblesse.");
+ return true;
+ }
+ else if (activeChar.getLevel() < 76)
+ {
+ activeChar.sendMessage(" can't make you noblesse you have to be 75lvl .");
+ return true;
+ }
+ else if (activeChar.GetInventoryLimit() * 0.8 <= activeChar.getInventory().getSize())
+ {
+ activeChar.sendPacket(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT);
+ return true;
+ }
+ else if (activeChar.getSubClasses().isEmpty())
+ {
+ activeChar.sendMessage("Come back with SubClass.");
+ return true;
+ }
+ else if(activeChar.getInventory().getItemByItemId(57) != null && activeChar.getInventory().getItemByItemId(57).getCount() >= 500000000)
+ {
+ activeChar.getInventory().destroyItemByItemId("Noblesse", 57, 500000000, activeChar, activeChar.getTarget());
+ activeChar.setNoble(true);
+ activeChar.addItem(target, 7694, 1, activeChar, true);
+ activeChar.broadcastUserInfo();
+
+ }
+ else
+ {
+ activeChar.sendMessage("i need 500 milions to make you noblesse.");
+ return true;
+ }
+ }
+ return false;
+ }
+ public String[] getVoicedCommandList()
+ {
+ return VOICED_COMMANDS;
+ }
+}
|
|
|
| Os Seguintes 3 Usuários disseram Obrigado(a) para Mazokista por gostarem deste post : |
| Links Patrocinados |
|
|
#2 | ||||||||||||||
|
Membro - Veterano
![]() Registrado em: Nov 2008
Posts: 561
Agradeceu: 657
Agradecido 137 Vezes em 103 Posts
Nome Real: ManoeL
|
depois vo pega esse codigo ... da uma mudadinha nele :D
coloca pra vira nobless apenas se tiver a carta e tiver lvl = 76 ou + ai posto pra galera! |
||||||||||||||
|
|
|
||||||||||||||
| O seguinte membro ao lado disse Obrigado(a) a : ManoeL-ADM por gostar deste Post : |
gohandb (25-09-2010)
|