• 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!

Solved Vocation regen from vocations.xml

Doitforthegains

Well-Known Member
Joined
Aug 30, 2014
Messages
231
Reaction score
74
Hi there, I'm using TFS 1.1 and I'm having an issue with my vocations regen not taking into account my changes on the ticks. Here's an example of my vocations.xml
Code:
<vocation id="1" clientid="3" name="Magician" description="a Magician" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="1" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.2" attackspeed="2000" basespeed="220" soulmax="100" gainsoulticks="120" fromvoc="0">

As you can see I want 10 mana every 3 secs, and 1 hp every 2 seconds. However the values I'm changing dont take any effect, its as if my regen are going off an older script that has already been set. So in game I'm actually recieving 1hp/8s and 10mana/12. But if I change the amount or ticks and restart the server no changes occur.
I even tried replacing my vocations.xml with a new one and I'm still getting the same regens
 
I don't see anything wrong with it.. do you have multiple copies of your server?
Just make sure your editing the correct file.

Also ensure your using a new character to test on.
Players that are already created will not get the increased/decreased mana/hp regeneration from what I remember.
 
Alright! So that fixes the problem of the amount not changing! Now the mystery is the ticks, they seem to be multiplied by 4x. I changed it to 5/1s for each and I'm getting 5/4s instead. Realistically I can just change the ticks down to fit my needs, but I'd like to know what's causing it to multiply by 4x. I'm having a problem with monsters attack rate as well and I fear it could be the same root cause as monsters seem to attack 4x slower than they should.
 
Alright! So that fixes the problem of the amount not changing! Now the mystery the ticks, they seem to be multiplied by 4x. I changed it to 5/1s for each and I'm getting 5/4s instead. Realistically I can just change the ticks down to fit my needs, but I'd like to know what's causing it to multiply by 4x. I'm having a problem with monsters attack rate as well and I fear it could be the same root cause as monsters seem to attack 4x slower than they should.
Can you post your config.lua? I'll take a gander through it and see if I can find something in there.
 
Code:
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp-enforced"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
killsToRedSkull = 10
killsToBlackSkull = 15
pzLocked = 60000
removeAmmoWhenUsingDistanceWeapon = "yes"
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = "no"
expFromPlayersLevelRange = 75
noDamageToSameLookfeet = "no"

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "XXXX"
bindOnlyGlobalAddress = "no"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to TibiaFlex!"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "TibiaFlex"
statusTimeout = 5000
replaceKickOnLogin = "yes"
maxPacketsPerSecond = 1000

-- 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 = -1

-- 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 = "realmap"
mapAuthor = "Komic"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = "yes"
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "XXXXX"
mysqlUser = "XXXXX"
mysqlPass = "XXXXXX"
mysqlDatabase = "XXXXX"
mysqlPort = XXXX
mysqlSock = ""

-- Misc.
allowChangeOutfit = "yes"
freePremium = "yes"
kickIdlePlayerAfterMinutes = 120
maxMessageBuffer = 4
emoteSpells = "yes"
classicEquipmentSlots = "no"

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 5
rateLoot = 2
rateMagic = 3
rateSpawn = 2

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = "yes"

-- Scripts
warnUnsafeScripts = "no"
convertUnsafeScripts = "no"

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process priority.
defaultPriority = "high"
startupDatabaseOptimization = "no"

-- Status server information
ownerName = ""
ownerEmail = ""
url = "http://otland.net/"
location = "USA"
 
Last edited:
Code:
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp-enforced"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
killsToRedSkull = 10
killsToBlackSkull = 15
pzLocked = 60000
removeAmmoWhenUsingDistanceWeapon = "yes"
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = "no"
expFromPlayersLevelRange = 75
noDamageToSameLookfeet = "no"

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "tibiaflex.no-ip.org"
bindOnlyGlobalAddress = "no"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to TibiaFlex!"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "TibiaFlex"
statusTimeout = 5000
replaceKickOnLogin = "yes"
maxPacketsPerSecond = 1000

-- 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 = -1

-- 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 = "realmap"
mapAuthor = "Komic"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = "yes"
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "XXXXX"
mysqlUser = "XXXXX"
mysqlPass = "XXXXXX"
mysqlDatabase = "XXXXX"
mysqlPort = XXXX
mysqlSock = ""

-- Misc.
allowChangeOutfit = "yes"
freePremium = "yes"
kickIdlePlayerAfterMinutes = 120
maxMessageBuffer = 4
emoteSpells = "yes"
classicEquipmentSlots = "no"

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 5
rateLoot = 2
rateMagic = 3
rateSpawn = 2

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = "yes"

-- Scripts
warnUnsafeScripts = "no"
convertUnsafeScripts = "no"

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process priority.
defaultPriority = "high"
startupDatabaseOptimization = "no"

-- Status server information
ownerName = ""
ownerEmail = ""
url = "http://otland.net/"
location = "USA"
damn that is a very small config,, but no I don't see anything.
And yes I should've mentioned don't show ip or mysql :p
 
It servers its purpose I suppose, not very sure how to to add things to it. And it's all good, I trust you, just not everyone else haha. So I'm like 90% sure the problem with my regen and the problem with my monsters are connected. Making me think its something in my sources of maybe global.lua...Gonna start going through that mess now
 
Back
Top