Esse npc foi criado por um mlk de outro forum,axei interessantee resolvi trazer pra ca,pelo q eu vi no forum num tinha ainda...ele fala em vermelho qd alguem fala macro ou roubo pra ele...
vamos começar
Crie um arquivo chamado GM Para Reports.xml na pasta data\npc assim:
<?xml version="1.0"?><npc name="GM Para Reports" script="data/npc/scripts/reports.lua" access="3" lookdir="2"><mana now="800" max="800"/><health now="200" max="200"/><look type="75" head="114" body="119" legs="114" feet="114"/></npc>
Naum precisa mudar ese de cima naum!:
Agora vc vai em data\npc\scripts e cria um arquivo chamado reports.lua assim:
focus = 0talk_start = 0target = 0following = falseattacking = falsefunction onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos)if focus == cid thenselfSay('Xau!')focus = 0talk_start = 0endendfunction 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) < 3 thenselfSay('Ola ' .. creatureGetName(cid) .. '! Se vc viu alguem usar macro, fale MACRO se vc teve a casa roubada, fale ROUBO. Por favor, leve isso a serio!')focus = cidtalk_start = os.clock()endif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 thenselfSay('Espere, ' .. creatureGetName(cid) .. '! Ja falo com vc!')endif msgcontains(msg, 'macro') and focus == cid thenselfSay('Espere')selfSay('/B GM,' .. creatureGetName(cid) .. ' disse q viu alguem usando macro, falem com ele imediatamente!')focus = 0talk_start = 0endif msgcontains(msg, 'roubo') and focus == cid thenselfSay('Espere')selfSay('/B GM,' .. creatureGetName(cid) .. ' disse q alguem roubou a casa dele, fale com ele imediatamente!')focus = 0talk_start = 0endif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 thenselfSay('Obrigado por cooperar, ' .. creatureGetName(cid) .. '!')focus = 0talk_start = 0endendfunction onCreatureChangeOutfit(creature)endfunction onThink()if (os.clock() - talk_start) > 30 thenif focus > 0 thenselfSay('Proximo!')endfocus = 0endend
----------
para qm ainda naum entendeu oq o npc faz,tipo:
se vc eh GM,ai vc tah mo ocupado,configuranu o ot,modificanu algo, etc..
ai nego fika mandanu msg "#####,tem gente de macro enxenu o saco,##### robaro meu loot..."
ai dexa agente nervoso,pq num da pa faze 2 coisas ao msmo tempo...
ai eh facil,so colocar o GM Para Reports no ot e...
qdo alguem tiver de macro,eh soh xegar alguem nele e falar,ola,macro ou roubo e pronto !
o gm para reports ira mandar uma msg em vermelho,igual ao dos gms normais....
ai fika mais facil de identificar cada coisa...e eh bem mais util..
aconselho deixar este npc em lugar mais populares de hunt...demon,dl,draggy,necro,hero, e sempre eh bom deixar um no templo...
Bom galera,eh isso....espero ter ajudado....coments plx
e lembranu "credits ao Knighthuk"
pois foi eli qm criou o gm..
abraço galera
/Pedrow