Tópico: [L2JServer] Trade Relong
Ver um Único Post
Antigo 16-03-2011, 12:59 PM   #1 (permalink)
Daniel2
Membro - Veterano
 
Avatar de Daniel2
 
Registrado em: Mar 2009
Localização: Cabeça Dentro dos Livros
Posts: 1,322
Agradeceu: 15
Agradecido 474 Vezes em 306 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Pontos: 8,740, Nível: 62
Pontos: 8,740, Nível: 62 Pontos: 8,740, Nível: 62 Pontos: 8,740, Nível: 62
Atividade: 99%
Atividade: 99% Atividade: 99% Atividade: 99%

Nome Real: Daniel Santos

Inventório de Daniel2

Arrow Trade Relong

Adcionando este codigo voce nao pode relogar enquanto propoe ou recebe uma proposta de trade.
Ele Testou na la2base e funcionou creio que sirva para as outras.

net/sf/l2j/gameserver/clientpackets/Logout.java

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
                if (!(player.isGM()))
        {
            if(CustomZoneManager.getInstance().checkIfInZone("NoEscape", player)){
                player.sendPacket(SystemMessage.sendString("A superior power doesn't allow you to leave the event"));
                player.sendPacket(new ActionFailed());
                return;                   
            }
+            if (player.isProcessingTransaction())
+            {
+               player.sendMessage("You may not restart while offer trade.");
+               return;
+            }


net/sf/l2j/gameserver/clientpackets/Requestrestart.java

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
    @Override
        protected void runImpl()
    {
        L2PcInstance player = getClient().getActiveChar();
        if (player == null)
        {
            _log.warning("[RequestRestart] activeChar null!?");
            return;
        }
+               if (player.isProcessingTransaction())
+               {
+                       player.sendMessage("Cannot restart while offer trading");
+                       return;
+               }
Creditos: Discord

Daniel2 está offline  
Os Seguintes 6 Usuários disseram Obrigado(a) para Daniel2 por gostarem deste post :
guiiwtf (28-07-2011), leoneto (17-03-2011), Limongi (13-07-2011), ManoeL-ADM (16-03-2011), Nakashimi (15-09-2011), pvbonito (14-06-2011)
Links Patrocinados
 

Search Engine Optimization by vBSEO 3.3.0