Ir para conteúdo

vankk

Membro
  • Total de itens

    1719
  • Registro em

  • Última visita

  • Dias Ganhos

    25

Community Answers

  1. vankk's post in (Resolvido)Personagem não salva [Ajuda] was marked as the answer   
    A tabela player_autoloot não existe.

    Tenta executar essa query na sua database:
     
    CREATE TABLE player_autoloot ( id int NOT NULL AUTO_INCREMENT, player_id int NOT NULL, autoloot_list blob, PRIMARY KEY (id) );  
  2. vankk's post in (Resolvido)(Ajuda) Alterar Clean was marked as the answer   
    Basta você modificar essa linha aqui no game.cpp para
    if((*tit)->getUniqueId() != UNIQUE_ID_DO_ITEMS_VIP && (*tit)->isMoveable() && !(*tit)->isLoadedFromMap() && !(*tit)->isScriptProtected()) aonde está UNIQUE_ID_DO_ITEMS_VIP você muda para o UniqueID dos Items VIP de seu servidor.
  3. vankk's post in (Resolvido)WEAPONS.XML - TFS 1.3 was marked as the answer   
    Caso você queria colocar ela para ser por script, então deve ser nesse estilo:
     
    <wand id="item_ID" level="200" mana="80" script="script.lua"> Caso que queira já definir um valor basta utilizar:
     
    <wand id="ITEM_ID" level="200" mana="200" min="123" max="456" type="earth"> Para mais info clique aqui.
  4. vankk's post in (Resolvido)Erro em event Duca War was marked as the answer   
    Em cada linha que está dando o erro você precisa passar o getPlayerStorageValue para dentro da função tonumber. Ficando tonumber(getPlayerStorageValue(cid, DUCA.STORAGE_TEAM))
  5. vankk's post in (Resolvido)Incluir imagens nas mensagens no site Gesior. was marked as the answer   
    Você precisa utilizar <img src="link_da_imagem.png"> e não <img>url</img>
  6. vankk's post in (Resolvido)[Ajuda] ao usar spells o nome fica amarelo was marked as the answer   
    Coloca emoteSpell em true no config.lua
  7. vankk's post in (Resolvido)[PEDIDO] Recuperar stamina em x sqm was marked as the answer   
    local config = { timeToAdd = 3, -- intervalo de tempo para adicionar. addTime = 10, -- quanto vai adicionar. } if not addSta then addSta = {} end local function addStamina(cid) if not isPlayer(cid) then addSta[cid] = nil return true end if getPlayerStamina(cid) >= 42 * 60 * 1000 then return end doPlayerSetStamina(cid, getPlayerStamina(cid) + config.addTime * 1000) doPlayerSendTextMessage(cid, 25, "Você recebeu "..config.addTime.." minutos de stamina.") addSta[cid] = addEvent(addStamina, config.timeToAdd * 60 * 1000, cid) end function onStepIn(cid) if isPlayer(cid) then addSta[cid] = addEvent(addStamina, config.timeToAdd * 60 * 1000, cid) end return true end function onStepOut(cid) if isPlayer(cid) then stopEvent(addSta[cid]) addSta[cid] = nil end return true end O sistema de Stamina do 0.4 é diferente que do o TFS 1.x. É baseado em milisegundos.
  8. vankk's post in (Resolvido)[RESOLVIDO] por storage em !transformar was marked as the answer   
    local config = { --[vocation id] = { level, nova voc, looktype, efeito} [7] = {700, 8, 9, 114, 43902} } local storage = 123 function onSay(cid, words, param, channel) local voc = config[getPlayerVocation(cid)] if not voc then doPlayerSendCancel(cid, "Nao é possível se transformar.") return true end if getPlayerStorageValue(cid, storage) ~= 1 then doPlayerSendCancel(cid, "Nao é possível se transformar.") return true end if getPlayerLevel(cid) < voc[1] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para transformar.") return true end doPlayerSetVocation(cid, voc[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce se transformou!") doCreatureSay(cid, "Transformar", 19) doCreatureChangeOutfit(cid, {lookType = voc[3]}) doSendMagicEffect(getCreaturePosition(cid), voc[4]) return true end  
  9. vankk's post in (Resolvido)Monster storage? was marked as the answer   
    Acho que isso deve resolver, sei lá.
     
    local names = {'demon', 'dragon'} local function checkAround(monsterName, monsterPosition) local spectators = Game.getSpectators(monsterPosition, false, true, 7, 7, 5, 5) if #spectators ~= 0 then return false end Game.createMonster(monsterName, monsterPosition, true, false) return true end function onDeath(monster, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) local monsterName = monster:getName() -- Lets check if the name is in the array if not isInArray(names, monsterName:lower()) then return true end -- Lets check if the killer is a player if not killer or not killer:isPlayer() then return true end -- Now lets check if there is players around then summon addEvent(checkAround, 1 * 60 * 1000, monsterName, monster:getPosition()) return true end  
  10. vankk's post in (Resolvido)Função was marked as the answer   
    https://www.lua.org/pil/22.1.html
  11. vankk's post in (Resolvido)Tirar mensagem ao entrar na porta selada. was marked as the answer   
    Primeiro, muda esse script, que coisa feia.
    Segundo, tente trocar o actionid da porta, provável que ela deve estar em conflito com algum outro script.
     
    local storage = 100 function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, storage) ~= 1 then doPlayerSendTextMessage(cid, 22, 'Complete a Annihilator primeiro') return true end doTransformItem(item.uid,item.itemid+1) doTeleportThing(cid, topos) return true end  
  12. vankk's post in (Resolvido)só poder usar se nao tiver a mount was marked as the answer   
    Para que utilizar storage se você utilizar uma função do TFS se pode checar a montaria?
     
    local v = { effect = CONST_ME_TELEPORT, mountId = 4 } function onUse(cid, item) if getPlayerMount(cid, v.mountId) then return doPlayerSendCancel(cid, "You already have this mount!") end doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You received a new mount.') doPlayerAddMount(cid, v.mountId) doSendMagicEffect(getPlayerPosition(cid), v.effect) doRemoveItem(item.uid, 1) return true end  
  13. vankk's post in (Resolvido)Idle training não está funcionando corretamente. was marked as the answer   
    function mudarVis(uid) look = getCreatureLookDirection(uid) look = look < 3 and look + 1 or 0 doCreatureSetLookDirection(uid, look) addEvent(mudarVis, 2000, uid) end local events1 = {} local trainerst = 456488 function onStepIn(cid) events1[getPlayerGUID(cid)] = addEvent(mudarVis, 1000, cid) doPlayerSendTextMessage(cid, 27, "Bem-vindo a sua sala de treinamento, você será movimentado automaticamente para que continue treinando!") setPlayerStorageValue(cid, trainerst, 1) return true end function onStepOut(cid) stopEvent(events1[getPlayerGUID(cid)]) stopEvent(mudarVis) setPlayerStorageValue(cid, trainerst, -1) return true end  
  14. vankk's post in (Resolvido)Numero de items em um sqm was marked as the answer   
    em events/player.lua adicione isso em onMoveItem
     
    if toPosition ~= nil if Tile(toPosition):getItemCount() >= 6 then self:sendCancelMessage("Sorry, not possible.") return false end end  
  15. vankk's post in (Resolvido)AJUDA POTIONS was marked as the answer   
    Você está com problemas com a função isKnight, ela apenas checa o id de vocation 4,8. Tente atualizar, procure na lib do seu servidor, e atualize.
     
    #edit
    @Wakon
    Para que utilizar um isInArray sendo que ele poderia simplesmente colocar um ,12 na lib?
  16. vankk's post in (Resolvido)[Urgente] Comando /t Bugado was marked as the answer   
    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.
  17. vankk's post in (Resolvido)Limite de Players da Página de Loteria was marked as the answer   
    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.
  18. vankk's post in (Resolvido)[GESIOR] ME AJUDEM É URGENTE ! was marked as the answer   
    A pasta htdocs do xampp? xddd
  19. vankk's post in (Resolvido)guerra entre equipes PEDIDO was marked as the answer   
    Existe uma ferramenta no TibiaKing chamada "Pesquisar" se encontra na parte superior do site na direita.
     
    http://www.tibiaking.com/forum/topic/63437-event-04-massive-team-battle/
  20. vankk's post in (Resolvido)[pedido] Kill no default e nao matar membro da mesma party was marked as the answer   
    Ops.
    function onKill(cid, target) if isPlayer(target) == TRUE then if getCreatureSkullType(cid) == 4 or getCreatureSkullType(cid) == 3 and getCreatureSkullType(target) == 0 and isPlayer(target)then broadcastMessage(getCreatureName(cid) .. " killed ".. getCreatureName(target)..".",MESSAGE_STATUS_CONSOLE_ORANGE) elseif getCreatureSkullType(target) == 3 or getCreatureSkullType(target) == 4 and isPlayer(target) then broadcastMessage(getCreatureName(cid) .. " killed ".. getCreatureName(target)..".",MESSAGE_STATUS_CONSOLE_ORANGE) end end return TRUE end  
  21. vankk's post in (Resolvido)[PEDIDO] sumon spell was marked as the answer   
    Vai summonar o monstro Vankk for president e pode ter no máximo 5 summons.
     
    local config = { max_summons = 5, monster_summon = "Vankk for president", } function onCastSpell(cid, var) if #getCreatureSummons(cid) < config.max_summons then doConvinceCreature(cid, doSummonCreature(config.monster_summon, getThingPos(cid))) else doPlayerSendTextMessage(cid, 19, "You can only have ".. config.max_summons .. " summons.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) end return true end  
  22. vankk's post in (Resolvido)[AJUDA] como almentar o tamanho do meu mapa was marked as the answer   
    Ctrl+P no RME, e aumenta a dimensão do mapa? lol.
  23. vankk's post in (Resolvido)Script pra burlar AntiDivulgação da Distro? was marked as the answer   
    Se for TFS 0.4 compila com Dev C++, se for 1.x compila com MSVC
  24. vankk's post in Algum script de cassino? was marked as the answer   
    Elfbot não suporta esse tipo de script.
  25. vankk's post in (Resolvido)[PEDIDO] GlobalEvents GlobalSave Personalizado was marked as the answer   
    Eu tinha esse script no meu PC desde 2011, porque queria um server save rápido, porém, hoje em dia tudo é baseado em reiniciar o servidor para world changes, quests, etc.
    Eu não recomendo usar por esse motivo, e outros.
    function madness() doSetGameState(GAMESTATE_CLOSED) doCleanMap() doSetGameState(GAMESTATE_NORMAL) end function onTime() doBroadcastMessage('The server will shutdown in 10 minutes.') addEvent(doBroadcastMessage, 5 * 60 * 1000, 'The server will shutdown in 5 minutes.') addEvent(doBroadcastMessage, 7 * 60 * 1000, 'The server will shutdown in 3 minutes.') addEvent(doBroadcastMessage, 9 * 60 * 1000, 'The server will shutdown in 1 minute.') addEvent(madness, 10 * 60 * 1000) return true end  
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo