crie um arkivo.xml ou copie qualquer 1 e ponha na pasta npc
renomeie para Assistente do Server.
abra e cole isso
<?xml version="1.0" ?> <npc name="Assistente Do Server" script="data/npc/scripts/cartoon.lua" access="3" lookdir="1"> <health now="1000" max="1000" /> <look type="75" head="0" body="95" legs="0" feet="95" corpse="3128" /> </npc>
agora entre na pasta de scripts e copie qualquer um la e renomeie pra cartoon.lua
e la cole isso
focus = 0talk_start = 0target = 0following = falseattacking = falsefunction onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 endendfunction onCreatureTurn(creature)endfunction msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))endfunction onCreatureSay(cid, type, msg) msg = string.lower(msg) if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Seja Bem Vindo ' .. creatureGetName(cid) .. '! estou aki para ajudar vc, para ir ao dp digite: (dp) o site de acc e o http://sohloko8b.no-ip.info:8090 :)') focus = cid talk_start = os.clock() end if string.find(msg, '(%a*)nk(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Tipow, ' .. creatureGetName(cid) .. '! Tem So Um Admin Que Eh o GOD Pikkeno.') focus = cid talk_start = os.clock() end if msgcontains(msg, 'dp') and focus == cid then if pay(cid,0) then selfSay('Let\'s go!') selfSay('/send ' .. creatureGetName(cid) .. ', 130 53 6') focus = 0 talk_start = 0 else selfSay('Sorry, you don\'t have enough money.') talk_start = os.clock() end end end if string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 4 then selfSay('Se Divirta Site http://sohloko8b.no-ip.info:8090 , ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 endendfunction onCreatureChangeOutfit(creature)endfunction 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 endend
pronto agora eh soh abrir o npc.xml q ta na pasta world e colocar onde vai ser o respawn dele
aconselho por ele no templo
soh isso
fuiz...
Creditos ao GM Addict...