Ir para conteúdo
  • Cadastre-se

yoroshigod

Membro
  • Total de itens

    36
  • Registro em

  • Última visita

Sobre yoroshigod

  • Rank
    Neutro

Informação de Perfil

  • Localização
    TibiaKing
  • Eu sou
    Scripter
  • Bot preferido
    Elf Bot

Últimos Visitantes

588 visualizações
  1. function onUse(cid, var, item, frompos, item2, topos) if item.itemid == item.itemid then local tempo = 20.0 -- em segundos local guid = getPlayerGUID(cid) if exhaustion[guid] and exhaustion[guid] - os.clock() > 0 then return not doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Espere um pouco para poder usar novamente.") end exhaustion[guid] = os.clock() + tempo doPlayerAddSkillTry(cid,0,doPlayerAddSkill(cid, 0)) doPlayerAddSkillTry(cid,1,doPlayerAddSkill(cid, 1)) doPlayerAddSkillTry(cid,2,doPlayerAddSkill(cid, 2))
  2. Tá tomando paralise pq está configurado para o SLOT DO HELMET, como eu disse, deixei pré-configurado para usar no HELMET. Testa assim: function onEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) return true end function Paralizy(cid) local HelmetID = 12692 --- ID DO ITEM if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == HelmetID then doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) end return true end
  3. Coloquei pré-configurado para usar no slot do helmet: movements/scripts: function onEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) return true end function Paralizy(cid) local HelmetID = 3971 --- ID DO ITEM if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == HelmetID then doRemoveCondition(cid, CONDITION_PARALYZE) addEvent(Paralizy, 1*100, cid) end return true end movements.xml: <movevent type="Equip" itemid="3971" slot="head" event="script" value="helmetparalise.lua"/> Bem auto-explicativo. Qualquer mudança
  4. O script está certo, testei na minha base amigo. Você colocou errado no spells.xml, tenta assim. Teve algum erro na distro? Se tiver posta. <instant name="Teleport" words="teleport" lvl="1" mana="1" prem="0" direction="1" aggressive="0" exhaustion="1000" needlearn="0" event="script" value="sasuke gaiden/teleport.lua"> <vocation id="512"/> <vocation id="517"/> </instant>
  5. 34 é o número do efeito, só você alterar para um existente. Talvez o seu cliente não possua a sprite do efeito no script.
  6. No config.lua: Siga o modelo(exemplo): De <instant name="exori" words="exori" lvl="8" mana="1" prem="0" direction="1" range="6" blockwalls="1" exhaustion="500" needlearn="0" script="exori"> Para <instant name="" words="exori" lvl="8" mana="1" prem="0" direction="1" range="6" blockwalls="1" exhaustion="500" needlearn="0" script="exori">
  7. Cria um arquivo chamado "scriptnpc": 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 ta
  8. Qual TFS mano? Testei aqui e não teve erro (desculpa a demora). @Edit Testa assim: local c = { toPos = {x = 949, y = 998, z = 7}, -- cordenadas do local destino createItem = {1387}, -- 1387 id do tp removeTime = 10 * 1000 -- tempo pro tp sumir em segundos } local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT) -- efeito area setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE) -- efeito lançar local arr = { {3}, } local area = createCombatArea(arr) setCombatArea(combat, area) function on
  9. Só mudar if getPlayerStorageValue(cid, storage) > 0 then para if getPlayerStorageValue(cid, storage) >= 1 then
  10. Se a vocação "Madara" for de ID: 10, então, em vocatios.xml tem que estar, por exemplo: <vocation id="10" name="Madara"............fromvoc="'10">
  11. Crie um script em NPC/Scripts chamado "default.lua" e adicione isso: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 npcHandler:addModule(FocusModule:new()) Depois no NPC você colocar script="default.lua", exemplo: &l
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo