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] Downloads > [Lineage] Java Mods
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

 
 
Ferramentas do Tópico Modos de Exibição
Prev Post Anterior   Próximo Post Next
Antigo 04-04-2010, 05:15 PM   #1
Guma
Membro - Veterano
 
Avatar de Guma
 
Registrado em: Sep 2009
Localização: Florianopolis (sc)
Posts: 591
Agradeceu: 72
Agradecido 724 Vezes em 241 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para Guma
Nome Real: i'm Guma

Inventório de Guma

Padrão .Noblesse command

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;
	}
}
creditos : LeVotuss

Guma está offline  
Links Patrocinados
 


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 12:11 AM.