[Arquivado]Da Uma Ajudinha Aki Na Humilde

Igorvidaloka
em Noticias - Arquivo

Igorvidaloka

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 16/02/08Posts: 10Char no Tibia: Elite'Darin

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:

_ferrari_

avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 27/12/06Posts: 202

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...

Objetivos:
50 posts [x]
100 posts[x]
200 posts[x]
500 posts[x]
"Um post em um fórum deve como uma saia. Longa o suficiente para cobrir o assunto, porém curta o suficiente para manter as coisas interessantes"
Gosta de mim? Foi com minha cara? Quer me matar? Use:

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino
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.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel