cadu12299 0 Postado Fevereiro 9, 2011 Share Postado Fevereiro 9, 2011 aew galera toda vez que eu vou ligar o serve diz lua script error: [npc interface] data/npc/scripts/ftrunks.lua:onthink em varios scripts fala isso como arrumo aguem me ajuda :ouch: Link para o comentário Compartilhar em outros sites More sharing options...
Kimoszin 32 Postado Fevereiro 10, 2011 Share Postado Fevereiro 10, 2011 Seu NPC esta bugado , poste o script dele. Exemplo: \data\npcs\script. Link para o comentário Compartilhar em outros sites More sharing options...
cadu12299 0 Postado Fevereiro 10, 2011 Autor Share Postado Fevereiro 10, 2011 (editado) mas cara todos os scripts estão falando isso mas ok vo botar 1 : local 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('Hey!.') 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 and getPlayerPz(cid) <= 0 then selfSay('hey' .. getCreatureName(cid) .. '! Do you feel that power? Yes Its a Freeza, I Can Give you Senzu for fight with him ok?') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! ????????.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'yes') then if getPlayerStorageValue(cid,8000) <= 13 then selfSay('Sorry You Cant Do this saga.') elseif msgcontains(msg, 'yes') then if getPlayerStorageValue(cid,8000) >= 15 then selfSay('Sorry You Cant Do this saga.') else if doPlayerAddItem(cid,2673,1) then setPlayerStorageValue(cid,8000,15) selfSay('Ok Take this!') focus = 0 talk_start = 0 end end end elseif msgcontains(msg, 'asdasdasdasdasdasa') then if pay(cid,100) then travel(cid, 117, 101, 7) selfSay('Let\'s go!') focus = 0 talk_start = 0 else selfSay('Sorry, you don\'t have enough money.') end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. getCreatureName(cid) .. '!') focus = 0 talk_start = 0 end end end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 45 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 Editado Fevereiro 10, 2011 por XmaximoX Link para o comentário Compartilhar em outros sites More sharing options...
Kimoszin 32 Postado Fevereiro 10, 2011 Share Postado Fevereiro 10, 2011 Se TODOS os script estao dando erro ... E melhor vc baixar outro servidor pq este certamente esta com bug. Link para o comentário Compartilhar em outros sites More sharing options...
Subwat 405 Postado Fevereiro 10, 2011 Share Postado Fevereiro 10, 2011 o servidor não é o problema e sim o script DÃÃÃÃÃ Link para o comentário Compartilhar em outros sites More sharing options...
Demonbholder 420 Postado Fevereiro 10, 2011 Share Postado Fevereiro 10, 2011 Sim, é o script, mas você acha que ele vai ficar mudando um por um? Baixe outro servidor cara. Link para o comentário Compartilhar em outros sites More sharing options...
Subwat 405 Postado Fevereiro 11, 2011 Share Postado Fevereiro 11, 2011 aquilo é só um script q faiz isso tudo..... passa sua pasta q ta o script q eu concerto pra vc.... Link para o comentário Compartilhar em outros sites More sharing options...
cadu12299 0 Postado Fevereiro 11, 2011 Autor Share Postado Fevereiro 11, 2011 valeu subwat da add ai cadu-fx@hotmail.com Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados