-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65c58b0
commit 34ab14e
Showing
20 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local crowbar = Action() | ||
|
||
function crowbar.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
return ActionsLib.useCrowbar(player, item, fromPosition, target, toPosition, isHotkey) | ||
end | ||
|
||
crowbar:id(3304) | ||
crowbar:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local machete = Action() | ||
|
||
function machete.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
return ActionsLib.useMachete(player, item, fromPosition, target, toPosition, isHotkey) | ||
end | ||
|
||
machete:id(3308) | ||
machete:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local pick = Action() | ||
|
||
function pick.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
return ActionsLib.usePick(player, item, fromPosition, target, toPosition, isHotkey) | ||
end | ||
|
||
pick:id(3456) | ||
pick:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local rope = Action() | ||
|
||
function rope.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
return ActionsLib.useRope(player, item, fromPosition, target, toPosition, isHotkey) | ||
end | ||
|
||
rope:id(3003, 646) | ||
rope:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local scythe = Action() | ||
|
||
function scythe.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
return ActionsLib.useScythe(player, item, fromPosition, target, toPosition, isHotkey) | ||
end | ||
|
||
scythe:id(3453) | ||
scythe:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local shovel = Action() | ||
|
||
function shovel.onUse(player, item, itemEx, fromPosition, target, toPosition, isHotkey) | ||
return ActionsLib.useShovel(player, item, itemEx, fromPosition, target, toPosition, isHotkey) | ||
end | ||
|
||
shovel:id(3457, 5710) | ||
shovel:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local spoon = Action() | ||
|
||
function spoon.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
return ActionsLib.useSpoon(player, item, fromPosition, target, toPosition, isHotkey) | ||
end | ||
|
||
spoon:id(3468) | ||
spoon:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local toolGear = Action() | ||
|
||
function toolGear.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if math.random(100) > 5 then | ||
return ActionsLib.onUseRope(player, item, fromPosition, target, toPosition, isHotkey) | ||
or ActionsLib.onUseShovel(player, item, fromPosition, target, toPosition, isHotkey) | ||
or ActionsLib.onUsePick(player, item, fromPosition, target, toPosition, isHotkey) | ||
or ActionsLib.onUseMachete(player, item, fromPosition, target, toPosition, isHotkey) | ||
or ActionsLib.onUseCrowbar(player, item, fromPosition, target, toPosition, isHotkey) | ||
or ActionsLib.onUseSpoon(player, item, fromPosition, target, toPosition, isHotkey) | ||
or ActionsLib.onUseScythe(player, item, fromPosition, target, toPosition, isHotkey) | ||
or ActionsLib.onUseKitchenKnife(player, item, fromPosition, target, toPosition, isHotkey) | ||
else | ||
player:say("Oh no! Your tool is jammed and can't be used for a minute.", TALKTYPE_MONSTER_SAY) | ||
player:addAchievementProgress("Bad Timing", 10) | ||
item:transform(item.itemid + 1) | ||
item:decay() | ||
end | ||
return true | ||
end | ||
|
||
toolGear:id(9594, 9596, 9598) | ||
toolGear:register() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters