Korektorex
Active User
- Joined
- Dec 11, 2009
- Messages
- 61
- Reaction score
- 5
Witam mam taki problem bo chce zrobi? aby po dedzie odejmowa?o % expa i eq zostawa?o to samo a nie ca?y level do pocz?tkowego i eq te? .
Config wygl?da tak :
Mam jeszcze config war i tak wygl?da :
Config wygl?da tak :
Code:
-- The Forgotten Server Config
-- Owner
ownerName = "Shawak" -- ownerName have to have only 6 Letters !
-- War Config --
newPlayerLevel = 13
-- Messages
serverName = "Shawak's War"
motd = "Welcome to Shawak's War Server!"
loginMessage = "Welcome to Shawak's War Server!"
-- MySql
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = ""
sqlDatabase = "war"
-- World / Ip / Port
worldId = 0
ip = "80.48.200.111"
loginPort = 7171
gamePort = 7172
adminPort = 7171
statusPort = 7171
-- Account manager
newPlayerSpawnPosX = 1035
newPlayerSpawnPosY = 1066
newPlayerSpawnPosZ = 7
newPlayerTownId = 1
generateAccountNumber = "no"
-- Unjustified kills
-- NOTE: *Banishment and *BlackSkull variables are >summed up<
-- (dailyFragsToRedSkull + dailyFragsToBanishment) with their
-- *RedSkull equivalents.
-- Auto banishing works only if useBlackSkull set to negative.
redSkullLength = 30 * 24 * 60 * 60
blackSkullLength = 45 * 24 * 60 * 60
dailyFragsToRedSkull = 3
weeklyFragsToRedSkull = 5
monthlyFragsToRedSkull = 10
dailyFragsToBlackSkull = dailyFragsToRedSkull
weeklyFragsToBlackSkull = weeklyFragsToRedSkull
monthlyFragsToBlackSkull = monthlyFragsToRedSkull
dailyFragsToBanishment = dailyFragsToRedSkull
weeklyFragsToBanishment = weeklyFragsToRedSkull
monthlyFragsToBanishment = monthlyFragsToRedSkull
blackSkulledDeathHealth = 40
blackSkulledDeathMana = 0
useBlackSkull = "no"
advancedFragList = "no"
-- Banishments
-- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment
notationsToBan = 3
warningsToFinalBan = 4
warningsToDeletion = 5
banLength = 7 * 24 * 60 * 60
finalBanLength = 30 * 24 * 60 * 60
ipBanishmentLength = 1 * 24 * 60 * 60
broadcastBanishments = "yes"
maxViolationCommentSize = 200
violationNameReportActionType = 2
autoBanishUnknownBytes = "no"
-- Battle
-- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage.
-- loginProtectionPeriod is the famous Tibia anti-magebomb system.
-- deathLostPercent set to nil enables manual mode.
pvpTileIgnoreLevelAndVocationProtection = "yes"
pzLocked = 60 * 1000
huntingDuration = 60 * 1000
criticalHitChance = 7
criticalHitMultiplier = 1
displayCriticalHitNotify = "no"
removeWeaponAmmunition = "no"
removeWeaponCharges = "no"
removeRuneCharges = "no"
whiteSkullTime = 15 * 60 * 1000
noDamageToSameLookfeet = "no"
showHealingDamage = "yes"
showHealingDamageForMonsters = "yes"
fieldOwnershipDuration = 5 * 1000
stopAttackingAtExit = "no"
oldConditionAccuracy = "no"
loginProtectionPeriod = 100
deathLostPercent = 10
stairhopDelay = 2 * 1000
pushCreatureDelay = 2 * 1000
deathContainerId = 1987
gainExperienceColor = 215
addManaSpentInPvPZone = "yes"
squareColor = 0
allowFightback = "no"
-- Connection config
bindOnlyConfiguredIpAddress = "no"
loginTries = 10
retryTimeout = 5 * 1000
loginTimeout = 20 * 1000
maxPlayers = 600
displayOnOrOffAtCharlist = "no"
onePlayerOnlinePerAccount = "no"
statusTimeout = 5 * 60 * 1000
replaceKickOnLogin = "yes"
forceSlowConnectionsToDisconnect = "no"
loginOnlyWithLoginServer = "no"
premiumPlayerSkipWaitList = "no"
-- Database
-- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
-- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value.
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
passwordType = "plain"
-- Deathlist
deathListEnabled = "yes"
deathListRequiredTime = 1 * 60 * 1000
deathAssistCount = 19
maxDeathRecords = 5
-- Guilds
ingameGuildManagement = "yes"
levelToFormGuild = 8
premiumDaysToFormGuild = 0
guildNameMinLength = 4
guildNameMaxLength = 20
-- Highscores
highscoreDisplayPlayers = 15
updateHighscoresAfterMinutes = 60
-- Houses
buyableAndSellableHouses = "yes"
houseNeedPremium = "yes"
bedsRequirePremium = "yes"
levelToBuyHouse = 1
housesPerAccount = 0
houseRentAsPrice = "no"
housePriceAsRent = "no"
housePriceEachSquare = 1000
houseRentPeriod = "never"
guildHalls = "no"
-- Item usage
timeBetweenActions = 200
timeBetweenExActions = 1500
checkCorpseOwner = "yes"
hotkeyAimbotEnabled = "yes"
maximumDoorLevel = 500
-- Map
-- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.
-- useHouseDataStorage usage may be found at README.
mapName = "War"
mapAuthor = "Shawak"
randomizeTiles = "yes"
useHouseDataStorage = "no"
storeTrash = "yes"
cleanProtectedZones = "yes"
mailboxDisabledTowns = "-1"
-- Startup
-- NOTE: defaultPriority works only on Windows and niceLevel on *nix
-- coresUsed are seperated by comma cores ids used by server process,
-- default is -1, so it stays untouched (automaticaly assigned by OS).
defaultPriority = "high"
niceLevel = 5
coresUsed = "-1"
optimizeDatabaseAtStartup = "yes"
removePremiumOnInit = "yes"
confirmOutdatedVersion = "no"
-- Muted buffer
maxMessageBuffer = 8
bufferMutedOnSpellFailure = "no"
-- Miscellaneous
-- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,
-- called "exception tracer" (__EXCEPTION_TRACER__ flag).
-- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's)
dataDirectory = "data/"
allowChangeOutfit = "yes"
allowChangeColors = "yes"
allowChangeAddons = "yes"
disableOutfitsForPrivilegedPlayers = "no"
bankSystem = "yes"
saveGlobalStorage = "yes"
displaySkillLevelOnAdvance = "no"
spellNameInsteadOfWords = "no"
emoteSpells = "no"
promptExceptionTracerErrorBox = "yes"
storePlayerDirection = "no"
monsterLootMessage = 3
monsterLootMessageType = 25
-- Ghost mode
ghostModeInvisibleEffect = "no"
ghostModeSpellEffects = "yes"
-- Limits
idleWarningTime = 14 * 60 * 1000
idleKickTime = 15 * 60 * 1000
expireReportsAfterReads = 1
playerQueryDeepness = 2
maxItemsPerPZTile = 0
maxItemsPerHouseTile = 0
-- Premium-related
freePremium = "yes"
premiumForPromotion = "yes"
-- Blessings
-- NOTE: blessingReduction* regards items/containers loss.
-- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.
blessingsOnlyPremium = "yes"
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
-- Rates
-- NOTE: experienceStages configuration is located in data/XML/stages.xml.
-- rateExperienceFromPlayers 0 to disable.
experienceStages = "no"
rateExperience = 5.0
rateSkill = 3.0
rateMagic = 3.0
rateLoot = 2.0
rateSpawn = 1
-- Experience from players
-- NOTE: min~Threshold* set to 0 will disable the minimum threshold:
-- player will gain experience from every lower leveled player.
-- max~Threshold* set to 0 will disable the maximum threshold:
-- player will gain experience from every higher leveled player.
minLevelThresholdForKilledPlayer = 0.9
maxLevelThresholdForKilledPlayer = 1.1
-- Stamina
-- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.
-- rateStaminaHits multiplies every hit done a creature, which are later
-- multiplied by player attack speed.
-- rateStaminaGain is multiplying every second of logged out time, eg:
-- 60 * 1000 / 3 = 20 seconds, what gives 1 stamina minute for 3 being logged off.
-- rateStaminaThresholdGain is dividing in case the normal gain (that is
-- multiplied by rateStaminaGain, btw.) passed above threshold, eg:
-- 60 * 1000 / 3 = 20 / 4 = 5 seconds (3 * 4 = 12 minutes for 1 stamina minute).
-- staminaRatingLimit* is in minutes.
rateStaminaLoss = 1
rateStaminaGain = 1000 / 3
rateStaminaThresholdGain = 4
staminaRatingLimitTop = 41 * 60
staminaRatingLimitBottom = 14 * 60
rateStaminaAboveNormal = 1.5
rateStaminaUnderNormal = 0.5
staminaThresholdOnlyPremium = "yes"
-- Party
-- NOTE: experienceShareLevelDifference is float number.
-- experienceShareLevelDifference is highestLevel * value
experienceShareRadiusX = 30
experienceShareRadiusY = 30
experienceShareRadiusZ = 1
experienceShareLevelDifference = 2 / 3
extraPartyExperienceLimit = 20
extraPartyExperiencePercent = 5
experienceShareActivity = 2 * 60 * 1000
-- Global save
-- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours,
-- if you want such a system please check out data/globalevents/globalevents.xml.
globalSaveEnabled = "yes"
globalSaveHour = 0.001
shutdownAtGlobalSave = "no"
cleanMapAtGlobalSave = "yes"
-- Spawns
deSpawnRange = 2
deSpawnRadius = 50
-- Summons
maxPlayerSummons = 2
teleportAllSummons = "no"
teleportPlayerSummons = "no"
-- Status
ownerEmail = "@otland.net"
url = "http://otland.net/"
location = "Europe"
displayGamemastersWithOnlineCommand = "no"
-- Logs
-- NOTE: This kind of logging does not work in GUI version.
-- For such, please compile the software with __GUI_LOGS__ flag.
adminLogsEnabled = "no"
prefixChannelLogs = ""
runFile = ""
outLogName = ""
errorLogName = ""
truncateLogsOnStartup = "no"
-- don't edit
displayPlayersLogging = "no"
newPlayerMagicLevel = 0
accountManager = "yes"
namelockManager = "yes"
newPlayerChooseVoc = "yes"
allowClones = "yes"
useBlackSkull = "no"
protectionLevel = 1
sqlType = "mysql"
worldType = "war"
rateExperienceFromPlayers = 0
sqlFile = "forgottenserver.s3db"
Mam jeszcze config war i tak wygl?da :
Code:
--[[
By Shawak
Config for the War Server
]]--
-- Admin Account
-- Change it and restart server!
-- If you change it again, it update after next restart.
-- You have to logout and exit the character window by restart and changing.
admin_account = "shawak"
admin_password = "222222"
admin_name = "{Admin} Shawak"
-- Settings
enable_Examples = "no" -- Sorcerer / Druid / Paladin / Knight for 1/1?
allowPartyLeaveCommand = "yes" -- allow !leave ?
showLoginsAndLogouts = "yes" -- print ...logged in/out in gui/console?
allowSelfLeveling = "no" -- points / exp / skull by killing chars with same ip?
-- Outfit
enable_outfitSave = "yes"
--> set outfit
saving_exhaustion_storage = 3000
outfit_saving_exhaustion = 30
--> get outfit
saving_exhaustion_storage2 = 3001
outfit_saving_exhaustion2 = 30
-- Highscore
playersMaxAtHightscore = 500
max_GroupID_on_Highscore = 1
dont_showing_names_at_highscore = {
"Account Manager",
"Master Sorcerer",
"Elder Druid",
"Royal Paladin",
"Elite Knight"
}
-- Party Attack
enable_antiPartyAttack = "no" -- anti party damage
anti_party_attack_msg_storage = 2000
anti_party_talkaction_storage = 2001
-- Team Position
world_storage = 1000
start_pos = { -- please don't change the author of the maps they already exist!!
[1] = {
author = "Shawak",
name = "Town",
positions = {
{x = 1016, y = 1028, z = 6},
{x = 1058, y = 1027, z = 6},
{x = 1065, y = 1073, z = 6},
{x = 995, y = 1080, z = 6}
}},
[2] = {
author = "Shawak",
name = "Castle",
positions = {
{x = 1144, y = 1044, z = 6},
{x = 1180, y = 1065, z = 6}
}},
[3] = {
author = "Shawak",
name = "Mountain Map",
positions = {
{x = 1084, y = 1116, z = 6},
{x = 1096, y = 1089, z = 6},
{x = 1126, y = 1103, z = 7},
}}
}
-- Map change
map_change_config = {
enable_mapChange = "no",
global_timer_storage = 6000,
time = {
1150, -- warning
1170, -- warning
1190, -- warning
1200 -- map change // 20 min (20[min] * 60[sec])
},
access = 3
}
-- Broadcast
braodcast_enabled = "yes"
broadCastTime = 600 -- seconds
randomBroadcastMessages = {
"Try to kill your enemy!"
}
sorcereritems = {
2187, -- wand of inferno
2538, -- eagle shield
2175, -- spellbook
2656, -- blue robe
7730, -- blue legs
2662, -- magician hat
2195, -- boots of haste
2167, -- energy ring
1988
}
druiditems = {
2183, -- hailstorm rod
2538, -- eagle shield
2175, -- spellbook
2656, -- blue robe
7730, -- blue legs
2662, -- magician hat
2195, -- boots of haste
2167, -- energy ring
1988
}
paladinitems = {
2520, -- demon shield
2175, -- spellbook
2487, -- crown armor
2488, -- crown legs
2491, -- crown helmet
2195, -- boots of haste
2164, -- might ring
1988, -- backpack
8472 -- great spirit portion
}
knightitems = {
2514, -- mastermind shield
2400, -- magic sword
2175, -- spellbook
2466, -- golden armor
2470, -- golden legs
2471, -- golden helmet
2195, -- boots of haste
2210, -- sword ring
1988
}
-- Level can be found in config.lua
sorc = {
Leben = 745, -- Hp
Mana = 3395,
MagicLevel = 100,
Cap = 1590,
Fist = 10,
Club = 10,
Sword = 10,
Axe = 10,
Dist = 10,
Shield = 24
}
druid = {
Leben = 745, -- Hp
Mana = 3395,
MagicLevel = 100,
Cap = 1590,
Fist = 10,
Club = 10,
Sword = 10,
Axe = 10,
Dist = 10,
Shield = 24
}
paladin = {
Leben = 1305, -- Hp
Mana = 1715,
MagicLevel = 24,
Cap = 2710,
Fist = 10,
Club = 10,
Sword = 10,
Axe = 10,
Dist = 134,
Shield = 70
}
knight = {
Leben = 1865, -- Hp
Mana = 595,
MagicLevel = 5,
Cap = 3270,
Fist = 10,
Club = 10,
Sword = 126,
Axe = 10,
Dist = 10,
Shield = 94
}