Ir para conteúdo

Meguminyan

Campones
  • Total de itens

    27
  • Registro em

  • Última visita

  • Dias Ganhos

    3

Tudo que Meguminyan postou

  1. seguinte, pra remover você escolha a zona que você quer tirar, clicka nela como se fosse pra adicionar ai segura ctrl e clicka onde você quer remover, e para remover em area você segura ctrl e shift e clicka e arrasta
  2. é a pasta do client do jogo, a pasta do executavel que abre seu tibia, dentro dela tem que ter o tibia.dat e o tibia.spr do seu tibia.
  3. Olá amigo, vou explicar algumas coisas para você. 1 - a função pvp no remere não é para a area ser pvp, ela serve para os jogadores poderem se atacar sem pegar pk e quando morrer não perder nada, tipo uma arena só pra brincar. 2 - remova a zona NO-PVP, aquela que é uma bandeirinha verde, ela não deixa os players se atacarem mesmo que o lugar não seja pz. provavelmente sua rook esteja coberta com isso 3 - verifique em seu config.lua se o seu mundo está pvp e o protection level (level que os jogadores podem tomar e abrir pk) Ajudei ? deixa um rep+ =)
  4. No caso isso não seria um bug, só a sprite(imagem) da hunting spear que esta trocada pela sprite de uma crystal arrow, vou gravar um video aqui mostrando pra você como arrumar utilizando o programa Object builder. 1 você vai abrir a pasta onde esta os arquivos spr e dat do seu client e então siga os passos do video, troque a imagem, salve e depois reabra seu client. ote a qualidade do video em 720 pra ver melhor. Ajudei? deixa um rep+ =)
  5. e se você adicionar na entrada do castle um piso que adiciona um storage XXX, ai bota nas spells para não poder usar elas se tiver o storage XXX, e na saida um piso que remove o storage para o player poder usar a spell novamente
  6. Interessante o projeto, jogaria com certeza . como funcionaria o sistema de batalha? os pokemons selvagens já estariam pelo mapa normalmente ou teria % de chance de spawnar um quando andasse em cima do matinho?
  7. olha, enquanto você não acha o script ideal você pode usar este aqui Em movements xml adicione essa tag <movevent type="StepIn" actionid="19384" event="script" value="npcrandom.lua"/> agora em creature events > scripts copie um .lua e renomeie para npcrandom.lua, apague tudo que tem dentro e cole isto function onStepIn(cid, item, position, fromPosition) local positio = {x=1034, y=1039, z=7} local positio2 = {x=1036, y=1039, z=7} local positio3 = {x=1038, y=1039, z=7} local positio4 = {x=1040, y=1039, z=7} local positio5 = {x=1034, y=1039, z=7} local positio6 = {x=1036, y=1039, z=7} local positio7 = {x=1038, y=1039, z=7} local positio8 = {x=1040, y=1039, z=7} local positio9 = {x=1034, y=1039, z=7} local positio10 = {x=1036, y=1039, z=7} local chance = math.random(1,10) if chance == 1 then doTeleportThing(cid, positio) elseif chance == 2 then doTeleportThing(cid, positio2) elseif chance == 3 then doTeleportThing(cid, positio3) elseif chance == 4 then doTeleportThing(cid, positio4) elseif chance == 5 then doTeleportThing(cid, positio5) elseif chance == 6 then doTeleportThing(cid, positio6) elseif chance == 7 then doTeleportThing(cid, positio7) elseif chance == 8 then doTeleportThing(cid, positio8) elseif chance == 9 then doTeleportThing(cid, positio9) elseif chance == 10 then doTeleportThing(cid, positio10) end return true end Agora crie um teleport em 1 lugar onde os players não tem acesso com o adction id 19384 no seu mapa e faça o npc desejado spawnar em cima dele (lembre de não deixar espaço aberto ao lado do teleport se não o npc ira spawnar no espaço do lado do teleport então ao iniciar o server o npc sera jogado em 1 dessas 10 localizações editaveis. para adicionar mais lugares é só ir adicionando os positiosX, mudar a quantidade de lugars no Math.random e adicionar mais elseif chance = X
  8. o npc que você fala seria um npc agressivo igual o da brotherhood?
  9. RESOLVIDO adicionei um evento OnstatsChange no creature script para rodar se o player tiver a storage "sentado" , se sim e perder vida ele executa os comandos da segunda parte da skill pro player levantar e interromper o heal ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Gostaria de pedir ajuda pra modificar esse script, eu entendo muito pouco de programação, conheço algumas funções basicas então eu montei esse script usando vários outros então pode estar mal otimizado, mas o que quero nele seria o que está dito no titulo, cancelar a spell ao receber dano, ou uma alternativa seria tomar o dobro de dano enquanto está usando. explicando a spell: Ao usar a spell "Rest" o player ira sentar, é adicionado um storage quando senta para ativar a regeneração do script de 10% da hp por segundo e quando ele usa a spell de novo ele levanta e é removido o storage e a regeneração para. alem disso o player fica com a condition pacified para não poder atacar os monstros. o script funciona tudo certo, o problema é que o player pode sentar no meio dos mobs e tankar curando 10% da life por segundo, eu queria que ao usar a spell ele recebesse o dobro de dano ou levantasse ao receber dano assim parando a spell. local tempo = 999999 local config = { [1] = 28, [2] = 29, [3] = 30, [4] = 31, [5] = 32, [6] = 33, [7] = 34, [8] = 28 } local info = { health = 7, storage = 2138, } local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, false) local disable = createConditionObject(CONDITION_PACIFIED) setConditionParam(disable, CONDITION_PARAM_TICKS, tempo * 1000) setCombatCondition(combat1, disable) function getDmg_combat1(cid, level, maglevel) return ((getPlayerLevel(cid)*1) + (getPlayerMagLevel(cid) * 2.5))*-1 ,((getPlayerLevel(cid)*1) + (getPlayerMagLevel(cid) * 2.5))*-1 end setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_combat1") local function RunPart(c,cid,var,dirList,dirEmitPos,startDir) -- Part if (isCreature(cid)) then doCombat(cid, c, var) if (dirList ~= nil) then -- Emit distance effects local i = 2; while (i < #dirList) do if (startDir == 0) then -- N doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i],y=dirEmitPos.y-dirList[i+1],z=dirEmitPos.z},dirList[1]) elseif (startDir == 2) then -- S doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x+dirList[i],y=dirEmitPos.y+dirList[i+1],z=dirEmitPos.z},dirList[1]) elseif (startDir == 1) then -- E doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x+dirList[i+1],y=dirEmitPos.y+dirList[i],z=dirEmitPos.z},dirList[1]) else -- W / Something weird happened doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i+1],y=dirEmitPos.y-dirList[i],z=dirEmitPos.z},dirList[1]) end i = i + 2 end end end end function onCastSpell(cid, var) if getPlayerStorageValue(cid, 2139) == 0 then doPlayerSendCancel(cid, "You can't do this now") return false end if getPlayerStorageValue(cid, 2138) == 1 then local healthPercent = getCreatureMaxHealth(cid) * (info.health / 100) local currcolor = getCreatureOutfit(cid) local homem = {lookType = config[getPlayerVocation(cid)], lookHead = currcolor.lookHead, lookBody = currcolor.lookBody, lookLegs = currcolor.lookLegs, lookFeet = currcolor.lookFeet} local target = getCreatureTarget(cid) doSetCreatureOutfit(cid, homem) registerCreatureEvent(cid, "noMove") doPlayerSendCancel(cid, "You are now resting.") mayNotMove(cid, true) setPlayerStorageValue(cid, 2138, 0) removeHealth(cid, healthPercent, 2, 2138) setPlayerStorageValue(cid, info.storage, 0) setPlayerStorageValue(cid, temp.storage, os.time() + temp.exhausted) addEvent(RunPart,000,combat1,cid,var) else mayNotMove(cid, false) setPlayerStorageValue(cid, 2138, 1) setPlayerStorageValue(cid, info.storage, 1) setPlayerStorageValue(cid, temp.storage, os.time() + temp.exhausted) doRemoveCondition(cid, CONDITION_OUTFIT) doRemoveCondition(cid, CONDITION_PACIFIED) end return true end
  10. Como faço para essa spell não poder ser usada com battle, ou pelo menos player com skull (pz) não poder usar? já tentei botar pra verificar se o player está em battle e cancelar o uso da spell mas continuou usando mesmo modo O player usa a spell a outfit muda, ele fica imovel e sem poder atacar ou usar outra spell, fica um contador de 30 segundos e quando acaba o tempo ele é teleportado para o templo local tempo = 30 -- tempo da outfit e outfit de cada voc durante o uso local config = { [1] = 21, [2] = 27, [3] = 22, [4] = 23, [5] = 25, [6] = 26, [7] = 24, [8] = 11 } local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local disable = createConditionObject(CONDITION_PACIFIED) setConditionParam(disable, CONDITION_PARAM_TICKS, 30000) setCombatCondition(combat, disable) local templo = {x=1041,y=972,z=8} local function onCastSpell2(cid, target) doSendMagicEffect(getThingPos(cid), 54) doTeleportThing(cid,templo) doSendMagicEffect(getThingPos(cid), 54) doCreatureSetNoMove(cid, false) end function onCastSpell(cid, var) local currcolor = getCreatureOutfit(cid) local roupa = {lookType = config[getPlayerVocation(cid)], lookHead = currcolor.lookHead, lookBody = currcolor.lookBody, lookLegs = currcolor.lookLegs, lookFeet = currcolor.lookFeet} doCreatureSetNoMove(cid, true) addEvent(onCastSpell2, 30000, cid, target) doSetCreatureOutfit(cid, roupa, tempo*1000) addEvent(doCreatureSay, 0, cid, "30", TALKTYPE_MONSTER) addEvent(doCreatureSay, 5000, cid, "25", TALKTYPE_MONSTER) addEvent(doCreatureSay, 10000, cid, "20", TALKTYPE_MONSTER) addEvent(doCreatureSay, 15000, cid, "15", TALKTYPE_MONSTER) addEvent(doCreatureSay, 20000, cid, "10", TALKTYPE_MONSTER) addEvent(doCreatureSay, 25000, cid, "5", TALKTYPE_MONSTER) addEvent(doCreatureSay, 26000, cid, "4", TALKTYPE_MONSTER) addEvent(doCreatureSay, 27000, cid, "3", TALKTYPE_MONSTER) addEvent(doCreatureSay, 28000, cid, "2", TALKTYPE_MONSTER) addEvent(doCreatureSay, 29000, cid, "1", TALKTYPE_MONSTER) return doCombat(cid, combat, var) end
  11. Abriu as portas 7171 e 7172 no modem e no firewall? no config.lua está o seu ip normal ou ip do noip?
  12. Nice server, fun to play, I played until lvl 40 (30 minutes) it's not my cup of tea but still great server, I recommend everyone take a look.
  13. Sobre o wifi não sei te informar mas tentei usar o seu clien entergame no meu client e não consegui logar no meu ot vou te passar o meu entergame.lua, muda pro seu ip, tentar usar e ve se entra, se não resolver infelizmente não sei mais como ajudar. 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 onSessionKey(protocol, sessionKey) G.sessionKey = sessionKey end local function onCharacterList(protocol, characters, account, otui) -- Try add server to the server list ServerList.add(G.host, G.port, g_game.getClientVersion()) -- Save 'Stay logged in' setting g_settings.set('staylogged', enterGame:getChildById('stayLoggedBox'):isChecked()) 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", G.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 stayLogged = g_settings.getBoolean('staylogged') local autologin = g_settings.getBoolean('autologin') local clientVersion = g_settings.getInteger('client-version') if clientVersion == 0 then clientVersion = 1074 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) enterGame:getChildById('stayLoggedBox'):setChecked(stayLogged) clientBox = enterGame:getChildById('clientComboBox') for _, proto in pairs(g_game.getSupportedClients()) do clientBox:addOption(proto) end clientBox:setCurrentOption(clientVersion) EnterGame.toggleAuthenticatorToken(clientVersion, true) EnterGame.toggleStayLoggedBox(clientVersion, true) connect(clientBox, { onOptionChange = EnterGame.onClientVersionChange }) enterGame:hide() if g_app.isRunning() and not g_game.isOnline() then enterGame:show() end EnterGame.setUniqueServer(hostName, port, protocolVersion, windowWidth, windowHeight) EnterGame.setUniqueServer('xx.xx.xxx.xxx', 7171, 854) 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') disconnect(clientBox, { onOptionChange = EnterGame.onClientVersionChange }) 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('authenticatorTokenTextEdit'):clearText() enterGame:getChildById('accountNameTextEdit'):focus() g_settings.remove('account') g_settings.remove('password') end function EnterGame.toggleAuthenticatorToken(clientVersion, init) local enabled = (clientVersion >= 1072) if enabled == enterGame.authenticatorEnabled then return end enterGame:getChildById('authenticatorTokenLabel'):setOn(enabled) enterGame:getChildById('authenticatorTokenTextEdit'):setOn(enabled) local newHeight = enterGame:getHeight() local newY = enterGame:getY() if enabled then newY = newY - enterGame.authenticatorHeight newHeight = newHeight + enterGame.authenticatorHeight else newY = newY + enterGame.authenticatorHeight newHeight = newHeight - enterGame.authenticatorHeight end if not init then enterGame:breakAnchors() enterGame:setY(newY) enterGame:bindRectToParent() end enterGame:setHeight(newHeight) enterGame.authenticatorEnabled = enabled end function EnterGame.toggleStayLoggedBox(clientVersion, init) local enabled = (clientVersion >= 1074) if enabled == enterGame.stayLoggedBoxEnabled then return end enterGame:getChildById('stayLoggedBox'):setOn(enabled) local newHeight = enterGame:getHeight() local newY = enterGame:getY() if enabled then newY = newY - enterGame.stayLoggedBoxHeight newHeight = newHeight + enterGame.stayLoggedBoxHeight else newY = newY + enterGame.stayLoggedBoxHeight newHeight = newHeight - enterGame.stayLoggedBoxHeight end if not init then enterGame:breakAnchors() enterGame:setY(newY) enterGame:bindRectToParent() end enterGame:setHeight(newHeight) enterGame.stayLoggedBoxEnabled = enabled end function EnterGame.onClientVersionChange(comboBox, text, data) local clientVersion = tonumber(text) EnterGame.toggleAuthenticatorToken(clientVersion) EnterGame.toggleStayLoggedBox(clientVersion) end function EnterGame.doLogin() G.account = enterGame:getChildById('accountNameTextEdit'):getText() G.password = enterGame:getChildById('accountPasswordTextEdit'):getText() G.authenticatorToken = enterGame:getChildById('authenticatorTokenTextEdit'):getText() G.stayLogged = enterGame:getChildById('stayLoggedBox'):isChecked() G.host = enterGame:getChildById('serverHostTextEdit'):getText() G.port = tonumber(enterGame:getChildById('serverPortTextEdit'):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 g_settings.set('host', G.host) g_settings.set('port', G.port) g_settings.set('client-version', clientVersion) protocolLogin = ProtocolLogin.create() protocolLogin.onLoginError = onError protocolLogin.onMotd = onMotd protocolLogin.onSessionKey = onSessionKey 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 }) g_game.setClientVersion(clientVersion) g_game.setProtocolVersion(g_game.getClientProtocolVersion(clientVersion)) g_game.chooseRsa(G.host) if modules.game_things.isLoaded() then protocolLogin:login(G.host, G.port, G.account, G.password, G.authenticatorToken, G.stayLogged) 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 hostTextEdit = enterGame:getChildById('serverHostTextEdit') local portTextEdit = enterGame:getChildById('serverPortTextEdit') local clientLabel = enterGame:getChildById('clientLabel') local accountTextEdit = enterGame:getChildById('accountNameTextEdit') local passwordTextEdit = enterGame:getChildById('accountPasswordTextEdit') local authenticatorTokenTextEdit = enterGame:getChildById('authenticatorTokenTextEdit') if hostTextEdit:getText() ~= host then hostTextEdit:setText(host) portTextEdit:setText(port) clientBox:setCurrentOption(protocol) accountTextEdit:setText('') passwordTextEdit:setText('') authenticatorTokenTextEdit:setText('') end end function EnterGame.setUniqueServer(host, port, protocol, windowWidth, windowHeight) local hostTextEdit = enterGame:getChildById('serverHostTextEdit') hostTextEdit:setText(host) hostTextEdit:setVisible(false) hostTextEdit:setHeight(0) local portTextEdit = enterGame:getChildById('serverPortTextEdit') portTextEdit:setText(port) portTextEdit:setVisible(false) portTextEdit:setHeight(0) local authenticatorTokenTextEdit = enterGame:getChildById('authenticatorTokenTextEdit') authenticatorTokenTextEdit:setText('') authenticatorTokenTextEdit:setOn(false) local authenticatorTokenLabel = enterGame:getChildById('authenticatorTokenLabel') authenticatorTokenLabel:setOn(false) local stayLoggedBox = enterGame:getChildById('stayLoggedBox') stayLoggedBox:setChecked(false) stayLoggedBox:setOn(false) clientBox:setCurrentOption(protocol) clientBox:setVisible(false) clientBox:setHeight(0) local serverLabel = enterGame:getChildById('serverLabel') serverLabel:setVisible(false) serverLabel:setHeight(0) local portLabel = enterGame:getChildById('portLabel') portLabel:setVisible(false) portLabel: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(-8) if not windowWidth then windowWidth = 236 end enterGame:setWidth(windowWidth) if not windowHeight then windowHeight = 210 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
  14. Provavelmente você esqueceu de por os pontos no começo e no fim do ip, igual esta ali no local serverIP (não são aspas) local serverIP = '127.0.0.1' então ficaria assim para você EnterGame.setUniqueServer('IP', 7171, 854) lembrando dos pontinhos sempre, você vai reparar que o ip ficara em cinza com os pontos colocados
  15. Pra mudar o ip do servidor seria nessa parte worldId = 0 ip = "127.0.0.1" -- aqui seu ip do hamachi loginPort = 7171 gamePort = 7172 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 1000 motd = "Welcome to the Forgotten Server!" displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = true allowClones = false serverName = "Forgotten" loginMessage = "Welcome to the Forgotten Server!" statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = false enableCast = true
  16. não sei se to falando besteira, mas a montaria conta como um equip? igual quando você equipa uma BOH tem lá na pasta movements a função para equipar dar a speed e a outra função ao desequipar tirar a speed, se for igual não estaria faltando a função de tirar a speed nessa sua montaria de 20 ?
  17. é OT client certo? 1- vá na pasta do client > modules > Client_entergame > abre o arquivo entergame.lua Dentro dele deve exister uma linha assim EnterGame.setUniqueServer('ip.ip.ip.ip', 7171, 860, 270, 210) Ajuste para o IP desejado 7171 = port 860 = versão do serverr (no meu esta 8.60) 270 e 210 são os tamanhos da janela onde você digita a conta e senha
  18. Não sou scripter então não posso ajudar muito é só nesse npc que ocorre este erro? já tentou adicionar os itens de venda e compra direto na xml do npc assim? <!--SHOP--> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value="blankpoetryparchment,7528,1"/> <parameter key="shop_sellable" value="badger fur,11216,1;destroy field rune,2261,1"/> e você usa client old ou OT client? o OT client tem uma opção no npc parar ignorar item equipado
  19. Gostaria de saber como faço para o player não andar por X tempo (0.1s) ou (0.2s) editavel enquanto usa um spell, eu estou usando um script que quando o player usa o spell ele troca de outfit, porem o mesmo outfit não tem animação andando e ai o player sai se "arrastando" local tempo = 0.1 local config = { [1] = 21, [2] = 27, [3] = 22, [4] = 23, [5] = 25, [6] = 26, [7] = 24, [8] = 11 } local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, 7) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2) function onCastSpell(cid, var) local currcolor = getCreatureOutfit(cid) local homem = {lookType = config[getPlayerVocation(cid)], lookHead = currcolor.lookHead, lookBody = currcolor.lookBody, lookLegs = currcolor.lookLegs, lookFeet = currcolor.lookFeet} local mulher = {lookType = config[getPlayerVocation(cid)], lookHead = currcolor.lookHead, lookBody = currcolor.lookBody, lookLegs = currcolor.lookLegs, lookFeet = currcolor.lookFeet} local sex = getPlayerSex(cid) if sex == 0 then --sexo == 0 significa que o personagem é mulher doSetCreatureOutfit(cid, mulher, tempo*1000) else doSetCreatureOutfit(cid, homem, tempo*1000) end return doCombat(cid, combat, var) end Exemplo em video: JÁ CONSEGUI RESOLVER - DUVIDA SANADA
  20. Tenta esse em actions/scripts crie um .lua chamando Scroll Magia ( exemplo: scroll exura) function onUse(cid, item) local magia = "nome da magia" if getPlayerLearnedInstantSpell(cid, magia) then doPlayerSendTextMessage(cid,25,"Você já aprendeu a magia deste scroll") elseif doPlayerLearnInstantSpell(cid, magia) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, 12) -- efeito magico ao usar o scroll doRemoveItem(item.uid, 1) -- vai consumir o scroll, remova isso se vc n quer que o scroll suma doPlayerSendTextMessage(cid,19,"Você aprendeu a magia "..magia..".") end end agora em actions.xml você adiciona a tag e bote o id do item que ao você usar ganhara o spell <action itemid="ID DO ITEM" script="scroll magia.lua"/>
  • Quem Está Navegando   0 membros estão online

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