IG

[Arquivado]Da Uma Ajudinha Aki Na Humilde

Por Igorvidaloka, 01 de ago. de 2008 em Noticias - Arquivo

otserv
tibia
3
1.1k
01 de agosto de 2008 às 06:30

Ai pessual to com um probleminha sera que vcs podem Mi ajudar e O siguinte assim :

to com o um ot Muito Loko bombandu de gente mais de 100

o pessual pidil vip eo fiz

aii eo puiz o sistema tipw de aleta sio Aii eo pensei melhor otz Gringu ó siguinte os Npc's vendi a Vip

aii eo fikei das 4:00 da manha ate Essa hora 6:13 pra proucurar um topico nun achei

vim aki posta gostaria de saber ce alguem sabe mi dizer como meo Npc que vendi vip ele Muda access(de 0) Pra (1)

ce alguem puder mi ajudar eo agradeço de mais Muito oBrigado pela Atenção Espero que mi respondãO !!!

meo nps Esta assim

 

local focus = 0



local talk_start = 0

local target = 0

local following = false

local 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, 'Salve') and focus == 0) and getDistanceToCreature(cid) < 4 then

selfSay('Hello ' .. creatureGetName(cid) .. '! Eu vendo vip por 2kk.')

focus = cid

talk_start = os.clock()

 

elseif msgcontains(msg, 'salve') 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, 'iae vagabundo qual e o pel?') then

selfSay('Você deseja comprar uma VIP por 2kk?')

talk_start = os.clock()

end

 

if msgcontains(msg, 'Demoro') then

if pay(cid,2000000) then

setPlayerStorageValue(cid,13540,1)

selfSay('Você comprou uma VIP!')

talk_start = os.clock()

end

 

 

elseif msgcontains(msg, 'Vo chegar') 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

 

 

 

 

Obs:Não posteii o Ip ow Site Pk nao sei ce Essa area Permiti Muito Obrigado :blush:

4 semanas depois...
22 de agosto de 2008 às 17:40

Topico MUITO mal feito... Pra colocar o access no player ou faz por storagevalue ou por setPlayerAccess(cid,1).

 

Os players falam com o npc assim (Salve,iae vagabundo qual e o pel,demoro) ?

Acho dificil...

9 anos depois...
StigalS
25 de abril de 2018 às 16:22
Esta noticia foi arquivada.
Este tópico está fechado e foi movido para Noticia - Arquivo.

+ Caso tenha atualizações você poderá criar outro tópico.