Jump to content

Request Script


Recommended Posts

  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

if g_game.isOnScreen("Wolf") then playSound("alarm.wav") sleep(2000) end auto(100)     I'll take a look at it

You can load the “Keep Target” script that is already included in the bot.   Keep soul at 100: local player = g_game.getLocalPlayer() if player:getSoul() ~= 100 then   g_game.talk("furie

local TextToFind = xxx local FoundMessage = false for k,v in pairs(g_game.getTextMessages()) do if v = TextToFind then return FoundMessage = true end end if FoundMessage then gotolabel("HUNTING"

Posted Images

Hello. The case looks like this, the bot crashes for me, it just turns it off every now and then and I don't know if it's not because of the money exchange script because I see in the logs that this script is spamming a bit. Please help

i use this scripts 

auto(250)
if not g_game.isOnline() then return end
local coinIds = {3031, 3035}
local playerItems = g_game.getLocalPlayer():getItems()
for _, item in pairs(playerItems) do
  for _, coinId in pairs(coinIds) do
    if item and item:getId() == coinId and item:getCount() == 100 then
      g_game.useItem(item)
      return
    end
  end
end

Link to post
Share on other sites
On 10/24/2020 at 12:02 PM, Zelek said:


if not g_game.isOnline() then return end
local leftSlot = 6
local rightSlot = 5
g_game.move(7368, {x=65535, y=leftSlot, z=0}, 100)
auto(5000)

Currently there is no way to read player's equipment to know when the weapon is gone, so it's best to just move the items every x amount of time.

I'll be adding it in the future versions.

I would like to request an script to refill ammo.

This one doesn't really work on otpiece.com and it's to hands not ammo.

Link to post
Share on other sites
On 2/22/2021 at 7:59 PM, zakne11 said:

 

gotolabel (string sectionName , string labelName )

Sets the current waypoint to the one of labelName Label in sectionName Section.



gotolabel("HUNTING", "start-hunting")

just you have to prepare tab changer in script

 

Thanks for answer. Still - i have no idea how to use this. Could you please prepare a script that writes .!task every 5 min, and runs the desired "gotolabel" when it detects eg. 300/300 - and when the second waypoint tab comes back to respawn - starts the main one again? I know one buddy has written that kind of script in this thread - but it just doesnt work, the script returns error. Thanks!

Edited by asktheages
Link to post
Share on other sites

1) Could you modify the below script so it's only using the spell if monsters are around 5sqm in any direction of our character (this is a target spell and with this script the bot is spamming this even if the target is far away)

if g_game.isAttacking() then
  g_game.talk("spell 1")
  sleep(900, 1250)
end
auto(100)

 

Thanks in advance

 

 

Edited by lediv
Link to post
Share on other sites
26 minutes ago, lediv said:

1) Could you modify the below script so it's only using the spell if monsters are around 5sqm in any direction of our character (this is a target spell and with this script the bot is spamming this even if the target is far away)

if g_game.isAttacking() then
  g_game.talk("spell 1")
  sleep(900, 1250)
end
auto(100)

 

Thanks in advance

 

 

if g_game.isAttacking() then
  local target = g_game.getAttackingCreature()
  if target and target:getPosition():distance(g_game.getLocalPlayer():getPosition()) <= 5 then
    g_game.talk("spell 1")
    sleep(900, 1250)
  end
end
auto(100)

 

  • Like 1
Link to post
Share on other sites
18 hours ago, asktheages said:

Thanks for answer. Still - i have no idea how to use this. Could you please prepare a script that writes .!task every 5 min, and runs the desired "gotolabel" when it detects eg. 300/300 - and when the second waypoint tab comes back to respawn - starts the main one again? I know one buddy has written that kind of script in this thread - but it just doesnt work, the script returns error. Thanks!

auto(300000)

local messagesToDetect = "300/300"

g_game.talk(".!task")
-- sleep(x) --  activate and adjust if script can't detect exacly after write .!task
connect("g_game", "onTextMessage", checkBotText)
function checkBotText(mode, message)

if string.find(message, messageToDetect, 1, true) then
gotolabel("retask", "deliver-task")
end

 

as last waypoint in retask ad "ACTION" on with script  gotolabel("hunt", "start-hunt")

Link to post
Share on other sites
Just now, zakne11 said:

auto(300000)

local messagesToDetect = "300/300"

g_game.talk(".!task")
-- sleep(x) --  activate and adjust if script cant detect exacly after write .!task
connect("g_game", "onTextMessage", checkBotText)
function checkBotText(mode, message)

if string.find(message, messageToDetect, 1, true) then
gotolabel("retask", "deliver-task")
end

 

as last waypoint in retask ad "ACTION" on with script  gotolabel("hunt", "start-hunt")

 

Link to post
Share on other sites
Quote

local healthToCast = 75
local spellToCast = "gigantic breakers"
local player = g_game.getLocalPlayer()
if g_game.isAttacking() and player:getHealthPercent() >= healthToCast then
  g_game.talk(spellToCast)
  sleep(444, 555)
end
auto(100)

 

Hi Guys i have a script for target spell like this, but i need add that cast just when monster will be not further than 3 or 4 sqm can some on make it for me?

Link to post
Share on other sites
22 minutes ago, oski121 said:

 

Hi Guys i have a script for target spell like this, but i need add that cast just when monster will be not further than 3 or 4 sqm can some on make it for me?

Please search the forum before posting

Link to post
Share on other sites
36 minutes ago, Zelek said:

Please search the forum before posting

That's fine mate but i need Monster position and hp highter than xx in one script, i dont have idea how to add monster around to my previous script ;/

Edited by oski121
Link to post
Share on other sites

 

hello I play a server of tibia 7.72 (REALESTA) there are functions to use in hotkey for example .. Useonself, useontarget, useoncroshair .. just putting the element id? either Manafluid, UH, Runes etc

Link to post
Share on other sites
On 3/1/2021 at 2:35 AM, Boltrex said:

 

hello I play a server of tibia 7.72 (REALESTA) there are functions to use in hotkey for example .. Useonself, useontarget, useoncroshair .. just putting the element id? either Manafluid, UH, Runes etc

 

I think you should use bigger font... Like it changes anything in terms of answer for your question. LOL

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...