• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Fishing

Himii

Premium User
Premium User
Joined
Jan 19, 2011
Messages
1,268
Solutions
5
Reaction score
188
Location
Sweden
When im fishing i dont wanna get any fish becouse i have monster fishing
Where are the script that gives fish???

Repp+
 
You want a script to just get normal fish? Look in actions, tools. If you don't have it, you can try this.
LUA:
local useWorms = FALSE
local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isInArray(waterIds, itemEx.itemid) == TRUE then
		if itemEx.itemid ~= 493 then
			if useWorms == FALSE or useWorms == TRUE and doPlayerRemoveItem(cid, ITEM_WORM, 1) == TRUE then
				if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then
					doPlayerAddItem(cid, ITEM_FISH, 1)
				end
				doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
			end
		end
		doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
		return TRUE
	end
	return FALSE
end

I DONT want any normal fish.
 
So you have a script that gives fish and spawns monsters, but you want to delete the fish? Or do you have 2 scripts and 1 script gives fish and 1 monsters?
Well look in actions for the script. if you don't know where it is, search for the fishing rod id in actions.xml to find the lua. If you have a script that fishes monsters and fish, post it here, if you have 2 scripts, delete the fish script line from actions.xml
 
Last edited:
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,
	randomsize = 500,
	v = {
		[{1, 5}] = {level = 60, monster = "Wyrm", msg = "You've caught a Wyrm!"},
		[{6, 10}] = {level = 50, monster = "Sea Serpent", msg = "You've caught a Sea Serpent!"},
		[{11, 15}] = {level = 55, monster = "Quara Constrictor", msg = "You've caught a Quara Constrictor!"},
		[{16, 20}] = {level = 65, monster = "Quara Hydromancer", msg = "You've caught a Quara Hydromancer!"},
		[{21, 25}] = {level = 70, monster = "Quara Mantassin", msg = "You've caught a Quara Mantassin!"},
		[{26, 30}] = {level = 70, monster = "Quara Pincher", msg = "You've caught a Quara Pincher!"},
		[{31, 35}] = {level = 70, monster = "Quara Predator", msg = "You've caught a Quara Predator!"},
		[{36, 40}] = {level = 100, monster = "Massive Water Elemental", msg = "You've angered the water gods and a water god has been sent to kill you!!", bc = true}
	}
}
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
		doPlayerAddItem(cid, ITEM_FISH, 1)
		doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
		local formula, lvl = math.random(config.randomsize), getPlayerLevel(cid)
		for range, inf in pairs(config.v) do
			if formula >= range[1] and formula <= range[2] and lvl >= inf.level then
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, inf.msg)
				doSummonCreature(inf.monster, getThingPos(cid))
				if inf.bc then
					doBroadcastMessage(getPlayerName(cid) .. " has angered the goddess of water", 22)
				end
				break
			end
		end
	end
	doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
	return true
end

Is there anything that gives me fish :/
 
Back
Top