Tudo que PostadorHunter postou
-
[Teste Programação] Coordenadas de um Ponto
Tem umas condições que você sou que só fariam sentido se você estivesse usando if em tudo, usando elseif você pode simplificar para if (x == 0 && y == 0) printf("Origem\n"); else if (x == 0) printf("Eixo Y\n"); else if (y == 0) printf("Eixo X\n"); else if (x > 0 && y > 0) printf("Q1\n"); else if (x > 0) printf("Q4\n"); else if (x < 0 && y > 0) printf("Q2\n"); else if (x < 0) printf("Q3\n");
-
Simplificar script PHP
Você pode puxar isso de uma tabela, montar um vetor e percorrer ele em um loop com a condição dele ser (vetor[i] == $obj1->symptom)
-
[PEDIDO] Sistema de transformação
local saga = { [1] = {[1] = [109, 50], effect = 10} } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") return true end if not saga[getPlayerVocation(cid)] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode trocar de saga.") return true end local t = string.explode(param, ",") if(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not understand.") return true end if not (tonumber(t[1])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") return true end if tonumber(t[1]) > #saga[getPlayerVocation(cid)] or tonumber(t[1]) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Essa saga não existe.") return true end --transformação if getPlayerLevel(cid) >= saga[getPlayerVocation(cid)][tonumber(t[1])][2] then doSetCreatureOutfit(cid, {lookType = saga[getPlayerVocation(cid)][tonumber(t[1])][1]}, -1) doSendMagicEffect(getThingPos(cid), saga[getPlayerVocation(cid)].effect) doPlayerSendTextMessage(cid, 25, "Voce escolheu uma nova saga!") doPlayerSay(cid, "Saga!!", TALKTYPE_ORANGE_1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa de level "..(tonumber(t[1]) * level).." usar essa saga.") end return true end Tenta isso [1] = {[1] = [109, 50], effect = 10} aonde ta o 50 é o nvl
-
[PEDIDO] Sistema de transformação
Esse script já tem restrição de level, a cada 50 levels vc pode usar uma outfit superior. Voc 1 no level 50 pode trocar para a saga 1, level 100 - saga 2...
-
Algum DigimonTIBI
Pra download ou jogar? Download não tem. Pra jogar acho que o digiwo está online
- ERRO DO SEXO DO POKEMON
-
Anuncios Jovem Aprendiz
?
-
[Ajuda] Old client com dat estendido?
Não Talvez fazendo uma dll e injetando no cliente, provavelmente é bem difícil e ninguém fará de graça Flw
- Blogger Para OTServ Sql
- Erro Dat Editor
- [PEDIDO] Comando que manda uma mensagem a tal player
-
Duvida/Pedido DBO
Se tem tantos bugs assim é melhor fazer um do zero, começa adicionando Sprite, arrumando os itens e mapa, depois adiciona as vocações, transforms e reborn Aqui uma source boa pra 8.60 http://www.tibiaking.com/forum/topic/9350-86x-tfs-04_dev-rev3884/ Se postar o npc posso tentar ajudar
-
Duvida/Pedido DBO
Que server tu pegou?
-
Duvida/Pedido DBO
Usa a barra de pesquisas do fórum Deve ter vários tópicos com essa dúvida já resolvida
-
Duvida/Pedido DBO
Tem que adicionar os efeitos na source do servidor
- [PEDIDO] Sprites DBO
- Pagamento de Passagem Barco
-
Ajuda concertar esse script: porta q precisa de item pra passar
local pos = {x = 2014, y = 1018, z = 6} local cfg = { itemneed1 = 2143, itemneed2 = 2146, itemneed3 = 2159, levelneed = 300, } function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) < cfg.levelneed then doPlayerSendTextMessage(cid, 20, "Você precisa do level "..cfg.levelneed.."!") return true end elseif getPlayerItemCount(cid, cfg.itemneed1) < 200 then doPlayerSendTextMessage(cid, 20, "Você não merece entrar") return true end else doPlayerRemoveItem(cid, cfg.itemneed1, 200) doPlayerRemoveItem(cid, cfg.itemneed2, 200) doPlayerRemoveItem(cid, cfg.itemneed3, 200) doTeleportThing(cid, pos) return true end
- Não consigo logar no meu OT porem meus amigos entram.
- anne é homem?
-
bot para tibia-avatar
elfbot
- [DUVIDA] Direcionar o Spell
- Da Vinci Demons
Informação Importante
Confirmação de Termo