11-05-2022, 11:49 PM
Is it possible to also skin each looted monster? and check when the obsidian knife kneeds regenerated in order to refill and go talk to npc(I think I can handle this part)
Skinning using obsidian knife, checking condition of obsidian knife
|
11-05-2022, 11:49 PM
Is it possible to also skin each looted monster? and check when the obsidian knife kneeds regenerated in order to refill and go talk to npc(I think I can handle this part)
Hello.
I didn't tested this code, but i think this will work. This script will skin bodies after looting is done and there are no more bodies to loot. Notice that you MUST change the "SETTINGS.KNIFE_ID" to the obsidian knife id and SETTINGS.BODIES with the id of each body that you wanna use obsidian knife on. The easiest way to find out bodies ids is by killing monster and using HUD->Show cursor info. Once you enable this option, you just need to move your mouse over the body and a simple hud will be displayed telling the item id, which will be the body id. local SETTINGS = { Or this script, which tries to skin closest corpses first. local SETTINGS = { About checking when obsidian knife needs to be regenerated then you need to check if obsidian knife changes when it's "out" then you can use itemcount() to know when it's out. Example: local OBS_KNIFE_ID_OUT = 1234
11-06-2022, 02:08 AM
Ty. Is there any way to make cavebot not turn around on each node? like ctrl + direction each node?
11-06-2022, 03:38 AM
Hello. Yes, disable WASD. Bot is pressing CTRL+W to clean status message, but as you are using WASD then it turns north.
11-15-2022, 02:56 PM
Im having trouble getting this to work, after it finishes looting it just continues to the next waypoint. I tried to put a print statement and it looks like it's not getting past the first statement
11-15-2022, 04:26 PM
11-17-2022, 06:58 PM
(This post was last modified: 11-17-2022, 06:59 PM by mortalshadow.)
Hiya im trying to make it not stand on corpses so it can skin them, as it's getting stuck.
so if I do if tile.posx == player_x and tile.pozy == player_y then moveemptydirection end Is there any command which moves into any available space? If not how would I check if it's possible to move for each direction>
Hello.
Maybe it's easier to move your character instead item? Anyway, you can use both functions below. moveitems(string item, string to, string from, optional in count) [boolean]Moves items based on its name or id. wheretomoveitem(number fromX, number fromY, number fromZ) [table]: Return a table with information about the tile you can move an item to from the specified location. That's useful when you want to untrash local where = wheretomoveitem(tile.posx, tile.posy, tile.posz)
10-08-2023, 05:04 AM
(This post was last modified: 10-08-2023, 05:58 AM by gamefreak777.)
for this is there anyway i can make it so it'll do it while its killing things?
also where in the code do i put it so it'll move my character and is there a way i can have it skin the ones closest to my character first cause it just goes in a order so if it fails on 1 it walks few steps away to the next one then back until it finishes
10-08-2023, 06:07 AM
also instead of having it wait like 10 seconds before cavebot enables again or it starts walking can it be like if no bodys start walking again?
|