Jump to content

Request Script


Zelek

Recommended Posts

13 hours ago, pirahax898 said:

could somebody explain how to use cavebot waypoints to move between doors and up/down stairs? on dbl

There is a dedicated panel to select the direction of your waypoints under the buttons.

To open a door select the correct direction and press "Use" button.

Link to comment
Share on other sites

Zelek, do you have an script that open corpses? im playing tibia-avatar and the looting from bot is not working, i need a script to open near corpses after killing,  when monster dies it appears a bag, not a corpse, maybe that is why looting isn't working, idk, just need a script for open near corpses, or how to use correctly the bot to start working the looting, cuz i have some hours trying to make it but nothing, btw, thanks for your hard effort. 

image.png

Link to comment
Share on other sites

6 hours ago, tividexon said:

Zelek, do you have an script that open corpses? im playing tibia-avatar and the looting from bot is not working, i need a script to open near corpses after killing,  when monster dies it appears a bag, not a corpse, maybe that is why looting isn't working, idk, just need a script for open near corpses, or how to use correctly the bot to start working the looting, cuz i have some hours trying to make it but nothing, btw, thanks for your hard effort. 

image.png

It will be fixed in the next version (today).

  • Like 1
Link to comment
Share on other sites

55 minutes ago, cesinha said:

 

I registered the bot on another computer and now I'm not able to open it on my current computer. What do I do to resolve this issue and open it here ??

stop spamming, read your email and just log in again in the program.

Link to comment
Share on other sites

12 hours ago, Zelek said:

I don't really understand

I think that pussydestroyer69 xDDD would like to request a same script as me.

 

Could you make a script that uses a necro wand on DBL on corpses on the ground, it has reach of 1SQM. So Use ID on the other ID that's on the ground only within 1SQM range. Is it possible to create on like that?

 

Also if that's not too much to ask for someone who hasn't subscribed yet:

Could you create a script that uses equipment every 5 minutes. Again DBL, when training certain skill you need to repair your equipment every 15-30 minutes, you do that by pressing "Use" on armor, legs etc. Is it possible to make one like that? Even if it requires to set those items as hotkeys that would still be great.

Edited by Lance Dance
  • Thanks 1
Link to comment
Share on other sites

16 hours ago, Lance Dance said:

Could you create a script that uses equipment every 5 minutes. Again DBL, when training certain skill you need to repair your equipment every 15-30 minutes, you do that by pressing "Use" on armor, legs etc. Is it possible to make one like that? Even if it requires to set those items as hotkeys that would still be great.

Reading/using inventory items will be possible in the next beta version (probably tomorrow). 

 

16 hours ago, Lance Dance said:

Could you make a script that uses a necro wand on DBL on corpses on the ground, it has reach of 1SQM. So Use ID on the other ID that's on the ground only within 1SQM range. Is it possible to create on like that?

Currently there is no way to read items on the ground, it will be added in the future. What you could do is just use the item on target’s position every x milliseconds tho.

Link to comment
Share on other sites

On 11/3/2020 at 5:55 PM, Zelek said:

Reading/using inventory items will be possible in the next beta version (probably tomorrow). 

 

Currently there is no way to read items on the ground, it will be added in the future. What you could do is just use the item on target’s position every x milliseconds tho.

Ok, I think I got the equipment repair script, just modified one script that I found on forum to send F1-F5 every 15-20 minutes and set items to hotkeys. But I would still like to sort script for that necro wand. Could you help me out please?

If the bot cannot read the ground then you could use the wand on yourself, It has a range of 1 sqm so every dead body around the character would be revived. So maybe create a script that uses necro wand on character every 2 seconds if the character is not attacking.

 

But ideally it should use it straight after killing monster. So maybe:

if not attacking use ID on yourself

sleep 2000

(I'm hoping it will use it on yourself straight after killing a monster and wait 2000 ms instead of killing monster, waiting 2000 ms and then using ID, by that time cavebot would take the char somewhere else)

 

Or if possible maybe make something like that:

if character just killed the monster

turn off cavebot

use ID on yourself

turn on cavebot

sleep 2000

 

Could you try to create both of those scripts for me please? If its possible to create both I'll try them both and see which one is better.

Link to comment
Share on other sites

47 minutes ago, Lance Dance said:

Ok, I think I got the equipment repair script, just modified one script that I found on forum to send F1-F5 every 15-20 minutes and set items to hotkeys

if not g_game.isOnline() then return end
local slotsToUse = { InventorySlots.Head, InventorySlots.Necklace, InventorySlots.Armor, InventorySlots.Right, InventorySlots.Left, InventorySlots.Legs, InventorySlots.Feet, InventorySlots.Ring }
for v, slot in pairs(slotsToUse) do
    g_game.useItem(g_game.getLocalPlayer():getInventoryItem(slot))
    sleep(2000)
end
auto(10 * 60 * 1000, 15 * 60 * 1000)

 

52 minutes ago, Lance Dance said:

But ideally it should use it straight after killing monster. So maybe:

if not attacking use ID on yourself

sleep 2000

if not g_game.isOnline() then return end
local itemIdtoUse = 3031
if not g_game.isAttacking() then
    g_game.useItemOnPosition(itemIdtoUse, g_game.getLocalPlayer():getPosition())
    sleep(2000)
end
sleep(100)

If it takes longer than 2 seconds to kill a monster it should work fine I guess

  • Thanks 1
Link to comment
Share on other sites

Bot was asking to add auto function to necro wand script so here it is for DBL players:

(seems to be working fine, although I haven't tried it with cavebot yet, maybe sleep time needs adjusting a bit, but it works)

if not g_game.isOnline() then return end
local itemIdtoUse = 12124
if not g_game.isAttacking() then
    g_game.useItemOnPosition(itemIdtoUse, g_game.getLocalPlayer():getPosition())
    sleep(1000, 1500)
end
auto(100)

 

Obviously your skill needs to be high enough to get range of 1 SQM. Have fun. Thanks Zelek 🙂

 

If it comes to inventory repair script, I'm not sure if DBL has some modifications, or is it the bot itself but it repaired everything but the items that I have marked in red and it is opening and closing the backpack(the top one), instead of using the necklace I guess.

 

 

Edit:

I also forgot to ask a question. Sorry to be such a pain mate.

Do you by any chance have a script for DBL to pause the bot and sound the alarm when Banner is doing MSG check? I think I saw it on the old forum.

 

 

Thanks for such quick reply 🙂

eq.png

Edited by Lance Dance
adding a paragraph
Link to comment
Share on other sites

12 minutes ago, Lance Dance said:

If it comes to inventory repair script, I'm not sure if DBL has some modifications, or is it the bot itself but it repaired everything but the items that I have marked in red and it is opening and closing the backpack(the top one), instead of using the necklace I guess:

I've checked, it's an issue with a bot. A quick workaround until I fix it:
 

g_game.useItem(g_game.getLocalPlayer():getInventoryItem(slot+2))

 

Link to comment
Share on other sites

On 11/7/2020 at 11:23 PM, Lance Dance said:

Can you make scrip to use item on table of items?

Eg useitem - 3199 on items (  3411, 3042, 3412 etc)

if not g_game.isOnline() then return end
local itemToUse = 3199
local items = {3411, 3043, 3412}
for v, item in pairs(g_game.getLocalPlayer():getItems()) do
  for j, l in pairs(items) do
  	if item:getId() == l then
      g_game.useItemOnPosition(itemToUse, item:getPosition())
      sleep(1000)
    end
  end
end
auto(500)

 

Link to comment
Share on other sites

×
×
  • Create New...