sidneivascao 1 Postado Junho 16, 2016 Share Postado Junho 16, 2016 Agora, RicardoRoX disse: @Josegvb Tu aplicou a correção que eu postei? qual correção é? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696451 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 16, 2016 Share Postado Junho 16, 2016 (editado) 4 minutos atrás, sidneivascao disse: qual correção é? http://www.mediafire.com/download/7b5g33o25zieq96/correcao_double_team_byRicardoroxx.rar Editado Junho 16, 2016 por RicardoRoX Link errado AHUEIOHEIUAHEIA Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696453 Compartilhar em outros sites More sharing options...
sidneivascao 1 Postado Junho 16, 2016 Share Postado Junho 16, 2016 Agora, RicardoRoX disse: http://www.mediafire.com/download/gtftzi63w1lahot/Correcao_Channel_Ricardorox.rar essa correçao nao tem na v2? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696454 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 16, 2016 Share Postado Junho 16, 2016 Corrigi o link lá... e não tem na V2 da pagina inicial n Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696455 Compartilhar em outros sites More sharing options...
jajazenho 1 Postado Junho 16, 2016 Share Postado Junho 16, 2016 Alguem ai sabe me informar onde fica o arquivo que faz as contagens dos diamonds no Emerald Shop? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696457 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 16, 2016 Share Postado Junho 16, 2016 5 minutos atrás, jajazenho disse: Alguem ai sabe me informar onde fica o arquivo que faz as contagens dos diamonds no Emerald Shop? se n me engano em: creaturescripts\scripts\opcodes Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696458 Compartilhar em outros sites More sharing options...
jajazenho 1 Postado Junho 16, 2016 Share Postado Junho 16, 2016 5 minutos atrás, RicardoRoX disse: se n me engano em: creaturescripts\scripts\opcodes Ricardo é seguinte eu add um novo item para cobrança entendeu ex: Diamonds, so que na hora de descontar so desconta se tiver as emeralds na Bag e nao esta fazendo a contagem saberia me ajudar? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696459 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 16, 2016 Share Postado Junho 16, 2016 5 minutos atrás, jajazenho disse: Ricardo é seguinte eu add um novo item para cobrança entendeu ex: Diamonds, so que na hora de descontar so desconta se tiver as emeralds na Bag e nao esta fazendo a contagem saberia me ajudar? vai no client e tenta alterar a modules\game_shop\shop.lua Spoiler function init() connect(g_game, { onGameEnd = onGameEnd }) ProtocolGame.registerExtendedOpcode(103, function(protocol, opcode, buffer) onBuyFailed(protocol, opcode, buffer) end) shopWindow = g_ui.displayUI('shop') shopWindow:hide() playerEmeralds = shopWindow:getChildById('emeralds') shopTabBar = shopWindow:getChildById('shopTabBar') shopTabBar:setContentWidget(shopWindow:getChildById('shopTabContent')) marketPanel = g_ui.loadUI('market') shopTabBar:addTab('Market', marketPanel, '/images/game/shop/market') outfitsPanel = g_ui.loadUI('outfits') shopTabBar:addTab('Outfits', outfitsPanel, '/images/game/shop/outfits') addonsPanel = g_ui.loadUI('addons') shopTabBar:addTab('Addons', addonsPanel, '/images/game/shop/addons') clansPanel = g_ui.loadUI('clans') shopTabBar:addTab('Clans', clansPanel, '/images/game/shop/clans') shopButton = modules.client_topmenu.addRightGameButton('shopButton', tr('Emerald Shop'), '/images/topbuttons/emerald_shop', toggle) shopButton:setWidth(36)endfunction terminate() disconnect(g_game, { onGameEnd = onGameEnd }) ProtocolGame.unregisterExtendedOpcode(103) shopWindow:destroy() shopButton:destroy()endfunction onGameEnd() if shopWindow:isVisible() then shopWindow:hide() endendfunction show() shopWindow:show() shopWindow:raise() shopWindow:focus() addEvent(function() g_effects.fadeIn(shopWindow, 250) end) playerEmeralds:setText(g_game.getLocalPlayer():getItemsCount(3032))endfunction hide() addEvent(function() g_effects.fadeOut(shopWindow, 250) end) scheduleEvent(function() shopWindow:hide() end, 250)endfunction toggle() if shopWindow:isVisible() then hide() else show() endendfunction clanWindow(clan) local clanWindow = g_ui.createWidget('ClanWindow', rootWidget) local prize = clanWindow:getChildById('prize') clanWindow:setText(clan) clanWindow:getChildById('okButton').onClick = function() modules.game_textmessage.displayBroadcastMessage(clan .. ': ' .. tonumber(prize:getText())) clanWindow:destroy() end clanWindow.onEnter = function() modules.game_textmessage.displayBroadcastMessage(clan .. ': ' .. tonumber(prize:getText())) clanWindow:destroy() endendfunction onClickInItem(cost, self) if g_game.getLocalPlayer():getItemsCount(3032) >= cost then g_game.getProtocolGame():sendExtendedOpcode(103, string.explode(self:getStyleName(), "B")[1] .. '|' .. self:getParent():getChildIndex(self)) else displayInfoBox(tr('Emerald Shop'), tr('You don\'t have enough emeralds.')) endendfunction onBuyFailed(protocol, opcode, buffer) if toboolean(buffer) then displayInfoBox(tr('Emerald Shop'), tr('The purchase was made successfully.')) playerEmeralds:setText(g_game.getLocalPlayer():getItemsCount(3032)) else displayInfoBox('Emerald Shop', buffer) endend Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696460 Compartilhar em outros sites More sharing options...
jajazenho 1 Postado Junho 16, 2016 Share Postado Junho 16, 2016 10 minutos atrás, RicardoRoX disse: vai no client e tenta alterar a modules\game_shop\shop.lua Ocultar conteúdo function init() connect(g_game, { onGameEnd = onGameEnd }) ProtocolGame.registerExtendedOpcode(103, function(protocol, opcode, buffer) onBuyFailed(protocol, opcode, buffer) end) shopWindow = g_ui.displayUI('shop') shopWindow:hide() playerEmeralds = shopWindow:getChildById('emeralds') shopTabBar = shopWindow:getChildById('shopTabBar') shopTabBar:setContentWidget(shopWindow:getChildById('shopTabContent')) marketPanel = g_ui.loadUI('market') shopTabBar:addTab('Market', marketPanel, '/images/game/shop/market') outfitsPanel = g_ui.loadUI('outfits') shopTabBar:addTab('Outfits', outfitsPanel, '/images/game/shop/outfits') addonsPanel = g_ui.loadUI('addons') shopTabBar:addTab('Addons', addonsPanel, '/images/game/shop/addons') clansPanel = g_ui.loadUI('clans') shopTabBar:addTab('Clans', clansPanel, '/images/game/shop/clans') shopButton = modules.client_topmenu.addRightGameButton('shopButton', tr('Emerald Shop'), '/images/topbuttons/emerald_shop', toggle) shopButton:setWidth(36)endfunction terminate() disconnect(g_game, { onGameEnd = onGameEnd }) ProtocolGame.unregisterExtendedOpcode(103) shopWindow:destroy() shopButton:destroy()endfunction onGameEnd() if shopWindow:isVisible() then shopWindow:hide() endendfunction show() shopWindow:show() shopWindow:raise() shopWindow:focus() addEvent(function() g_effects.fadeIn(shopWindow, 250) end) playerEmeralds:setText(g_game.getLocalPlayer():getItemsCount(3032))endfunction hide() addEvent(function() g_effects.fadeOut(shopWindow, 250) end) scheduleEvent(function() shopWindow:hide() end, 250)endfunction toggle() if shopWindow:isVisible() then hide() else show() endendfunction clanWindow(clan) local clanWindow = g_ui.createWidget('ClanWindow', rootWidget) local prize = clanWindow:getChildById('prize') clanWindow:setText(clan) clanWindow:getChildById('okButton').onClick = function() modules.game_textmessage.displayBroadcastMessage(clan .. ': ' .. tonumber(prize:getText())) clanWindow:destroy() end clanWindow.onEnter = function() modules.game_textmessage.displayBroadcastMessage(clan .. ': ' .. tonumber(prize:getText())) clanWindow:destroy() endendfunction onClickInItem(cost, self) if g_game.getLocalPlayer():getItemsCount(3032) >= cost then g_game.getProtocolGame():sendExtendedOpcode(103, string.explode(self:getStyleName(), "B")[1] .. '|' .. self:getParent():getChildIndex(self)) else displayInfoBox(tr('Emerald Shop'), tr('You don\'t have enough emeralds.')) endendfunction onBuyFailed(protocol, opcode, buffer) if toboolean(buffer) then displayInfoBox(tr('Emerald Shop'), tr('The purchase was made successfully.')) playerEmeralds:setText(g_game.getLocalPlayer():getItemsCount(3032)) else displayInfoBox('Emerald Shop', buffer) endend Ja alterei la tbm, algo ta estranho pois esta descontando os diamonds porem so se tiver as emeralds na bag Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696462 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 16, 2016 Share Postado Junho 16, 2016 1 minuto atrás, jajazenho disse: Ja alterei la tbm, algo ta estranho pois esta descontando os diamonds porem so se tiver as emeralds na bag Explica melhor oque vc tá tentando fazer. AHEUIAHOIEUHAI acho que n entendi... Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696463 Compartilhar em outros sites More sharing options...
jajazenho 1 Postado Junho 16, 2016 Share Postado Junho 16, 2016 3 minutos atrás, RicardoRoX disse: Explica melhor oque vc tá tentando fazer. AHEUIAHOIEUHAI acho que n entendi... Seguinte estou tentando trocar a Emerald e por Diamonds no shop do server pq aquelas pedrinhas sao mt feias ja ate editei spr e tal, so que eu fui add no shop os diamonds para nao cobrar mas as Emeralds e sim os diamonds que fiz até ai tudo bem, só que quando clico em comprar shiny ditto por exemplo ele retira os diamonds mas só tira se tiver as emeralds na bag, como se fosse testemunha ta ligado? klkkkkkkkkkkkkkkkkkkkkkk Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696464 Compartilhar em outros sites More sharing options...
Josegvb 87 Postado Junho 16, 2016 Share Postado Junho 16, 2016 1 hour ago, RicardoRoX said: http://www.mediafire.com/download/7b5g33o25zieq96/correcao_double_team_byRicardoroxx.rar sim Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696465 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 16, 2016 Share Postado Junho 16, 2016 return doPlayerRemoveItem(cid, 2149, market[tonumber(t[2])].emeralds) and doSendPlayerExtendedOpcode(cid, OPCODE_EMERALD_SHOP, "True") Deve ser essa linha... olha ae... o 2149 n é o diamante? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696467 Compartilhar em outros sites More sharing options...
jajazenho 1 Postado Junho 16, 2016 Share Postado Junho 16, 2016 1 minuto atrás, RicardoRoX disse: return doPlayerRemoveItem(cid, 2149, market[tonumber(t[2])].emeralds) and doSendPlayerExtendedOpcode(cid, OPCODE_EMERALD_SHOP, "True") Deve ser essa linha... olha ae... o 2149 n é o diamante? Entao esse 2149 é as emeralds, troquei e coloquei 2145 que sao os diamonds, no caso ai é o id do item q sera removido esta removendo de boa os diamonds mas só se tiver emeralds na bag no caso 2149 Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696468 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 16, 2016 Share Postado Junho 16, 2016 @Josegvb Tu ta usando com GM? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/78/#findComment-1696469 Compartilhar em outros sites More sharing options...
Posts Recomendados