• 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!

Solved Doesn't work (whacking driller of fate), help

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
How to edit whacking driller of fate to work like rope, shovel, pick and machete? my razor doesn't work...
Whacking_Driller_of_Fate.gif

Sneaky_Stabber_of_Eliteness.gif

Squeezing_Gear_of_Girlpower.gif



ANYONE KNOW HOW TO FIX THIS PELASE? HELP
 
Last edited:
LUA:
local config = {
	functions = {
		[10511] = { -- sneaky stabber of eliteness
			TOOLS.ROPE,
			TOOLS.SHOVEL,
			TOOLS.PICK,
			TOOLS.MACHETE,
			TOOLS.KNIFE
		},
		[10513] = { -- squeezing gear of girlpower
			TOOLS.ROPE,
			TOOLS.SHOVEL,
			TOOLS.PICK,
			TOOLS.MACHETE,
			TOOLS.SCYTHE
		},
		[10515] = { -- whacking driller of fate
			TOOLS.ROPE,
			TOOLS.SHOVEL,
			TOOLS.PICK,
			TOOLS.MACHETE,
			TOOLS.KNIFE
		}
	},
	jamChance = 10
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local funcs = config.functions[item.itemid]
	if(funcs == nil) then
		return false
	end

	local result = false
	for _, func in ipairs(funcs) do
		if(func(cid, item, fromPosition, itemEx, toPosition)) then
			result = true
			break
		end
	end

	if(not result) then
		return false
	end

	if(math.random(1, 100) <= config.jamChance) then
		doTransformItem(item.uid, item.itemid + 1)
		doDecayItem(item.uid)
	end

	return true
end

XML:
	<action itemid="10511;10513;10515" event="script" value="tools/squeeze.lua"/>

Rep if helped.
 
Back
Top