#1 2007-12-08 09:41:19

jasiu1995l

http://i49.tinypic.com/2uggx2g.jpg

Zarejestrowany: 2007-12-05
Posty: 1396

Npc na boisko

Oto npc ktory sprzedaje balle na boisko do nogi

data/npc/scripts nowy plik ball.lua



Cytat:
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('Good bye then.'
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 (msgcontains(msg, 'hi' and focus == 0) and getDistanceToCreature(cid) < 4 then
selfSay('Hello ' .. creatureGetName(cid) .. '! I sell ball 100gp.'
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi' and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.'

elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'ball' then
buy(cid,2109,1,100)

elseif msgcontains(msg, 'bye' and getDistanceToCreature(cid) < 4 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!'
focus = 0
talk_start = 0
end
end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...'
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.'
focus = 0
end
end
end

data/npc/npc.xml

nowy plik Daje Pilki.xml



Cytat:
<?xml version="1.0"?>
<npc name="Daje Pilki" script="data/npc/scripts/ball.lua" access="3">
<look type="132" head="115" body="115" legs="114" feet="115"/>
</npc>


--------------------------------------------------------------------------------
Tibia Bogiem Expienie Zabawą

Offline

 

#2 2007-12-08 09:43:36

jasiu1995l

http://i49.tinypic.com/2uggx2g.jpg

Zarejestrowany: 2007-12-05
Posty: 1396

Re: Npc na boisko

Rici znuw powiesz ze sam nie robilem??

Offline

 

#3 2007-12-08 12:14:21

SmileY

http://i37.tinypic.com/330fo7t.gif

4011293
Zarejestrowany: 2007-11-09
Posty: 677

Re: Npc na boisko

Nie robiles tego sam 100% bo dziwne ze robisz 10 skryptow dziennie ! i nie spamuj

Ostatnio edytowany przez Smilevamp (2007-12-08 12:14:32)

Offline

 

#4 2007-12-08 12:34:09

jasiu1995l

http://i49.tinypic.com/2uggx2g.jpg

Zarejestrowany: 2007-12-05
Posty: 1396

Re: Npc na boisko

a czy muwilem ze coziennie robie?? nie
ja je zrobilem kiedys

Offline

 

#5 2007-12-08 17:43:32

 Rici

Sułtan łechtaczek

Skąd: Ełk
Zarejestrowany: 2007-05-15
Posty: 1753
Nick: Vineium Doron
Profesja: Paladyn
Server: Guardia
Level: 64

Re: Npc na boisko

Moge powiedzieć że to nie ty go zrobiłeś ok?? widziałem to na otfans chłopcze i co łyso?? sam widziałem też w jakimś silniku


http://img13.imageshack.us/img13/8466/ovoj.jpg

Offline

 

#6 2007-12-09 08:58:32

Burbon

http://i37.tinypic.com/30iway9.gif

9616756
Skąd: Katowice
Zarejestrowany: 2007-10-28
Posty: 92
Nick: xxxxxxx
Profesja: Aldora
Server: 116

Re: Npc na boisko

Tak nawiasem mowiac to jak chcesz w pilke pograc to se fife sciagnij, bo tibia to gra typu MMORPG a nie sportowa


Save Your Planet ~ Kill Yourself

Offline

 

#7 2007-12-09 09:04:22

 Rici

Sułtan łechtaczek

Skąd: Ełk
Zarejestrowany: 2007-05-15
Posty: 1753
Nick: Vineium Doron
Profesja: Paladyn
Server: Guardia
Level: 64

Re: Npc na boisko

Burbon napisał:

Tak nawiasem mowiac to jak chcesz w pilke pograc to se fife sciagnij, bo tibia to gra typu MMORPG a nie sportowa

Może też zagrać w PES ale tak ogółem żadna nowość ten skrypt


http://img13.imageshack.us/img13/8466/ovoj.jpg

Offline

 

#8 2007-12-09 10:30:08

Sir Xidoaozu

Zbanowany

Zarejestrowany: 2007-11-28
Posty: 119

Re: Npc na boisko

nie robiles go sam poniewaz 10 razy na jednego posta?? hyba nie !! sciagles jakiegos otsa i kopiujesz


Za duża sygnaturka. Linki usunięte.

Offline

 

#9 2007-12-09 11:33:38

Seba9

http://i33.tinypic.com/2mgkoj9.gif

876408
Call me!
Skąd: Wolsztyn
Zarejestrowany: 2007-10-22
Posty: 563

Re: Npc na boisko

on wszytko praktycznie kopiuje i wkleja i mysli ze bedzie kims....

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
Hotels Botswana