RA

Criando E Administrando Sua Cadeia 100%

Por Rafix, 07 de mar. de 2006 em Tutoriais de Scripting

otserv
tibia
script
51
17.1k
Shoter SoulsS
07 de setembro de 2007 às 23:47

Muito bom gostei msm =D ja ja boto no meu servidor

flw's...

2 semanas depois...
borghiB
17 de setembro de 2007 às 14:27

Mto bom cara!

1 mês depois...
ManucciM
05 de outubro de 2007 às 14:44

tipo no meu tb eu fla hello ai o npc fala vc ke sai por 10k? + e pra coloca na prisao??

xtibiauserbar21dx9jy.jpg

1 mês depois...
williamstsW
28 de novembro de 2007 às 02:21

Nossa cara muito bom mesmo,

prescisava de algo do tipo,

agora só falta o Advogado...

xD

SkullsS
28 de novembro de 2007 às 07:58

muito bom

gostei

 

parabens

 

fui

02 de dezembro de 2007 às 12:41
<_< meu npc pulicial n quer pega

eu falo hi oi a falo tudo e n pega

meu msn ai se puderen ajuda plx aju

Msn: reinansalustiano@hotmail.com

 

o meu tb fico assim

zaitchZ
03 de dezembro de 2007 às 15:37

exceeeelente tutorial...bem organizado e tudo mais ^^

achei mais "eficiente" o Alert System (by Colex)! já ta rodando com ctz no meu serv!xD

continue assim! :smile_positivo:

babylocoB
05 de dezembro de 2007 às 12:46

Vai fica rox quando chega o delegado mais faz um tempao é ainda nao chego ¬¬

apresa ae

1 mês depois...
18 de janeiro de 2008 às 17:05

Ahh...

Gostei

uahaUshAUSHAUSHsauH

2 semanas depois...
boleragemB
31 de janeiro de 2008 às 05:09

muito bom

qeria saber como eu fasso pra aumenta o preço da fiança?

responde ai

FazioF
03 de fevereiro de 2008 às 22:37

caaaaaarambaaaaaaaaaaa tava precisando pro meu server

3 semanas depois...
WenemyW
23 de fevereiro de 2008 às 23:58

kkkkkkkkk Gostei da parte de separar Delegado, Policiais etc... Ficou muito bom

 

//The Wenemy

5 meses depois...
vitimanV
27 de julho de 2008 às 14:20

Vlw vai ajudar

aos kras ficarem no lugar ^^

4 meses depois...
NilokzN
02 de novembro de 2008 às 06:55

nao consigo add o npc no mapa...

tentei i na pasta data>word>npc mais nao existe ;/

ajudem plx

 

nao consigo add o npc no mapa...

tentei i na pasta data>word>npc mais nao existe ;/

ajudem plx

4 semanas depois...
DiabloHellsD
24 de novembro de 2008 às 16:35

Deu certinhho ...

Ei Galera, para falar com o Policial, vc precisa Falar " Hello " não " Hi " nem " Oi " é apenas "Hello" (Sem as áspas claro)

 

se quiserr colocar para você falar Hi e ele responder mude o script dele para isso:

 

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('Bem feito por estar preso seu mal educado.')

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) < 3 then

if isPremium(cid) then

selfSay('O Que foi, ' .. creatureGetName(cid) .. '! Voce pode sair se me pagar 10k. Voce quer??')

focus = cid

talk_start = os.clock()

else

selfSay('Desculpe, Voce não tem dinheiro suficiente.')

focus = 0

talk_start = 0

end

 

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then

selfSay('Espera, ' .. creatureGetName(cid) .. '!')

 

elseif focus == cid then

talk_start = os.clock()

 

if msgcontains(msg, 'yes') then

if pay(cid,10000) then

selfSay('Espero que não volte mais!')

selfSay('/send ' .. creatureGetName(cid) .. ', 160 54 7')

focus = 0

talk_start = 0

else

selfSay('Desculpe, voce não tem grana.')

end

 

elseif msgcontains(msg, 'ciieeeeeeeey') then

if pay(cid,20) then

selfSay('Let\'s go!')

selfSay('/send ' .. creatureGetName(cid) .. ', 171 65 7')

focus = 0

talk_start = 0

else

selfSay('Sorry, you don\'t have enough money.')

end

 

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('Que fale o próximo se tiver...')

end

focus = 0

end

if focus ~= 0 then

if getDistanceToCreature(focus) > 5 then

selfSay('Tá Tá agora suma.')

focus = 0

end

end

end

 

 

 

flwz