Ir para conteúdo

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. Você tem que pegar o schema.sql para o seu servidor utilizar 0.4 ou 1.x, dependendo da versão, você simplesmente importa a schema.sql na sua database. Se você utilizar 0.4 você pode utilizar a schema do server do @Sekk https://raw.githubusercontent.com/s3kk/Heromassa/master/schemas/war_cast_mysql.sql Só lembre de limpar as tabelas. *edit @Sekk Limpa as tabelas
  2. Está faltando as tabelas do TFS, você só instalou as do Gesior
  3. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    @Pandawan >> if player:getCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_ADVERTISING) then >>> CHANNEL_ADVERTISING >>>> ADVERTISING ??? Queremos checar a condição do muted no channel help e não adversiting. - tópico. local CHANNEL_HELP = 7 local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_HELP) muted:setParameter(CONDITION_PARAM_TICKS, 120000) function onSpeak(player, type, message) local playerAccountType = player:getAccountType() if player:getLevel() == 1 and playerAccountType == ACCOUNT_TYPE_NORMAL then player:sendCancelMessage("You may not speak into channels as long as you are on level 1.") return false end -- muted por tempo if player:getCondition(CONDITION_CHANNELEXAUSTTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) then player:sendCancelMessage("You may only ask a question once every two minutes.") return false end if playerAccountType < ACCOUNT_TYPE_TUTOR then player:addCondition(muted) end if type == TALKTYPE_CHANNEL_Y then if playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_O end elseif type == TALKTYPE_CHANNEL_O then if playerAccountType < ACCOUNT_TYPE_TUTOR and not getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_Y end elseif type == TALKTYPE_CHANNEL_R1 then if playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not getPlayerFlagValue(player, PlayerFlag_CanTalkRedChannel) then if playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_O else type = TALKTYPE_CHANNEL_Y end end end return type end
  4. Confere no phpmyadmin na estrutura de accounts se existe todas as tabelas que possui na linha 11. Se faltar alguma, comenta logo abaixo.
  5. Posta todo o account.php, está precisando de algumas lines para eu checar o problema.
  6. Provável que seja algum script em creaturescripts com a function onDeath que deve estar mal configurada, ou provavelmente pode ser o playerdeath.lua dependendo de qual TFS você utilizar.
  7. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Eu postei uma solução para esse problema no dia 19 de outubro de 2015, nesse mesmo tópico
  8. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Não tenho ideia se vai funcionar.. local CHANNEL_HELP = 7 local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_HELP) muted:setParameter(CONDITION_PARAM_TICKS, 3600000) local exhausted = Condition(CHANNELEXAUSTTICKS, CONDITIONID_DEFAULT) exhausted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_HELP) exhausted:setParameter(CONDITION_PARAM_TICKS, 120000) function onSpeak(player, type, message) local playerAccountType = player:getAccountType() if player:getLevel() == 1 and playerAccountType == ACCOUNT_TYPE_NORMAL then player:sendCancelMessage("You may not speak into channels as long as you are on level 1.") return false end -- muted por tempo if player:getCondition(CONDITION_CHANNELEXAUSTTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) then player:sendCancelMessage("You may only ask a question once every two minutes.") return false end -- muted por tutor if player:getCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) then player:sendCancelMessage("You are muted from the Help channel for using it inappropriately.") return false end if playerAccountType >= ACCOUNT_TYPE_TUTOR then if string.sub(message, 1, 6) == "!mute " then local targetName = string.sub(message, 7) local target = Player(targetName) if target ~= nil then if playerAccountType > target:getAccountType() then if not target:getCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) then target:addCondition(muted) sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, target:getName() .. " has been muted by " .. player:getName() .. " for using Help Channel inappropriately.") else player:sendCancelMessage("That player is already muted.") end else player:sendCancelMessage("You are not authorized to mute that player.") end else player:sendCancelMessage(RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE) end return false elseif string.sub(message, 1, 8) == "!unmute " then local targetName = string.sub(message, 9) local target = Player(targetName) if target ~= nil then if playerAccountType > target:getAccountType() then if target:getCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) then target:removeCondition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) sendChannelMessage(CHANNEL_HELP, TALKTYPE_CHANNEL_R1, target:getName() .. " has been unmuted by " .. player:getName() .. ".") else player:sendCancelMessage("That player is not muted.") end else player:sendCancelMessage("You are not authorized to unmute that player.") end else player:sendCancelMessage(RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE) end return false end end if playerAccountType < ACCOUNT_TYPE_TUTOR then player:addCondition(exhausted) end if type == TALKTYPE_CHANNEL_Y then if playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_O end elseif type == TALKTYPE_CHANNEL_O then if playerAccountType < ACCOUNT_TYPE_TUTOR and not getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_Y end elseif type == TALKTYPE_CHANNEL_R1 then if playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not getPlayerFlagValue(player, PlayerFlag_CanTalkRedChannel) then if playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_O else type = TALKTYPE_CHANNEL_Y end end end return type end
  9. Eu sei, mas eu gosto de utilizar scripts com funções atualizadas, e não com funções antigas, hahah.. mas whatever.
  10. Você quer descompilar um cliente de Tibia, ou um executável?
  11. Vai ter que checar script por script, e ver se tem alguma coisa errada, para isso, vai necessitar de ter um conhecimento sobre LUA.
  12. Não existe "descompilar" só compilar, ou seja é impossível
  13. if getPlayerLevel(cid) < 130 then doPlayerAddExperience(cid, (getExperienceForLevel(130) - getPlayerExperience(cid))) end Então é isso que você precisa, só adicionar no login.lua
  14. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    local config = { area = { from = {x=100, y=100, z=7}, -- area de to = {x=200, y=200, z=7} -- area ate }, pos = {x = 33526, y = 32420, z = 12}, -- posição que o player vai cair kickPos = {x= 1000, y=1000, z=7}, -- kick pos bossName = "morgaroth", -- boss name sempre em letras minusculas devido ao :lower na linha 18 storage = 17201 -- storage } local function removeBoss() for x = config.area.from.x, config.area.to.x do for y = config.area.from.y, config.area.to.y do for z = config.area.from.z, config.area.to.z do pos = {x = x, y = y, z = z, stackpos = 253} v = getThingfromPos(pos).uid if isMonster(v) and getCreatureName(v):lower() == confg.bossName:lower() then doRemoveCreature(v) end end end end end local function kick(t) for i = 1, #t do if isPlayer(t) and isInRange(getThingPos(t), config.area.from, config.area.to) then doTeleportThing(t, config.kickPos) doSendMagicEffect(config.kickPos, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, 18, "You have been removed from the boss room, because you can not stay for more than 10 minutes.") end end function onUse(cid, item, fromPosition, itemEx, toPosition) if(itemEx.itemid == 22634) and getPlayerStorageValue(cid, config.storage) < 1 then doPlayerSendTextMessage(cid, 19, "You have ten minutes to kill boss for reward items and create you umbral.") addEvent(kick, 10 * 60 * 1000, cid) addEvent(removeBoss, 10 * 60 * 1000, cid) doTeleportThing(cid, config.pos) doSendMagicEffect(config.pos, CONST_ME_TELEPORT) setPlayerStorageValue(cid, config.storage, 1) doRemoveItem(cid, item.itemid) end return true end Não sei se funcionará, mas é algo assim.
  15. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Pode sim, só colocar um addEvent para limpar a área depois de 10 minutos.
  16. Tudo nessa vida é possível, basta querer.. Qualquer coisa faça que o item 9970, seja clicável e que cada item, de um point no website. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local k = { item = 9970 } function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local function getCount(s) local b, e = s:find('%d+') return b and e and math.min(4294967295, tonumber(s:sub(b, e))) or -1 end function creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false elseif msgcontains(msg, 'transfer') then npcHandler:say('Please tell me the amount that you want change.', cid) Topic[cid] = 1 if Topic[cid] == 1 then if getCount(msg) == -1 then npcHandler:say('Please tell me the amount that you want change.', cid) Topic[cid] = nil else count[cid] = getCount(msg) npcHandler:say('Do you want change ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. ' premium points in the website?', cid) Topic[cid] = 2 end end elseif Topic[cid] == 2 and msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, k.item, count[cid]) then local p = "UPDATE `accounts` SET `premium_points` = `premium_points` + ".. count[cid] .." where id="..getPlayerAccountId(cid) db.executeQuery(p) npcHandler:say('Very well. You have transfered ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. '.', cid) Topic[cid] = nil else npcHandler:say('You do not have the items.', cid) Topic[cid] = nil end elseif Topic[cid] == 2 and msgcontains(msg, 'no') then npcHandler:say('Ok then.', cid) Topic[cid] = nil end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) E se tiver funcionando atualiza as mensagens, pq as falas do npc está bem feias, eu acho.. HAHAHA!
  17. Cara, explique direito tenho pouco tempo. Poupe meu tempo, e o seu tempo. Explica como funciona o sistema de critical/dodge. Você clica na alavanca e ganha critical/dodge, mas como que funciona o sistema, por storage? O que? E a stamina você quer como? Ao clicar na alavanca, venha um item, ou ao clicar na avalanca, você já ganha a stamina full por 1,000 crystal coins, seria isso? Espero que você explique direito no próximo post.
  18. Como assim critical? Dodge? Faltou a explicação do da stamina.
  19. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Qual TFS você utiliza? E passa o script do teleport que faz o boss ser summonado.
  20. Sem explicar como que você quer que funcione os scripts, fica dificil ajudar.
  21. vankk postou uma resposta no tópico em Playground (Off-topic)
  22. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Faz o seguinte, todas perguntas que você tiver, faça nesse tópico, escreva formalmente, e depois me marque que tentarei te responder, assim quem sabe não ajudo mais pessoas
  23. Não entendi muito bem seu pedido.. Como assim pontos físicos? Você quer dizer tipo, remover o item do jogador(ID: 9970) e então enviar X points para o site? Seria isso? Se remover 10 pontos in-game, vai 10 pontos para site, basicamente seria isso?

Informação Importante

Confirmação de Termo