- Tibia http://www.tibia33.pun.pl/index.php - Poradniki http://www.tibia33.pun.pl/viewforum.php?id=1 - jak zrobic 1 ots?tu pisze http://www.tibia33.pun.pl/viewtopic.php?id=12 |
Admin - 2008-02-24 11:21:12 |
Jak zrobić Open Tibia Server (OTS) pod YurOTS 0.9.4d Kod:Opis configu.lua ----config.lua-------------- -- Config file for otserv -- Comments start with a -- ---------------------------- -- datadir datadir = "data/" <---- to zostawiamy -- mapfile -- sets what map to load mapfile = "data/world/map.otx" <---- to zostawiamy -- loginmsg -- the message the player gets when he logs in loginmsg = "Witaj na moim OTS" <---- tu wpisz co ma sie pokazac jak ktos bedzie chcial sie zalogowac na twoim ots. -- port -- the port otserv listens on port = "7171" <---- to zostawiamy -- servername -- name of our server servername = "OteesLandia" <---- nazwa servera ( tj. antica, lunara itp. -- ownername -- name of the owner of our server ownername = "Rysiu" <---- nazwa własciciela -- owneremail -- email of the owner of our server owneremail = "xlaski@zpodlaski.pl" <---- to zostawiamy, ale mozesz wpisac mail'a swojego -- url -- the url for more server info url = "http://www.otfans.org" <---- strona servera ( niekonieczna ) -- location -- the location of the server location = "Polska" <---- kraj -- ip -- the ip the server should redirect too ip = "tu wstaw swoje ip" <---- Tu ustawcie sobie swoje ip najlepiej wejdzcie START>URUCHOM>CMD I wpisujesz tam ipconfig i ci pokazuje global. -- motd -- The messagebox you sometimes get before you choose characters -- not working yet motd = "Welcome to the NeXus" <---- to co wyswietli przed wybraniem postaci motdnum="1" -- max number of players allowed maxplayers = "850" <---- ile graczy na servie -- exhausted time in ms (1000 = 1sec) exhausted = 3*100 <---- ustawienia exhausted, lepiej zostawic -- how many ms to add if the player is already exhausted and tries to cast a spell (1000 = 1sec) exhaustedadd = 3*100 <---- zostawic -- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1sec) pzlocked = 1*10*1000 <---- zostawic -- allow multiple logins of the same char allowclones = 1 <---- zostawic -- vocation names vocations = {"a sorcerer", "a druid", "a paladin", "a knight"} <---- zostawic, ew. jesli chce sie zmienic nazwy profesji --Pvp ON/OFF ( ON = 1 // OFF = 0) pvp = 1 <---- server pvp albo nie pvp --- SQL part (probaly buggy) sql_host = "localhost" sql_user = "root" sql_pass = "" sql_db = "otserv" <---- zostawic -------------------------------------------------------- Kod:KOD: --Manarune By Kogut-- function onUse(cid, item, frompos, item2, topos) if item.itemid == 2270 and item.type > 1 then doPlayerAddMana(cid,8000) doChangeTypeItem(item.uid,item.type-1) doSendMagicEffect(topos,12) doPlayerSay(cid,"Mniam...",1) else doRemoveItem(item.uid,1) end return1 end Następnie otwierasz plik actions.xml w data\actions i dopisujesz to: Kod:KOD: <action itemid="2270" script="manarune.lua" /> Gdy to juz zrobisz wchodzisz w data/npc/script Kod:KOD: elseif msgcontains(msg, 'manarune') then buy(cid,2270,100,10) Musisz mu jeszcze dopisac za ile ma sprzedawać rune czyli dajesz troche wyżej i tam pisze:<cytat> Kod:KOD: if msgcontains(msg, 'runes') then selfSay('I sell hmms (40gps), uhs (40gps), gfbs (60gps), manarune (10gps), explosions (60gps), sds (90gps) and blank runes (5gps). To buy more runes say "10 uh" or "100 sd".') elseif msgcontains(msg, 'wands') then selfSay('I sell wand of inferno (15k), plague (5k), cosmic energy (10k), vortex (500gp) and dragonbreath (1k).') |