Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
NPC interact right click #58
If you use the newest version of OTCv8 this will work without downloading the updated game-bot.
It needs onAttackingCreatureChange which is in the newer version.
I have included an updated Which is just based off the one included in Evolunia right now as it uses a slightly older bot.
266b | 6 lines.
onAttackingCreatureChange(function(creature, OldCreature)
  if creature and creature:isNpc() and getDistanceBetween(pos(), creature:getPosition()) <= 3 then
    schedule(10, function() NPC.say("hi") end)
    schedule(1000, function() NPC.say("trade") end)
- remove | + add

02 Oct 2021