Ir para conteúdo

Snowsz

Héroi
  • Registro em

  • Última visita

Tudo que Snowsz postou

  1. 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
  2. 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
  3. 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
  4. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Desculpa mas, esse script ainda não é o suficiente para encontrar o que faz a dominação do castelo, tem outros?
  5. 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"
  6. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Entendi, você usa algum sistema semelhante ?
  7. 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"
  8. 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
  9. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Como esse NPC funciona ? Eu desconheço ;/
  10. 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"
  11. Você não disse o problema, explique-se.
  12. Crie um novo tópico com esse novo script
  13. 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
  14. Aprovado e movido para a área correta, esperamos mais conteúdos como esse
  15. 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.
  16. Obrigado, tutorial aprovado, estarei movendo o tópico.
  17. Como todo conteúdo do tibiaking, tem que botar o scan. E do modo que você fez, não vai funcionar isso: function Say(param) Por que falta um end no if dentro da função.
  18. Snowsz postou uma resposta no tópico em Playground (Off-topic)
    Concordo kkkk
  19. 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.
  20. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Explica melhor, sou leigo nessa questão de addon kk.
  21. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Mais detalhes... Ex: usará iscas ?
  22. Qual é a lógica disso ? Além que não tem como colocar os dois tipos de tile. Gabriel Linha você quer por área ?
  23. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Dê detalhes sobre o sistema, não somos videntes .
  24. Ops, desculpe... To vendo aqui.

Informação Importante

Confirmação de Termo