roxx veiu mto roxx pq tem char q nem entra mais e soh fika pesando
APROVADO
??//Pedrinhu\\??
info
Grupo: Visconde
Registrado: 05/10/06
Posts: 381
Reputação: +7

roxx veiu mto roxx pq tem char q nem entra mais e soh fika pesando
APROVADO
??//Pedrinhu\\??
Muito bom vai ajudar muita gente esse sistema..xD
não aprovo porque não esta completo quando estiver eu aprovo vlws vo v aqui c eu consigo concerta xD vlws brother...
info
Grupo: Herói
Registrado: 12/11/05
Posts: 715
Reputação: +1
Char no Tibia: Lord'Skyxt

Tópico em Lugar errado,
~o{Tópico Movido}o~,
Abraços.
info
Grupo: Campones
Registrado: 28/08/06
Posts: 75
Reputação: 0
LEIA
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 (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Ola ' .. creatureGetName(cid) .. ' voce deseja salvar esse xar? :' .. creatureGetName(cid) .. '') 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() if msgcontains(msg, 'no') then selfSay('entao venha com o xar desejado ate mim') if msgcontains(msg, 'yes') then f = assert(io.open("./data/inativos/players.lua", "w")) f = io.open("./data/inativos/players.lua", "w") f:write(", ' .. creatureGetName(cid) .. '") elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end endendfunction onCreatureChangeOutfit(creature)endfunction onThink()if (os.clock() - talk_start) > 30 thenif focus > 0 thenselfSay('Next Please...')endfocus = 0endif focus ~= 0 thenif getDistanceToCreature(focus) > 5 thenselfSay('Good bye then.')focus = 0endendif focus == 0 thencx, cy, cz = selfGetPosition()randmove = math.random(1,20)if randmove == 1 thennx = cx + 1endif randmove == 2 thennx = cx - 1endif randmove == 3 thenny = cy + 1endif randmove == 4 thenny = cy - 1endif randmove >= 5 thennx = cxny = cyendmoveToPosition(nx, ny, cz)--summons = 30--summons2 = 30endend