HappyFeet
New Member
hmm same error
changed the line in npchandler to local distance = getDistanceBetween(getCreaturePosition(getNpcCid()), getCreaturePosition(cid))
[20:14:31.693] [Error - NpcScript Interface]
[20:14:31.694] data/npc/scripts/rebirth.luanThink
[20:14:31.694] Description:
[20:14:31.695] data/npc/scripts/rebirth.lua:120: attempt to call global 'getDistanceTo' (a nil value)
[20:14:31.696] stack traceback:
[20:14:31.697] data/npc/scripts/rebirth.lua:120: in function <data/npc/scripts/rebirth.lua:115>
changed the line in npchandler to local distance = getDistanceBetween(getCreaturePosition(getNpcCid()), getCreaturePosition(cid))
[20:14:31.693] [Error - NpcScript Interface]
[20:14:31.694] data/npc/scripts/rebirth.luanThink
[20:14:31.694] Description:
[20:14:31.695] data/npc/scripts/rebirth.lua:120: attempt to call global 'getDistanceTo' (a nil value)
[20:14:31.696] stack traceback:
[20:14:31.697] data/npc/scripts/rebirth.lua:120: in function <data/npc/scripts/rebirth.lua:115>