
Tudo que Snowsz postou
-
(Resolvido)[AJUDA] Alguém sabe arrumar isto?
Acho que isso deve resolver: function onStepIn(cid, item, position, lastPosition) setPlayerStorageValue(cid, 30, 52) doCreatureSay(cid, "It seems by defeating Azerus you have stopped this army from entering your world! Better leave this ghastly place forever.", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE) return true end
-
(Resolvido)BUG SPELL MULTIPLOS HITS
local numeroDeHits = 5 local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 23) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.5, 0, -0.7, 0) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end function onCastSpell(cid, var) if exhaustion.get(cid,61260) == false then local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, } for i = 1, numeroDeHits do addEvent(onCastSpell1, 250*i, parameters) end exhaustion.set(cid,61260,1) else doPlayerSendCancel(cid, "You are exhausted") end return true end
-
(Resolvido)[AJUDA] Alguém sabe arrumar isto?
Tenta: function onStepIn(cid, item, position, lastPosition) if(getPlayerStorageValue(cid, 30) == 51) then setPlayerStorageValue(cid, 30, 52) Player(cid):setStorageValue(12021, 3) -- StorageValue for Questlog "Mission 10: The Final Battle" doCreatureSay(cid, "It seems by defeating Azerus you have stopped this army from entering your world! Better leave this ghastly place forever.", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE) end return true end
-
Ajuda Script ?
Desculpa mas, esse script ainda não é o suficiente para encontrar o que faz a dominação do castelo, tem outros?
-
(Resolvido)Adicionar mais uma configuração nesse NPC
local spells_t = { -- all ["intense healing"] = {price = 350, vocations = {1,2,3,5,6,7}, level = 1, spell = "Exura Gran"}, -- exura gran } 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:lower(), "spells") then local str = {} local voc = getPlayerVocation(cid) for name, info in pairs(spells_t) do if isInArray(info.vocations, voc) and not getPlayerLearnedInstantSpell(cid, name) then table.insert(str, tostring(" {".. name .."}["..info.spell.."] for ".. info.price .." gold coins,\n") ) end end if next(str) == nil then npcHandler:say("I have no magic to sell you.", cid) else doShowTextDialog(cid, 2175, table.concat(str)) end elseif spells_t[msg:lower()] then if getPlayerLearnedInstantSpell(cid, msg) then npcHandler:say("You have already learned this spell.", cid) return true end if getPlayerLevel(cid) < spells_t[msg:lower()].level then npcHandler:say("You need to be level ".. spells_t[msg:lower()].level .." or older to purchase this spell.", cid) return true end if not isInArray(spells_t[msg:lower()].vocations, getPlayerVocation(cid)) then npcHandler:say("You do not have the vocation to buy is spell.", cid) return true end if doPlayerRemoveMoney(cid, spells_t[msg:lower()].price) then doPlayerLearnInstantSpell(cid, msg) npcHandler:say("You learned ".. msg .."["..spells_t[msg:lower()].spell.."].", cid) else npcHandler:say("You do not have "..spells_t[msg:lower()].price.." gold coins.", cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) O nome da magia você poe aqui: spell = "Exura Gran"
-
Addon Bonus Diferente
Entendi, você usa algum sistema semelhante ?
-
(Resolvido)Scripts não funciona.
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
-
[AJUDA] Storage de dentro do TP do azerus não funcionando
Tenta isso: function onStepIn(cid, item, position, lastPosition) --if(item.uid == 3087) then --if(getPlayerStorageValue(cid, 30) == 51) then setPlayerStorageValue(cid, 30, 52) Player(cid):setStorageValue(12021, 3) -- StorageValue for Questlog "Mission 10: The Final Battle" doCreatureSay(cid, "It seems by defeating Azerus you have stopped this army from entering your world! Better leave this ghastly place forever.", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE) --end --end return true end
-
killingInTheNameOfQuest
Como esse NPC funciona ? Eu desconheço ;/
-
[Pedido] NPC Ou Talkactions Que 2 Players podem fazer um duelo apostando dinheiro
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
-
[AJUDA] Storage de dentro do TP do azerus não funcionando
Você não disse o problema, explique-se.
-
(Resolvido)[PEDIDO] "Mechanism" de yalahar sem missão
Crie um novo tópico com esse novo script
-
(Resolvido)[PEDIDO] "Mechanism" de yalahar sem missão
Tenta assim: local mechanisms = { [3091] = {pos = {x = 32744, y = 31161, z = 5}, value = 21}, -- Alchemist [3092] = {pos = {x = 32744, y = 31164, z = 5}, value = 21}, [3093] = {pos = {x = 32833, y = 31269, z = 5}, value = 24}, -- Trade [3094] = {pos = {x = 32833, y = 31266, z = 5}, value = 24}, [3095] = {pos = {x = 32729, y = 31200, z = 5}, value = 29}, -- Arena [3096] = {pos = {x = 32734, y = 31200, z = 5}, value = 29}, [3097] = {pos = {x = 32776, y = 31141, z = 5}, value = 35}, -- Cemetery [3098] = {pos = {x = 32776, y = 31145, z = 5}, value = 35}, [3099] = {pos = {x = 32874, y = 31202, z = 5}, value = 41}, -- Sunken [3100] = {pos = {x = 32869, y = 31202, z = 5}, value = 41}, [3101] = {pos = {x = 32856, y = 31251, z = 5}, value = 45}, -- Factory [3102] = {pos = {x = 32854, y = 31248, z = 5}, value = 45} } local mechanisms2 = { [9235] = {pos = {x = 32773, y = 31116, z = 7}}, [9236] = {pos = {x = 32780, y = 31115, z = 7}} } function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) if(mechanisms[item.uid]) then --if(player:getStorageValue(30) >= mechanisms[item.uid].value) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(mechanisms[item.uid].pos) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) --else --player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The gate mechanism won't move. You probably have to find a way around until you figure out how to operate the gate.") --end elseif(mechanisms2[item.uid]) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(mechanisms2[item.uid].pos) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end return true end
- Criando páginas no facebook e add botão curtir
-
[ Tutorial ] Criptografar script
Bom, o seu tutorial não está falando exatamente de criptografia mas, de compilação, o seu método é uma compilação de arquivo lua, hoje em dia, vários programas podem fazer isso facilmente, mas, para quem está iniciando da até pra quebrar um galhinho, vou aprovar seu tópico.
- [MODULE] Extended Opcodes SEM SOURCES
- [MODULE] Extended Opcodes SEM SOURCES
- Adeus TK
-
Bless e perde item raramente?
Como assim a bp não cai, você não explicou claramente, além que no config.lua, quando o player morre, é adicionado uma bag, lá deve estar configurado como backpack em vez de bag talvez.
-
Addon Bonus Diferente
Explica melhor, sou leigo nessa questão de addon kk.
-
(AJUDA) ERROR: Unable to send extended opcode 1, extended opcodes are not enabled
Que versão do otclient estas usando ?
-
sistema de pesca
Mais detalhes... Ex: usará iscas ?
-
[Pedido] Não perder XP em PVP
Qual é a lógica disso ? Além que não tem como colocar os dois tipos de tile. Gabriel Linha você quer por área ?
-
sistema de pesca
Dê detalhes sobre o sistema, não somos videntes .
-
[ALTERA SCRIPT] DE TALKACTIONS PARA GLOBALEVENTES
Ops, desculpe... To vendo aqui.