Ir para conteúdo

viictorliins

Membro
  • Registro em

  • Última visita

Tudo que viictorliins postou

  1. Se testou em tfs 0.4? instalei certinho vei, to quebrando a cabeça com isso :S e queria muito por no meu server :/ olha como botei aqui <wand id="7735" level="50" mana="13" min="0" max="0" type="earth" event="script" value="wand1.lua"> <!-- wand of effects --> <vocation id="1"/> <vocation id="2"/> <vocation id="5"/ <vocation id="6"/> ---------------------------- w = { [12031] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE}, [12032] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [12033] = {ef = 45, sh = 38, dmg = COMBAT_POISONDAMAGE}, [12034] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [12035] = {ef = 11, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [12036] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) min, max = 260, 300 -- dano minimo e maximo target = getCreatureTarget(cid) for stor, info in pairs(w) do if getPlayerStorageValue(cid, stor) == 1 then if target ~= 0 then doSendDistanceShoot(getThingPos(cid), getThingPos(target), info.sh) addEvent(doAreaCombatHealth, 100, cid, info.dmg, getThingPos(target), 0, -min, -max, info.ef) end end end return true end ----------------- <talkaction words="!wand" event="script" value="wand.lua"/> ---------------- function onSay(cid, words, param) local param = string.lower(param) local table = { ["fire"] = 12031, ["ice"] = 12032, ["earth"] = 12033, ["death"] = 12034, ["energy"] = 12035, ["holy"] = 12036 } local id = 7735 --- aqui vai o id da wand local a = table[param] if not a then doPlayerSendTextMessage(cid, 28, "Digite !wand info para saber os elementos disponiveis") return true end if (param == "info") then for element, stor in pairs(table) do text = "Elementos: "..element.."" doPlayerPopupFYI(cid, text) end end if getPlayerItemCount(cid, id) >= 1 then setPlayerStorageValue(cid, 12031, 0) setPlayerStorageValue(cid, 12032, 0) setPlayerStorageValue(cid, 12033, 0) setPlayerStorageValue(cid, 12034, 0) setPlayerStorageValue(cid, 12035, 0) setPlayerStorageValue(cid, 12036, 0) setPlayerStorageValue(cid, a, 1) doPlayerSendTextMessage(cid, 27 , "Você mudou o elemento da wand para ".. param .. ".") else doPlayerSendTextMessage(cid, 28, "Desculpe, mais você precisa ter a ".. getItemNameById(id) .. " para trocar o elemento.") end return true end
  2. Cara ta ai o link com os scripts, fiz tudo certo cara... fiz em outro server pegou e no meu não pegou, da uma sacada no link ae, vlw! acho que deve ser por que estou usando o tfs 0.4 tenta arrumar pra mim ae
  3. Galera esse é o meu primeiro topico, não costumo pedir ajudar se não for preciso... procurei bastante e tentei com meus proprios conhecimentos fazer funcionar em meu server esse script -- http://tibiaking.com/forum/topic/16187-wand-muda-de-efeito/ -- porem todas tentativas deram erradas, adicionei o mesmo script em outro server e funcionou, não sei se é por que eu uso distro tfs 0.4 queria muito ajuda de voces!

Informação Importante

Confirmação de Termo