Ir para conteúdo

Bug Npc(Oncraturesay)


PauloBriiito

Posts Recomendados

to com npc de addons bugado, conseguentemente bugo todos os outros :/

 

olha o erro

 

[13:55:11.843] [Error - NpcScript Interface]
[13:55:11.843] data/npc/scripts/addons.lua:onCreatureSay
[13:55:11.843] Description:
[13:55:11.843] data/npc/lib/npcsystem/npchandler.lua:558: attempt to call global
'getDistanceTo' (a nil value)
[13:55:11.843] stack traceback:
[13:55:11.843]  data/npc/lib/npcsystem/npchandler.lua:558: in function 'isInRang
e'
[13:55:11.843]  data/npc/lib/npcsystem/npchandler.lua:381: in function 'onCreatu
reSay'
[13:55:11.843]  data/npc/scripts/addons.lua:7: in function <data/npc/scripts/add
ons.lua:7>

 

Se alguem souber oque é ...

 

uso tfs 0.4

Editado por PauloBriiito
Link para o comentário
Compartilhar em outros sites

Eai

No arquivo lib/032-position.lua , coloque isso:

function isInRange(position, fromPosition, toPosition)
return (position.x >= fromPosition.x and position.y >= fromPosition.y and position.z >= fromPosition.z
	and position.x <= toPosition.x and position.y <= toPosition.y and position.z <= toPosition.z)
end

 

Tenho quase certeza que ocorrerá novos erros.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...