Ver um Único Post
Antigo 20-05-2010, 03:41 PM   #11 (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

Padrão

bom mano eu fui mais profundo nas buscas sobre isso que vc tanto quer ta aque as msg ;D

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
81	                        AdenaAmount = (activeChar.getAdena() / 100)
82	                                        * Config.L2JMOD_WEDDING_DIVORCE_COSTS;
83	                        activeChar.getInventory().reduceAdena("Wedding", AdenaAmount,
84	                                        activeChar, null);
85	
86	                } else
87	                        activeChar.sendMessage("You have broken up as a couple.");
88	
89	                L2PcInstance partner;
90	                partner = (L2PcInstance) L2World.getInstance().findObject(_partnerId);
91	
92	                if (partner != null) {
93	                        partner.setPartnerId(0);
94	                        if (partner.isMarried())
95	                                partner.sendMessage("Your spouse has decided to divorce you.");
96	                        else
97	                                partner
98	                                                .sendMessage("Your fiance has decided to break the engagement with you.");
99	
100	                        // give adena
101	                        if (AdenaAmount > 0)
102	                                partner.addAdena("WEDDING", AdenaAmount, null, false);
103	                }
104	
105	                CoupleManager.getInstance().deleteCouple(_coupleId);
106	                return true;
107	        }
108	
109	        public boolean Engage(L2PcInstance activeChar) {
110	                // check target
111	                if (activeChar.getTarget() == null) {
112	                        activeChar.sendMessage("You have no one targeted.");
113	                        return false;
114	                }
115	
116	                // check if target is a l2pcinstance
117	                if (!(activeChar.getTarget() instanceof L2PcInstance)) {
118	                        activeChar
119	                                        .sendMessage("You can only ask another player to engage you.");
120	
121	                        return false;
122	                }
espero ter ajudado

Daniel2 está offline   Responder com Citação
Links Patrocinados
 

Search Engine Optimization by vBSEO 3.3.0