Ir para conteúdo

Luga03

Conde
  • Total de itens

    956
  • Registro em

  • Última visita

  • Dias Ganhos

    22

Tudo que Luga03 postou

  1. Tipo, já tenho configurado o Unown no meu OT, ai vou ter que deixar ele 100% igual ao meu Legion Unown?
  2. Como assim? deixa tudo igual ao Unown Legion?
  3. tenta este: EnterGame = { } -- private variables local loadBox local enterGame local motdWindow local motdButton local enterGameButton local clientBox local protocolLogin local motdEnabled = true -- private functions local function onError(protocol, message, errorCode) if loadBox then loadBox:destroy() loadBox = nil end if not errorCode then EnterGame.clearAccountFields() end local errorBox = displayErrorBox(tr('Login Error'), message) connect(errorBox, { onOk = EnterGame.show }) end local function onMotd(protocol, motd) G.motdNumber = tonumber(motd:sub(0, motd:find("\n"))) G.motdMessage = motd:sub(motd:find("\n") + 1, #motd) if motdEnabled then motdButton:show() end end local function onCharacterList(protocol, characters, account, otui) -- Try add server to the server list ServerList.add(G.host, G.port, g_game.getClientVersion()) if enterGame:getChildById('rememberPasswordBox'):isChecked() then local account = g_crypt.encrypt(G.account) local password = g_crypt.encrypt(G.password) g_settings.set('account', account) g_settings.set('password', password) ServerList.setServerAccount(G.host, account) ServerList.setServerPassword(G.host, password) g_settings.set('autologin', enterGame:getChildById('autoLoginBox'):isChecked()) else -- reset server list account/password ServerList.setServerAccount(G.host, '') ServerList.setServerPassword(G.host, '') EnterGame.clearAccountFields() end loadBox:destroy() loadBox = nil for _, characterInfo in pairs(characters) do if characterInfo.previewState and characterInfo.previewState ~= PreviewState.Default then characterInfo.worldName = characterInfo.worldName .. ', Preview' end end CharacterList.create(characters, account, otui) CharacterList.show() if motdEnabled then local lastMotdNumber = g_settings.getNumber("motd") if G.motdNumber and G.motdNumber ~= lastMotdNumber then g_settings.set("motd", motdNumber) motdWindow = displayInfoBox(tr('Message of the day'), G.motdMessage) connect(motdWindow, { onOk = function() CharacterList.show() motdWindow = nil end }) CharacterList.hide() end end end local function onUpdateNeeded(protocol, signature) loadBox:destroy() loadBox = nil if EnterGame.updateFunc then local continueFunc = EnterGame.show local cancelFunc = EnterGame.show EnterGame.updateFunc(signature, continueFunc, cancelFunc) else local errorBox = displayErrorBox(tr('Update needed'), tr('Your client needs updating, try redownloading it.')) connect(errorBox, { onOk = EnterGame.show }) end end -- public functions function EnterGame.init() enterGame = g_ui.displayUI('entergame') enterGameButton = modules.client_topmenu.addLeftButton('enterGameButton', tr('Login') .. ' (Ctrl + G)', '/images/topbuttons/login', EnterGame.openWindow) motdButton = modules.client_topmenu.addLeftButton('motdButton', tr('Message of the day'), '/images/topbuttons/motd', EnterGame.displayMotd) motdButton:hide() g_keyboard.bindKeyDown('Ctrl+G', EnterGame.openWindow) if motdEnabled and G.motdNumber then motdButton:show() end local account = g_settings.get('account') local password = g_settings.get('password') local host = g_settings.get('host') local port = g_settings.get('port') local autologin = g_settings.getBoolean('autologin') local clientVersion = g_settings.getInteger('client-version') if clientVersion == 0 then clientVersion = 1071 end if port == nil or port == 0 then port = 7171 end EnterGame.setAccountName(account) EnterGame.setPassword(password) enterGame:getChildById('serverHostTextEdit'):setText(host) enterGame:getChildById('serverPortTextEdit'):setText(port) enterGame:getChildById('autoLoginBox'):setChecked(autologin) clientBox = enterGame:getChildById('clientComboBox') for _, proto in pairs(g_game.getSupportedClients()) do clientBox:addOption(proto) end clientBox:setCurrentOption(clientVersion) enterGame:hide() if g_app.isRunning() and not g_game.isOnline() then enterGame:show() end end function EnterGame.firstShow() EnterGame.show() local account = g_crypt.decrypt(g_settings.get('account')) local password = g_crypt.decrypt(g_settings.get('password')) local host = g_settings.get('host') local autologin = g_settings.getBoolean('autologin') if #host > 0 and #password > 0 and #account > 0 and autologin then addEvent(function() if not g_settings.getBoolean('autologin') then return end EnterGame.doLogin() end) end end function EnterGame.terminate() g_keyboard.unbindKeyDown('Ctrl+G') enterGame:destroy() enterGame = nil enterGameButton:destroy() enterGameButton = nil clientBox = nil if motdWindow then motdWindow:destroy() motdWindow = nil end if motdButton then motdButton:destroy() motdButton = nil end if loadBox then loadBox:destroy() loadBox = nil end if protocolLogin then protocolLogin:cancelLogin() protocolLogin = nil end EnterGame = nil end function EnterGame.show() if loadBox then return end enterGame:show() enterGame:raise() enterGame:focus() end function EnterGame.hide() enterGame:hide() end function EnterGame.openWindow() if g_game.isOnline() then CharacterList.show() elseif not g_game.isLogging() and not CharacterList.isVisible() then EnterGame.show() end end function EnterGame.setAccountName(account) local account = g_crypt.decrypt(account) enterGame:getChildById('accountNameTextEdit'):setText(account) enterGame:getChildById('accountNameTextEdit'):setCursorPos(-1) enterGame:getChildById('rememberPasswordBox'):setChecked(#account > 0) end function EnterGame.setPassword(password) local password = g_crypt.decrypt(password) enterGame:getChildById('accountPasswordTextEdit'):setText(password) end function EnterGame.clearAccountFields() enterGame:getChildById('accountNameTextEdit'):clearText() enterGame:getChildById('accountPasswordTextEdit'):clearText() enterGame:getChildById('accountNameTextEdit'):focus() g_settings.remove('account') g_settings.remove('password') end function EnterGame.doLogin() G.account = enterGame:getChildById('accountNameTextEdit'):getText() G.password = enterGame:getChildById('accountPasswordTextEdit'):getText() local clientVersion = tonumber(clientBox:getText()) EnterGame.hide() if g_game.isOnline() then local errorBox = displayErrorBox(tr('Login Error'), tr('Cannot login while already in game.')) connect(errorBox, { onOk = EnterGame.show }) return end protocolLogin = ProtocolLogin.create() protocolLogin.onLoginError = onError protocolLogin.onMotd = onMotd protocolLogin.onCharacterList = onCharacterList protocolLogin.onUpdateNeeded = onUpdateNeeded loadBox = displayCancelBox(tr('Please wait'), tr('Connecting to login server...')) connect(loadBox, { onCancel = function(msgbox) loadBox = nil protocolLogin:cancelLogin() EnterGame.show() end }) if modules.game_things.isLoaded() then protocolLogin:login(G.account, G.password) else loadBox:destroy() loadBox = nil EnterGame.show() end end function EnterGame.displayMotd() if not motdWindow then motdWindow = displayInfoBox(tr('Message of the day'), G.motdMessage) motdWindow.onOk = function() motdWindow = nil end end end function EnterGame.setDefaultServer(host, port, protocol) local clientLabel = enterGame:getChildById('clientLabel') local accountTextEdit = enterGame:getChildById('accountNameTextEdit') local passwordTextEdit = enterGame:getChildById('accountPasswordTextEdit') end function EnterGame.setUniqueServer(host, port, protocol, windowWidth, windowHeight) clientBox:setCurrentOption(protocol) clientBox:setVisible(false) clientBox:setHeight(0) local serverLabel = enterGame:getChildById('serverLabel') serverLabel:setVisible(false) serverLabel:setHeight(0) local clientLabel = enterGame:getChildById('clientLabel') clientLabel:setVisible(false) clientLabel:setHeight(0) local serverListButton = enterGame:getChildById('serverListButton') serverListButton:setVisible(false) serverListButton:setHeight(0) serverListButton:setWidth(0) local rememberPasswordBox = enterGame:getChildById('rememberPasswordBox') rememberPasswordBox:setMarginTop(-5) if not windowWidth then windowWidth = 236 end enterGame:setWidth(windowWidth) if not windowHeight then windowHeight = 200 end enterGame:setHeight(windowHeight) end function EnterGame.setServerInfo(message) local label = enterGame:getChildById('serverInfoLabel') label:setText(message) end function EnterGame.disableMotd() motdEnabled = false motdButton:hide() end
  4. Adicionou na pasta spells?? Ops: os 3 estão funfando! mas o unown help, quando sumona o pokémon, da este erro : [23/06/2015 18:30:53] [Error - TalkAction Interface] [23/06/2015 18:30:53] data/talkactions/scripts/move1.lua:onSay [23/06/2015 18:30:53] Description: [23/06/2015 18:30:53] data/lib/pokemon moves.lua:5001: attempt to perform arithmetic on global 'HPperVITsummon' (a nil value) [23/06/2015 18:30:53] stack traceback: [23/06/2015 18:30:53] data/lib/pokemon moves.lua:5001: in function 'docastspell' [23/06/2015 18:30:53] data/talkactions/scripts/move1.lua:245: in function <data/talkactions/scripts/move1.lua:20> mas sumona o poke msm assim e tbm quando eu uso as magias unown help e unown rush, aparece o player dizendo o nome m11 e m12, que no caso são os lugares para meu poke usar as 2 magias!
  5. Eu li, a parte do temporário, mas int poderia fazer uma talkactions onde ele se destransforma sem precisar do go/back?
  6. ai man funcionou! mas teria como por para "desevoluir" por um comando?? e se o player passar com mais de 2 minutos, com ele transformado, ele se destransforma sósinho?? apqp agr é só puxar o poke que ele já volta ao normal ._.
  7. Krl man, nem preciso testar que sei que tu é 10 e vai funfar ^^ vo testar aqui auehaueh mt top vc Ei man, eu procurei por esta primeira tag que vc falou, e eu n achei! mas achei uma que tinha esta table.f: min = 5 + getPokemonLevel(cid) + (table.f / 100 * movetype * specialoffenseRate) max = min + getPokemonLevel(cid) * levelFactor e de código msm na minha pokemon moves tinha isto: o resto tudo era as magias!
  8. UP tópico com layout modificado!
  9. OK! vlw vo testar aq
  10. eae pessoal, qual os linkers para o Devo-C++?? eu mandei o lek alterar alguns linkers, ai agora está dando erro.-. por burri-se minha, e eu n sei quais o total de linkers corretos ¬¬ alguem pode passar os linkers??? ele fica no dev-C++, em parametros, ao clicar em alt+p
  11. Man isto também seria bom, mas também seria legal coloca para caso o player resolver ficar com ele por um tempo, tipo ele fica transformado por 2 min, ai dps disto ele se destransoforma sósinho!
  12. Eae man! estou gostando mt do projeto! toda postagem eu olho correndo para ver se já está com comfirmação de está on ^^ estou mt anscioso!
  13. tendi, eu testei e funcionou! mas e para ele voltar ao normal, como é que fica?? ele volta sósinho por tempo?? se sim, por quanto tempo?
  14. Luga03

    Erro Player.cpp

    Eae pessoal estou com um erro ao tentar copilar minha source, ela deu vários erros, mas eu já resolvi, este foi o ultimo arquivo que editei, e deu um erro que não estou conseguindo consertar! int vim pedir uma ajuda código: player.rar
  15. ele troca apenas a outfit ou muda a força do poke tbm?
  16. Eae pessoal blz?? eu estou aqui com minha source, eu tento copilar mas n consigo, dá monte de erro quando eu tento abrir o dev c++! então estou aqui para pedir que alguem copile a minha source para min pfv! estou precisando mt msm! se der algum erro manda print do erro e avisa ai que eu tento conserta daqui e te mando o arquivo com o erro resolvido! Link: http://www.mediafire.com/download/6c50ymnpri02h8y/sourceeditada.rar Erro 1 Abre o Arquivo Const.h, apaga tudo dentro e troca por este:
  17. Smaug World Tempest World Gothan World Zay World e muitos outros kk
  18. Eae pessoal blz?? eu estava precisando muito do sistema de ditto memory, dai o zipter resolveu meu problema ^^ ai para ajudar os player eu fiz uma barrinha com funções do ditto memory! mas dai o layout ficou horrivel! ai gostaria de pedir a ajuda de vcs! é tipo aquela barrinha de guild, mas dai modifiquei umas partes do código e uns bagulhinhos simples! mas ficou um lixo ¬¬ ai gostaria que que alguem pude-se me ajudar, ai gostaria tipo segue ai para ver se consegue fazer alguem pfv... 1- tem um butão na parte de cima do otc, que ao clicar aparece uma janelinha, com algumas funções. 2- ai cada butão tem um nome, ai o butão executa uma talkactions! ai se possível, gostaria que aparece imagens de portraits dos pokémons que estão salvos! acho cho que é só isto .-. caso queiram uma ideia + ou - tem um tópico que um lek fez ele, segue o link: http://www.xtibia.com/forum/topic/233650-show-off-ditto-memoryupdated/ ai tipo oque eu fiz ficou mais ou menos assim na lua: function init() guildButton = modules.client_topmenu.addLeftGameButton('guildButton', tr('Ditto Memory'), '/modules/game_guild/img/guild', toggle) guildRevoke = g_ui.displayUI('guildrevoke') guildPromote = g_ui.displayUI('guildpromote') g_keyboard.bindKeyDown('Escape', guildCancel) end function toggle() local menu = g_ui.createWidget('PopupMenu') menu:addOption("Ditto List", function() createGuild() end) menu:addOption("Forgoten Slot", function() leaveGuild() end) menu:addSeparator() menu:addOption("Add In Slot", function() guildRevoke:setVisible(true) end) --menu:addOption("Forgotten Slot", function() guildPromote:setVisible(true) end) menu:addSeparator() menu:addOption("Use Slot 1", function() slot1() end) menu:addOption("Use Slot 2", function() slot2() end) menu:addOption("Use Slot 3", function() slot3() end) menu:addSeparator() menu:addOption("Revert", function() revert() end) menu:display() end function createGuild() g_game.talk('!memory check') end function leaveGuild() g_game.talk('!memory forget 1') g_game.talk('!memory forget 2') g_game.talk('!memory forget 3') end function slot1() g_game.talk('!memory 1') end function slot2() g_game.talk('!memory 2') end function slot3() g_game.talk('!memory 3') end function revert() g_game.talk('!revert') end function revokeGuild() local text = guildRevoke:getChildById('revokeGuildText'):getText() g_game.talkChannel(MessageModes.Channel, 0, '!memory save ' .. text) guildRevoke:setVisible(false) end --[[function promoteGuild() local text = guildPromote:getChildById('promoteGuildText'):getText() g_game.talkChannel(MessageModes.Channel, 0, '!memory forgot ' .. text) guildPromote:setVisible(false) end function slot1() local text = guildReal:getChildById('slot1Text'):getText() g_game.talkChannel(MessageModes.Channel, 0, '!memory 1' .. text) slot1:setVisible(false) end function slot2() local text = guildReal:getChildById('slot2Text'):getText() g_game.talkChannel(MessageModes.Channel, 0, '!memory 2' .. text) slot2:setVisible(false) end function slot3() local text = guildReal:getChildById('slot3Text'):getText() g_game.talkChannel(MessageModes.Channel, 0, '!memory 3' .. text) slot3:setVisible(false) end --]] function guildCancel() guildRevoke:setVisible(false) guildPromote:setVisible(false) end eu apenas adicionei mais funções no da guild, mudei os nomes e as talkactions kk plx ae preciso mt deste mod, ai se precisar de qual quer coisa avisa ^^ ai tipo, não precisa ser portrait exata tirada do serv, se quiser pode ser por imagens, ai eu msm adiciono a imagem em alguma pasta e vou renomando com o nome exato de cada poke ^^ preciso mt help plx UP@ gogo pessoal, pfv estou precisando mt desta bar
  19. @UP pessoal estou precisando de OTClient Maker, Scripter, Mapper e Spriter!!! Gogo que o OT está avançando Para melhor sempre! e com uma equipe descente vai crescer mais rápido ainda!
  20. Blz int, e parabéns novamente com as atualizações ^^ estou na espera de mais e mais... kk, e tbm gostei muito deste wallpaper do dragão como fundo do xtibia! ficou muito melhor que o anterior!
  21. AI man parabéns ficou mt legal! e tbm gostaria de reportar um erro, quando eu uso o codigo de formatação " " tudo que fica depois do "[/code]" é apagado, tive que refazer uns tópicos meus umas 3 vezes com este problema ¬¬ mas fora isto está indo mt bem o fórum!
  22. vc poderia pegar a 5 e colocar mais características realisticas kk mas todas ficaram legais!
  23. Bem que poderia postar o código do OTC ^^
  24. Cara eu não entendi bem este "com proteções" mas fui testar e funcionou 100%!!!!!!!!!!! manow sério msm tu é um GOD Scripter! que veio do céu kk, tu é crack neste asunto! mt top, já me ajuda-se muitas vezes msm, se precisar de ajuda em algo, vou tentar fazer o maximo pra ajudar ^^
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...