mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-29 17:19:20 +02:00
increase loot rate and spawn rate
This commit is contained in:
parent
abaf4abe67
commit
d506b1c89a
@ -84,7 +84,7 @@ newbieLevelThreshold = 5
|
|||||||
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
|
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
|
||||||
rateExp = 1
|
rateExp = 1
|
||||||
rateSkill = 5
|
rateSkill = 5
|
||||||
rateLoot = 1
|
rateLoot = 2
|
||||||
rateMagic = 2
|
rateMagic = 2
|
||||||
rateSpawn = 0
|
rateSpawn = 0
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ newbieLevelThreshold = 5
|
|||||||
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
|
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
|
||||||
rateExp = 1
|
rateExp = 1
|
||||||
rateSkill = 5
|
rateSkill = 5
|
||||||
rateLoot = 1
|
rateLoot = 2
|
||||||
rateMagic = 2
|
rateMagic = 2
|
||||||
rateSpawn = 0
|
rateSpawn = 0
|
||||||
|
|
||||||
|
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="/clean" script="clean.lua" />
|
||||||
<talkaction words="/storagevalue" separator=" " script="storagevalue.lua" />
|
<talkaction words="/storagevalue" separator=" " script="storagevalue.lua" />
|
||||||
<talkaction words="/minimap" separator=" " script="minimap_scan.lua" />
|
<talkaction words="/minimap" separator=" " script="minimap_scan.lua" />
|
||||||
|
<talkaction words="/removehouse" separator=" " script="remove_house.lua" />
|
||||||
|
|
||||||
<!-- player talkactions -->
|
<!-- player talkactions -->
|
||||||
<talkaction words="!buypremium" script="buyprem.lua"/>
|
<talkaction words="!buypremium" script="buyprem.lua"/>
|
||||||
|
@ -89,7 +89,7 @@ bool Spawns::loadFromXml(const std::string& filename)
|
|||||||
spawnList.emplace_front(pos, radius);
|
spawnList.emplace_front(pos, radius);
|
||||||
Spawn& spawn = spawnList.front();
|
Spawn& spawn = spawnList.front();
|
||||||
|
|
||||||
uint32_t interval = pugi::cast<uint32_t>(childNode.attribute("spawntime").value()) * 1000;
|
uint32_t interval = pugi::cast<uint32_t>(childNode.attribute("spawntime").value()) * 500;
|
||||||
if (interval > MINSPAWN_INTERVAL) {
|
if (interval > MINSPAWN_INTERVAL) {
|
||||||
uint32_t exInterval = g_config.getNumber(ConfigManager::RATE_SPAWN);
|
uint32_t exInterval = g_config.getNumber(ConfigManager::RATE_SPAWN);
|
||||||
if (exInterval) {
|
if (exInterval) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user