Primeiro Parabens Colex Você é o melhor scripter que eu ja vi e inovando cada vez mais
Eu achei otimo o npc e coloquei no meu ot mas deu uns probleminhas ele naum pegava o bread so pegava o Gp e quando ia dar o bread ele dizia isso "Stop your jokes and give me the bread, im fuckin hungry!" e continuava com o pao e ele tb num pega o holy scarab pelo menos aq no meu fiquei um tempão mechendo nele tentando resolver isso porque achei muito loko ate q consegui para aqueles que tiveram o msm problema que o meu ta ae a soluçao
Troque tudo que esta dentro do seu npc por isso:
----------Blind Man Quest by Colex------------- focus = 0 talk_start = 0 target = 0 following = false attacking = false ox = 1102 ----posição X dele oy = 880 ----posição Y dele oz = 12 ----posição Z dele max = 500 dealing = 0 money = 100 ---Dinheiro necessario para pagar pro blind man 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') or msgcontains(msg, 'hello')) and (focus == 0) and getDistanceToCreature(cid) < 6 and getPlayerStorageValue(cid,1430) < 3 then selfSay('Hello foreigner, i have some secrets of this room my friend.') focus = cid talk_start = os.clock() elseif (msgcontains(msg, 'hi') or msgcontains(msg, 'hello')) and (focus == 0) and getDistanceToCreature(cid) < 6 and getPlayerStorageValue(cid,1430) >= 3 then selfSay('Go away dude, I have already helped you.') focus = 0 elseif (msgcontains(msg, 'hi') or msgcontains(msg, 'hello')) and (focus ~= cid) and getDistanceToCreature(cid) < 6 then selfSay('So you are not alone!') elseif (msgcontains(msg, 'secret') or msgcontains(msg, 'secrets')) and (focus == cid) and getDistanceToCreature(cid) < 6 then selfSay('WEll well well, so the outsider want to know my secrets, Ok! In this room you can find a quest,but you only can do it with my help, because i have the key.') talk_start = os.clock() elseif (msgcontains(msg, 'quest') or msgcontains(msg, 'help') or msgcontains(msg, 'mission')) and (focus == cid) and getDistanceToCreature(cid) < 6 then if getPlayerStorageValue(cid,1430) == 2 then selfSay('I\'m already on your comand, say up, down, left, right to movement me!') talk_start = os.clock() dealing = 0 elseif getPlayerStorageValue(cid,1430) < 2 then selfSay('I help you, but first you have to give me a bread beacause im hungry, pay me ' .. money .. ' gps because i need to live and give me a holy scarab beacause we need it to make the quest, Deal?') talk_start = os.clock() dealing = 1 end elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sure')) and (focus == cid) and getPlayerStorageValue(cid,1430) < 2 and dealing == 1 then talk_start = os.clock() if getPlayerStorageValue(cid,1430) == -1 then if pay(cid,money) then selfSay('Now give me the bread') setPlayerStorageValue(cid,1430,0) else selfSay('Are you kiding me? Give me the money.') end elseif getPlayerStorageValue(cid,1430) > 2 then selfSay('You have already paid me, now give me the rest, bread and holy scarab.') elseif getPlayerStorageValue(cid,1430) == 2 then selfSay('I am already on your command!') end elseif getPlayerStorageValue(cid,1430) == 0 and msgcontains(msg, 'bread') and (focus == cid) then if doPlayerRemoveItem(cid,2689,1) > 0 then selfSay('Hummm, Oh My God, so gooood, thanks, now i want the holy scarab.') setPlayerStorageValue(cid,1430,1) else selfSay('Stop your jokes and give me the bread, im fuckin hungry!') end elseif getPlayerStorageValue(cid,1430) == 1 and msgcontains(msg, 'holy scarab') and (focus == cid) then if doPlayerRemoveItem(cid,2140,1) > 0 then selfSay('Right, now we can make the quest, say: up, down, right, left, so i can walk beacause i am blind.') setPlayerStorageValue(cid,1430,2) else selfSay('I WANT THE HOLY SCARAB!!!!') end elseif msgcontains(msg, 'no') and (focus == cid) then selfSay('Ok outsider, I wish you know what you are doing!') talk_start = os.clock() end if getPlayerStorageValue(cid,1430) == 2 and (focus == cid) then if msgcontains(msg, 'right') then selfMove(1) moveQuest(ox, oy, max) talk_start = os.clock() elseif msgcontains(msg, 'down') then selfMove(2) moveQuest(ox, oy, max) talk_start = os.clock() elseif msgcontains(msg, 'left') then selfMove(3) moveQuest(ox, oy, max) talk_start = os.clock() elseif msgcontains(msg, 'up') then selfMove(0) moveQuest(ox, oy, max) talk_start = os.clock() end end if (msgcontains(msg, 'bye') or msgcontains(msg, 'good bye')) and (focus == cid) and getDistanceToCreature(cid) < 6 then selfSay('Good bye outsider!') focus = 0 talk_start = 0 dealing = 0 end end function onCreatureChangeOutfit(creature) end function onThink() if focus <= 0 then moveToPosition(ox, oy, oz) end if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Holy ######, that foreigner left me alone.') dealing = 0 end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 9 then selfSay('Where are you, i can\'t hear your voice.') focus = 0 dealing = 0 end end end
flw espero ter ajudado