mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-11-28 15:46:49 +01:00
introduce raid sacrifices and bonus exp if you eat sabrehaven talon
This commit is contained in:
13
data/talkactions/scripts/raid.lua
Normal file
13
data/talkactions/scripts/raid.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
function onSay(player, words, param)
|
||||
if not player:getGroup():getAccess() then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getAccountType() < ACCOUNT_TYPE_GOD then
|
||||
return false
|
||||
end
|
||||
|
||||
Game.startRaid(param)
|
||||
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Raid with name " .. param .. " started.")
|
||||
return false
|
||||
end
|
||||
@@ -19,6 +19,7 @@
|
||||
<talkaction words="/kick" separator=" " script="kick.lua" />
|
||||
<talkaction words="/openserver" script="openserver.lua" />
|
||||
<talkaction words="/closeserver" separator=" " script="closeserver.lua" />
|
||||
<talkaction words="/raid" separator=" " script="raid.lua" />
|
||||
<talkaction words="/B" separator=" " script="broadcast.lua" />
|
||||
<talkaction words="/m" separator=" " script="place_monster.lua" />
|
||||
<talkaction words="/i" separator=" " script="create_item.lua" />
|
||||
|
||||
Reference in New Issue
Block a user