
Tudo que Yan Liima postou
-
Modificar Script
- [PEDIDO] Tile para encher stamina
Coloca pra ele receber a outfit pelo script de stamina. oou tu pode fazer assim: <movevent type="StepIn" uniqueid="23641-23642-23643" event="script" value="addstamina.lua"/> <movevent type="StepOut" uniqueid="23641-23642-23643" event="script" value="addstamina.lua"/> Pra cada tile que vai dar stamina tu coloca um uniqueid diferente.- [PEDIDO] Tile para encher stamina
Em todos os piso de onde serão adicionado stamina?- Modificar Script
Nuus nada ver a pos que coloquei ksks- [PEDIDO] Tile para encher stamina
Pow verdade, bem lembrado. Falha minha! Como assim? como o amigo a cima ja disse troque a tag no xml que enviei pra ti por: <movevent type="StepIn" actionid="23641" event="script" value="addstamina.lua"/> <movevent type="StepOut" actionid="23641" event="script" value="addstamina.lua"/> No rme inves de por o ID:23641 no uniqueid tu colocaria no actionid.- [PEDIDO] Tile para encher stamina
É não, verifica em seu movements esse ID, deve ter outra script já utilizando esse ID. Então troque por um qualquer. Só verifique antes se já não tem.- Modificar Script
- [PEDIDO] Pagar npc para passar pelo tile
Movements arquivo.lua: function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, DEKU) <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, "Você não tem permissão para passar.") return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Bem vindo ".. getCreatureName(cid) .."!") return true end movements.xml: <movevent type="StepIn" uniqueid="25641" event="script" value="arquivo.lua"/> em data/npc/ crie um arquivo.xml com o nome que desejar e cole isso dentro: <npc name="Nome do NPC" script="data/npc/scripts/arquivo.lua" walkinterval="2000" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="5" head="132" body="79" legs="97" feet="132" corpse="2212"/> </npc> em data/npc/script crie um arquivo.lua e cole isso: local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Olá ' .. getCreatureName(cid) .. '! gostaria de comprar acesso para passar no tile?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Estou ocupado.') elseif focus == cid then talk_start = os.clock() elseif msgcontains(msg, 'yes') then if doPlayerRemoveMoney(cid,10000) == 1 then selfSay('Ótimo, agora você podera passar') setPlayerStorageValue(cid,DEKU,1) else selfSay('Você não tem dinheiro o suficiente.') end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Adeus ' .. creatureGetName(cid) .. ', Volte Sempre.') focus = 0 talk_start = 0 elseif msg ~= "" then selfSay('Como? Eu não entendi!') talk_state = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Proximo!!...') end focus = 0 talk_start = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good Bye') focus = 0 talk_start = 0 end end end- [PEDIDO] Tile para encher stamina
Em movements/scripts/addstamina.lua: local config = { addStamina = 1, -- quantos de stamina irá adicionar delay = 1, -- tempo para adicionar a stamina em minutos } stamina = {} local function staminadd(cid) if not isPlayer(cid) then stamina[cid] = nil return true end doPlayerSetStamina(cid, getPlayerStamina(cid) + config.addStamina) doPlayerSendTextMessage(cid, 22, "Você recebeu "..config.addStamina.." de stamina.") stamina[cid] = addEvent(staminadd, config.delay*60*1000, cid) end function onStepIn(cid) if isPlayer(cid) then stamina[cid] = addEvent(staminadd, config.delay*60*1000, cid) end return true end function onStepOut(cid) if isPlayer(cid) then stopEvent(stamina[cid]) stamina[cid] = nil end return true end movements.xml: <movevent type="StepIn" uniqueid="23641" event="script" value="addstamina.lua"/> <movevent type="StepOut" uniqueid="23641" event="script" value="addstamina.lua"/> no rme você adiciona o uniqueid: 23641 no piso.- Anti Clone System [GlobalEvents] Shop.lua[Gesior] / CheckItens.lua
Tente assim: SELECT * , SUBSTRING( CONVERT( attributes USING latin1 ) FROM 18 ) AS 'serial' FROM player_items WHERE CONVERT( attributes USING latin1 ) LIKE '%serial%'- [PEDIDO] Script qe puxa todos os players
O cara pediu pra ser puxado até ele e a galera manda um de ser teleportado pro templo ou pra um lugar determinado ksksks. A script correta conforme o pedido seria esssa: function onSay(cid, words, param, channel) -- by Yan Liima(Night) local pos = getCreaturePosition(cid) for _, cid in ipairs(getPlayersOnline()) do if(param == '') then doTeleportThing(cid, pos) doSendMagicEffect(pos, CONST_ME_POFF) doSendMagicEffect(pos, CONST_ME_TELEPORT) end end return true end <talkaction log="yes" words="/teleportall" access="4" event="script" value="teleporthereall.lua"/>- Anti Clone System [GlobalEvents] Shop.lua[Gesior] / CheckItens.lua
- Adicionei uma porta no meu poketibia mas ela não abre
Você deu reload? exibeu algum erro na distro?- Adicionei uma porta no meu poketibia mas ela não abre
Ações de clique(onUse) são sempre na pasta actions. Tente adicionando isso no seu actions.xml: <action fromid="17028" toid="17029" event="script" value="other/doors.lua"/>- server sem .sql
TFS(TheForgottenServer) seria a distro amigo. Por ser OT de Pokémon creio que é uma TFS 0.3.6.- NPC Jack Analist
local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Ola ' .. getCreatureName(cid) .. '! Posso lhe ajudar em algo?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Estou ocupado.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'desafio da sereia') then selfSay('Aaaahhh... voce se refere a aquela maldita sereia que fica numa pequena praia? Ela tentou me lançar um feitiço! Tenha cuidado com os poderes dela... Voce realmente deseja saber sobre o desafio?') elseif msgcontains(msg, 'sim') then selfSay('Humm... Você só precisa dizer "TROPICALIS" para a sereia, ela o levara para uma floresta úmida e cheia de monstros perigosos, você poderá voltar de lá quando quiser, mais para finalizar o desafio você precisa entregar o "fish fin" para a sra. tweedy! cuidado meu jovem aventureiro, há muito para aprender sobre este continente, o submundo não é para fracos como você!') elseif msgcontains(msg, 'sociedade') then if getPlayerStorageValue(cid,8586599) == -1 then selfSay('Hmm, quer dizer que você falou com o Lugha, se você conseguiu ir até lá, então você é bem vindo na sociedade, você tem minha permissão.') setPlayerStorageValue(cid,8586599,1) else selfSay('Você já tem minha permissão, vá falar com Lugha.') end elseif msgcontains(msg, 'permissão') then if getPlayerStorageValue(cid,8586599) == -1 then selfSay('Hmm, quer dizer que você falou com o Lugha, se você conseguiu ir até lá, então você é bem vindo na sociedade, você tem minha permissão.') setPlayerStorageValue(cid,8586599,1) else selfSay('Você já tem minha permissão, vá falar com Lugha.') end elseif msgcontains(msg, 'kaht') then if getPlayerStorageValue(cid,8586599) == 2 then selfSay('Vejo que está melhorando sua fala, agora para finalizar sua entrada na sociedade, me pague 10k, para aceitar diga: MEMBRO, na linguagem dos minotauros!') else selfSay('Você não tem o broche dos exploradores.') end elseif msgcontains(msg, 'mikaha') then if doPlayerRemoveMoney(cid,10000) == 1 then selfSay('Ótimo, agora você pode entrar na sala da Dwarven Armor(Localizada na Crusader Helmet Quest) e na pequena ilha dos exploradores!') setPlayerStorageValue(cid,8586599,1) else selfSay('Você não tem os 10k.') end elseif msgcontains(msg, 'cookbook') then if getPlayerStorageValue(cid,2237) <= 1 then selfSay('Você não tem o requerimento de Bo\'ques.') elseif getPlayerStorageValue(cid,2242) == 1 then selfSay('Você já pegou seu cookbook.') else selfSay('HAHAHA! Mais um achando que irá conseguir a autorização para falar com Djanni... pff, de qualquer modo aqui está seu cookbook.') doPlayerAddItem(cid,2347,1) setPlayerStorageValue(cid,2242,1) end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Adeus ' .. creatureGetName(cid) .. ', Volte Sempre.') focus = 0 talk_start = 0 elseif msg ~= "" then selfSay('Como? Eu não entendi!') talk_state = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Proximo!!...') end focus = 0 talk_start = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good Bye') focus = 0 talk_start = 0 end end end- ERRO SCRIPT BOMBERMAN - TFS 0.4
Tente assim irmão, talkactions/scripts/bomb.lua:- Problemas em deixar o Serv ON
Amigo não é necessario mexer ai... Entre aqui: https://my.noip.com/#!/dynamic-dns Cria seu myhost e escolhe o dominio. Depois é só clicar em "create" e pronto!- [Lua & C++] getOtsysTime() + getPlayerPing(cid) + doPlayerSendPing(cid)
https://pastebin.com/PpJQ4jeK- [Lua & C++] getOtsysTime() + getPlayerPing(cid) + doPlayerSendPing(cid)
Bom ao analisar o erro reparei que podia ter algo de errado. Então eu mesmo copiei o codigo e coloquei aqui para analisar. E como eu suspeitava, ao copiar o codigo está vindo uma string incorreta. Observe: Corrija isso(apagando o: -) que dará tudo certo.- Problemas em deixar o Serv ON
1º Mudando a porta do apache para 8090 ou 8080: 2º Liberando as portas no Modem, e também no Firewall do Windows: 3º Como executar o apache e o mysql com o Skype aberto: Se seu modem tiver suporte para jogos, e você seguiu os passos certinho irá funcionar sem erro. NÃO ESTÁ FUNCIONANDO? 4º Verificando a conexão do apache e do mysql Bom vá no seu firewall do windows e verifique se a conexão do seu apache e mysql estão permitidas. Se estiver vermelho como a imagem a seguir: Basta clicar duas vez ou clicar com o botão direito e ir em propriedades e mudar a ação para "Permitir a conexão". Se estiver desabilitado, habilite. Deixe todos verdinho. Ou você também pode desativar o firewall do windows (não recomendado). Pronto seu computador estará pronto para ter um servidor de TIBIA online xD Atenção: as vezes quando você reinicia seu PC o Ip IPV4 pode mudar, recomendo que deixe ele fixo... Espero que eu tenha lhe ajudado. Tuto feito 100% por mim s2- Mortes no Servidor
Executa está query em sua DB: CREATE TABLE mortes ( id INTEGER NOT NULL, player_id INTEGER NOT NULL, date INTEGER NOT NULL, level INTEGER NOT NULL, killer_name INTEGER NOT NULL, PRIMARY KEY ( id ) );- Ajuda - NTO - atributos nos itens
Para funcionar o atributos é em movements.xml. weapon.xml seria mais pra por efeito em armas, definir danos e tals...- Acabando premium account e ir direto pro templo
Certo! testa ai e me diz se deu certo- Acabando premium account e ir direto pro templo
Faz assim então irmão. Use essa script: function onLogin(cid) local pos = {x = 153, y = 52, z = 7} if isPremium(cid) then setPlayerStorageValue(cid, 6787656, 1) elseif getPlayerStorageValue(cid, 6787656) == 1 and not isPremium(cid) then doTeleportThing(cid, pos) doPlayerSetTown(cid,1) doSendMagicEffect(getPlayerPosition(cid), 240) setPlayerStorageValue(cid, 6787656, -1) setPlayerStorageValue(cid, 6787657, 1) doRemoveCreature(cid) end return TRUE end Depois crie outro arquivo e coleque o nome para notpremium.lua e coloque isto nele: function onLogin(cid) if getPlayerStorageValue(cid, 6787657) == 1 then doPlayerPopupFYI(cid, "Sua Premium Expirou!\nNao Deixe De Visitar Nosso SHOP.") setPlayerStorageValue(cid, 6787657, -1) end return TRUE end Em xml: <event type="login" name="NotPremium" event="script" value="notpremium.lua"/> login.lua: registerCreatureEvent(cid, "NotPremium") - [PEDIDO] Tile para encher stamina
Informação Importante
Confirmação de Termo