mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
loottest talkaction
This commit is contained in:
parent
d4c4475d15
commit
fe7d2528c5
33
data/talkactions/scripts/loot_test.lua
Normal file
33
data/talkactions/scripts/loot_test.lua
Normal file
@ -0,0 +1,33 @@
|
||||
local config = {
|
||||
['exp'] = {skillKey = 17585, timeKey = 17589},
|
||||
['skill'] = {skillKey = 17586, timeKey = 17590},
|
||||
['magic'] = {skillKey = 17587, timeKey = 17591},
|
||||
['loot'] = {skillKey = 17588, timeKey = 17592} -- TODO
|
||||
}
|
||||
|
||||
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 i = 0
|
||||
local function generateMonsterLoad()
|
||||
if (i <= 1000) then
|
||||
Game.createMonster("cyclops", {x = 32316, y = 31942, z = 7})
|
||||
local monster = Game.isMonsterThere({x = 32316, y = 31942, z = 7}, "cyclops")
|
||||
monster:addHealth(-monster:getMaxHealth())
|
||||
addEvent(generateMonsterLoad, 1000)
|
||||
i = i + 1
|
||||
print(i)
|
||||
end
|
||||
end
|
||||
|
||||
addEvent(generateMonsterLoad, 1000)
|
||||
|
||||
return false
|
||||
end
|
||||
|
@ -39,6 +39,7 @@
|
||||
<talkaction words="/minimap" separator=" " script="minimap_scan.lua" />
|
||||
<talkaction words="/removehouse" separator=" " script="remove_house.lua" />
|
||||
<talkaction words="/globalboost" separator=" " script="global_rate_boost.lua" />
|
||||
<talkaction words="/loottest" script="loot_test.lua" />
|
||||
|
||||
<!-- player talkactions -->
|
||||
<talkaction words="!buypremium" script="buyprem.lua"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user