Bom galera pra começar botem os devidos creditos
Todos script que eu faço sao 80% meus (os outro 20% sao de um amigo que nao eh de nenhum forum,amigo rl)
Bom o script ira fazer sua fishing rod normal,Pescar criaturas.
Nivel de dificuldade: 0
experiencia para mecher com isto: 1 hora lendo script
Taxa de burrice pra nao saber fazer o script: 100% (se eh que me intende)
Bom vamos começar
Entre em Pasta do seu ot>>>data>>actions>>>scripts>>tools>>>fishing
Abra o arquivo e delete tudo que ha dentro
Cole isto dentro (depois de ter apagado tudo)
local configg = {waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4820, 4821, 4822, 4823, 4824, 4825}
}
local monsters = {
{'Water Elemental'}
}
local numero = 1 --
local number = 10 --
local config = {
rateSkill = getConfigValue("rateSkill"),
allowFromPz = false,
useWorms = false
}
function onUse(cid, item, frompos, item2, topos)
if(not isInArray(configg.waterIds, item2.itemid)) then
return false
end
local chance = math.random(1,numero+number) --
if chance >= 1 and chance <= numero then
create = monsters[chance][1]
doSummonCreature(create, getCreaturePosition(cid))
doSendMagicEffect(topos, 11)
doCreatureSay(cid, "Whatahell", TEXTCOLOR_BLUE)
else
doSendMagicEffect(topos, CONST_ME_LOSEENERGY)
end
if((config.allowFromPz or not getTileInfo(getCreaturePosition(cid)).protection) and item2.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)
doSendMagicEffect(topos, CONST_ME_LOSEENERGY)
else
doSendMagicEffect(topos, CONST_ME_LOSEENERGY)
end
return true
end
e soh dai salve e feche
Entre no seu ot e use a rod na agua
Creditos sao necessarios e todos nos gostamos =)
----EDITED----
Foi malz galera vi aki nos coment ki tinha skecido de por a tag...
ai vai
<action itemid="2580" event="script" value="tools/fishing.lua" allowfaruse="1"/>
cole no actions.xml e pronto