Open Tibia Server
Zapraszamy na nowy Adres http://otibias.xad.pl
FAQ
Szukaj
Użytkownicy
Grupy
Galerie
Rejestracja
Profil
Zaloguj się, by sprawdzić wiadomości
Zaloguj
Forum Open Tibia Server Strona Główna
->
Skrypty Ots
Napisz odpowiedź
Użytkownik
Temat
Treść wiadomości
Emotikony
Więcej Ikon
Kolor:
Domyślny
Ciemnoczerwony
Czerwony
Pomarańćzowy
Brązowy
Żółty
Zielony
Oliwkowy
Błękitny
Niebieski
Ciemnoniebieski
Purpurowy
Fioletowy
Biały
Czarny
Rozmiar:
Minimalny
Mały
Normalny
Duży
Ogromny
Zamknij Tagi
Opcje
HTML:
TAK
BBCode
:
TAK
Uśmieszki:
TAK
Wyłącz HTML w tym poście
Wyłącz BBCode w tym poście
Wyłącz Uśmieszki w tym poście
Kod potwierdzający: *
Wszystkie czasy w strefie CET (Europa)
Skocz do:
Wybierz forum
Forum
----------------
Otservlista
Regulamin
Accmakery
Publikacja Map
Forum
----------------
Drużyny OTS
Skrypty Ots
OTS
Pomoc
Inne
----------------
Hyde Park
Inne Gry
Real Tibia
Poradniki
Bannery
Inne strony
Pomoc-CZAT
Przegląd tematu
Autor
Wiadomość
Nony
Wysłany: Nie 17:28, 11 Lut 2007
Temat postu:
amazing!
http://jennifer-aniston-rides-on-cock.info/illegal/680602
regards, Nony
Penut
Wysłany: Sob 4:16, 10 Lut 2007
Temat postu:
yeaaah
http://cristinaaquilerasucking.info/shoking_video/680602
regards, Penut
Defozo
Wysłany: Pon 14:51, 15 Sty 2007
Temat postu: [7.6][npc] Henry Grajek - Npc sprzedający Instrumenty Muzy..
Ten skrypt (chyba) nie jest zrobiony przezemnie ;]
Przedstawiam wam:
Henry Grajek Npc sprzedający Instrumenty Muzyczne!
Henry Grajek.lua
Kod:
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Narqa.')
focus = 0
talk_start = 0
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 onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Siemka, ' .. creatureGetName(cid) .. '! Sprzedaje wszystkie instrumentu muzyczne, a dokladniej sprzedaje: zakrzywiona trabka, beben, mala trabka, rug, gitara, harfa, flet i grajka. Wszystko po 50gp.')
selfLook(cid)
focus = cid
talk_start = os.clock()
elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorka, ' .. creatureGetName(cid) .. '! Wlasnie rozmawiam.')
elseif msgcontains(msg, 'zakrzywiona trabka') and focus == cid then
buy(cid,2364,1,50)
talk_start = os.clock()
elseif msgcontains(msg, 'flet') and focus == cid then
buy(cid,2374,1,50)
talk_start = os.clock()
elseif msgcontains(msg, 'grajka') and focus == cid then
buy(cid,2373,1,50)
talk_start = os.clock()
elseif msgcontains(msg, 'gitara') and focus == cid then
buy(cid,2370,1,50)
talk_start = os.clock()
elseif msgcontains(msg, 'rug') and focus == cid then
buy(cid,2369,1,50)
talk_start = os.clock()
elseif msgcontains(msg, 'beben') and focus == cid then
buy(cid,2367,1,50)
talk_start = os.clock()
elseif msgcontains(msg, 'mala trabka') and focus == cid then
buy(cid,2368,1,50)
talk_start = os.clock()
elseif msgcontains(msg, 'harfa') and focus == cid then
buy(cid,2372,1,50)
talk_start = os.clock()
elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 4 then
selfSay('Narqa, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Nastepny prosze...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Narqa.')
focus = 0
end
end
end
Henry Grajek.xml
Kod:
<?xml version="1.0"?>
<npc name="Henry Grajek" script="data/npc/scripts/Henry Grajek.lua" access="3">
<look type="129" head="76" body="114" legs="124" feet="86"/>
</npc>
Tak, to już chyba koniec ;]
fora.pl
- załóż własne forum dyskusyjne za darmo
Powered by
phpBB
© 2001, 2005 phpBB Group
Regulamin