Pode explicar melhor o que o script faz?
Obrigado!!
Por Lucaswc15, 19 de abr. de 2012 em Actions e Talkactions
info
Grupo: Marquês
Registrado: 18/05/11
Posts: 1.1k
Reputação: +150
Gênero: Masculino

Pode explicar melhor o que o script faz?
Obrigado!!
info
Grupo: Cavaleiro
Registrado: 13/11/11
Posts: 190
Reputação: +20
Char no Tibia: Sweesh

O script funciona da seguinte maneira:
O player mata o Water Elemental e usa uma fishing rod no corpo do Water Elemental, assim ele consegue o loot do water elemental.
Como se estivesse pescando, só que em vez de usar na agua a fishing rod, voce usa no corpo do Water Elemental.
info
Grupo: Marquês
Registrado: 18/05/11
Posts: 1.1k
Reputação: +150
Gênero: Masculino

Ah sim,
Agora entendi.
Muito criativo,
Obrigado pelo conteúdo.
Abraços!!
Rep esgotado ;/
Mas merecia.
info
Grupo: Cavaleiro
Registrado: 13/11/11
Posts: 190
Reputação: +20
Char no Tibia: Sweesh
Ae galerinha, vou postar aqui um script da fishing rod que se voce usar no corpo do Water Elemental você recebe o loot, igual no tibia global.
Va em data/actions/actions.xml coloque isso:
Agora vá em data/actions/scripts/tools/ e crie um arquivo .lua chamado fishing e coloque isso dentro:
local config = { waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625}, rateSkill = getConfigValue("rateSkill"), allowFromPz = false, useWorms = true } --config water elemental local find_anything = 30 -- chance para achar algo local difficulty = 15 -- 1-100 para dificuldade menor mais facil local items = { [10499] = {2226, 2152, 2376, 2509, 2168, 7588, 7589, 2152, 2146, 2167, 2169, 9811, 9808, 5929, 10220}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if items[itemEx.itemid] ~= nil then if math.random(100) <= find_anything then doTransformItem(itemEx.uid, 10500) doDecayItem(itemEx.uid) doSendMagicEffect(toPosition, 53) else local geti = items[itemEx.itemid] local newId for i = 1, #items[itemEx.itemid] do local x = math.random(100) if (x < difficulty) then newId = geti[i] break elseif (i >= #items[itemEx.itemid]) then newId = geti[#items[itemEx.itemid]] end end doTransformItem(itemEx.uid, 10500) doPlayerAddItem(cid, newId, 1) doPlayerAddItem(cid, 2148, 28) doSendMagicEffect(toPosition, 53) end end if(not isInArray(config.waterIds, itemEx.itemid)) then return false end if((config.allowFromPz or not getTileInfo(getCreaturePosition(cid)).protection) and itemEx.itemid ~= 493 and math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) < getPlayerSkill(cid, SKILL_FISHING) and (not config.useWorms or (getPlayerItemCount(cid, ITEM_WORM) > 0 and doPlayerRemoveItem(cid, ITEM_WORM, 1)))) then doPlayerAddItem(cid, ITEM_FISH, 1) doPlayerAddSkillTry(cid, SKILL_FISHING, config.rateSkill) end doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) return true endSe voce nao tem o monsters Water Elemental configurado certo aqui vai ele:
Editado Abril 19 por Lucaswc15