[7.92][zorzin] config lua [Archiwum] - Forum tibia.org.pl

PDA

Poka¿ Pe³n± Wersjê : [7.92][zorzin] config lua


Pathir
26-07-2007, 01:06
witam! potrzebuje pomocy. Czy zna ktos jakis link gdzie moge znalezc opisane po polsku ka¿d± funkcje w config lua? bo ja mam chyba to po brazylijsku napisane i wszystkiego nie rozumim.

-------- config.lua --------
-- Config file for OTServ --
----------------------------

-- server ip (the ip that server listens on)
ip = "5.158.64.59"

-- server port (the port that server listens on)
port = "7171"

-- Mostrar os GMS Online no comando !online? (Default: no)
show_gms_online = "no"

-- Regeneração de Life e Mana quando o char está durmindo (Default: 5)
bed_regen = 5

-- Hotkey System? (yes/no)
hotkey_system = "yes"

-- Server Save (em minutos)
serversave = 5

--------------------------------------------------------------------
------------- Runas e Cargas Configs ---------------
--------------------------------------------------------------------

-- * Em price, coloque o preço.
-- * Em charges, coloque o numero de cargas.

-- Heavy Magic Missile (HMM)
price_hmm = 50
charges_hmm = 100

-- Ultimate Healing Rune (UH)
price_uh = 150
charges_uh = 100

-- Great Fireball (GFB)
price_gfb = 100
charges_gfb = 100

-- Explosion Rune (EXPLOSION)
price_explo = 150
charges_explo = 100

-- Sudden Death Rune (SD)
price_sd = 250
charges_sd = 100

--------------------------------------------------------------------
-------------- Surprise Bags Configs -----------------
--------------------------------------------------------------------

-- Dropar Surprise Bags nos Monstros? (yes/no)
surprise_bags = "yes"

-- Porcentagem de dropar a Blue Bag
blue_bag_percent = 40

-- Porcentagem de dropar a Red Bag
red_bag_percent = 40

-- Id da Blue Bag
blue_bag_id = 6570

-- Id da Red Bag
red_bag_id = 6571

--------------------------------------------------------------------
---------------- Rookgaard Configs --------------------
--------------------------------------------------------------------

-- TownID de Rookgaard
rook_townid = 8

-- Players podem ser Rookados? (yes/no)
player_can_be_rooked = "yes"

-- Level para ser Rookado
level_to_be_rooked = 7

--------------------------------------------------------------------
--------- Premium/Promotion Configs ------------
--------------------------------------------------------------------

-- TownID da cidade Free (quando a premium acabar o player será teleportado para este templo)
free_townid = 1

-- Preço de um Dia de Premium Account
premium_price = 5000

-- Preço da Promotion
promotion_price = 25000

-- Mensagem que será mandada quando a premium acabar
prem_msg = "Your premium account has expired."

-- Mensagem que será mandada quando o player for Free e tentar usar uma Magia de Premium
premium_spells_msg = "You need a premium account to cast this spell."

-- Mensagem que será mandada quando o player não for Promoted e tentar usar uma Magia de Promoted
promotion_spells_msg = "You need a promotion to cast this spell."

--------------------------------------------------------------------
---------- Randomize Ground Configs ------------
--------------------------------------------------------------------

-- Randomize Ground? (yes/no)
randomize_ground = "yes"

-- Water Percent
water_percent = 70

-- Lava Percent
lava_percent = 10

-- Swamp Percent
swamp_percent = 50

-- Tar Percent
tar_percent = 10

-- Mountain Percent
mountain_percent = 50

-- Rocks Percent
rocks_percent = 60

-- Grass Percent
grass_percent = 80

-- Underwater Ground Percent
underwater_percent = 70

--------------------------------------------------------------------
------------------- Stamina Configs ---------------------
--------------------------------------------------------------------

-- Quantos segundos de Stamina perder a cada monstro
stamina_lost_monster = 10

-- Quantos segundos de Stamina adicionar a cada Segundo que o player estiver offline?
stamina_amount = 2

--------------------------------------------------------------------
---------------- Fight Modes Configs ------------------
--------------------------------------------------------------------

-- Full Attack {atk, def}
full_attack = {"100","50"}

-- Balanced {atk, def}
balanced = {"75","75"}

-- Full Defense {atk, def}
full_defense = {"50","100"}

--------------------------------------------------------------------
---------------------- Loss Configs ------------------------
--------------------------------------------------------------------

-- Exp Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
exp_loss = {"10", "9", "8", "7", "6", "5"}

-- Promoted Exp Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
promoted_exp_loss = {"7", "6", "5", "4", "3", "2"}

-- Magic Level Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
magiclevel_loss = {"10", "9", "8", "7", "6", "5"}

-- Promoted Magic Level Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
promoted_magiclevel_loss = {"7", "6", "5", "4", "3", "2"}

-- Skills Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
skills_loss = {"10", "9", "8", "7", "6", "5"}

-- Promoted Skills Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
promoted_skills_loss = {"7", "6", "5", "4", "3", "2"}

-- Items Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
items_loss = {"40", "39", "38", "37", "36", "35"}

-- Promoted Items Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
promoted_items_loss = {"37", "36", "35", "34", "33", "32"}

-- Backpack Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
backpack_loss = {"100", "100", "100", "100", "100", "100"}

-- Promoted Backpack Loss (sem bless, bless1, bless2, bless3, bless4, bless5)
promoted_backpack_loss = {"100", "100", "100", "100", "100", "100"}

--------------------------------------------------------------------

-- Trade Ticks (em segundos)
trade_ticks = 120

-- Mensagem que irá aparecer quando o player tentar mandar mensagem no Trade e tiver com tradeTicks
trade_delay_msg = "You may only place one offer in two minutes."

-- Level que não pode conversar nos Channels
speak_lvl = 1

-- Mensagem que será enviada quando um player tiver o level que não é permitido para conversar nos channels
speak_msg = "You may not speak into channels as long as you are on level 1."

-- ID da Bag/Backpack que será adicionada quando o player morrer
bag_id = 1987

-- Rate de Exp para PVP-Enforced (quando matar outro player)
rate_enforced_exp = 3

-- Aparecer a Mensagem quando um player da mesma Account tenta entrar no MC em um char da mesma account? (yes/no)
show_account_already_logged_msg = "yes"

-- Mensagem que irá aparecer quando player da mesma Account tentar entrar no MC em um char da mesma account
account_already_logged_msg = "You may not login in a character of the same account at the same time."

--------------------------------------------------------------------
------------------ Exp Color Configs --------------------
--------------------------------------------------------------------

-- Ficar trocando de cor a Exp randomicamente? (yes/no) (Se for Yes, a Exp vai sair cada hora de uma cor)
exp_color_random = "no"

-- Cor da Exp (apenas se exp_color_random for "no")
exp_color = 0

--------------------------------------------------------------------
--------------- Square Color Configs -----------------
--------------------------------------------------------------------

-- Ficar trocando de cor o Black Square randomicamente? (yes/no) (Se for Yes, o Black Square vai sair cada hora de uma cor)
square_color_random = "no"

-- Cor do Black Square (apenas se square_color_random for "no")
exp_color = 215

--------------------------------------------------------------------
--------------------- Outfit Configs -----------------------
--------------------------------------------------------------------

-- GMs podem trocar de outfit? (yes/no)
gms_change_outfit = "yes"

-- Tutors podem trocar de outfit? (yes/no)
tutors_change_outfit = "yes"

-- Players Normais podem trocar de outfit? (yes/no)
players_change_outfit = "yes"

-- Mensagem que será mandada quando um player não puder trocar de outfit
change_outfit_msg = "Sorry, you cannot change your outfit."

--------------------------------------------------------------------
---------------------- AFK Configs ------------------------
--------------------------------------------------------------------

-- Tempo em que o player será kickado se ficar AFK (15*60*1000 = 15 minutos)
afk_time = 15*60*1000

-- Tempo em que será mandada a mensagem para o player que ele está AFK (1*60*1000 = 1 minuto antes de ser kickado)
afk_time_msg = 1*60*1000

-- Mensagem que irá aparecer quando ele estiver AFK por um tempo
afk_msg = "You have been idle for 15 minutes. You will be disconnected in one minute if you are still idle then."

-- Turn elemina o AFK Time? (por exemplo.. Ctrl Up, Ctrl Down, Ctrl Left, Ctrl Right) (yes/no)
afk_turn_work = "no"

-- AFK para Gms? (yes/no)
afk_for_gms = "no"

--------------------------------------------------------------------

-- Speed Formula (Default: 220)
speed_form = 1000

-- Velocidade de GMs (Default: 1000)
gm_speed = 2000

-- Atirar diretamente runas nos players pelo Battle? (yes/no)
directly_shoot_battle = "no"

-- Cap System (yes/no)
cap_system = "no"

-- Mostrar o peso do item quando der look nele? (yes/no)
show_item_weight = "yes"

-- Players podem atacar Sumons? (yes/no)
can_attack_summons = "no"

--------------------------------------------------------------------
--------------- Regras do OT Configs -----------------
--------------------------------------------------------------------

-- OBS: As regras você edita no arquivo: data/rules.xml

-- Mostrar Janela com as Regras no primeiro Login do player? (yes/no)
show_rules_first_login = "yes"

-- Qual o ID do Item que aparecerá na Janela das Regras
rules_box_itemid = 1990

--------------------------------------------------------------------
--------------- Tutor System Configs -----------------
--------------------------------------------------------------------

-- Mostrar nome do Access de um player quando der look nele? (yes/no)
show_access_name = "yes"

-- Access para mover items de longe
access_to_move_items = 4

--------------------------------------------------------------------
------------ Account Manager Configs -------------
--------------------------------------------------------------------

-- Acc Manager? (yes/no)
acc_manager = "yes"

-- Manager Account Number
manager_accnumber = 111111

-- Manager Password
manager_password = "111111"

-- Account Number que o player vai receber uma Mensagem para que ele entre na Account/Senha digitada acima
manager_receive_msg_account = 1

-- Nome do Acc Manager
manager_name = "Acc Manager"

-- Criar chars em rook? (no-vocation)
manager_rook = "yes"

-- Health do char que será criado
manager_health = 150

-- Mana do char que será criado
manager_mana = 0

-- Exp do char que será criado
manager_exp = 0

-- Level do char que será criado
manager_level = 1

-- Capacity do char que será criado
manager_capacity = 400

-- Magic Level do char que será criado
manager_maglevel = 0

-- TownID do char que será criado
manager_townid = 9

-- Outfit do char que será criado
manager_looktype = 128
manager_lookhead = 20
manager_lookbody = 30
manager_looklegs = 40
manager_lookfeet = 50

-- Adicionar items no char criado? (yes/no)
manager_additems = "yes"

-- Item nos slots (coloque 0 para desativar)
manager_head = 2457
manager_necklace = 0
manager_armor = 2463
manager_shield = 2509
manager_weapon = 2383
manager_legs = 2647
manager_boots = 2643
manager_ammunation = 0
manager_ring = 0
manager_backpack = 2001

-- Items dentro da backpack do char criado {id1, count1, id2, count2, id3, count3, id4, count4} (Coloque 0 no ID para desativar)
manager_items_in_backpack = {"2120","1","2674","1","2160","5","0","1"}

--------------------------------------------------------------------
------------------ Buyhouse Configs -------------------
--------------------------------------------------------------------

-- Preço de 1 SQM da house
houseprice = 200

-- Level mínimo para comprar uma house
houselevel = 25

-- Mostrar preço da house quando der look na porta da house? (yes/no)
show_house_price = "yes"

-- Houses somente para Premium Players? (yes/no)
houses_only_for_premium_players = "yes"

--------------------------------------------------------------------
---------------- Skull System Configs -----------------
--------------------------------------------------------------------

-- Time to lose a white skull (1 = 1 minute)
whitetime = 20

-- Time to lose one frag (1 = 1 hour)
fragtime = 1

-- Ban unjust, how many frags you need to get banned (1 = 1 frag)
banunjust = 6

-- Red skull unjust, how many frags you need to get a red skull (1 = 1 frag)
redunjust = 3

-- Bantime, for how long the player is banned (1 = 1 hour)
bantime = 24*1


--------------------------------------------------------------------
----------- Protection System Configs -------------
--------------------------------------------------------------------

-- Protection System? (yes/no)
protection_system = "yes"

-- Máximo Level em que o player será protegido
protection_level = 50

-- Mensagem que será mandada quando um player tentar atacar um outro que está protected
protection_msg = "You may not attack a player that has level 50 or lower."

--------------------------------------------------------------------
-------------- ItemID Changer Configs --------------
--------------------------------------------------------------------

-- Trocar ItemIDS? (yes/no)
change_itemids = "yes"

-- Quantos items trocar?
howmany_items = 14

-- ItemID Antes
itemid_before = {"1263", "1264", "1265", "1266", "1267", "1268", "5276", "5277", "1273", "1274", "3449", "3450", "1275", "1276"}

-- ItemID Depois
itemid_after = {"6436", "6437", "6440", "6441", "6444", "6445", "6470", "6471", "6454", "6455", "6458", "6459", "6462", "6463"}

--------------------------------------------------------------------
------------------- Buy/Sell Configs --------------------
--------------------------------------------------------------------

-- Max Items to buy (if item is not countable - Ex: rope, crown armor) (Default: 200)
max_items_notcountable = 200

-- Max Items to buy (if item is countable - Ex: meat, ham) (Default: 2000)
max_items_countable = 2000

-- The message that will be sent when the player try to buy more then the max items (Default: "Sorry, you can not buy more than ")
max_items_msg = "Sorry, you can not buy more than "

--------------------------------------------------------------------

-- Infinitas Ammunation (Bolts/Arrows/etc..) (yes/no)
infinite_ammunation = "yes"

-- Infinitas Runas (yes/no)
infinite_runecharges = "no"

-- Max Death Entries
maxdeathentries = 50

-- Porcentagem de sair Leathers quando usar a obsidian knife no dead monster (dragons, minos, dragon lord, behemoth, bone beast) (de 0-100) (Default: 8)
obsidian_knife_chance = 8

-- Porcentagem de sair Vampire Dust ou Demon Dust quando usar a blessed wooden stake em Vampire/Demon (de 0-100) (Default: 10)
blessed_wooden_chance = 10

-- Mensagem em vermelho quando o player der login (coloque "none" para desativar)
red_login_msg = "Welcome to Zorzin OTServer."

-- Mostrar o "xx players online" no console? (yes/no)
see_playersonline = "yes"

-- Mostrar o "Reject player - reason: xx" no console? (yes/no)
see_rejectmsg = "yes"

-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------

-- data directory location
datadir = "data/"

-- map location
map = "data/world/SadTeam.otbm"

-- mapkind
-- options: OTBM for binary map, XML for OTX map
mapkind = "OTBM"

-- map store location (for XML only)
mapstore = "data/world/SadTeam-mapstore.xml"

-- house store location (for XML only)
housestore = "data/world/SadTeam-housestore.xml"

-- bans storage (for XML only)
banIdentifier = "data/bans.xml"

-- server name
servername = "Zorzin OTServ"

-- server location
location = "Poland"

-- server url
url = ""

-- server owner name
ownername = "Zorzin"

-- server owner email
owneremail = "zorzin_ot@hotmail.com"

-- world name
worldname = "Zorzin OT"

-- world type
-- options: pvp, no-pvp, pvp-enforced
worldtype = "pvp"

-- exhausted time in ms (1000 = 1 second)
exhausted = 50

-- how many ms to add if the player is already exhausted and tries to cast a spell (1000 = 1 second)
exhaustedadd = 10

-- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1 second)
pzlocked = 1*60*1000

-- house rent period
-- options: daily, weekly, monthly
houserentperiod = "monthly"

-- rates (experience, skill, magic level and loot)
rate_exp = 15
rate_skill = 50
rate_mag = 15
rate_loot = 22
rate_spawn = 1

-- motd (the message box that you sometimes get before you choose characters)
motd = "Welcome to Zorzin OTServer!"
motdnum = "1"

-- login message
loginmsg = "Welcome to Zorzin OTServer."

-- how many logins attempts until ip is temporary disabled
-- set to 0 to disable
logintries = 5

-- how long the retry timeout until a new login can be made (without disabling the ip)
retrytimeout = 5000

-- how long the player need to wait until the ip is allowed again
logintimeout = 15 * 60 * 1000

-- allow clones (multiple logins of the same char)
-- options: 0 (no), 1 (yes)
allowclones = 0

-- max number of players allowed
maxplayers = "15"

-- md5 passwords for accounts
-- options: yes, no
md5passwords = "no"

-- SQL type
-- options: mysql, sqlite
sql_type = "mysql"

--- MySQL part (ignore if you are using SQLite)
sql_host = "localhost"
sql_user = "root"
sql_pass = ""
sql_db = "zorzin"

--- SQLite part (ignore if you are using MySQL)
sqlite_db = "db.s3db"

Prosze o pomoc z góry dziêkuje;]

Artro
26-07-2007, 19:07
Caly zorzin jest piasny przez brazylijczykow wiec niespodziewaj sie, ze bedzie instrukcja po polsku ;p Mozesz poprosic kogos, zeby ci to przetlumaczyl, ale watpie by ktos na tym forum znal brazylijski... Poza tym nie wiem czy nie trzeba by zmieniac calego silnika itd. Choc nie znam sie na tym ;p

Howl
26-07-2007, 20:03
Na otfans powinien byæ link do angielskiej wersji config.lua
Tu link do config.lua angielskiego
hXXp://rapidshare.com/files/45190286/config.lua.html
XX=tt