• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

(A few more) noob GM questions

Alice Lovelin

New Member
Joined
Jul 14, 2018
Messages
26
Reaction score
0
Didn't find anything about this using the search function or going through a few sections of the forums, so I thought I'd ask here:

I'm trying to run a server a friend transferred to me, but there are a few changes that neither he nor I know how to do:

  • How to make runes/potions not be consumed on use.
  • How to make amulets not use charges and rings not run out of time.
  • How to change health/mana regen rates.
  • How to remove capacity.
  • How to increase or decrease spawn rates.


Thanks in advance!
 
Solution
Yeah, well the first point you can change in your config.lua file, find:
Lua:
removeChargesFromRunes = true
removeChargesFromPotions = true
change those values to false

the spawn rates can be changed in there too

Lua:
rateSpawn = 1

Health and mana regen can be changed in (not sure if it can be changed somewhere else, haven't fiddled around with that in a long time)
data/XML/vocations.xml

Rings can be changed in, either make it longer as you like or remove that line (search for the item id or the item name)
data/items/items.xml
XML:
<attribute key="duration" value="450"/>
and remove
XML:
<attribute key="decayTo" value="0" />

also amulets can be changed in items.xml too.

Cap can be changed with flags AFAIK, not sure though.
Tell us which server you're using.
When you start up the server, the console will print the server version.
 
Yeah, well the first point you can change in your config.lua file, find:
Lua:
removeChargesFromRunes = true
removeChargesFromPotions = true
change those values to false

the spawn rates can be changed in there too

Lua:
rateSpawn = 1

Health and mana regen can be changed in (not sure if it can be changed somewhere else, haven't fiddled around with that in a long time)
data/XML/vocations.xml

Rings can be changed in, either make it longer as you like or remove that line (search for the item id or the item name)
data/items/items.xml
XML:
<attribute key="duration" value="450"/>
and remove
XML:
<attribute key="decayTo" value="0" />

also amulets can be changed in items.xml too.

Cap can be changed with flags AFAIK, not sure though.
 
Solution
Yeah, well the first point you can change in your config.lua file, find:
Lua:
removeChargesFromRunes = true
removeChargesFromPotions = true
change those values to false
There's no "removeChargesFromPotions" option in my config.lua, and trying to write that didn't seem to do anything, do I need a script somewhere?
But it did work for the runes.
 
Well I haven't taken a look at the specific version you have, I just looked at the github files from the current version, can you post your config.lua here?
 
Well I haven't taken a look at the specific version you have, I just looked at the github files from the current version, can you post your config.lua here?
Sure can, also, thanks for all the help so far. I really appreciate it.

Config.lua said:
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "no-pvp"
hotkeyAimbotEnabled = true
protectionLevel = 8
killsToRedSkull = 5
killsToBlackSkull = 10
pzLocked = 60000
removeChargesFromRunes = false
removeChargesFromPotions = false
timeToDecreaseFrags = 4 * 60 * 60 * 1000
whiteSkullTime = 7 * 60 * 1000
stairJumpExhaustion = 500
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75

freeDepotLimit = 2000
premiumDepotLimit = 10000
depotBoxes = 17
storeImagesUrl = "http://127.0.0.1"
storeCoinsPacketSize = 5200
-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = ------------
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = "2100"
motd = ""
onePlayerOnlinePerAccount = false
allowClones = false
serverName = "Tibao 700"
statusTimeout = 5000
replaceKickOnLogin = true
maxPacketsPerSecond = 1000
enableLiveCasting = true
liveCastPort = 7173
-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = 10
-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "never"
-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000
-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "map1"
mapAuthor = "Elera"
-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "root"
mysqlPass = ""
mysqlDatabase = "Wonderland"
mysqlPort = "3306"
passwordType = "sha1"
mysqlSock = ""
-- Misc.
allowChangeOutfit = true
freePremium = true
kickIdlePlayerAfterMinutes = 150
maxMessageBuffer = 4
emoteSpells = true
classicEquipmentSlots = false
-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = stages
rateSkill = 10
rateLoot = 8
rateMagic = 6
rateSpawn = 4
-- Monsters
deSpawnRange = 2
deSpawnRadius = 1000
-- Stamina
staminaSystem = false
-- Scripts
warnUnsafeScripts = true
convertUnsafeScripts = true
-- Startup
-- NOTE: defaultPriority only works on Windows and sets process
-- priority, valid values are: "normal", "above-normal", "high"
defaultPriority = "normal"
startupDatabaseOptimization = false
-- Status server information
ownerName = "forgotten"
ownerEmail = ""
url = "OTLand"
location = "Brazil"

That's how my Config.lua currently is after adding the potions line - it wasn't there originally. Except for the IP part which I just thought I should "censor".
 
Ah, remove that line then it won't do anything.
Go to data/actions/others/potions.lua and remove this line:
Lua:
item:remove(1)
it should be in the last few lines.

And no problem, we were all noobs once heh.
 
Ah, remove that line then it won't do anything.
Go to data/actions/others/potions.lua and remove this line:
Lua:
item:remove(1)
it should be in the last few lines.

And no problem, we were all noobs once heh.
That worked, once again, thank you so much for all your help.
 
Back
Top