Igorvidaloka 0 Postado Agosto 1, 2008 Share Postado Agosto 1, 2008 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 = 0local target = 0local following = falselocal attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos)if focus == cid thenselfSay('Good bye then.')focus = 0talk_start = 0endend 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 thenselfSay('Hello ' .. creatureGetName(cid) .. '! Eu vendo vip por 2kk.')focus = cidtalk_start = os.clock() elseif msgcontains(msg, 'salve') and (focus ~= cid) and getDistanceToCreature(cid) < 4 thenselfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid thentalk_start = os.clock() if msgcontains(msg, 'iae vagabundo qual e o pel?') thenselfSay('Você deseja comprar uma VIP por 2kk?')talk_start = os.clock()end if msgcontains(msg, 'Demoro') thenif pay(cid,2000000) thensetPlayerStorageValue(cid,13540,1)selfSay('Você comprou uma VIP!')talk_start = os.clock()end elseif msgcontains(msg, 'Vo chegar') and getDistanceToCreature(cid) < 4 thenselfSay('Good bye, ' .. creatureGetName(cid) .. '!')focus = 0talk_start = 0endendend function onCreatureChangeOutfit(creature) end function onThink()if (os.clock() - talk_start) > 30 thenif focus > 0 thenselfSay('Next Please...')endfocus = 0endif focus ~= 0 thenif getDistanceToCreature(focus) > 5 thenselfSay('Good bye then.')focus = 0endendend Obs:Não posteii o Ip ow Site Pk nao sei ce Essa area Permiti Muito Obrigado Link para o comentário Compartilhar em outros sites More sharing options...
_ferrari_ 1 Postado Agosto 22, 2008 Share Postado Agosto 22, 2008 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... Link para o comentário Compartilhar em outros sites More sharing options...
Stigal 584 Postado Abril 25, 2018 Share Postado Abril 25, 2018 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. Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados