Hello guys,
I would like a simple edition on this script, I would like for the player to have a small chance to tame this mounts while fishing:
1% plumfish;
3% coralripper;
5% sea devil;
I would like a simple edition on this script, I would like for the player to have a small chance to tame this mounts while fishing:
1% plumfish;
3% coralripper;
5% sea devil;
LUA:
-- Script 100% by Mukah --
local useWorms = FALSE
local waterIds = {493, 4822, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4664, 4621, 4622, 4623, 4624, 4625, 7236, 10499, 15401, 15402, 4632, 4633, 4634, 4635, 4636, 4637, 4638, 4639, 4640, 4641, 4642, 4643, 4644, 4645, 4646, 4647, 4648, 4649, 4650, 4651, 4652, 4653, 4654, 4655, 4656, 4657, 4658, 4659, 4660, 4661, 4662, 4663, 4664, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825, 4828, 4829, 4830, 4831, 6627, 6628, 6629, 6630, 6631, 6632, 6633, 6634, 6635, 6636, 6637, 6638, 6639, 6640, 6641, 6642, 6643, 6644, 6645, 6646, 6647, 6648, 6649, 6650, 6651, 6652, 6653, 6654, 6655, 6656, 6657, 6658, 6659, 6660, 6661, 6662, 6663, 6664, 6665, 6666, 6667, 6668, 6669, 6670, 6671, 6672, 6673, 6674, 6675, 6676, 6677, 6678, 6679, 6680, 6681, 6682, 6687, 6688, 6689, 6690, 6691, 6692, 6693, 6694, 7943, 7944, 7945, 7946, 7947, 7948, 7949, 7950, 7951, 7952, 7953, 7954, 8863}
function onUse(cid, item, fromPosition, itemEx, toPosition)
fskill = getPlayerSkill(cid,6)
count = math.random(3,7)
if isInArray(waterIds, itemEx.itemid) == TRUE then
if itemEx.itemid ~= 493 then
if useWorms == FALSE or useWorms == useWorms then
fish = math.random(1,8)
if (fish == 1 or fish == 2 or fish == 3) then
doPlayerAddItem(cid, 2670, 1)
doPlayerRemoveItem(cid, 3976, 1)
doSendMagicEffect(toPosition, 79)
elseif (fish == 4 or fish == 5) then
doPlayerAddItem(cid, 27905, 1)
doPlayerRemoveItem(cid, 3976, 1)
doSendMagicEffect(toPosition, 79)
elseif (fish == 6) then
doPlayerAddItem(cid, 27903, 1)
doPlayerRemoveItem(cid, 3976, 1)
doSendMagicEffect(toPosition, 79)
else
end
end
end
doSendMagicEffect(toPosition, 79)
return TRUE
end
return FALSE
end
-- Script 100% by Mukah --