eu fiz 1 npc q da informaçaum sobre o serve como eu falei antes eu naum sei mexe no baguio pa bxa na net eu vo botar aqui msm e v c dessa vez comentem
1º crie 1 arquivo na pasta npc como o nome Info do Serve.xml e coleque o texto abaixo:
<?xml version="1.0"?><npc name="Info do Serve" script="data/npc/scripts/ajuda.lua" access="3">
<look type="75" head="77" body="114" legs="114" feet="114"/>
</npc>
2º crie 1 aruqivo na pasta script (data/npc/scripts) com o nome ajuda.lua e coloque o seguinte texto:
focus = 0talk_start = 0
target = 0
following = false
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('Olá ' .. creatureGetName(cid) .. '! O que você quer saber sobre o serve? Casas, Quests ou Gm's?')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') 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()
elseif msgcontains(msg, 'casas') then
selfSay('As casas são vendidas pelo sqm e cada sqm custa 1.5k.')
elseif msgcontains(msg, 'Casas') then
selfSay('As casas são vendidas pelo sqm e cada sqm custa 1.5k.')
elseif msgcontains(msg, 'quests') then
selfSay('O serve contem varias quest, ele tem a quest da knight legs quest, anihi, desert quest, dark shield quest e dh quest.')
elseif msgcontains(msg, 'Quests') then
selfSay('O serve contem varias quest, ele tem a quest da knight legs quest, anihi, desert quest, dark shield quest e dh quest.')
elseif msgcontains(msg, 'gm's') then
selfSay('Os gm1s do ot são GM Addict e o GM Pepe.')
elseif msgcontains(msg, 'Gm's') then
selfSay('Os gm1s do ot são GM Addict e o GM Pepe.')
elseif string.find(msg, '(%a*)bye(%a*)') 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
pronto ta ai o npc edite do modo q vc kiser e comentem dessa vez eu atendo via msn
creditos: by me