Ir para conteúdo

joadson

Membro
  • Registro em

  1. Bobalhao começou a seguir joadson
  2. joadson postou uma resposta no tópico em Suporte OTServer Derivados
    Só adicionar um doPlayerAddItem(cid, ITEM_ID, ITEM_QUANT) abaixo de setPlayerStorageValue(cid, bonus_contador, 0) ficando assim doPlayerSendTextMessage(cid, 19, "Seus ".. bonus_max .." Online Bonus foram convertidos em 1 dia de Premium Account!") setPlayerStorageValue(cid, bonus_contador, 0) doPlayerAddItem(cid, ITEM_ID, ITEM_QUANT) Troque o item_ID e quant pelo item e quantidade e o sistema não tem nenhuma linha que fala sobre premium days
  3. jotana240 reagiu a uma resposta no tópico: PokeAimar (Level System) 8.54 2020
  4. Kuantikum reagiu a uma resposta no tópico: PokeAimar (Level System) 8.54 2020
  5. Só alterar pra: #define CLIENT_VERSION_MIN 854 #define CLIENT_VERSION_MAX 854 e estará apto para rodar em qualquer otc 854
  6. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Ele cria um novo user, só logar com ele ou então compila tua sourcer com permissão de ser executada com root troca o root@teuip por userCriado@teuip
  7. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    adduser novo usario
  8. Me chame no Discord ou WhatsApp para passar todos os detalhes. Aion#1921 Discord 73991388451 - WhatsApp
  9. Só adicionar world_id na tabela global_storage por se tratar de sqlite nao sei como procede, mas deve ter o botao de add fields no editor;
  10. Aguardando ?
  11. Olha os logs de erro em var/logs/apache2 no linux. lá vai dizer a causa de nao carregar as infos, mas provavelmente são os samples sem skills
  12. carlos2608 reagiu a uma resposta no tópico: OpenPrivateChannel
  13. Deve ter algum script/mod com a função de remover as conditions. procure nos scripts por doRemoveCondition(cid, true) remova a linha ou mude para remover apenas tal condição. CONDITION_OUTFIT, ETC...
  14. playssonrayz reagiu a uma resposta no tópico: [duvida] como aumenta velocidade
  15. joaocampos reagiu a uma resposta no tópico: (Resolvido)[Pedido] Alavanca por tempo
  16. DaPYuumii reagiu a uma resposta no tópico: Encontrar NPC
  17. function onUse(cid, item, frompos, item2, topos) setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid)+10000)) setCreatureMaxMana(cid, (getCreatureMaxMana(cid)+10000)) doPlayerSendTextMessage(cid,19,"Foram Adicionados 10k de HP e MP no seu personagem") doRemoveItem(item.uid,1) return true end Não perde, é adionada "forever" pra perder ao morrer precisa de outro script
  18. Vá em action.xml e adicione <action itemid="IDDOITEM" script="extraHP.lua" /> e crie um arquivo extraHP.lua function onUse(cid, item, frompos, item2, topos) setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid)+10000)) doPlayerSendTextMessage(cid,19,"Foram Adicionados 10k de HP no seu personagem") doRemoveItem(item.uid,1) return true end faça o mesmo com MANA só mude setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid)+10000)) para setCreatureMaxMana(cid, (getCreatureMaxMana(cid)+10000))
  19. jNo reagiu a uma resposta no tópico: (Resolvido)Force OpenChat
  20. Esse erro mesmo... http://www.tibiaking.com/forum/forums/topic/73679-036-função-doplayeropenchannel/ a função
  21. Vá em data/creaturevents/scripts e crie um arquivo chamado deathchannel.lua e coloque isso function onLogin(cid) if isPlayer(cid) and getPlayerAccountManager(cid) == MANAGER_NONE then doPlayerOpenChannel(cid, 9) doPlayerOpenChannel(cid, 10) registerCreatureEvent(cid, "playerDeathChannel") -- função do seu deathchannel end return true end abra seu login.lua e registerCreatureEvent(cid, "playerDeathChannelLogin") agora abra creaturevents.xml e coloque <event type="login" name="playerDeathChannelLogin" event="script" value="deathchannel.lua"/> Caso dê algum erro é porque sua sourcer não tem o código para chamar a função, ai terá que adicionar. Aqui funcionou sem nenhum erro.
  22. Vou fazer aqui... Só queres que apareça ao logar né? por padrão, como o default ne?
  23. EDIT... Crie o arquivo XML do npc. <?xml version="1.0" encoding="UTF-8"?> <npc name="Rebornar" script="rebornar.lua" walkinterval="0"> <health now="100" max="100"/> <look type="446"/> <parameters> <parameter key="message_greet" value="Olá, |PLAYERNAME|! Eu posso te {Rebornar}." /> </parameters> </npc> e crie um arquivo rebornar.lua na pasta scripts local hpADD = 10000 -- HP adicionado ao rebornar local mpADD = 10000 -- MP adicionado... local function doPlayerReborn(cid, level, looktype, vocation) setGlobalStorageValue(1000,getPlayerGUID(cid)) setPlayerStorageValue(cid, 30023, 4) setPlayerStorageValue(cid, 30024, getPlayerLevel(cid)) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+hpADD) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mpADD) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid)) doRemoveCreature(cid) db.query("UPDATE `players` SET `level` = " .. level .. " WHERE `id` = " .. getGlobalStorageValue(1000) .. ";") db.query("UPDATE `players` SET `looktype` = " .. looktype .. " WHERE `id` = " .. getGlobalStorageValue(1000) .. ";") db.query("UPDATE `players` SET `vocation` = " .. vocation .. " WHERE `id` = " .. getGlobalStorageValue(1000) .. ";") return TRUE end ----------------------------funções padrão do 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) 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) > 400 and getPlayerStorageValue(cid,30023) ~= 4) then selfSay('Apenas level 200 ao 400 podem rebornar.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'reborn') then selfSay('Realmente quer isto?') talk_state = 2 -- configuração da vocação elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 400 and getPlayerVocation(cid) == 8 then -- mude o 8 para o numero da ultima transformação doPlayerReborn(cid,1,10,9)-- explicação: 1 é o level que ficará após rebornar, 10 é o looktype e 9 é a nova vocação 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

Informação Importante

Confirmação de Termo