mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-10 04:10:45 +01:00
increase loot rate and spawn rate
This commit is contained in:
22
data/talkactions/scripts/remove_house.lua
Normal file
22
data/talkactions/scripts/remove_house.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
function onSay(player, words, param)
|
||||
if not player:getGroup():getAccess() then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getAccountType() < ACCOUNT_TYPE_GOD then
|
||||
return false
|
||||
end
|
||||
|
||||
local position = player:getPosition()
|
||||
local tile = Tile(position)
|
||||
local house = tile and tile:getHouse()
|
||||
if house == nil then
|
||||
player:sendCancelMessage("You are not inside a house.")
|
||||
position:sendMagicEffect(CONST_ME_POFF)
|
||||
return false
|
||||
end
|
||||
|
||||
house:setOwnerGuid(0)
|
||||
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have successfully removed this house.")
|
||||
return false
|
||||
end
|
||||
@@ -37,6 +37,7 @@
|
||||
<talkaction words="/clean" script="clean.lua" />
|
||||
<talkaction words="/storagevalue" separator=" " script="storagevalue.lua" />
|
||||
<talkaction words="/minimap" separator=" " script="minimap_scan.lua" />
|
||||
<talkaction words="/removehouse" separator=" " script="remove_house.lua" />
|
||||
|
||||
<!-- player talkactions -->
|
||||
<talkaction words="!buypremium" script="buyprem.lua"/>
|
||||
|
||||
Reference in New Issue
Block a user