-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
ea4c6e8
commit 4f03598
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
data-otservbr-global/scripts/actions/rookgaard/rapier_quest.lua
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,15 @@ | ||
local rapierQuest = Action() | ||
|
||
function rapierQuest.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
if player:questKV('rapier'):get('completed') then | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The box is empty.") | ||
else | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a rapier.") | ||
player:addItem(3272, 1) | ||
player:kv():scoped('quests'):scoped('rapier'):set('completed', true) | ||
end | ||
return true | ||
end | ||
|
||
rapierQuest:position{x = 32099, y = 32198, z = 9} | ||
rapierQuest: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