Forum Tibia-Cs

Emol
29.10.2008 07:12:39

Posty: 91 #171637
Cz.1

Witam!
Chciałbym opisać Wam jak zrobić własnego ots'a krok po kroku
Poradnik jest mój nie kopiowałem go znikąd.

A więc zaczynamy:

Pierwszą rzeczą jest ściągniecie jakiegoś ots'a, podam parę linków do najbardziej popularnych otsów:

YurOTS 0.94d [7.6]


TYLKO ZAREJESTROWANI I ZALOGOWANI UŻYTKOWNICY WIDZĄ LINKI. DARMOWA REJESTRACJA



Armonia [7.6] [Fast Attack]


TYLKO ZAREJESTROWANI I ZALOGOWANI UŻYTKOWNICY WIDZĄ LINKI. DARMOWA REJESTRACJA



Evolutions 0.7.9 [8.0]


TYLKO ZAREJESTROWANI I ZALOGOWANI UŻYTKOWNICY WIDZĄ LINKI. DARMOWA REJESTRACJA



Evo by Aciek [8.1]


TYLKO ZAREJESTROWANI I ZALOGOWANI UŻYTKOWNICY WIDZĄ LINKI. DARMOWA REJESTRACJA



No to tyle wystarczy, my się będziemy wzorować się na YurOTS 0.94d [7.6]. Więc ściągamy rozpakowujemy obojętnie gdzie, następnie wchodzimy w folder ots.

Widzimy plik o nazwie config.lua właśnie w nim ustawiamy jaki exp ma być na serverze itp.

No to co wchodzimy w niego

Hmm.. na pierwszy rzut oka wydaje się troszkę skomplikowane ale nie jest
1)
>>>>>>KONFIGURACJA PLIKU CONFIG.LUA<<<<<<

---------------------------- OTServ configuration ------------------------------

-- datadir
datadir = "data/" ----- nie zmieniamy !

-- sets what map to load
map = "data/world/test.otbm" ----- miejsce gdzie znajduje się mapa, nie zmieniamy !

-- OTBM for binary, SQL for SQL map, XML for OTX maps
mapkind = "OTBM" ----- nazwa formatu mapy, nie zmieniamy !

-- SQL for acc/player info from SQL, XML for acc/player info from XML
sourcedata = "XML" ---- nie zmieniamy !

-- the message the player gets when he logs in
loginmsg = "Welcome to YurOTS" ----- Co ma się wyświetlić gdy ktoś wejdzie na konto
-- the port otserv listens on
port = "7171" ----- Port twojego ots'a domyślnie 7171

-- name of our server
servername = "YurOTS" ----- Nazwa twojego servera

-- name of the owner of our server
ownername = "Yurez" ----- Imię właściciela ots'a

-- email of the owner of our server
owneremail = "Twój e-mail" ----- Twój e-mail ( nie trzeba wpisywać)

-- the url for more server info
url = "" ----- Link do twojego Acc Makera (o tym w następnym poradniku)

-- the location of the server
location = "Poland" ----- Lokacja servera

-- the ip the server should redirect too
ip = "127.0.0.1" ----- Twoje Ip

-- The messagebox you sometimes get before you choose characters
motd = "Welcome to YurOTS" ------Tutaj wpisz jaką mają dostawać informację gracze, którzy się zalogują na postać
motdnum="0"

-- use md5 passwords for accounts, yes/no
md5passwords = "no" ----- Nie ruszamy !

-- world type. options: pvp, no-pvp, pvp-enforced
worldtype = "pvp" ----- Typ naszego servera (pvp, no-pvp, pvp-enforced)

-- max number of players allowed
maxplayers = "28" ----- Maksymalna ilość graczy online jaka może być na serverze

-- exhausted time in ms (1000 = 1sec)
exhausted = 2000 ----- Tutaj ile ma trwać exhausted 0-w ogóle nie będzie exhausted

-- exhaustion time for healing spells (1000 = 1sec)
exhaustedheal = 1000 Tak jak wyżej tylko z czarami leczącymi

-- how many ms to add if the player is already exhausted and tries to cast a spell (1000 = 1sec)
exhaustedadd = 300 ---- Zostawiamy tak jak jest !

-- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1sec)
pzlocked = 10*1000 ----- Zostawiamy tak jak jest !

-- allow multiple logins of the same char
allowclones = 0 ----- Czy może wejść więcej niż 1 osoba na ten sam char? Dając "0" nie, dając "1" tak


-- vocation names
vocations = {"a sorcerer", "a druid", "a paladin", "a knight"} ----- nazwy postaci bez promocji
promoted_vocations = {"a master sorcerer", "an elder druid", "a royal paladin", "an elite knight"} ----- Nazwy profesji z promocją


--- SQL part
sql_host = "localhost" ----- Nie ruszamy !
sql_user = "root" ----- Nie ruszamy !
sql_pass = "" ----- Nie ruszamy !
sql_db = "otserv" ----- Nie ruszamy !


--- SQL MAP part
sqlmap = "test_map" ----- Nie ruszamy !
map_host = "localhost"----- Nie ruszamy !
map_user = "root" ----- Nie ruszamy !
map_pass = "" ----- Nie ruszamy !
map_db = "" ----- Nie ruszamy !

------------------------- YurOTS basic configuration ---------------------------

-- name of your world (seen on the character list when logging in)
worldname = "YurOTS" ----- Nazwa servera

-- how often do server saves it's state (0 = off, 5 = 5min, 60 = hour)
autosave = 10 ----- Co ile czasu ma być zapisywany server

-- do you want to enable cap system? (yes/no)
capsystem = "no" ----- Czy ma być cap system

-- do you want players to learn spells before they can use them? (yes/no)
learnspells = "yes" ----- Czy musimy uczyć się czarów

-- do you want to give premium account to all players? (yes/no)
freepremmy = "no" ----- Czy gracze mają pacc'a od początku gry

-- do you want premium players to wait in queue as others? (yes/no)
queuepremmy = "yes" ----- Czy gracze mają premium od początku gry

-- how much % of {exp, mana, skill, eq, bp} do you lose when dying
diepercent = {"7", "7", "7", "7", "100"} ----- Ile % tracimy expa itp. przy dead

-- how many summons player can have
maxsummons = 2 ---- Ile możemy maksymalnie sumonowac potworów

-- do you want to give summons for all vocations? (yes/no)
summonsallvoc = "no" ----- Czy wszystkie profesje mogą sumonowac potwory

-- chance of losing a spear when shot (0 - none lost, 100000 - all lost)
spearlosechance = 50

-- anti-afk - maximum idle time to kick player (1 = 1min)
kicktime = 15 ----- Po ilu minutach bez ruchu postać ma dostać kick'a

-- maximum number of items player can keep in his/her depot
maxdepotitems = 1000 ----- Maksymalna ilość itemów w depo

-- maximum number of items on a house tile (including those in containers)
maxhousetileitems = 10 ----- Maksymalna ilość itemów w domku

-- how much death entries are saved in players file (old are deleted)
maxdeathentries = 10

-- mana consumend by {snakebite, moonlight, volcanic, quagmire, tempest} rod
rodmana = {"2", "3", "5", "8", "13"}

-- mana consumed by wand of {vortex, dragonbreath, plague, cosmic energy, inferno}
wandmana = {"2", "3", "5", "8", "13"}

-- shooting range of {snakebite, moonlight, volcanic, quagmire, tempest} rod
rodrange = {"4", "3", "2", "1", "3"}

-- shooting range of wand of {vortex, dragonbreath, plague, cosmic energy, inferno}
wandrange = {"4", "3", "2", "1", "3"}

-- damage of burst arrows blast
-- default is from (1*lvl+5*mlvl)*0.24 to (1*lvl+5*mlvl)*0.55
burstarrowdmg = {"1.0", "5.0", "0.24", "0.55"}

--------------------------- Multipliers and gains ------------------------------

-- experience multiplier (how much faster you got exp from monsters)
expmul = 10 ----- Exp razy ile ma być na ots'ie

-- experience multiplier for pvp-enforced (how much faster you got exp from players)
expmulpvp = 2 ----- Exp razy ile ma być za ludzi na pvp-enforced

-- skill multipliers: 1 - rl tibia, 10 - ten times faster etc. {no-voc, sorcerer, druid, paladin, knight}
weaponmul = {"1", "1", "1", "1", "40"} -- Ile razy szybciej rosną skille w broni
distmul = {"1", "1", "1", "40", "1"} -- Ile razy szybciej rosną skille w dystansie
shieldmul = {"1", "1", "1", "20", "20"} -- Ile razy szybciej rosną skille w obronie
manamul = {"1", "3", "3", "2", "2"} -- Ile razy szybciej rośnie magic lvl

-- how much points of life,mana,cap do you get when advancing {no-voc, sorcerer, druid, paladin, knight}
capgain = {"10", "10", "10", "20", "25"}
managain = {"5", "30", "30", "15", "5"}
hpgain = {"5", "5", "5", "10", "15"}

-- how much faster do you recovery life,mana after eating food (1 - rl tibia)
healthtickmul = 5 - Ile wzrasta hp po zjedzeniu food'a
manatickmul = 5 Ile wzrasta many po zjedzeniu food'a

-------------------------------- Skull system ----------------------------------

-- how many unjustified kills to get a red skull
redunjust = 3

-- how many unjustified kills to get banned
banunjust = 6

-- how long do you have white skull after attacking player (1 = 1min)
hittime = 1

-- how long do you have white skull after killing player (1 = 1min)
whitetime = 15

-- how long do you have red skull (1 = 1min)
redtime = 6*60

-- how long do you have to wait to lose 1 unjustified kill (1 = 1min)
fragtime = 12*60

------------------------------ GM access rights --------------------------------

-- access to walk into houses and open house doors
accesshouse = 3

-- access to login without waiting in the queue or when server is closed
accessenter = 2

-- access to ignore damage, exhaustion, cap limit and be ignored by monsters
accessprotect = 2

-- access to broadcast messages and talk in colors (#c blabla - in public channels)
accesstalk = 1

-- access to move distant items from/to distant locations
accessremote = 3

-- access to see id and position of the item you are looking at
accesslook = 2

Cz.2

2)
>>>>>>TWORZENIE GM'A<<<<<<

Wchodzimy w folder data a następnie w folder accounts, otwieramy notatnik i wpisujemy to co pisze poniżej.

<?xml version="1.0"?>
<account pass="Hasło do konta np. lol 123" type="1" premDays="Ile ma dni pacc'a np. 90">
<characters>
<character name="Nazwa GM'A np. GM Quki" />
</characters>

Następnie zapisujemy to w formacie .xml np. 123456.xml

Teraz wchodzimy znowu w folder data a potem w folder players

Ponownie otwieramy notatnik i wpisujemy tam to:

<?xml version="1.0"?>
<player name="Nick GM'A, taki sam jak wyżej pisaliśmy" account="nr do accounta taki sam jaki zapisaliśmy wyżej w formacie .xml" sex="1- Mężczyzna, 2- Kobieta" lookdir="1" exp="Ilośc Exp'a" voc="0" level="Lvl" access="3" cap="0" maglevel="300" lastlogin="1137193382" premticks="29865000" promoted="1" banned="0"><spawn x="139" y="38" z="7"/><temple x="160" y="54" z="7"/><skull type="0" kills="0" ticks="0" absolve="0"/><health now="900000" max="900000" food="1000"/><mana now="4004" max="8000" spent="4818"/><look type="75" head="0" body="95" legs="0" feet="95"/><skills><skill skillid="0" level="2081" tries="0"/><skill skillid="1" level="2000" tries="0"/><skill skillid="2" level="2254" tries="0"/><skill skillid="3" level="2000" tries="0"/><skill skillid="4" level="2073" tries="0"/><skill skillid="5" level="2000" tries="0"/><skill skillid="6" level="2000" tries="0"/></skills><spells/><deaths/><inventory><slot slotid="1"><item id="2471"/></slot><slot slotid="2"><item id="2173"/></slot><slot slotid="3"><item id="1988"><inside><item id="2160" count="59"/><item id="1988"><inside><item id="2547" count="11"/><item id="2304" count="10"/><item id="2149" count="7"/><item id="2304" count="10"/><item id="2134"/><item id="2304" count="10"/><item id="2150" count="6"/><item id="2439"/><item id="2134"/><item id="2521"/><item id="2304" count="8"/><item id="2159" count="1"/><item id="2304" count="6"/><item id="2521"/><item id="2525"/><item id="2423"/></inside></item><item id="2554"/><item id="2120"/><item id="2268" count="92"/><item id="2152" count="54"/><item id="2148" count="62"/></inside></item></slot><slot slotid="4"><item id="2652"/></slot><slot slotid="7"><item id="2507"/></slot><slot slotid="8"><item id="2195"/></slot><slot slotid="10"><item id="2163"/></slot></inventory><depots><depot depotid="5"><item id="2590"/></depot><depot depotid="4"><item id="2590"/></depot><depot depotid="3"><item id="2590"/></depot><depot depotid="2"><item id="2590"/></depot><depot depotid="1"><item id="2590"><inside><item id="2506"/><item id="2522"/><item id="2400"/><item id="2296"/><item id="2120"/><item id="2554"/><item id="2393"/><item id="2006" count="7"/><item id="2006" count="7"/><item id="2006" count="7"/><item id="2006" count="7"/><item id="2006" count="7"/><item id="2006" count="7"/><item id="2499"/><item id="2195"/><item id="1689"/><item id="1692"/><item id="2160" count="60"/></inside></item></depot></depots><storage><data key="2477" value="1"/><data key="2478" value="1"/><data key="5003" value="1"/></storage></player>

I zapisujemy tak jak nazywa się GM czyli np. GM Quki.xml (MA PASOWAĆ DO TEGO NICKA CO WPISALIŚMY W 123456.xml i tego co w GM Quki.xml)

3) Nasze Ip
Jeżeli nie wiemy jakie mamy "ip" to wchodzimy na stronę:


TYLKO ZAREJESTROWANI I ZALOGOWANI UŻYTKOWNICY WIDZĄ LINKI. DARMOWA REJESTRACJA




TYLKO ZAREJESTROWANI I ZALOGOWANI UŻYTKOWNICY WIDZĄ LINKI. DARMOWA REJESTRACJA



4) Odpalenie ots'a
Na samej górze poradnika widzimy screena na którym widać plik YurOTS.exe naciskamy w niego, właśnie odpala nam się ots czekamy aż będzie napis YurOTS Server Running... i wbijamy na ots'a tak jak na apo tylko że w ip changer wpisujemy "localhost".

No to by było na tyle Komentować xD.wykrzyknik
Zobacz ten wpis w wątku
Aby pisać na forum musisz się zalogować !!!
rss · kontakt · załóż własne forum · TestHub.pl · korzystasz z forum? wesprzyj projekt!