[8.1][NPC]Ksiadz po Polsku

 
Tibia.net.pl

Wróć   Tibia.net.pl > Tawerna > Kosz

Oskary Tibia.net.pl 2008!

#1 konkurs Tibia.net.pl: Koniec konkursu! Sprawdź kto jest zwycięzcą!


  Tibia.net.pl (#?)
[8.1][NPC]Ksiadz po Polsku

Dyskusja dotycząca tematu [8.1][NPC]Ksiadz po Polsku, który znajduje się w kategorii Tawerna (Rozmowa na tematy niezwiązane z Tibią), na forum Kosz (Co niepotrzebne, ląduje tutaj.). Treść: By GM Reaper Witajcie przedstawiam wam NPC ksiadz po polsku ok zaczynamy w data/npc robimy pilk o nazwie Ksiadz.xml i wklejamy ...



 
 
16-07-2008, 15:24  
Bywalec

[8.1][NPC]Ksiadz po Polsku


By GM Reaper

Witajcie przedstawiam wam NPC ksiadz po polsku ok zaczynamy

w data/npc robimy pilk o nazwie Ksiadz.xml i wklejamy do niego to

Kod:
<?xml version="1.0"?>
<npc name="Ksiadz" script="data/npc/scripts/slub.lua" access="3" lookdir="2">
<mana now="800" max="800"/>
<health now="200" max="200"/>
<look type="57" head="20" body="30" legs="40" feet="50"/>
</npc>
teraz w data/npc/scripts robimy plik o nazwie slub.lua i wklejamy do niego to

Kod:
focus1 = 0
focus2 = 0
talk_start = 0
target = 0
following = false
attacking = false
talkstate = 0
moved=0
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(id, stackpos)
if id == focus1 or id == focus1 then
ceremonyend('Z Panem Bogiem !'
end
end
function onCreatureTurn(creature)
end
function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')
end
function ceremonyend(msg)
focus1 = 0
focus2 = 0
talk_start = 0
talkstate = 0
selfSay(msg)
end
function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if talkstate == 1 then
if cid == focus2 then
if msgcontains(msg, 'tak' then
talkstate=2
selfSay('' .. creatureGetName(focus1) .. ' Powinienem rozpoczac ceremonie?'
else
ceremonyend('Wroccie kiedy bedziecie gotowi..'
end
end
end
if talkstate == 2 then
if cid == focus1 then
if msgcontains(msg, 'tak' then
talkstate=3
else
ceremonyend('Wroccie kiedy bedziecie gotowi.'
end
end
end
if talkstate == 9 then
if cid == focus1 then
if string.find(msg, '(%a*)tak(%a*)' then
talkstate=10
else
ceremonyend('Wroccie kiedy bedziecie gotowi.'
end
end
end
if talkstate == 11 then
if cid == focus2 then
if string.find(msg, '(%a*)tak(%a*)' then
talkstate=12
else
ceremonyend('Wroccie kiedy bedziecie gotowi.'
end
end
end
if msgcontains(msg, 'hi' and focus1 > 0 and focus2 == 0 and not(cid==focus1) and isPromoted(cid) and getDistanceToCreature(cid) < 4 then
if getPlayerStorageValue(cid,2001) == -1 then
selfSay('Witam, ' .. creatureGetName(cid) .. '! Jestem ksiedzem z Wieliszewa. Powinienem zaczac ceremonie?'
focus2 = cid
talk_start = os.clock()
talkstate=1
else
selfSay('Jestes po ceremonii slubu!'
end
end
if msgcontains(msg, 'hi' and focus1 == 0 and isPromoted(cid) and getDistanceToCreature(cid) < 4 then
if getPlayerStorageValue(cid,2001) == -1 then
selfSay('Witam, ' .. creatureGetName(cid) .. '! Jestem ksiedzem z Wieliszewa. Moge udzielic slubu Tobie i Twojej wybrance lub wybrankowi.'
focus1 = cid
talk_start = os.clock()
else
selfSay('Jestes juz po slubie.'
end
end
if msgcontains(msg, 'wieliszew' and (focus1 == cid or focus2 == cid) then
selfSay('Wieliszew to mala miejscowosc, w ktorej wyroslem na to, czym jestem.'
talk_start = os.clock()
end
if string.find(msg, '(%a*)bye(%a*)' and (focus1 == cid or focus2 == cid) and getDistanceToCreature(cid) < 6 then
ceremonyend('Z Panem Bogiem ! ' .. creatureGetName(cid) .. '!'
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if talkstate==3 and (os.clock() - talk_start) > 10 then
selfSay('Polozcie tu swoje obraczki na znak swojej wiary.';
talk_start = os.clock()
talkstate=4
end
if talkstate==4 and (os.clock() - talk_start) > 6 then
selfSay('Stoicie tu teraz razem, poniewaz udzielacie sie w przybyciu swojej przyszlosci..';
talk_start = os.clock()
talkstate=5
end
if talkstate==5 and (os.clock() - talk_start) > 6 then
selfSay('Przeszlosc jest przeszloscia. Zarodki jednak kwitna, z troska i zaufaniem....';
talk_start = os.clock()
talkstate=6
end
if talkstate==6 and (os.clock() - talk_start) > 8 then
selfSay('Uczciwosc i zyczliwosc, sa owocami milosci.';
talk_start = os.clock()
talkstate=7
end
if talkstate==7 and (os.clock() - talk_start) > 6 then
selfSay('Zatem niech Pan Bog blogoslawi ten dzien i zawsze wzbogacac bedzie Wasza milosc... bez konca.';
talk_start = os.clock()
talkstate=8
end
if talkstate==8 and (os.clock() - talk_start) > 6 then
selfSay(creatureGetName(focus1) .. ' Czy Ty obiecujesz ' .. creatureGetName(focus2) .. ' w obecnosci wyslannika Bozego ... w dobrej... i zlej doli... w bogactwie... czy biedzie... w chorobie i zdrowiu... MILOSC... WIERNOSC... I UCZCIWOSC MALZENSKA?';
talk_start = os.clock()
talkstate=9
end
if talkstate==10 and (os.clock() - talk_start) > 6 then
selfSay(creatureGetName(focus2) .. ' Czy Ty obiecujesz ' .. creatureGetName(focus1) .. ' w obecnosci wyslannika Bozego... w dobrej... i zlej doli... w bogactwie... czy biedzie... w chorobie i zdrowiu... MILOSC... WIERNOSC... I UCZCIWOSC MALZENSKA?';
talk_start = os.clock()
talkstate=11
end
if talkstate==12 and (os.clock() - talk_start) > 6 then
setPlayerStorageValue(focus2,2001,1)
setPlayerStorageValue(focus1,2001,1)
ceremonyend('Oglaszam was MEZEM i ZONA ! Zalozcie obraczki.. Niech Pan ma was w swojej opiece.';
talk_start = os.clock()
end
if (os.clock() - talk_start) > 100 then
if focus1 > 0 or focus2 > 0 then
ceremonyend('Z Panem Bogiem !'
end
end
--if moved==0 then
--x, y, z = selfGetPosition()
--moveToPosition(x+1, y, z)
--moved=1
--end
end
 


16-07-2008, 17:46  
Gaduła
 
Użytkownik Jakkess na Tibia.net.pl

Skrypt już był... -.-
 
16-07-2008, 17:53  
Fanatyk
 
Użytkownik Tibionauta na Tibia.net.pl

Dla jednego spoloszczonego skryptu nie było sensu zakładać tematu...Co dopiero jakbyś all z Evo spolszczył to wtedy by było to z sensem i skrypt był już.
 


 

Narzędzia tematu
Wygląd

Podobne wątki

Ksiadz po polsku [8.1] - Witajcie przedstawiam wam NPC ksiadz po polsku ok zaczynamy w data/npc robimy pilk o nazwie Ksiadz.xml i wklejamy do niego to <?xml... GM Reaper, 31-12-2008 [8.1][ots]Wolisz grać na ots'ie całkowicie po polsku czy tak jak jest (po angielsku)? - Wolisz grać na ots'ie tradycyjnym (po angielsku) czy może wolałbyś npc, którzy rozmawiają po polsku, potwory z polskimi nazwami, itd.? Właśnie chcem... dragonekk, 26-07-2008


Tibia.net.pl: Kosz (Co niepotrzebne, ląduje tutaj.)
Temat: [8.1][NPC]Ksiadz po Polsku By GM Reaper Witajcie przedstawiam wam NPC ksiadz po polsku [...]


Nowy Metin2 Yang Hack !!! - polowka (1) Dzisiaj 19:43 X czy Y - Kamcio 32 (1) Dzisiaj 18:10 Temple Position Wrong - nowa mapa - kubinho1032 (2) Dzisiaj 17:53 Wlasny Ots Problem - adi112393 (6) Dzisiaj 17:48 8.4 Armionia Cofing - Kokoszeczek (0) Dzisiaj 14:49 Jakie pliki należy zamienić przy zmianie mapy. - Demodes (2) Dzisiaj 15:22 Własny ots ? - Qbix1906-06 (5) Dzisiaj 17:52 Forum Counter Strike - Seromontis (2) Dzisiaj 14:42 Modlitwy Tibi - Boaze (2) Dzisiaj 14:52 hej potrzebuje kogos do hostowania - Zioloo (1) Dzisiaj 15:54


Czasy w strefie GMT +1. Teraz jest 21:23.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.2.0 © 2008, Crawlability, Inc.