• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Monster Fishing.

Storm Lanon

New Member
Joined
Sep 27, 2009
Messages
15
Reaction score
0
Okay guys, I'm going to explain the sort of thing i would like =)

The fishing script i have at the moment to be honest sucks, it goes on EXP Level, and the random does not work what so ever, i end up catching things every few seconds.

I'd like it if a fishing script went on the character's Fishing Level, for example:

200+ Exp Level, 80+ Fishing Level - Enraged Water Elemental
500+ Exp level, 90+ Fishing Level - Hydrake
1000+ Exp level, 100+ Fishing Level - Seabourne Goddess + Broadcast it has been caught by player.
2500+ Exp Level, 105+ Fishing Level - Elder Hydrake + Broadcast it has been caught by player.
5000+ Exp level, 110+ Fishing Level - Sea Demon + Broadcast it has been caught by player.

Along with this, I'd like it so when your able to catch everything (Level 5000+ and Fishing Level 110+) you still catch the other monsters. I'd like it so there is like a 5% chance each fishing rod use to catch an Enraged Water Elemental. Then going up till a 0.5% chance of catching a Sea Demon.

I dont know if all of this is possible, if it is, i havnt seen it anywhere on forums.


Thanks//
Rick
 
PHP:
function needScript(script)
if realesed(script) then
search(script)
end
return request(script)
end
 
Code:
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
}
local v = {
	[200] = {name = "Enraged Water Elemental", chance = {1, 2}},
	[500] = {name = "Hydrake", chance = {2, 3}},
	[1000] = {name = "Seabourne Goddess", broadcast = true,chance = {3, 4}},
	[2500] = {name = "Elder Hydrake", broadcast = true, chance = {4, 5}},
	[5000] = {name = "Sea Demon", broadcast = true, chance = {5, 6}}
}
		
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not isInArray(config.waterIds, itemEx.itemid) then
		return false
	end
	if (config.allowFromPz or not getTileInfo(getThingPos(cid)).protection)  and itemEx.itemid ~= 493 and math.random((100 + (getPlayerSkill(cid, SKILL_FISHING) / 50))) <  getPlayerSkill(cid, SKILL_FISHING) and (not config.useWorms or (getPlayerItemCount(cid, ITEM_WORM) > 0 and  doPlayerRemoveItem(cid, ITEM_WORM, 1))) then
		local bsMessage = "%s have caught %s"
		for i, k in pairs(v) do
			if getPlayerLevel(cid) >= i then
				local c = math.random(1, 20)
				if c >= k.chance[1] or c <= k.chance[2] then
					doSummonCreature(k.name, getThingPos(cid))
				end
			end
			if k.broadcast then
				doBroadcastMessage(bsMessage:format(getCreatureName(cid), k.name))
				break
			end
		end
	end
	return doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
end
 
Last edited:
Doyou guys not read? i asked for it to depend on fishing level, and broadcast certain ones with different messages lol.

read the post then reply.
i spent 4h looking through the forum, none of the monster fishing scripts actually are anything i want in my server. so stop spamming,and get helping.
 
so stop spamming,and get helping.

Ah so you force us to help kk master.

Try that:
PHP:
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
}
local v = {
	[{200,80}] = {name = "Enraged Water Elemental", chance = 10}
}
		
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not isInArray(config.waterIds, itemEx.itemid) then
		return false
	end
	if (config.allowFromPz or not getTileInfo(getThingPos(cid)).protection)  and itemEx.itemid ~= 493 and math.random((100 + (getPlayerSkill(cid, SKILL_FISHING) / 50))) <  getPlayerSkill(cid, SKILL_FISHING) and (not config.useWorms or (getPlayerItemCount(cid, ITEM_WORM) > 0 and  doPlayerRemoveItem(cid, ITEM_WORM, 1))) then
		local bsMessage = "%s have caught %s"
		for i, k in pairs(v) do
			if getPlayerLevel(cid) >= i[1] and getPlayerSkillLevel(cid, SKILL_FISHING) >= i[2] then
				local c = math.random(100)
				if c <= k.chance then
					doSummonCreature(k.name, getThingPos(cid))
				end
			end
			if k.broadcast then
				doBroadcastMessage(bsMessage:format(getCreatureName(cid), k.name))
				break
			end
		end
	end
	return doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
end

Config:

[{200,80}] = {name = "Enraged Water Elemental", chance = 10}
200 -> Level
80 -> Fishing
Name -> Monster
Chance -> In percent
 
Ah so you force us to help kk master.

Try that:
PHP:
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
}
local v = {
	[{200,80}] = {name = "Enraged Water Elemental", chance = 10}
}
		
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not isInArray(config.waterIds, itemEx.itemid) then
		return false
	end
	if (config.allowFromPz or not getTileInfo(getThingPos(cid)).protection)  and itemEx.itemid ~= 493 and math.random((100 + (getPlayerSkill(cid, SKILL_FISHING) / 50))) <  getPlayerSkill(cid, SKILL_FISHING) and (not config.useWorms or (getPlayerItemCount(cid, ITEM_WORM) > 0 and  doPlayerRemoveItem(cid, ITEM_WORM, 1))) then
		local bsMessage = "%s have caught %s"
		for i, k in pairs(v) do
			if getPlayerLevel(cid) >= i[1] and getPlayerSkillLevel(cid, SKILL_FISHING) >= i[2] then
				local c = math.random(100)
				if c <= k.chance then
					doSummonCreature(k.name, getThingPos(cid))
				end
			end
			if k.broadcast then
				doBroadcastMessage(bsMessage:format(getCreatureName(cid), k.name))
				break
			end
		end
	end
	return doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
end

Config:

[{200,80}] = {name = "Enraged Water Elemental", chance = 10}
200 -> Level
80 -> Fishing
Name -> Monster
Chance -> In percent

That's great!
I was also searching for such script, and that helped me a lot! S2
 
Back
Top