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

Lua Bug on kill one monster and advance lvl 700012000

adry

Mapper/scripter
Joined
Aug 30, 2010
Messages
64
Reaction score
4
Location
Venezuela
This bug is Sometimes Occurs when a player kills a monster and climbs to a very high level


not that this bug can occur because the console did not make mistakes occur.

I'm using TFS:0.4 Rev:5208


this is my config.lua

PHP:
accountManager = false
	namelockManager = true
	newPlayerChooseVoc = false
	newPlayerSpawnPosX = 269
	newPlayerSpawnPosY = 241
	newPlayerSpawnPosZ = 7
	newPlayerTownId = 2
	newPlayerLevel = 50
	newPlayerMagicLevel = 0
	generateAccountNumber = false
	generateAccountSalt = false
	useFragHandler = true
	redSkullLength = 3 * 24 * 60 * 60
	blackSkullLength = 4 * 24 * 60 * 60
	dailyFragsToRedSkull = 6
	weeklyFragsToRedSkull = 35
	monthlyFragsToRedSkull = 300
	dailyFragsToBlackSkull = 45
	weeklyFragsToBlackSkull = 200
	monthlyFragsToBlackSkull = 40
	dailyFragsToBanishment = dailyFragsToRedSkull
	weeklyFragsToBanishment = weeklyFragsToRedSkull
	monthlyFragsToBanishment = monthlyFragsToRedSkull
	blackSkulledDeathHealth = 15
	blackSkulledDeathMana = 0
	useBlackSkull = true
	advancedFragList = false
	notationsToBan = 3
	warningsToFinalBan = 4
	warningsToDeletion = 5
	banLength = 7 * 24 * 60 * 60
	killsBanLength = 7 * 24 * 60 * 60
	finalBanLength = 30 * 24 * 60 * 60
	ipBanishmentLength = 1 * 24 * 60 * 60
	broadcastBanishments = true
	maxViolationCommentSize = 200
	violationNameReportActionType = 2
	autoBanishUnknownBytes = false
	worldType = "open"
	protectionLevel = 60
	pvpTileIgnoreLevelAndVocationProtection = true
	pzLocked = 60 * 1000
	huntingDuration = 60 * 1000
	criticalHitChance = 7
	criticalHitMultiplier = 1
	displayCriticalHitNotify = true
	removeWeaponAmmunition = true
	removeWeaponCharges = true
	removeRuneCharges = true
	whiteSkullTime = 15 * 60 * 1000
	noDamageToSameLookfeet = false
	showHealingDamage = true
	showHealingDamageForMonsters = true
	fieldOwnershipDuration = 5 * 1000
	stopAttackingAtExit = false
	loginProtectionPeriod = 10 * 1000
	deathLostPercent = 10
	stairhopDelay = 2 * 1000
	pushCreatureDelay = 0.20 * 1000
	deathContainerId = 1987
	gainExperienceColor = 215
	addManaSpentInPvPZone = true
	squareColor = 0
	allowFightback = true
	fistBaseAttack = 7
	useCapacity = false
	worldId = 0
	ip = ""
	bindOnlyGlobalAddress = false
	loginPort = 7171
	gamePort = 7172
	loginTries = 10
	retryTimeout = 5 * 1000
	loginTimeout = 60 * 1000
	maxPlayers = 400
	motd = ".."
	displayOnOrOffAtCharlist = false
	onePlayerOnlinePerAccount = true
	allowClones = 0
	serverName = ".."
	loginMessage = ".."
	statusTimeout = 5 * 60 * 1000
	replaceKickOnLogin = true
	forceSlowConnectionsToDisconnect = false
	loginOnlyWithLoginServer = false
	premiumPlayerSkipWaitList = false
	sqlType = "mysql"
	sqlHost = ""
	sqlPort = 3306
	sqlUser = ""
	sqlPass = ""
	sqlDatabase = ""
	sqlFile = ""
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	mysqlWriteTimeout = 10
	encryptionType = "sha1"
	
	deathListEnabled = true
	deathListRequiredTime = 1 * 60 * 1000
	deathAssistCount = 19
	maxDeathRecords = 5
	useCapacity = true

	ingameGuildManagement = true
	levelToFormGuild = 30
	premiumDaysToFormGuild = 0
	guildNameMinLength = 4
	guildNameMaxLength = 20

	highscoreDisplayPlayers = 15
	updateHighscoresAfterMinutes = 60

	buyableAndSellableHouses = true
	houseNeedPremium = false
	bedsRequirePremium = true
	levelToBuyHouse = 50
	housesPerAccount = 0
	houseRentAsPrice = false
	housePriceAsRent = false
	housePriceEachSquare = 1000
	houseRentPeriod = "never"
	houseCleanOld = 0
	guildHalls = false

	timeBetweenActions = 200
	timeBetweenExActions = 1200
	hotkeyAimbotEnabled = true

	-- Map
	mapName = ""
	mapAuthor = ""
	randomizeTiles = true
	storeTrash = true
	cleanProtectedZones = true
	mailboxDisabledTowns = ""

	-- Process
	defaultPriority = "high"
	niceLevel = 5
	coresUsed = "-1"

	-- Startup
	startupDatabaseOptimization = true
	updatePremiumStateAtStartup = true
	confirmOutdatedVersion = false

	-- Spells
	formulaLevel = 5.0
	formulaMagic = 1.0
	bufferMutedOnSpellFailure = false
	spellNameInsteadOfWords = false
	emoteSpells = true
	unifiedSpells = true
	enableCooldowns = true

	-- Outfits
	allowChangeOutfit = true
	allowChangeColors = true
	allowChangeAddons = true
	disableOutfitsForPrivilegedPlayers = false
	addonsOnlyPremium = false

	-- Miscellaneous
	dataDirectory = "data/"
	logsDirectory = "data/logs/"
	bankSystem = true
	displaySkillLevelOnAdvance = true
	promptExceptionTracerErrorBox = true
	maximumDoorLevel = 500
	maxMessageBuffer = 4
	tradeLimit = 100

	-- Mounts
	useMounts = true
	mountCooldown = 2000
	unmountPlayerInPz = true

	-- VIP list
	separateVipListPerCharacter = false
	vipListDefaultLimit = 40
	vipListDefaultPremiumLimit = 100

	-- Saving-related
	houseDataStorage = "binary"
	saveGlobalStorage = true
	storePlayerDirection = false
	savePlayerData = true

	-- Loot
	checkCorpseOwner = true
	monsterLootMessage = 3
	monsterLootMessageType = 29

	-- Ghost mode
	ghostModeInvisibleEffect = true
	ghostModeSpellEffects = true

	-- Limits
	idleWarningTime = 14 * 60 * 1000
	idleKickTime = 15 * 60 * 1000
	reportsExpirationAfterReads = 1
	playerQueryDeepness = 2
	tileLimit = 10
	protectionTileLimit = 0
	houseTileLimit = 0

	-- Premium-related
	freePremium = false
	premiumForPromotion = true

	blessings = true
	blessingOnlyPremium = false
	blessingReductionBase = 30
	blessingReductionDecrement = 5
	eachBlessReduction = 8
	pvpBlessingThreshold = 40
	fairFightTimeRange = 60

	-- Rates
	experienceStages = true
	rateExperience = 3.0
	rateExperienceFromPlayers = 0
	rateSkill = 8
	rateMagic = 5
	rateLoot = 3
	rateSpawn = 1

	-- Monster rates
	rateMonsterHealth = 1.0
	rateMonsterMana = 1.0
	rateMonsterAttack = 1.0
	rateMonsterDefense = 1.0

	-- Experience from players
	minLevelThresholdForKilledPlayer = 0.9
	maxLevelThresholdForKilledPlayer = 1.1

	-- Stamina
	rateStaminaLoss = 1
	rateStaminaGain = 3
	rateStaminaThresholdGain = 12
	staminaRatingLimitTop = 40 * 60
	staminaRatingLimitBottom = 14 * 60
	staminaLootLimit = 14 * 60
	rateStaminaAboveNormal = 1.5
	rateStaminaUnderNormal = 0.5
	staminaThresholdOnlyPremium = false

	-- Party
	experienceShareRadiusX = 30
	experienceShareRadiusY = 30
	experienceShareRadiusZ = 1
	experienceShareLevelDifference = 2 / 3
	extraPartyExperienceLimit = 20
	extraPartyExperiencePercent = 5
	experienceShareActivity = 2 * 60 * 1000

	-- Global save
	globalSaveEnabled = true
	globalSaveHour = 12
	globalSaveMinute = 0
	shutdownAtGlobalSave = false
	cleanMapAtGlobalSave = true

	-- Spawns
	deSpawnRange = 2
	deSpawnRadius = 50
	monsterSpawnWalkback = true

	-- Summons
	maxPlayerSummons = 2
	teleportAllSummons = false
	teleportPlayerSummons = false

	-- Status
	statusPort = 7171
	ownerName = ""
	ownerEmail = "[email protected]"
	url = ""
	location = "USA"
	displayGamemastersWithOnlineCommand = false

	-- Logs
	displayPlayersLogging = true
	prefixChannelLogs = ""
	runFile = ""
	outputLog = ""
	truncateLogOnStartup = false

	-- Manager
	managerPort = 7171
	managerLogs = true
	managerPassword = ""
	managerLocalhostOnly = true
	managerConnectionsLimit = 1

	-- Admin
	adminPort = 7171
	adminLogs = true
	adminPassword = ""
	adminLocalhostOnly = true
	adminConnectionsLimit = 1
	adminRequireLogin = true
	adminEncryption = "sha1"
	adminEncryptionData = "sha1"
 
Please post your stages.xml

Have you tried if it's a specific monster?
Does it happen on all vocations?
Does it happen even if your for example lvl 8, 100, 200 ?

More info please, config wont help much.
 
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
	<vocation id="0" clientId="1" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no" droploot="no">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="1" clientId="8" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="30" gainmanaticks="3" gainmanaamount="30" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="2" clientId="16" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="30" gainmanaticks="3" gainmanaamount="30" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="3" clientId="4" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="8" gainhpamount="20" gainmanaticks="4" gainmanaamount="20" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="4" clientId="2" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="15" gainmanaticks="6" gainmanaamount="15" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="4">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="5" clientId="8" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="6" clientId="16" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="12" gainhpamount="50" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="7" clientId="4" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="6" gainhpamount="40" gainmanaticks="3" gainmanaamount="40" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
		<formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.1" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="8" clientId="2" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="4" gainhpamount="35" gainmanaticks="6" gainmanaamount="35" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
		<formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
</vocations>

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
	<world id="0" multiplier="1">
		<stage minlevel="1" maxlevel="25" multiplier="15"/>
		<stage minlevel="26" maxlevel="40" multiplier="12"/>
		<stage minlevel="41" maxlevel="60" multiplier="10"/>
		<stage minlevel="61" maxlevel="70" multiplier="8"/>
		<stage minlevel="71" maxlevel="80" multiplier="7"/>
		<stage minlevel="81" maxlevel="90" multiplier="5"/>
		<stage minlevel="91" maxlevel="120" multiplier="4"/>
		<stage minlevel="120" maxlevel="200" multiplier="3"/>
		<stage minlevel="201" maxlevel="250" multiplier="2"/>
		<stage minlevel="251" multiplier="1"/>
	</world>
</stages>


Samples
Level = 20
Experiencie = 0

Magic Level = 10


The bug gives more to the Mage
 
The monsters are edited a bit in the exp

example

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="necromancer" nameDescription="a necromancer" race="undead" experience="1485" speed="270" manacost="0">
  <health now="580" max="580"/>
  <look type="9" head="20" body="30" legs="40" feet="50" corpse="6080"/>
  <targetchange interval="5000" chance="8"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="1"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="4"/>
    <flag staticattack="90"/>
    <flag runonhealth="0"/>
  </flags>
  <attacks>
    <attack name="melee" interval="2000" skill="40" attack="50" poison="90"/>
    <attack name="lifedrain" interval="2000" chance="40" range="1" min="-60" max="-100">
      <attribute key="areaEffect" value="redspark"/>
    </attack>
    <attack name="poison" interval="2000" chance="27" range="7" min="-65" max="-115">
      <attribute key="shootEffect" value="poison"/>
      <attribute key="areaEffect" value="poison"/>
    </attack>
  </attacks>
  <defenses armor="27" defense="47">
    <defense name="healing" interval="4000" chance="15" min="42" max="68">
      <attribute key="areaEffect" value="blueshimmer"/>
    </defense>
  </defenses>
  <immunities>
    <immunity physical="0"/>
    <immunity energy="0"/>
    <immunity fire="0"/>
    <immunity poison="1"/>
    <immunity lifedrain="1"/>
    <immunity paralyze="0"/>
    <immunity outfit="1"/>
    <immunity drunk="1"/>
    <immunity invisible="1"/>
    <immunity ice="0"/>
    <immunity holy="0"/>
    <immunity death="0"/>
    <immunity earth="1"/>
  </immunities>
  <summons maxSummons="4">
    <summon name="ghoul" interval="1000" chance="17" max="2"/>
    <summon name="ghost" interval="1000" chance="15" max="1"/>
    <summon name="mummy" interval="1000" chance="13" max="1"/>
  </summons>
  <voices interval="5000" chance="10">
    <voice sentence="Your corpse will be mine!"/>
    <voice sentence="Taste the sweetness of death!"/>
  </voices>
  <loot>
    <item id="2186" chance="110" /> -- moonlight rod
    <item id="2148" countmax="40" chance1="100000" chancemax="0"/>
    <item id="7589" chance="1100"/> --strong mana potion
    <item id="2032" chance="10000"/>
    <item id="2804" countmax="2" chance1="20000" chancemax="0"/>
    <item id="2182" chance="1333" /> -- snakebite rod
    <item id="7456" chance="609"/> --noble axe
    <item id="2406" chance="15000"/>
    <item id="1987" chance="100000">
      <inside>
        <item id="2412" chance="10000"/>
        <item id="2483" chance="10000"/>
        <item id="2796" countmax="1" chance="1500"/>
        <item id="2229" countmax="3" chance1="20000" chancemax="0"/>
        <item id="2747" chance="20000"/>
        <item id="2436" chance="533"/> --skull staff
        <item id="2663" chance="909"/>
        <item id="2195" chance="466"/>
        <item id="2423" chance="5000"/>
      </inside>
    </item>
  </loot>
</monster>
 
use this stages.xml
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
	<world id="0" multiplier="1">
		<stag minlevel="1" maxlevel="25" multiplier="15"/>
		<stage minlevel="26" maxlevel="40" multiplier="12"/>
		<stage minlevel="41" maxlevel="60" multiplier="10"/>
		<stage minlevel="61" maxlevel="70" multiplier="8"/>
		<stage minlevel="71" maxlevel="80" multiplier="7"/>
		<stage minlevel="81" maxlevel="90" multiplier="5"/>
		<stage minlevel="91" maxlevel="120" multiplier="4"/>
		<stage minlevel="120" maxlevel="200" multiplier="3"/>
		<stage minlevel="201" maxlevel="250" multiplier="2"/>
		<stage minlevel="251" multiplier="1"/>
	</world>
</stages>
-----
change your config.lua edit this..
Lua:
-- The Forgotten Server Config

	-- Account manager
	accountManager = false
	namelockManager = true
	newPlayerChooseVoc = false
	newPlayerSpawnPosX = 95
	newPlayerSpawnPosY = 117
	newPlayerSpawnPosZ = 7
	newPlayerTownId = 1
	newPlayerLevel = 1
	newPlayerMagicLevel = 0
	generateAccountNumber = false
	generateAccountSalt = false

	-- Unjustified kills	
	useFragHandler = true
	redSkullLength = 1 * 24 * 60 * 60
	blackSkullLength = 0
	dailyFragsToRedSkull = 25
	weeklyFragsToRedSkull = 50
	monthlyFragsToRedSkull = 200
	dailyFragsToBlackSkull = dailyFragsToRedSkull
	weeklyFragsToBlackSkull = weeklyFragsToRedSkull
	monthlyFragsToBlackSkull = monthlyFragsToRedSkull
	dailyFragsToBanishment = dailyFragsToRedSkull
	weeklyFragsToBanishment = weeklyFragsToRedSkull
	monthlyFragsToBanishment = monthlyFragsToRedSkull
	blackSkulledDeathHealth = 40
	blackSkulledDeathMana = 0
	useBlackSkull = false
	advancedFragList = false

	-- Banishments	
	notationsToBan = 3
	warningsToFinalBan = 4
	warningsToDeletion = 5
	banLength = 24 * 60 * 60
	killsBanLength = 24 * 60 * 60
	finalBanLength = 2 * 24 * 60 * 60
	ipBanishmentLength = 3 * 24 * 60 * 60
	broadcastBanishments = true
	maxViolationCommentSize = 200
	violationNameReportActionType = 2
	autoBanishUnknownBytes = false

	-- Battle
	
	worldType = "open"
	protectionLevel = 50
	pvpTileIgnoreLevelAndVocationProtection = true
	pzLocked = 40 * 1000
	huntingDuration = 30 * 1000
	criticalHitChance = 7
	criticalHitMultiplier = 1
	displayCriticalHitNotify = false
	removeWeaponAmmunition = true
	removeWeaponCharges = true
	removeRuneCharges = true
	whiteSkullTime = 10 * 60 * 1000
	noDamageToSameLookfeet = false
	showHealingDamage = true
	showHealingDamageForMonsters = false
	fieldOwnershipDuration = 5 * 1000
	stopAttackingAtExit = true
	loginProtectionPeriod = 10 * 1000
	deathLostPercent = 10
	stairhopDelay = 2 * 1000
	pushCreatureDelay = 700
	deathContainerId = 1987
	gainExperienceColor = 215
	addManaSpentInPvPZone = false
	squareColor = 0
	allowFightback = true
	fistBaseAttack = 7

	-- Connection config
	worldId = 0
	ip = "x.x.x"
	bindOnlyGlobalAddress = false
	loginPort = 7171
	gamePort = 7172
	loginTries = 10
	retryTimeout = 5 * 1000
	loginTimeout = 60 * 1000
	maxPlayers = 1000	
	motd = "Welcome to Server!\n...A fun server, enjoy it!."
	displayOnOrOffAtCharlist = false
	onePlayerOnlinePerAccount = false
	allowClones = false
	serverName = "ServerName"
	loginMessage = "Welcome"
	statusTimeout = 5 * 60 * 1000
	replaceKickOnLogin = true
	forceSlowConnectionsToDisconnect = false
	loginOnlyWithLoginServer = false
	premiumPlayerSkipWaitList = false
	
	-- RSA settings

	rsaPrime1 = "14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113" -- Also known as p
	rsaPrime2 = "7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101" -- Also known as q
	rsaPublic = "109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413" -- Also known as n
	rsaPrivate = "46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073" -- Also known as d

	-- Database	
	sqlType = "mysql"
	sqlHost = "localhost"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = ".."
	sqlDatabase = ".."
	sqlFile = "forgottenserver.s3db"
	sqlKeepAlive = 0
	mysqlReadTimeout = 0
	mysqlWriteTimeout = 0
	passwordType = "sha1"
	
	-- Deathlist
	deathListEnabled = true
	deathListRequiredTime = 1 * 60 * 1000
	deathAssistCount = 19
	maxDeathRecords = 5

	-- Guilds
	ingameGuildManagement = false
	levelToFormGuild = 8
	premiumDaysToFormGuild = 0
	guildNameMinLength = 4
	guildNameMaxLength = 20

	-- Highscores
	highscoreDisplayPlayers = 15
	updateHighscoresAfterMinutes = 60

	-- Houses
	buyableAndSellableHouses = true
	houseNeedPremium = true
	bedsRequirePremium = true
	levelToBuyHouse = 1
	housesPerAccount = 0
	houseRentAsPrice = false
	housePriceAsRent = false
	housePriceEachSquare = 1000
	houseRentPeriod = "never"
	houseCleanOld = 0
	guildHalls = false

	-- Item usage
	timeBetweenActions = 200
	timeBetweenExActions = 1000
	hotkeyAimbotEnabled = true

	-- Map
	
	mapName = "name.otbm"
	mapAuthor = "Name"
	randomizeTiles = true
	storeTrash = true
	cleanProtectedZones = true
	mailboxDisabledTowns = ""

	-- Process
	defaultPriority = "high"
	niceLevel = 5
	coresUsed = "-1"

	-- Startup
	startupDatabaseOptimization = true
	updatePremiumStateAtStartup = true
	confirmOutdatedVersion = false

	-- Spells
	formulaLevel = 5.0
	formulaMagic = 1.0
	bufferMutedOnSpellFailure = false
	spellNameInsteadOfWords = false
	emoteSpells = true

	-- Outfits
	allowChangeOutfit = true
	allowChangeColors = true
	allowChangeAddons = true
	disableOutfitsForPrivilegedPlayers = false
	addonsOnlyPremium = true

	-- Miscellaneous
	
	dataDirectory = "data/"
	logsDirectory = "data/logs/"
	bankSystem = true
	displaySkillLevelOnAdvance = true
	promptExceptionTracerErrorBox = true
	maximumDoorLevel = 500
	maxMessageBuffer = 4

	-- VIP list
	separateVipListPerCharacter = false
	vipListDefaultLimit = 20
	vipListDefaultPremiumLimit = 100

	-- Saving-related
	-- useHouseDataStorage usage may be found at README.
	saveGlobalStorage = true
	useHouseDataStorage = false
	storePlayerDirection = false

	-- Loot

	checkCorpseOwner = true
	monsterLootMessage = 3
	monsterLootMessageType = 25

	-- Ghost mode
	ghostModeInvisibleEffect = false
	ghostModeSpellEffects = true

	-- Limits
	idleWarningTime = 20 * 60 * 1000
	idleKickTime = 21 * 60 * 1000
	reportsExpirationAfterReads = 1
	playerQueryDeepness = 2
	tileLimit = 0
	protectionTileLimit = 0
	houseTileLimit = 0
	reportsExpirationAfterReads = 1
	playerQueryDeepness = 2
	tileLimit = 0
	protectionTileLimit = 0
	houseTileLimit = 0

	-- Premium-related
	freePremium = true
	premiumForPromotion = true

	-- Blessings

	blessings = true
	blessingOnlyPremium = true
	blessingReductionBase = 30
	blessingReductionDecrement = 5
	eachBlessReduction = 8

	-- Rates

	experienceStages = true
	rateExperience = 3.0
	rateExperienceFromPlayers = 0
	rateSkill = 8
	rateMagic = 5
	rateLoot = 3
	rateSpawn = 1

	-- Monster rates
	rateMonsterHealth = 1.0
	rateMonsterMana = 1.0
	rateMonsterAttack = 1.0
	rateMonsterDefense = 1.0

	-- Experience from players
	minLevelThresholdForKilledPlayer = 0.9
	maxLevelThresholdForKilledPlayer = 1.1

	-- Stamina
	rateStaminaLoss = 1
	rateStaminaGain = 3
	rateStaminaThresholdGain = 12
	staminaRatingLimitTop = 40 * 60
	staminaRatingLimitBottom = 14 * 60
	staminaLootLimit = 14 * 60
	rateStaminaAboveNormal = 1.5
	rateStaminaUnderNormal = 0.5
	staminaThresholdOnlyPremium = true

	-- Party
	experienceShareRadiusX = 30
	experienceShareRadiusY = 30
	experienceShareRadiusZ = 1
	experienceShareLevelDifference = 2 / 3
	extraPartyExperienceLimit = 20
	extraPartyExperiencePercent = 5
	experienceShareActivity = 2 * 60 * 1000

	-- Global save

	globalSaveEnabled = false
	globalSaveHour = 8
	globalSaveMinute = 0
	shutdownAtGlobalSave = true
	cleanMapAtGlobalSave = false

	-- Spawns
	deSpawnRange = 2
	deSpawnRadius = 50

	-- Summons
	maxPlayerSummons = 2
	teleportAllSummons = false
	teleportPlayerSummons = false

	-- Status
	statusPort = 7171
	ownerName = ""
	ownerEmail = "[email protected]"
	url = ""
	location = "USA"
	displayGamemastersWithOnlineCommand = false

	-- Logs

	displayPlayersLogging = true
	prefixChannelLogs = ""
	runFile = ""
	outputLog = ""
	truncateLogOnStartup = false

	-- Manager
	
	managerPort = 7171
	managerLogs = true
	managerPassword = ""
	managerLocalhostOnly = true
	managerConnectionsLimit = 1

	-- Admin

	adminPort = 7171
	adminLogs = true
	adminPassword = ""
	adminLocalhostOnly = true
	adminConnectionsLimit = 1
	adminRequireLogin = true
	adminEncryption = ""
	adminEncryptionData = ""

Monster:
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Necromancer" nameDescription="a necromancer" race="blood" experience="1485" speed="270" manacost="0">
	<health now="580" max="580"/>
	<look type="9" head="20" body="30" legs="40" feet="50" corpse="6080"/>
	<targetchange interval="5000" chance="8"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="4"/>
		<flag staticattack="90"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="30" attack="40" poison="160"/>
		<attack name="death" interval="2000" chance="12" range="1" target="1" min="-10" max="-120">
			<attribute key="shootEffect" value="death"/>
			<attribute key="areaEffect" value="mortarea"/>
		</attack>	
		<attack name="poison" interval="2000" chance="12" range="7" min="-35" max="-95">
			<attribute key="shootEffect" value="poison"/>
			<attribute key="areaEffect" value="poison"/>
		</attack>		
	</attacks>
	<defenses armor="20" defense="20">
		<defense name="healing" interval="2000" chance="12" min="48" max="68">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element energyPercent="20"/>
		<element icePercent="10"/>
		<element deathPercent="50"/>
		<element physicalPercent="-5"/>
		<element firePercent="-5"/>
		<element holyPercent="-5"/>
	</elements>
	<immunities>
	<immunity invisible="1"/>
    <immunity earth="1"/>
    <immunity physical="0"/>
    <immunity energy="0"/>
    <immunity fire="0"/>
    <immunity poison="1"/>
    <immunity lifedrain="1"/>
    <immunity paralyze="0"/>
    <immunity outfit="1"/>
    <immunity drunk="1"/>
    <immunity invisible="1"/>
    <immunity ice="0"/>
    <immunity holy="0"/>
    <immunity death="0"/>
    <immunity earth="1"/>		
	</immunities>
	<summons maxSummons="2">
		<summon name="Ghoul" interval="2000" chance="12" max="2"/>
		<summon name="Ghost" interval="2000" chance="12" max="2"/>
		<summon name="Mummy" interval="2000" chance="12" max="2"/>
	</summons>
	<voices interval="5000" chance="9">
		<voice sentence="Your corpse will be mine!"/>
		<voice sentence="Taste the sweetness of death!"/>
	</voices>
	<loot>
    <item id="2186" chance="110" /> -- moonlight rod
    <item id="2148" countmax="40" chance1="100000" chancemax="0"/>
    <item id="7589" chance="1100"/> --strong mana potion
    <item id="2032" chance="10000"/>
    <item id="2804" countmax="2" chance1="20000" chancemax="0"/>
    <item id="2182" chance="1333" /> -- snakebite rod
    <item id="7456" chance="609"/> --noble axe
    <item id="2406" chance="15000"/>
    <item id="1987" chance="100000">
        <inside>
        <item id="2412" chance="10000"/>
        <item id="2483" chance="10000"/>
        <item id="2796" countmax="1" chance="1500"/>
        <item id="2229" countmax="3" chance1="20000" chancemax="0"/>
        <item id="2747" chance="20000"/>
        <item id="2436" chance="533"/> --skull staff
        <item id="2663" chance="909"/>
        <item id="2195" chance="466"/>
        <item id="2423" chance="5000"/>
        </inside>
    </item>
</loot>
</monster>
 
Back
Top