Skip to content

Commit

Permalink
from otserv
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyx14 committed Jul 26, 2024
1 parent bffcd62 commit 7ca5af6
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 8 deletions.
17 changes: 17 additions & 0 deletions data-otxserver/scripts/actions/tools/crowbar.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local function onUseCrowbar(player, item, fromPosition, target, toPosition, isHotkey)
for actionName, actionFunction in pairs(crowbarActions) do
if actionFunction(player, item, target, toPosition) then
return true
end
end
return true
end

local crowbar = Action()

function crowbar.onUse(player, item, fromPosition, target, toPosition, isHotkey)
return onUseCrowbar(player, item, fromPosition, target, toPosition, isHotkey)
end

crowbar:id(3304)
crowbar:register()
11 changes: 11 additions & 0 deletions data-otxserver/scripts/actions/tools/lock_pick.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local lockPick = Action()

function lockPick.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.actionid ~= 12503 then
return false
end
return true
end

lockPick:id(7889)
lockPick:register()
8 changes: 8 additions & 0 deletions data-otxserver/scripts/actions/tools/present.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local present = Action()

function present.onUse(cid, item, fromPosition, itemEx, toPosition)
return true
end

present:id(12171)
present:register()
8 changes: 8 additions & 0 deletions data-otxserver/scripts/actions/tools/rake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local rake = Action()

function rake.onUse(player, item, fromPosition, target, toPosition, isHotkey)
return true
end

rake:id(3452)
rake:register()
8 changes: 8 additions & 0 deletions data-otxserver/scripts/actions/tools/spiked_squelcher.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local spikedSquelcher = Action()

function spikedSquelcher.onUse(player, item, fromPosition, target, toPosition, isHotkey)
return onUseSpikedSquelcher(player, item, fromPosition, target, toPosition, isHotkey)
end

spikedSquelcher:id(7452)
spikedSquelcher:register()
8 changes: 0 additions & 8 deletions data/scripts/actions/tools/crowbar.lua

This file was deleted.

0 comments on commit 7ca5af6

Please sign in to comment.