You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using rbot to learn something from it. I am calling rbot directly to log onto a server. That works fine. Now I tried to make the bot move directly, without me having to interact via Chat.
To do so, I added to "rbot.js" the lines
var moveTask = require("./task/moveTask")
(together with the other variables)
and
moveTask.moveTo(311,116,281)
inside the "bot.on("login" -part.
When I try to use it, it shows me the ErrorMessage "TypeError: p.floored is not a function". Now the line with "p.floored" is part of rbot and is called by center(p), which is called again by "moveTo". On the other hand I can nowhere find a definition of this. When I googled it, I come across the function "floor" as part of the module "Math" with a slightly different syntax:
floor(p) instead of p.floored
Anyway, if I change the line to Math.floor(p), than I get the same problem for "offset", which is called upon "p.floored()" originally. I cannot find any information about that part and to me it seemed kind of like a floor-ceiling-function with the border of .5, so I tried to leave it out. After that I get again an error for "distanceTo". This function I could not find yet anywhere.
Can someone help me?
The text was updated successfully, but these errors were encountered:
I am using rbot to learn something from it. I am calling rbot directly to log onto a server. That works fine. Now I tried to make the bot move directly, without me having to interact via Chat.
To do so, I added to "rbot.js" the lines
var moveTask = require("./task/moveTask")
(together with the other variables)
and
moveTask.moveTo(311,116,281)
inside the "bot.on("login" -part.
When I try to use it, it shows me the ErrorMessage "TypeError: p.floored is not a function". Now the line with "p.floored" is part of rbot and is called by center(p), which is called again by "moveTo". On the other hand I can nowhere find a definition of this. When I googled it, I come across the function "floor" as part of the module "Math" with a slightly different syntax:
floor(p) instead of p.floored
Anyway, if I change the line to Math.floor(p), than I get the same problem for "offset", which is called upon "p.floored()" originally. I cannot find any information about that part and to me it seemed kind of like a floor-ceiling-function with the border of .5, so I tried to leave it out. After that I get again an error for "distanceTo". This function I could not find yet anywhere.
Can someone help me?
The text was updated successfully, but these errors were encountered: