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 game_bot.zip. Which is just based off the one included in Evolunia right now as it uses a slightly older bot.
It needs onAttackingCreatureChange which is in the newer version.
I have included an updated game_bot.zip. Which is just based off the one included in Evolunia right now as it uses a slightly older bot.
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)
end
end)
- remove | + add
02 Oct 2021