Tibia.net.pl
| (#?)
| [8.0][NPC] KsiądzDyskusja dotycząca tematu [8.0][NPC] Ksiądz, który znajduje się w kategorii Skrypty Lua & XML (Znajdują się tutaj potwory, NPC, itd. Publikacja tylko GOTOWYCH skryptów!), na forum NPC (). Treść: Znalazłem na płycie nie dawno ten Skrypt...
Cytat:
<?xml version="1.0"?>
<npc name="Ksiadz" script="data/npc/scripts/wedding.lua" access="3" lookdir="1">
<health now="1000" max="1000"/>
<look type="130" head="0" ... | | |
20-04-2008, 22:38
|
| | Nowicjusz | [8.0][NPC] Ksiądz
Znalazłem na płycie nie dawno ten Skrypt... Cytat:
<?xml version="1.0"?>
<npc name="Ksiadz" script="data/npc/scripts/wedding.lua" access="3" lookdir="1">
<health now="1000" max="1000"/>
<look type="130" head="0" body="57" legs="114" feet="0" corpse="3128"/>
</npc>
i teraz w pliku data/npc/scripts robimy plik weedding.lua
i wklejamy to
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 kturej 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 ow 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 Bug 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 Borzego ... 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 Borzego... 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
| Jest to może bardziej Skrypt na OTS dziecinne ale na poważnych zawsze może się przydać jako atrakcja!
Pozdro~~
SzaFar
| |
| | |
20-04-2008, 23:05
|
| | Legenda | Cytat: |
(...)w obecnosci wyslannika Borzego(...)
| Boże widzisz a nie grzmisz.
Może komuś się taki bajer przyda chociaż powiem, że o wiele zabawniej jest wziąć sobie za księdza playera. Nie wiem czy skrypt działa, bo nie posiadam własnego OTS. Mimo to zawsze jakiś szpan, że jest klecha na OTS.
| |
| | |
22-04-2008, 16:05
|
| | Nowicjusz |
A czy działa ten NPC pod tibie i OTS 8.1??
Z góry THX  | |
| | |
24-04-2008, 20:30
|
| | Bywalec |
lól mamy tu jakiegos nooba typu 666 lol
| |
| | |
03-05-2008, 23:35
|
| | Nowicjusz |
fajny script dziala dobrze :P
8/10
| |
| | |
04-05-2008, 00:17
|
| | Domownik |
a działa pod 8.1? Bo tak to w kościele ceromonni udziela GM lub CM a tak miał bym o jeden obowiązek mniej na głowie  niektórzy Tibie traktują jak świat rzeczywisty  może wkrótce będziemy mieli pełen komplet mebli, uczuć itd. jak w Simsach | |
| | |
04-05-2008, 09:14
|
| | Bywalec | Cytat:
Napisał szafar Bug | Skrypt fajny ale widze, że jest pare błędów ortograficznych xD 9/10
| |
| | |
13-07-2008, 13:22
|
| | Nowicjusz |
fajny skrypt 9/10 ale czemu mi nie chce chodzić ;/ na OTS pod 8.0 ;/ HELP ME !!! | |
| | |
31-08-2008, 10:22
|
| | Bywalec | Odp: [8.0]NPC Ksiądz
Pod 8.1 Evolution Nie Działa. | |
| | | Narzędzia tematu | | | | Wygląd | Wygląd liniowy | |
Podobne wątki | | [7.6-8.1]142 Skrypty,Szukane przez Luki02006 - Witam mam dla was 142 skrypty szukane na necie i po otsach sa to skrypty na tibie od 7.6 do 8.1 Ponizej wymienie kilka ich
Boat
Teleporter na... luki02006, 07-07-2008
| | Tibia.net.pl: NPC () Temat: [8.0][NPC] Ksiądz Znalazłem na płycie nie dawno ten Skrypt...
Cytat:
<?xml version="1.0"?>
[...] | Czasy w strefie GMT +1. Teraz jest 03:23. | | |