Ir para conteúdo

Posts Recomendados

bom, algum MESTRE me ajuda, tenho esse script feito pelo brun123 e quero que ele fique bem hard de upar fishing e que pegue pouco pokémon, principalmente quero que só possa pescar 4 pokémons, nv 10 > magikarp nv 20 > krabby nv 50 > horsea nv 70> goldeen, agradeço desde já !

local fishes = {

[70] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool", "Staryu", "Poliwhirl", "Seaking", "Kingler", "Seadra", "Starmie", "Squirtle"},

[65] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool", "Staryu", "Poliwhirl", "Seaking", "Kingler", "Seadra", "Starmie"},

 

[60] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool", "Staryu", "Poliwhirl", "Seaking", "Kingler", "Seadra"},

[55] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool", "Staryu", "Poliwhirl", "Seaking", "Kingler"},

[50] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool", "Staryu", "Poliwhirl", "Seaking"},

[45] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool", "Staryu", "Poliwhirl"},

[40] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool", "Staryu"},

[35] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen", "Tentacool"},

 

[30] = {"Magikarp", "Poliwag", "Horsea", "Krabby", "Goldeen"},

[25] = {"Magikarp", "Poliwag", "Horsea", "Krabby"},

[20] = {"Magikarp", "Poliwag", "Horsea"},

[15] = {"Magikarp", "Poliwag"},

[10] = {"Magikarp"}

}

 

local storage = 15458

local bonus = 10

 

 

local function doFish(cid, pos, ppos, chance, interval, number)

if not isCreature(cid) then return false end

if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then

return false end

if getPlayerStorageValue(cid, storage) ~= number then return false end

doSendMagicEffect(pos, CONST_ME_LOSEENERGY)

local removed = doCreateItem(1285, 1, getThingPos(cid))

local playerpos = getClosestFreeTile(cid, getThingPos(cid))

doRemoveItem(removed, 1)

doPlayerAddSkillTry(cid, 6, bonus)

for a, b in pairs(fishes) do

if getPlayerSkillLevel(cid, 6) >= a and math.random(1, 100) <= chance then

doPlayerAddSkillTry(cid, 6, 5)

local peixe = doSummonCreature(b[math.random(1, #b)], playerpos)

if #getCreatureSummons(cid) >= 1 then

doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173)

doChallengeCreature(getCreatureSummons(cid)[1], peixe)

else

doSendMagicEffect(getThingPos(cid), 173)

doChallengeCreature(cid, peixe)

end

return true

end

end

addEvent(doFish, interval, cid, pos, ppos, chance, interval, number)

return true

end

 

function onUse(cid, item, fromPos, itemEx, toPos)

 

local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}

 

if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then

doPlayerSendCancel(cid, "You can\'t fish whileurfing neither flying above water.")

return true

end

 

setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1)

 

local delay = 3500 - getPlayerSkillLevel(cid, 6) * 30

local chance = 10 + getPlayerSkillLevel(cid, 6) / 2.5

 

doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage))

 

return true

end

Link para o comentário
https://xtibia.com/forum/topic/160959-fishing-pok%C3%A9mon-alguem-arruma-esse-script-pra-mim/
Compartilhar em outros sites

×
×
  • Criar Novo...