Tudo que Danihcv postou
-
(Resolvido)ajuda pra remover item ao usar
Qual o id da potion que é pra ser removida??
-
duvida sobre o ot que abaixei
Faltou baixar o executavel http://www.tibiaking.com/forum/topic/33150-the-forgotten-server-10/ A source não é de suma importância agr para vc, pois como eu entendi vc ainda é iniciante, ñ deve brincar com a source ainda.
-
(Resolvido)[Spells] Juntar script sem bugar ajuda
function onGetFormulaValues(cid, level, maglevel) min = -(level*1) max = -(level*1) return min, max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 28) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 41) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, min, max) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 28) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 41) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, min, max) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 28) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 41) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, min, max) arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } arr2 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } arr3 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.combat3, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3 } addEvent(onCastSpell1, 0, parameters) addEvent(onCastSpell2, 350, parameters) addEvent(onCastSpell3, 700, parameters) return true end Não sou tão bom assim com spells, mas testa ae.
- (Resolvido)Erro config.lua
-
[ERRO] AO LOGAR MEU SERVER DA ESSE ERRO PF AJUDEM
Config.lua procura por WORLD TYPE ai vc tira o PVP e coloca OPEN.
-
[Pedido] Spells de healar mana
Pequenerrima alteração no script do daaniel, ele qr q heale 10k: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE) function onCastSpell(cid, var) doCreatureAddMana(cid, 10000) doCreatureSay(cid,"Aaaah...", TALKTYPE_ORANGE_1) return doCombat(cid, combat, var) end Acho que foi isso q o cara pediu... mas claro, dou tds os créditos prp daaniel.
-
(Resolvido)[Spells] Juntar script sem bugar ajuda
Se n resolver até hj a noite, me manda pm que eu volto aqui e vejo o q posso fazer.
-
[PEDIDO] Script XP extra TFS 1.0
Eh sim, soh requer um tempinho, rsrs. Se ngm te ajudar até hj de noite, me manda pm pra voltar aqui q eu vejo o q faço.
-
(Resolvido)[Ajuda] Não consigo logar no meu servidor..
As portas estão liberadas no firewall e no modem?? Vc ta usando o local ip address pra loggar??
- [TUTORIAL] Resolvendo qualquer erro na data base
-
meu
Vei... Rapazes chamados Daniel são tops e fim de papo... u.u HUEHUEHUE
-
(Resolvido)[Pedido] NPC que só fala
Cria um arquivo chamado NOME_DO_NPC.xml (no caso eu criei o Jax, então criei Jax.xml): <?xml version="1.0" encoding="UTF-8"?> <npc name="Jax" script="Jax.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150" /> <look type="134" head="57" body="59" legs="40" feet="76" corpse="2212" /> <parameters> --<parameter key="message_greet" value="Hello |PLAYERNAME|. Do not want to make an exchange? I have {blue note} and {bar of gold}." /> <parameter key="message_greet" value="Olá |PlayerName| Como vai? Fiquei sabendo que aconteceu um acidente e o Professor Robert e os demais pesquisadores desapareceram, quer saber {mais}?" /> <parameter key="message_farewell" value="Boa Sorte!" /> </parameters> </npc> Agora cria na pasta npc/scripts cria um arquivo chamado NOME_DO_NPC.lua (no caso criei jax.lua) e coloque isso dentro: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'mais') then selfSay('A última vez em que se viu o Professor e os demais pesquisadores, foi na ilha de pesquisa. Eles desapareceram misteriosamente enquanto estavam estudando um antigo fossil no laboratório, você pode investigar pra mim?', cid) if msgcontains(msg, 'yes') then selfSay('Boa Sorte!', cid) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) NÃO ESQUEÇA DE MUDAR OS NOMES DOS ARQUIVOS E DE CONFIGURAR ESSA PARTE DO NOME_DO_NPC.XML PARA QUE FIQUE COM O NOME DO ARQUIVO QUE VC CRIOU: E seja feliz.
-
(Resolvido)Ajuda
Ahh... mana também?? Desculpa, aqui está: function onStepIn(cid) if isPlayer(cid) then doCreatureAddMana(cid, getCreatureMaxMana(cid)) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerSendTextMessage(cid, 27, "Voce healou toda sua vida e sua mana.") end return true end Se eu te ajudei, pf não esqueça o REP+
-
title para premium account tfs 1.0
Tenta ae: local back = getPlayerPosition(cid).y-1 local tile = 13540 --ACTION ID DO TILE AQUI function onStepIn(cid, item, pos) if isPlayer(cid) then if item.actionid == tile then if isPremium(cid) == -1 then doPlayerSendCancel(cid,"Esta área é exclusiva para players Premium.") doTeleportThing(cid, back) else end end end end
-
(Resolvido)Ajuda
Tem sim, crie um action ID para os pisos dessa área (no caso eu fiz o script e o movement para que seja 25005, ou seja adicione o action id 25005 para cada um dos pisos), caso ñ saiba criar nem adicionar me fale que eu te ensino. Tag em movements.xml: <movevent type="StepIn" actionid="25005" event="script" value="setlifefull.lua"/> Em movements/scripts crie um script chamado setlifefull.lua e dentro coloque isso: --Script by Danihcv to TibiaKing.com function onStepIn(cid) if isPlayer(cid) then if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerSendTextMessage(cid, 27, "Voce healou toda sua vida.") end end return true end
-
meu
Olha meu olhar perdido no tempo e espaço <<<<<<<< N tem como ser mais seqci q isu... u.u
-
Imagem da Copa
Vou ver o que faço aqui... Tempinho que não mexo no ps... vamo ver o que sai... Posso colorir com quaisquer cores o brasão?? Manipular de qualquer forma?? Aguardando resposta pra começar a brincar... HUEHUEHUE
- PVP Tool (Zone) não funciona corretamente
-
ajuda simples
Já que o llucas completou o q faltava, marque a resposta dele como "melhor resposta" para futuros membros que tiverem a msm duvida, caso alguem tenha algum dia.
-
ajuda simples
@Dennyz, pois é, o llucas pegou o meu e colocou o "true" minusculo e add um end foi só isso msm...
-
Meu zeus
kkkk Desculpa ae... u.u Também tenho GMod.. u.u entre outros... shuashuashua
-
(Resolvido)Ajuda Remere's Map Editor
O seu item.otb ta na sua pasta do ot > data > items > ta aqui aí vc copia e cola no diretório que o amg falou aí em cima.
-
(Resolvido)[PEDIDO] /b pra player com exausth de 2 minutos pf
Pera, vc qr que aparça em que posição da tela?? Tenta ae: local config = { tempo = 3, -- Tempo em minutos storage = 20005, -- não mexa aqui } function onSay(cid, words, param, channel) if(param == '') then return true end if getPlayerStorageValue(cid, config.storage) <= 0 then kick1 = addEvent(setPlayerStorageValue, config.tempo*60*1000-1000, cid, config.storage, -1) doPlayerBroadcastMessage(cid, param) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Agora voce so podera usar este comando de novo daqui a " .. config.tempo .. "minutos.") setPlayerStorageValue(cid, config.storage, 1) return true else end end
-
ajuda simples
local destino = {x = 1362, y = 1259, z = 6} -- Aqui vc põe as coordenadas do local pra onde o player vai function onStepIn(cid, item, pos) if isPlayer(cid) == true then doTeleportThing(Player(cid), destino) return true end Vê aí.
-
(Resolvido)Ajuda Remere's Map Editor
Coloca o items.otb do seu ot server.