Ir para conteúdo
  • 0

Configurar o servidor para os players aprenderem magias


Eldran

Pergunta

Boa tarde a todos que estão lendo este tópico sobre uma dúvida que tenho para configurar o meu OT Server para os players terem que comprar as magias no NPC. Atualmente basta você ter o level necessário para poder utilizar cada spell. Postarei o meu config.lua (no qual não consta essa opção do player ter que "aprender as magias" comprando-as).

 

Config.lua:

 

 

-- The Forgotten Server Config

 

-- Account Manager

accountManager = "yes"

newPlayerChooseVoc = "no"

newPlayerSpawnPosX = 32097

newPlayerSpawnPosY = 32219

newPlayerSpawnPosZ = 7

newPlayerTownId = 15

newPlayerLevel = 1

newPlayerMagicLevel = 0

generateAccountNumber = "yes"

 

-- Banishments

broadcastBanishments = "yes"

banDays = 7

finalBanDays = 30

killsToBan = 5

 

-- Battle

worldType = "pvp"

hotkeyAimbotEnabled = "no"

protectionLevel = 0

killsToRedSkull = 3

pzLocked = 60000

deathLosePercent = 10

criticalHitChance = 7

removeAmmoWhenUsingDistanceWeapon = "yes"

removeChargesFromRunes = "yes"

timeToDecreaseFrags = 24 * 60 * 60 * 1000

whiteSkullTime = 15 * 60 * 1000

oldConditionAccuracy = "no"

alternativeExhaust = 1000

 

-- Commands

displayGamemastersWithOnlineCommand = "no"

 

-- Connection Config

ip = "127.0.0.1"

loginProtocolPort = 7171

gameProtocolPort = 7172

adminProtocolPort = 7171

statusProtocolPort = 7171

loginTries = 10

retryTimeout = 5 * 1000

loginTimeout = 60 * 1000

maxPlayers = "1000"

motd = "Welcome to the Forgotten Server!"

onePlayerOnlinePerAccount = "yes"

allowClones = 0

serverName = "Forgotten"

loginMessage = "Welcome to the Forgotten Server!"

adminLogsEnabled = "no"

statusTimeout = 5 * 60 * 1000

replaceKickOnLogin = "yes"

 

-- Deathlist

deathListEnabled = "yes"

maxDeathRecords = 5

 

-- Guilds

ingameGuildSystem = "yes"

 

-- Highscores

highscoreDisplayPlayers = 15

updateHighscoresAfterMinutes = 60

 

-- Houses

housePriceEachSQM = 1000

houseRentPeriod = "monthly"

 

-- Idle

kickIdlePlayerAfterMinutes = 15

 

-- Item Usage

timeBetweenActions = 200

timeBetweenExActions = 1000

 

-- Map

mapName = "RealMap"

mapAuthor = "Komic"

randomizeTiles = "yes"

mapStorageType = "relational"

 

-- Messaging

enableRuleViolationReports = "yes"

maxMessageBuffer = 4

 

-- MySQL

mysqlHost = "localhost"

mysqlUser = "root"

mysqlPass = ""

mysqlDatabase = "theforgottenserver"

mysqlPort = 3306

 

-- Premium Account

freePremium = "no"

 

-- PVP Server

displayOnOrOffAtCharlist = "no"

allowChangeOutfit = "yes"

noDamageToSameLookfeet = "no"

experienceByKillingPlayers = "no"

 

-- Rates

rateExp = 1

rateSkill = 3

rateLoot = 1

rateMagic = 1

rateSpawn = 1

 

-- Real Server Save

-- note: serverSaveHour means like 03:00, not that it will save every 3 hours,

-- if you want such a system use autoSaveEachMinutes. this serversave method

-- may be unstable, we recommend using otadmin if you want real serversaves.

serverSaveEnabled = "no"

serverSaveHour = 3

shutdownAtServerSave = "yes"

cleanMapAtServerSave = "yes"

 

-- Server saving

autoSaveEachMinutes = 30

saveGlobalStorage = "yes"

 

-- Spawns

deSpawnRange = 2

deSpawnRadius = 50

 

-- SqLite

sqliteDatabase = "forgottenserver.s3db"

 

-- SQL

sqlType = "sqlite"

passwordType = "plain"

 

-- Startup

defaultPriority = "high"

 

-- Shutdown

freeMemoryAtShutdown = "yes"

 

-- Status

ownerName = ""

ownerEmail = "@otland.net"

url = "http://otland.net/"

location = "Europe"

 

 

OBS: Tentei adicionar no config.lua a linha "learnspells = yes" mas sem sucesso.

Editado por Eldran
Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

×
×
  • Criar Novo...