Skip to content

Commit

Permalink
* Prevent the use of /n, /m, and /s commands while in the pool.
Browse files Browse the repository at this point in the history
  • Loading branch information
jprzimba committed Dec 28, 2024
1 parent dd200b2 commit b007313
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/scripts/talkactions/god/create_npc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ function createNpc.onSay(player, words, param)
return true
end

if player:getOutfit().lookType == 267 then
player:sendCancelMessage("You cannot execte this command while in the pool.")
return true
end

local split = param:split(",")
local name = split[1]
local permanentStr = split[2]
Expand Down
5 changes: 5 additions & 0 deletions data/scripts/talkactions/god/create_summon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ function createSummon.onSay(player, words, param)
return true
end

if player:getOutfit().lookType == 267 then
player:sendCancelMessage("You cannot execte this command while in the pool.")
return true
end

local position = player:getPosition()
local summon = Game.createMonster(param, position, true, false, player)
if not summon then
Expand Down
5 changes: 5 additions & 0 deletions data/scripts/talkactions/god/manage_monster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function createMonster.onSay(player, words, param)
return true
end

if player:getOutfit().lookType == 267 then
player:sendCancelMessage("You cannot execte this command while in the pool.")
return true
end

local playerPosition = player:getPosition()
local splitParams = param:split(",")
local monsterName = splitParams[1]
Expand Down
6 changes: 5 additions & 1 deletion markdowns/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
- data/scripts/movements/swimming.lua
- data/scripts/talkactions/god/icons_functions.lua
- data/scripts/talkactions/god/goto_house.lua
- data/scripts/talkactions/god/manage_monster.lua
- data/scripts/talkactions/god/create_summon.lua
- data/scripts/talkactions/god/create_npc.lua
- data-global/scripts/quests/ferumbras_ascension/actions_flower_puzzle_lever.lua
- data-global/scripts/quests/ferumbras_ascension/movements_flower_puzzle.lua
- data-global/scripts/lib/register_actions.lua
Expand All @@ -45,7 +48,8 @@
- Fixed lava tiles in entrance of The Pits of Inferno Quest. ([jeansouzak](https://github.com/jeansouzak))
- Fixed Items created using CreateMapItem are cleanable by /clean. ([#7](https://github.com/jprzimba/crystalserver/issues/7)) ([Tryller](https://github.com/jprzimba))
- Prevent players from entering the pool while in ghost mode. ([Tryller](https://github.com/jprzimba))
- Prevent players from logging out while in the pool.. ([Tryller](https://github.com/jprzimba))
- Prevent players from logging out while in the pool.
- Prevent the use of `/n`, `/m`, and `/s` commands while in the pool. ([Tryller](https://github.com/jprzimba))


## Version 4.1
Expand Down

0 comments on commit b007313

Please sign in to comment.