CO

Blind Man Quest By Colex

Por colex, 24 de mai. de 2006 em NPCs, monsters e raids

script
60
13.7k
zacariasZ
23 de dezembro de 2007 às 02:29

showwwww

vou por aki no meu ot

 

xDDD

funciona no 8.1?

AugustoA
26 de dezembro de 2007 às 00:04

Colex, primeiro vou lhe parabenizar, o npc é muito ROX MESMO =D

Mais agora eu quero saber se este npc é compativel com o forgottenserver, pois meu server ta totalmente modificado e quase pronto pra botar ON, ai eu vi esse NPC e queria adicionar ele no meu server, tive idéias mirabolantes para ele =D.

 

Uso o theforgottenserver 0.2.4.

mais uma vez, parabens pelo NPC =D

1 mês depois...
ropicR
15 de janeiro de 2008 às 16:34

thnaks precisava duma coisa igual a essa mermo

CrassHC
19 de janeiro de 2008 às 16:03

16:00 GOD SnoPi [89]: hi

16:00 Blind Man: Hello foreigner, i have some secrets of this room my friend.

16:00 GOD SnoPi [89]: hi

16:00 Blind Man: Hello foreigner, i have some secrets of this room my friend.

16:00 GOD SnoPi [89]: hi

16:00 Blind Man: Hello foreigner, i have some secrets of this room my friend.

16:01 GOD SnoPi [89]: secret

 

Algo erado .. n era pra ele fala otra coiza qndo eu falo hi 2 vez ?

e qndo eu falo secret ele n fala nd

 

Colex pode dize pq iso ?

fiz td como no topico

 

Se funciona com cteza eh um otimo npc.

2 semanas depois...
30 de janeiro de 2008 às 04:09

n concegui n

achei massa o npc

mas quanduh eu falo com ele

soh me aparec issuh

eu falo

Hi

Quest

dai ele tira a grana

dai eu falo

Bread

bread

04:03 Blind Man: Stop your jokes and give me the bread, im fuckin hungry!

holy scarab.. NADA

 

 

q q tem q falar pro ######?

Bye =]

DaNDaNrOxXD
31 de janeiro de 2008 às 14:01
n concegui n

achei massa o npc

mas quanduh eu falo com ele

soh me aparec issuh

eu falo

Hi

Quest

dai ele tira a grana

dai eu falo

Bread

bread

04:03 Blind Man: Stop your jokes and give me the bread, im fuckin hungry!

holy scarab.. NADA

 

 

q q tem q falar pro ######?

Bye =]

Aqui ta dando o mesmo erro :/ como que arruma isso aew?

Editado Janeiro 31 por DaNDaNrOxX

06 de fevereiro de 2008 às 16:09

mandaa muuito

vai fica roox

;D

2 semanas depois...
LindinhuL
16 de fevereiro de 2008 às 22:21

Mano se eh ###### , por isso sou teu fã

os cara do meu server sequestraram o coitado do velinho levaram ele pro fim do mundo e abusaram sexualmente dele

sauhuhsauhsuhauhsuhauhsa

como que arruma isso?

os cara fugiram com o npc =O

2 meses depois...
juizfelipeJ
06 de abril de 2008 às 18:09
n concegui n

achei massa o npc

mas quanduh eu falo com ele

soh me aparec issuh

eu falo

Hi

Quest

dai ele tira a grana

dai eu falo

Bread

bread

04:03 Blind Man: Stop your jokes and give me the bread, im fuckin hungry!

holy scarab.. NADA

 

 

q q tem q falar pro ######?

Bye =]

 

Aqui ta dando o mesmo erro :/ como que arruma isso aew?

 

aqui tbm, ajuda ae ^^

Editado Abril 6 por juizfelipe

1 mês depois...
kruxduduK
06 de maio de 2008 às 18:05

Além de um ÓTIMO scripter é um cara humilde gente boa que responde e da assistência a quem reconhece seu trabalho.

 

Parabéns 2 vezes Colex, mais importante que ser muito bom no que faz é ser humilde e educado

 

Além de tudo a quest ficou ótima (como todos seus trabalhos)

 

Parabéns!

2 meses depois...
jeff123J
08 de julho de 2008 às 03:03

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

Editado Julho 8 por jeff123

zacariasZ
08 de julho de 2008 às 07:28

ta massa a quest, mas oque o player ganha em troca?

2 semanas depois...
KyriusK
15 de julho de 2008 às 14:07

Po gostei, mais vc sabe fazer sistema de minning/forja que da % nos itens?

Tava querendo esse vi num ot axei bem elgal e "RPGistico"

 

/kyrius~

dudu2530D
15 de julho de 2008 às 16:01

bom gostei do script colex da hora

 

aprovado..

mekyzM
15 de julho de 2008 às 17:41

Tópico bem detalhado e explicativo!..

Otimo trabalho!..

 

Atenciosamente Mekyz!..