Ir para conteúdo
Banner com Efeitos

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. Provavelmente você está residindo uma outra cidade que não é a principal para o jogo, cheque na database do servidor, e coloque a town principal em town_id, se estiver utilizando Gesior, para jogadores novos que criarem a conta, vá em config/config.php e mude isso $config['site']['newchar_towns'] = array(2); - o 2 seria que todos os jogadores que criassem a account iria para o townid 2.. E um comando para sql para fazer todos serem moradores de uma cidade é: UPDATE players SET `town_id` = 2 Vai fazer que todos os players que estiverem na database seja residente da cidade com o id 2. Espero que entenda, se não entender o que eu disse, leia 843753 vezes até entender, é a melhor explicação que posso dar.
  2. ?? https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L54 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L174-L201 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L367-L482 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L996-L1340 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L1364-L1709 etc etc etc
  3. @Sekk ta mal em.. Utilize globalevents algo assim para dar tp no player local k = { storage = 1111 } function onThink(interval, lastExecution, thinkInterval) if getPlayerStorageValue(cid, k.storage) < os.time() and isPlayerPzLocked(cid) == true then return false else doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) return true end end PS: Só vai dar tp se não tiver pz locked, assim não tem maneiras de bugar.
  4. @Sekk não, da uma olhada e atualiza lá
  5. vankk postou uma resposta no tópico em Playground (Off-topic)
    kevin gates tira mt onda, já tem o album full dele, HAHAHA! Essa do jay z com kanye west eu to ate enjoado de tanto que ja escutei, iuwehtiuwtheuiw. vou ver essa hora, parece ser top!
  6. Te dar uma pequena ajuda.. ferumbras soul - 843 ascendent ferumbras - 844 vexclaw - 854 grimeleech - 855 hellflayer - 856 ogre brute - 857 ogre savage - 858 ogre shaman - 859 clomp - 860 bone capsule - 863
  7. Tudo nessa vida é possível. <?PHP ECHO '<center> <h1>Lottery System</h1> <h4>Nosso Lottery System sorteia toda hora 5K de Crystal Coins, entre os Players On Line.</h4> </center> <br> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS=white><center><b>Nome do ganhador</b></center></td> <td CLASS=white width=184 colspan=2> <center><b>Recompensa</b></center> </td> </tr>'; $lottery = $SQL->query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC LIMIT 5;'); foreach($lottery as $result) { $players++; if(is_int($players / 2)) $bgcolor = $config['site']['lightborder']; else $bgcolor = $config['site']['darkborder']; ECHO '<TR BGCOLOR='.$bgcolor.'> <TD WIDTH=35%> <center><a href="?subtopic=characters&name='.urlencode($result['name']).'">'.$result['name'].'</a></center> </td> <TD WIDTH=35%><center>'.$result['item'].'</center></td><TD WIDTH=30%><center>Br Ot Server</center></td> </tr>'; } ECHO '</table>'; ?> Está com um limite de 5.
  8. Todos os files estão praticamente iguais, só muda o nome dos monsters
  9. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Você está testando com uma conta de GOD ou até mesmo com o god? Se sim, já achamos o problema, se não, eu removi a condição para adicionar o muted. 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 player:addCondition(muted) 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
  10. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Porque existe um ";" depois do screen? Tente utilizar screen ./theotxserver
  11. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Primeiramente, o que é gersior? enfim, arrume a parte da configuração da database no config.lua, se não fica impossível de qualquer AAC entender
  12. Isso foi um elogio e uma seríssima crítica ao mesmo tempo. Organização é fundamental em qualquer linguagem de programação.
  13. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Não, faça por si próprio, coloca o que eu passei em baixo da linha 2, simples.
  14. vankk postou uma resposta no tópico em Playground (Off-topic)
    IEWUHTIWEUHTWIEUHTWIEUHTIUWEHTIUHWEITUHWEIUTWEIUTHWE
  15. vankk postou uma resposta no tópico em Playground (Off-topic)
    concordo newfag.
  16. @Xagahnão irei te dar rage, mas.. que coisa mais desorganizada, e feia de se ler. Tente trabalhar para organizar seus scripts, mas fora isso, obrigado por ter compartilhado com a comunidade do TibiaKing. PS: Estou falando do da versão do TFS 1.0
  17. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Eu fiquei na dúvida se eu ajudava ou não porque você colocou xtibianos, mas enfim.. Coloca isso date_default_timezone_set('America/Sao_Paulo'); no latestnews.php que resolve seu problema
  18. Depois da uma ajudada nesse tópico ai, pq 0.4 fede
  19. @xWhiteWolf meu caro lobo, ajude essa pobre alma chamada vankk que é horrível com npcs do TFS 0.4, noix. btw, tenta isso pela ultima vez. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid 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) talkState[talkUser] = 1 if talkState[talkUser] == 1 then if getCount(msg) > 1 then count[cid] = getCount(msg) npcHandler:say('Do you want change ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. ' premium points in the website?', cid) talkState[talkUser] = 2 else npcHandler:say('Please tell me the amount that you want change.', cid) talkState[talkUser] = nil end end elseif talkState[talkUser] == 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) talkState[talkUser] = nil else npcHandler:say('You do not have the items.', cid) talkState[talkUser] = nil end elseif talkState[talkUser] == 2 and msgcontains(msg, 'no') then npcHandler:say('Ok then.', cid) talkState[talkUser] = nil end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  20. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid 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) talkState[talkUser] = 1 if talkState[talkUser] == 1 then if getCount(msg) == -1 then count[cid] = getCount(msg) npcHandler:say('Do you want change ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. ' premium points in the website?', cid) talkState[talkUser] = 2 end end elseif talkState[talkUser] == 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) talkState[talkUser] = nil else npcHandler:say('You do not have the items.', cid) talkState[talkUser] = nil end elseif talkState[talkUser] == 2 and msgcontains(msg, 'no') then npcHandler:say('Ok then.', cid) talkState[talkUser] = nil end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  21. Não foi seu, foi meu mesmo, eu esqueço sempre de configurar o talkState mesmo. Testa e veja o que da.
  22. Por isso que odeio npcs da versão 0.4 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid 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) talkState[talkUser] = 1 if talkState[talkUser] == 1 then if getCount(msg) == -1 then npcHandler:say('Please tell me the amount that you want change.', cid) talkState[talkUser] = 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) talkState[talkUser] = 2 end end elseif talkState[talkUser] == 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) talkState[talkUser] = nil else npcHandler:say('You do not have the items.', cid) talkState[talkUser] = nil end elseif talkState[talkUser] == 2 and msgcontains(msg, 'no') then npcHandler:say('Ok then.', cid) talkState[talkUser] = nil end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  23. Leia o erro do install, que você conseguirá. AAC installation is disabled. To enable it make file install.php in main AAC directory and put there your IP. E utilize esses comandos no SQL ALTER TABLE `guilds` ADD `logo_gfx_name` varchar(255) NOT NULL DEFAULT ''; CREATE TABLE IF NOT EXISTS `z_forum` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sticky` tinyint(1) NOT NULL DEFAULT '0', `closed` tinyint(1) NOT NULL DEFAULT '0', `first_post` int(11) NOT NULL DEFAULT '0', `last_post` int(11) NOT NULL DEFAULT '0', `section` int(3) NOT NULL DEFAULT '0', `replies` int(20) NOT NULL DEFAULT '0', `views` int(20) NOT NULL DEFAULT '0', `author_aid` int(20) NOT NULL DEFAULT '0', `author_guid` int(20) NOT NULL DEFAULT '0', `post_text` text NOT NULL, `post_topic` varchar(255) NOT NULL, `post_smile` tinyint(1) NOT NULL DEFAULT '0', `post_date` int(20) NOT NULL DEFAULT '0', `last_edit_aid` int(20) NOT NULL DEFAULT '0', `edit_date` int(20) NOT NULL DEFAULT '0', `post_ip` varchar(32) NOT NULL DEFAULT '0.0.0.0', PRIMARY KEY (`id`), KEY `section` (`section`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  24. vankk postou uma resposta no tópico em Playground (Off-topic)
    força músicas nessa porra ai!!!

Informação Importante

Confirmação de Termo