Ir para conteúdo

hiquezerah

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Obrigado
    hiquezerah recebeu reputação de Jhony Kenshiro Irie em Remover nomes laranja ao usar spell   
    @Gustavots Você pode remover o "return true" no fim do script da sua spell. Ou você pode modificar seu spells.cpp e remover.
     
  2. Gostei
    hiquezerah deu reputação a Natanael Beckman em Auto-Backup Database   
    Galera esse script é um auto backup da sua database, quem gosta de prevenir vamos ao tutorial.
     
    Backup.sh
     
    Criei uma pasta em qualquer local no linux, no meu caso eu fiz uma pasta com o nome database que está localizada na pasta home.
    home/database/backup.sh Certo vamos configura o arquivo, dentro dele já vem tudo explicado mais vou dar um reforço, dentro do arquivo backup.sh contém:
    #!/bin/bash CAMINHO="/home/database/" <--- local onde vai ficar salvo os backups NOMEBACKUP="server-backup" <--- nome do backup USER="root" <--- não mexe SENHA="nitendo64" <--- senha da database BANCO="casa_blanca" <--- nome da database #Nao mexer daqui pra baixo TEMPO="$(date +'%d-%m-%Y-%H-%M')" ##### #Rodando o backup ##### if [[ -z "$USER" || -z "$SENHA" || -z "$BANCO" ]]; then     echo "Por favor preencha o usuário, senha e banco de dados nas configurações." else     mysqldump -u$USER -p$SENHA $BANCO > $CAMINHO"/"$NOMEBACKUP"-"$TEMPO".sql" fi Certo configurado né, vamos fazer um teste:
    Acessa a pasta:
    cd /home/database Da permissão pros arquivos dentro dela, no caso o backup.sh:
    chmod 777 -R * Roda o script pra um teste:
    ./backup.sh Veja na imagem do meu teste, já aparece ali a database, então ta ok deu certo as configurações:
     

     
    Tudo bem, agora vamos configura pra ficar automático, pra todos os dias o script executar o backup em um certo horário:
    crontab -e Se aparecer algo tipo seleciona alguma opção, selecione Nano, que provavelmente seja numero 2...
     

    ----------------------------------------------------------------------------------
     
    Se não aparecer vai direto pra isso:
     

     
    Digite isso dentro do nano, como você ver na imagem acima já tem adicionado:
    0 6,21 * * * sh /home/database/backup.sh ctrl+x y da ENTER No meu caso botei pro script ser executado as 06:00hrs e 21:00hrs, então todo os dias nesse horário o script vai fazer o backup pra essa pasta que configurei, caso queria mudar o horário a logica do comado é clara né.
     
    Caso queria deixar de minutos em minutos abaixo observe um exemplo de 5 em 5 minutos:
    */5 * * * * sh /home/database/backup.sh Caso queria deixar de horas em horas abaixo observe um exemplo de 1 em 1 hora:
    0 */1 * * * sh /home/database/backup.sh Qualquer duvida postem, clica em GOSTEI, valeu.
     
    Créditos total:
    Joffily Ferreira
  3. Gostei
    hiquezerah recebeu reputação de Merascylla em (Resolvido)Actions teleport   
    .Qual servidor ou website você utiliza como base? Otx
     
    Qual o motivo deste tópico?  Olá rapazeada do Tibiaking, Boa noite!!  
    Fiz esse script simples para o meu servidor com o intuinto de colocar um pouco mais de rpg em clicar em alguns lugares diferentes no cenário.
    Existe varios lugares que eu precisarei utilizar esse script, e seria muito melhor utilizar apenas um script para todos os locais ao envés de criar vários scripts, sabe?
    Alguém poderia me ajudar a colocar uma actionid para cada teleport dentro do mesmo script?
    ex: poder repetir o script dentro dele mesmo e mudar os locais e a actionid
     
    local teleport1 = {x=283, y=984, z=6}
    local teleport2 = {x=284, y=985, z=6}
     
            if isPlayer(cid) then -- actionid 222
            doTeleportThing(cid, teleport1)
            doSendMagicEffect(getPlayerPosition(cid), 12)
            end
    else
            if isPlayer(cid) then -- actionid 111
            doTeleportThing(cid, teleport2)
            doSendMagicEffect(getPlayerPosition(cid), 12)
            end
    end 
     
    Você tem o código disponível? Se tiver publique-o aqui: 
    function onUse(cid, item, fromPosition, item2, toPosition) local teleport = {x=283, y=984, z=6} if isPlayer(cid) then doTeleportThing(cid, teleport) doSendMagicEffect(getPlayerPosition(cid), 12) end end   
    Olá rapazeada, desculpe-me a minha preguiça e não ter tentado ir um pouco mais no script, acabei fazendo alguns teste e consegui resolver, postarei o resultado embaixo caso alguém precise.
     
    function onUse(cid, item, fromPosition, item2, toPosition) local teleport1 = {x=283, y=984, z=6} local teleport2 = {x=291, y=976, z=7} -- Pos que irá teleportar, repita um desses caso queira adicionar mais algum teleport -- if isPlayer(cid) and item.uid == 12222 then -- mude o "12222" para cada teleport e adicione ao item no remeres doTeleportThing(cid, teleport1) doPlayerSendTextMessage(cid,25,"Passagem Secreta") doSendMagicEffect(getPlayerPosition(cid), 12) end -- Se quiser adicionar mais teleportes repita apenas até o end if isPlayer(cid) and item.uid == 12223 then -- mude o "12223" para cada teleport e adicione ao item no remeres doTeleportThing(cid, teleport2) -- mude de acordo com o local criado la encima doPlayerSendTextMessage(cid,25,"Succes") doSendMagicEffect(getPlayerPosition(cid), 12) end -- este aqui end Em action.xml adicione as tags
        <action uniqueid = "12222" event = "script" value = "teleportes/goa1.lua" />
        <action uniqueid = "12223" event = "script" value = "teleportes/goa1.lua" />
  4. Gostei
    hiquezerah deu reputação a Vodkart em (Resolvido)Mostrar Level em que deu Reborn   
    entendi, o reborn ele desloga o char... usa assim o npc:
     
    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('???') 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) local rstorage = 149501 if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Olá! Se voce está pronto, diga "reborn".') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then selfSay('Desculpe, mas voce já é rebornado.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') and (getPlayerLevel(cid) < 200 and getPlayerStorageValue(cid,30023) ~= 4) or (getPlayerLevel(cid) > 600 and getPlayerStorageValue(cid,30023) ~= 4) then selfSay('Apenas level 200 até 600 podem rebornar.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') then selfSay('Realmente quer isto?') talk_state = 2 --_GOKU_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 8 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,10,9) talk_state = 0 --_VEGETA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 23 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,25,24) talk_state = 0 --_PICCOLO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 36 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,42,37) talk_state = 0 --_C17_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 49 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,50,50) talk_state = 0 --_GOHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 63 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,62,64) talk_state = 0 --_TRUNKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 75 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,74,76) talk_state = 0 --_CELL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 87 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,81,88) talk_state = 0 --_FREEZA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 101 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,88,102) talk_state = 0 --_MAJIN BOO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 117 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,98,118) talk_state = 0 --_BROLY_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 131 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,113,132) talk_state = 0 --_C18_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 144 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,50,145) talk_state = 0 --_UUB_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 156 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,128,157) talk_state = 0 --_GOTEN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 170 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,142,171) talk_state = 0 --_CHIBI TRUNKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 184 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,151,185) talk_state = 0 --_COOLER_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 197 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,153,198) talk_state = 0 --_DENDE_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 210 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,169,211) talk_state = 0 --_TSUFUL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 222 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,180,223) talk_state = 0 --_BARDOCK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 235 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,194,236) talk_state = 0 --_KURIRIN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 248 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,205,249) talk_state = 0 --_PAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 260 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,212,261) talk_state = 0 --_KAIO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 272 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,221,273) talk_state = 0 --_VIDEL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 284 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,227,285) talk_state = 0 --_JANEMBA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 296 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,234,297) talk_state = 0 --_TENSHINHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 308 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,246,309) talk_state = 0 --_JENK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 320 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,257,321) talk_state = 0 --_RADITZ_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 332 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,265,333) talk_state = 0 --_C16_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 344 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,277,345) talk_state = 0 --_TURLES_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 356 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,285,357) talk_state = 0 --_BULMA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 368 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,296,369) talk_state = 0 --_SHENRON_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 380 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,302,381) talk_state = 0 --_VEGETTO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 392 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,308,393) talk_state = 0 --_TAPION_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 404 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,321,405) talk_state = 0 --_KAME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 417 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,335,418) talk_state = 0 --_KING VEGETA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 429 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,347,430) talk_state = 0 --_KAGOME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 441 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,357,442) talk_state = 0 --_ZAIKO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 453 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,368,454) talk_state = 0 --_LORD CHILLED_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 465 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,375,466) talk_state = 0 --_C8_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 482 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,517,483) talk_state = 0 --_Goku Black_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 534 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,592,535) talk_state = 0 --_Golden Freeza_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 544 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,88,545) talk_state = 0 --_Bills_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 554 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,502,555) talk_state = 0 --_Zamasu_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 564 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,607,565) talk_state = 0 --_Whiss_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 574 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,617,575) talk_state = 0 --_Vados_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 584 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,624,585) talk_state = 0 --_Vegetto Black_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 594 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,630,595) talk_state = 0 --_Blue Gogeta_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 604 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,640,605) talk_state = 0 --_Vegetto Blue_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 614 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,308,615) talk_state = 0 --_Zeno_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 624 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,641,625) talk_state = 0 --_Goku Black Evo_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 634 then setPlayerStorageValue(cid, rstorage, getPlayerLevel(cid)) doReborn(cid,1,651,635) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 then selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Voce deve estar na ultima transformação.') elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Adeus!') focus = 0 talk_start = 0 end end end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 45 then if focus > 0 then selfSay('Próximo por favor...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Adeus!') focus = 0 end end end  
  5. Gostei
    hiquezerah recebeu reputação de Orientalz em Event BOSS   
    @Orientalz   tenta assim     
    <globalevent name="othersboss" interval="1000" event="script" value="othersboss.lua"/>  
  6. Gostei
    hiquezerah recebeu reputação de Vodkart em Movements ativar piso   
    @Shiuns
    Olá, acabei de testar seu script e ele não está funcionando, não acontece nenhum erro, mas também não acontece nada.
  7. Gostei
    hiquezerah deu reputação a Kyle Bellini em (Resolvido)Actions teleport   
    Vi que o tópico já está resolvido, mas criei uma solução mais otimizada e de fácil manutenção para que facilite futuramente pra ti:
     
     
    No arquivo actions.xml coloque a tag deste modo, irá evitar o spam de várias tags:
    <action actionid="7010;7011;7012;7013;7014" event="script" value="teleports.lua"/>  
    Esse script que tu apresentou iria ficar bem mais pesado futuramente, por ter que criar várias linhas de código toda vez que quisesse adicionar um novo lugar. Utiliza esse que mandei porque aí tu só precisa alterar a tabela para colocar novos lugares (basta seguir o modelo dela), não vai precisar mexer no código.
  8. Curtir
    hiquezerah recebeu reputação de Nightowl em (Resolvido)Error em website Myacc   
    @Nightowl Obrigado por ter ajudado mano, vlw mesmo!
  9. Gostei
    hiquezerah deu reputação a Nightowl em (Resolvido)Error em website Myacc   
    ALTER TABLE `accounts` ADD `nickname` int NOT NULL; roda essa query na sua database. 
  10. Gostei
    hiquezerah deu reputação a Nightowl em (Resolvido)Error em website Myacc   
    vai em SQL - > depois adiciona a query e executa.
  11. Gostei
    hiquezerah deu reputação a Nightowl em (Resolvido)Error em website Myacc   
    te ajudo a resolver meu discord : Nightowl#4271 
  12. Curtir
    hiquezerah recebeu reputação de Vodkart em (Resolvido)Spawn de items   
    @Vodkart sim, consigo summonar ele com o /m. Está funcionando com as duas funções, o script cria o monstro, mas continua persistindo o erro. Acredito que o monstro não está sendo verificado se pode ser criado em paredes ou não, quando o script escolhe alguma area aberta o monstro cria normal. Acho que não esta sendo verificado, estou certo?

Informação Importante

Confirmação de Termo