12-07-2024, 02:47 PM
Hi,
Making a basic refiller with cavebot and actions and have a few questions;
1. How can i check if a door is open. Then if it is: keep walking. If not: Open door. (I've managed to open a closed door, but if it's already open i will close it instead and stopping bot from walking.
2. When approaching a boat npc to sail i have just set a waypoint in the middle-ish of where npc is. Is it possible to locate npc and walk up to it before talking?
3. How can i check: If player(s) on screen, wait until player(s) is not on screen, then sail to ex. edron?
Want to get better making these myself but watching lua functions thread is a bit confusing. You got any guides on how to make my own cavebots with actions and how they work?
If not, i'd love to get some pointers on how to make the actions myself.
For point 3 i've found that i can use getcreatures variable to check for players, but i'm not sure how to use it. Your guide says "getcreatures(string filter) [table]: (p, m, n, f and s)" but what is [table]? I have some really basic knowledge about javascript, html and css so i'll learn eventually but it's harder since it's not the same language.. :p
Thanks!
Making a basic refiller with cavebot and actions and have a few questions;
1. How can i check if a door is open. Then if it is: keep walking. If not: Open door. (I've managed to open a closed door, but if it's already open i will close it instead and stopping bot from walking.
2. When approaching a boat npc to sail i have just set a waypoint in the middle-ish of where npc is. Is it possible to locate npc and walk up to it before talking?
3. How can i check: If player(s) on screen, wait until player(s) is not on screen, then sail to ex. edron?
Want to get better making these myself but watching lua functions thread is a bit confusing. You got any guides on how to make my own cavebots with actions and how they work?
If not, i'd love to get some pointers on how to make the actions myself.
For point 3 i've found that i can use getcreatures variable to check for players, but i'm not sure how to use it. Your guide says "getcreatures(string filter) [table]: (p, m, n, f and s)" but what is [table]? I have some really basic knowledge about javascript, html and css so i'll learn eventually but it's harder since it's not the same language.. :p
Thanks!