HA
dúvida

Configuração De Ot

Por hadamais, 02 de out. de 2012 em Scripts

algumas duvidas
resolvido
12
1.5k
hadamaisH
02 de outubro de 2012 às 18:36

Bom, eu tenho um servidor que abre normalmente no 1/1

Porem, eu queria configurá--lo de uma forma, e queria ajuda.

Primeiro coisa,

 

_gostaria de colocá-lo em ENFORCED, como fazer?

_gostaria de tirar o XP dos bixos.

_players começando no lvl 150, com bag de potion e tudo necessário para a WAR.

 

 

Aguardo ajuda.

notle2012N
02 de outubro de 2012 às 19:21

pra não upa em montros

config.lua

procura por

rateExperience =

deixa

0

rateExperience = 0

 

pra mudar lvl

config.lua

procura por

newPlayerLevel

aqui coloca level que começa

newPlayerLevel = 150

pra matar player e upa

config.lua

procura por

experienceByKillingPlayers

deixa assim

experienceByKillingPlayers = true

pra editar item

vai em

data\creaturescripts\scripts\firstitems.lua

ver se tem um arquivo com esse nome

firstitems.lua

posta ele ai

pra nos ajudar :D

Editado Outubro 2 por notle2012

hadamaisH
03 de outubro de 2012 às 01:15

essa linha:

 

experienceByKillingPlayers = true

 

Eu não axei, aqui vai meu lua, e meu first Itens:

 

 

 

 

accountManager = "yes"

namelockManager = "no"

newPlayerChooseVoc = "yes"

newPlayerSpawnPosX = 439

newPlayerSpawnPosY = 493

newPlayerSpawnPosZ = 7

newPlayerTownId = 1

newPlayerLevel = 150

newPlayerMagicLevel = 0

generateAccountNumber = "no"

 

 

 

redSkullLength = 10 * 12 * 30 * 30

blackSkullLength = 24 * 12 * 30 * 30

dailyFragsToRedSkull = 10

weeklyFragsToRedSkull = 30

monthlyFragsToRedSkull = 70

dailyFragsToBlackSkull = dailyFragsToRedSkull

weeklyFragsToBlackSkull = weeklyFragsToRedSkull

monthlyFragsToBlackSkull = monthlyFragsToRedSkull

dailyFragsToBanishment = dailyFragsToRedSkull

weeklyFragsToBanishment = weeklyFragsToRedSkull

monthlyFragsToBanishment = monthlyFragsToRedSkull

blackSkulledDeathHealth = 40

blackSkulledDeathMana = 0

useBlackSkull = true

useFragHandler = true

advancedFragList = false

 

 

notationsToBan = 3

warningsToFinalBan = 4

warningsToDeletion = 5

banLength = 7 * 24 * 60 * 60

killsBanLength = 8 * 24 * 60 * 60

finalBanLength = 30 * 24 * 60 * 60

ipBanishmentLength = 1 * 24 * 60 * 60

broadcastBanishments = true

maxViolationCommentSize = 200

violationNameReportActionType = 2

autoBanishUnknownBytes = false

 

 

worldType = "pvp"

protectionLevel = 100

pvpTileIgnoreLevelAndVocationProtection = true

pzLocked = 50 * 700

huntingDuration = 60 * 1000

criticalHitChance = 7

criticalHitMultiplier = 1

displayCriticalHitNotify = false

removeWeaponAmmunition = false

removeWeaponCharges = false

removeRuneCharges = "no"

whiteSkullTime = 5 * 10 * 100

noDamageToSameLookfeet = false

showHealingDamage = true

showHealingDamageForMonsters = false

fieldOwnershipDuration = 5 * 1000

stopAttackingAtExit = false

oldConditionAccuracy = false

loginProtectionPeriod = 10 * 1000

deathLostPercent = 10

stairhopDelay = 2 * 1000

pushCreatureDelay = 2 * 1000

deathContainerId = 1987

gainExperienceColor = 215

addManaSpentInPvPZone = true

squareColor = 0

allowFightback = true

 

 

worldId = 0

ip = "baiak-falumir.servegame.com"

bindOnlyConfiguredIpAddress = false

loginPort = 7171

gamePort = 7172

adminPort = 7171

statusPort = 7171

loginTries = 10

retryTimeout = 5 * 1000

loginTimeout = 60 * 1000

maxPlayers = 100

motd = "Bem Vindos ao Baiak Falumir! (: "

displayOnOrOffAtCharlist = false

onePlayerOnlinePerAccount = true

allowClones = false

serverName = "Map Edit LP !"

loginMessage = ".:: Bem Vindo ao Baiak Falumir ::. 8.60. "

statusTimeout = 5 * 60 * 1000

replaceKickOnLogin = true

forceSlowConnectionsToDisconnect = false

loginOnlyWithLoginServer = false

premiumPlayerSkipWaitList = false

 

 

sqlType = "sqlite"

sqlHost = "localhost"

sqlPort = 3306

sqlUser = "root"

sqlPass = ""

sqlDatabase = "forgottenserver"

sqlFile = "forgottenserver.s3db"

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTimeout = 10

encryptionType = "plain"

 

 

deathListEnabled = true

deathListRequiredTime = 1 * 60 * 1000

deathAssistCount = 19

maxDeathRecords = 5

 

 

ingameGuildManagement = true

levelToFormGuild = 8

premiumDaysToFormGuild = 0

guildNameMinLength = 4

guildNameMaxLength = 20

 

 

highscoreDisplayPlayers = 100

updateHighscoresAfterMinutes = 2

 

 

buyableAndSellableHouses = true

houseNeedPremium = true

bedsRequirePremium = true

levelToBuyHouse = 150

housesPerAccount = 0

houseRentAsPrice = false

housePriceAsRent = false

housePriceEachSquare = 1000

houseRentPeriod = "never"

houseCleanOld = 0

guildHalls = false

 

 

timeBetweenActions = 200

timeBetweenExActions = 1000

checkCorpseOwner = true

hotkeyAimbotEnabled = true

maximumDoorLevel = 500

 

 

mapName = "BaiakMap"

mapAuthor = "Baiak Lula"

randomizeTiles = true

useHouseDataStorage = false

storeTrash = true

cleanProtectedZones = true

mailboxDisabledTowns = "-1"

 

 

defaultPriority = "high"

niceLevel = 5

coresUsed = "-1"

optimizeDatabaseAtStartup = true

removePremiumOnInit = true

confirmOutdatedVersion = false

 

 

maxMessageBuffer = 4

bufferMutedOnSpellFailure = false

 

 

dataDirectory = "data/"

allowChangeOutfit = true

allowChangeColors = true

allowChangeAddons = true

disableOutfitsForPrivilegedPlayers = false

bankSystem = true

saveGlobalStorage = true

displaySkillLevelOnAdvance = false

spellNameInsteadOfWords = false

emoteSpells = false

promptExceptionTracerErrorBox = true

storePlayerDirection = false

monsterLootMessage = 3

monsterLootMessageType = 25

separateViplistPerCharacter = false

 

 

ghostModeInvisibleEffect = false

ghostModeSpellEffects = true

 

 

idleWarningTime = 14 * 60 * 1000

idleKickTime = 1000 * 1000 * 10000

expireReportsAfterReads = 1

playerQueryDeepness = 2

maxItemsPerPZTile = 0

maxItemsPerHouseTile = 0

 

 

freePremium = true

premiumForPromotion = true

 

 

blessingOnlyPremium = true

blessingReductionBase = 30

blessingReductionDecreament = 5

eachBlessReduction = 8

 

 

experienceStages = "no"

rateExperience = 250

rateExperienceFromPlayers = 0

rateSkill = 100

rateMagic = 100

rateLoot = 5

rateSpawn = 4

 

 

rateMonsterHealth = 1.0

rateMonsterMana = 1.0

rateMonsterAttack = 1.0

rateMonsterDefense = 1.0

 

 

minLevelThresholdForKilledPlayer = 0.9

maxLevelThresholdForKilledPlayer = 1.1

 

 

rateStaminaLoss = 1

rateStaminaGain = 3

rateStaminaThresholdGain = 12

staminaRatingLimitTop = 41 * 60

staminaRatingLimitBottom = 14 * 60

rateStaminaAboveNormal = 1.5

rateStaminaUnderNormal = 0.5

staminaThresholdOnlyPremium = true

 

 

experienceShareRadiusX = 30

experienceShareRadiusY = 30

experienceShareRadiusZ = 1

experienceShareLevelDifference = 2 / 3

extraPartyExperienceLimit = 20

extraPartyExperiencePercent = 5

experienceShareActivity = 2 * 60 * 1000

 

 

globalSaveEnabled = false

globalSaveHour = 8

shutdownAtGlobalSave = true

cleanMapAtGlobalSave = false

 

 

deSpawnRange = 2

deSpawnRadius = 50

 

 

maxPlayerSummons = 0

teleportAllSummons = false

teleportPlayerSummons = false

 

 

ownerName = "Trevas OT"

ownerEmail = "Ernani-fernadess@hotmail.com"

url = "Em Breve"

location = "Brasil"

displayGamemastersWithOnlineCommand = false

 

 

adminLogsEnabled = false

displayPlayersLogging = true

prefixChannelLogs = ""

runFile = ""

outLogName = ""

errorLogName = ""

truncateLogsOnStartup = false

 

 

 

FIRST:

 

local firstItems = {}

firstItems[0] =

{

2173,

2525,

3965,

2124,

2457,

2647,

2643

}

firstItems[1] =

{

2173,

2525,

2190,

2124,

2457,

2647,

2643

}

firstItems[2] =

{

2173,

2525,

2182,

2124,

2457,

2647,

2643

}

firstItems[3] =

{

2173,

2525,

2399,

2124,

2457,

2647,

2643

}

firstItems[4] =

{

2173,

2525,

2428,

2124,

2457,

2647,

2643

}

function onLogin(cid)

if getPlayerStorageValue(cid, 30001) == -1 then

for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do

doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)

end

if getPlayerSex(cid) == 0 then

doPlayerAddItem(cid, 2463, 1)

else

doPlayerAddItem(cid, 2463, 1)

end

local bag = doPlayerAddItem(cid, 11257, 1)

doAddContainerItem(bag, 2160, 50)

doAddContainerItem(bag, 2554, 1)

doAddContainerItem(bag, 2120, 1)

doAddContainerItem(bag, 7618, 1)

setPlayerStorageValue(cid, 30001, 1)

end

return TRUE

end

 

 

Ajuda ai.

 

Ninguem mais?

notle2012N
03 de outubro de 2012 às 01:53

bom pra editar os itens que vai começa

no seu firstitems.lua

edita os que eu deixei em red

vc coloca os ID dos seu itens

local firstItems = {}

firstItems[0] =

{

2173,

2525,

3965,

2124,

2457,

2647,

2643

}

firstItems[1] =

{

2173,

2525,

2190,

2124,

2457,

2647,

2643

}

firstItems[2] =

{

2173,

2525,

2182,

2124,

2457,

2647,

2643

}

firstItems[3] =

{

2173,

2525,

2399,

2124,

2457,

2647,

2643

}

firstItems[4] =

{

2173,

2525,

2428,

2124,

2457,

2647,

2643

}

function onLogin(cid)

if getPlayerStorageValue(cid, 30001) == -1 then

for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do

doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)

end

if getPlayerSex(cid) == 0 then

doPlayerAddItem(cid, 2463, 1)

else

doPlayerAddItem(cid, 2463, 1)

end

local bag = doPlayerAddItem(cid, 11257, 1)

doAddContainerItem(bag, 2160, 50)

doAddContainerItem(bag, 2554, 1)

doAddContainerItem(bag, 2120, 1)

doAddContainerItem(bag, 7618, 1)

setPlayerStorageValue(cid, 30001, 1)

end

return TRUE

end

agora vou dizer cada parte que ta em red pra vc entender melhor

essa parte e itens do Sorcerer

firstItems[1] =
{
2173,
2525,
2190,
2124,
2457,
2647,
2643
}

ja essa parte e itens do Druid

firstItems[2] =
{
2173,
2525,
2182,
2124,
2457,
2647,
2643
}

Já Essa do pally

firstItems[3] =
{
2173,
2525,
2399,
2124,
2457,
2647,
2643
}

ja essa do kina

firstItems[4] =
{
2173,
2525,
2428,
2124,
2457,
2647,
2643
}

Editado Outubro 3 por notle2012

hadamaisH
03 de outubro de 2012 às 02:41

Bele amigo...essa parte entendi. Arrumarei aqui, mas como faço pra tirar XP dos monstros, e deixar XP só em player?

leleshoL
03 de outubro de 2012 às 02:56

Olha amigo, sou novo aqui no Xtibia mas vou tentar te ajudar.

 

Abra seu Config.lua

 

-- Rates
rateExp = 5

 

Coloque = 0

 

Agora para Player ganhar EXP

 

e coloque

 

experienceByKillingPlayers = "no"

 

em Yes

 

Espero ter ajudado.

Editado Outubro 3 por lelesho

hadamaisH
03 de outubro de 2012 às 11:07

essa linha ai não tem, mas tem essa

 

rateExperienceFromPlayers = 0

 

?

leleshoL
03 de outubro de 2012 às 13:02

Acho que seria essa.

Coloque a EXP que o player iria ganha ao matar o player exemplo

5 seria 5X.

 

Não sei se seria isso, tenta ai acho que vai dar certo.

hadamaisH
03 de outubro de 2012 às 15:37

Cara, bele...precisa mudar mais alguma coisa pra ficar um Enforced bem bacana?

O modo da qual foi configura os FIRST Items, começará com as bp's de potion ja e etc?

 

Será que da pra colocar os first items ai no jeito só pra eu colocar no lugar dos meus?

leleshoL
03 de outubro de 2012 às 18:02

O pvp enforced funcinou se não posta aqui a parte que refere os RATES pra mim dar uma olhada.

 

Agora os first itens

Você tem que configurar como o nosso amigo notle2012 falou lá em cima.

Segue os passos que ele falou que vai funcionar caso não funcione eu tento fazer pra você.

hadamaisH
03 de outubro de 2012 às 22:33

Consegui, pode fechar :D

LordfireL
03 de outubro de 2012 às 22:35

Tópico movido para a seção de dúvidas e pedidos resolvidos.