So que agora se vc for recarregar e por acaso esqueçer de levar o dinheiro ele toma sua soft usada e vc fica sem
ele teria que dizer que vc n tem grana não ja toma sua usada e vc fica sem depois
bugzin
;x
Por Nitronium, 02 de ago. de 2008 em NPCs, monsters e raids
info
Grupo: Campones
Registrado: 27/09/07
Posts: 28
Reputação: 0
Char no Tibia: Kena caelf

So que agora se vc for recarregar e por acaso esqueçer de levar o dinheiro ele toma sua soft usada e vc fica sem
ele teria que dizer que vc n tem grana não ja toma sua usada e vc fica sem depois
bugzin
;x
So que agora se vc for recarregar e por acaso esqueçer de levar o dinheiro ele toma sua soft usada e vc fica sem
ele teria que dizer que vc n tem grana não ja toma sua usada e vc fica sem depois
bugzin
;x
verdade cara! deu msm coisa aqui!
Nitronium! se puder arrumar valew!! ;d
x)
Editado Setembro 26 por CaDiNhU
@Nitronium
Vlws pelo script!
@All
eu entendo um pouco de scripts, vo da uma olhada pra tentar resolver esse bug, qlqr coisa posto aquia nova script;
Abraços!
Galera, dps de um tempinho tentando arrumar aqui consigui. Só que, se você disser: Hi, depois disser: worn soft boots ou soft boots sem ter a worn na sua bp, ele vai te ignorar e não vai falar nada.
Mas se vc tiver a worn e a grana (Precisa ser 1 crystal coin. Se vc tiver em platinum ou gold nao funciona.), ele retira a worn e o crystal e te dá a soft boots.
---Created by Nitroniumlocal 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, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hello ' .. creatureGetName(cid) .. '! I can fix your Worn Soft Boots for 10000 pieces of gold.(I accept only cristal coin)')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Wait you time, ' .. creatureGetName(cid) .. '!')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'worn soft boots') or msgcontains(msg, 'soft boots')then
if getPlayerItemCount(cid,6530) >= 1 then
if getPlayerItemCount(cid,2160) >= 1 then
if doPlayerRemoveItem(cid,6530,1) and doPlayerRemoveItem(cid,2160,1) then
selfSay('Here you are.')
doPlayerAddItem(cid,6132,1)
end
else
selfSay('Sorry, you don\'t have the item.')
end
elseif msgcontains(msg, 'bye') 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
end
PS¹: Partes em negrito no script foram as partes alteradas.
Espero ter ajudado.
Abraços!
info
Grupo: Campones
Registrado: 26/01/08
Posts: 33
Reputação: 0
Char no Tibia: Nitronium Knight
Fala Galera do Xtibia!
No OT que eu estou fazendo ( Mapa feito do 0, totalmente por mim )
O NPC que concerta a Soft Boots pede a Worn Soft Boots ( Oh Rly? )
Mas mesmo as tendo, ele falava que você não as possuía, depois de concertar isso
ele não devolvia a Soft Boots (
) Concertei,
depois ele falava que você não tinha dinheiro, ou seja, Cerveja!
Eu refiz ele inteiro e finalmente deu certo!
Aí vai o Script:
Não sabe colocá-lo no OT? Leia as instruções abaixo!
Em Verde você coloca o nome do NPC ( Salve o arquivo com o mesmo nome )
Em Vermelho é o script do NPC, se você salvou como soft.lua não precisa mecher, se não salvou assim, ponha o nome que você salvou.
E pronto!
Créditos 100% a... MIM!
Screen Shoots:
Editado Agosto 2 por Nitronium