-
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dudantas/fix-lua-get-number-overflow
- Loading branch information
Showing
6 changed files
with
45 additions
and
7 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
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
20 changes: 20 additions & 0 deletions
20
data/scripts/talkactions/player/hidden_npc_sell_shop_items.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,20 @@ | ||
local talkaction = TalkAction("!hiddenshop") | ||
|
||
function talkaction.onSay(player, words, param) | ||
if param == "" then | ||
player:sendCancelMessage("You need to specify on/off param.") | ||
return true | ||
end | ||
if param == "on" then | ||
player:kv():set("npc-shop-hidden-sell-item", true) | ||
player:sendTextMessage(MESSAGE_LOOK, "You activated hidden sell shop items.") | ||
elseif param == "off" then | ||
player:kv():set("npc-shop-hidden-sell-item", false) | ||
player:sendTextMessage(MESSAGE_LOOK, "You desactivated hidden sell shop items") | ||
end | ||
return true | ||
end | ||
|
||
talkaction:separator(" ") | ||
talkaction:groupType("normal") | ||
talkaction: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
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
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