Jump to content

Kurwiererererer

Members
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Kurwiererererer

  1. @ZelekCan you add good targeting lua script avoid this summons?

     

    Quote

    local creature
    for v, k in pairs(g_game.getCreatures()) do
      if k:getName() == "Enraged Skeleton" then
        creature = k
        break
      end
    end
    if not g_game.isAttacking() and #g_game.getMonstersAround(1) >= 1 and creature then 
    g_game.attack(creature)
    g_game.sendKey("F2")
    g_game.sendKey("F3")
    g_game.sendKey("F4")
    g_game.sendKey("F6")
    end
    auto(200)

    This is my lua script, but ignoring monsters under 100% hp. If monster is 1-99% hp then dont attack him idk why.
    And somethimes when script find monster and i kill him ideal in this time when script find monster. Script bugging and turn off

  2. 16 minutes ago, Zelek said:

    I have no idea how your settings look like but it works perfectly fine for me using built-in targeting so it would be useful if you could share your exact settings.

    Quote

    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
    <OTClientBotSettings>
      <SpellHealerSettings>
        <SpellHealerEnabled enabled="false" />
      </SpellHealerSettings>
      <ItemHealerSettings>
        <ItemHealerEnabled enabled="false" />
      </ItemHealerSettings>
      <ConditionHealerSettings>
        <ConditionHealerEnabled enabled="false" />
      </ConditionHealerSettings>
      <AlertSettings>
        <AlertRule alertName="Player On Screen" userValue="&lt;WhiteList>{empty}" playSound="true" pauseBot="false" logOut="false" defaultValue="&lt;WhiteList>{empty}" />
        <AlertRule alertName="Player Attacking" userValue="&lt;WhiteList>{empty}" playSound="false" pauseBot="false" logOut="false" defaultValue="&lt;WhiteList>{empty}" />
        <AlertRule alertName="Monster Attacking" userValue="&lt;WhiteList>{empty}" playSound="false" pauseBot="false" logOut="false" defaultValue="&lt;WhiteList>{empty}" />
        <AlertRule alertName="Private Message" userValue="&lt;WhiteList>{empty}" playSound="false" pauseBot="false" logOut="false" defaultValue="&lt;WhiteList>{empty}" />
        <AlertRule alertName="Default Message" userValue="&lt;WhiteList>{empty}" playSound="false" pauseBot="false" logOut="false" defaultValue="&lt;WhiteList>{empty}" />
        <AlertRule alertName="GM Detected" userValue="" playSound="false" pauseBot="false" logOut="false" defaultValue="" />
        <AlertRule alertName="Disconnected" userValue="" playSound="false" pauseBot="false" logOut="false" defaultValue="" />
        <AlertRule alertName="Character Stuck" userValue="60000ms" playSound="false" pauseBot="false" logOut="false" defaultValue="60000ms" />
        <AlertRule alertName="Health Below" userValue="50%" playSound="false" pauseBot="false" logOut="false" defaultValue="50%" />
        <AlertRule alertName="Mana Below" userValue="50%" playSound="false" pauseBot="false" logOut="false" defaultValue="50%" />
        <AlertRule alertName="Health Above" userValue="50%" playSound="false" pauseBot="false" logOut="false" defaultValue="50%" />
        <AlertRule alertName="Mana Above" userValue="50%" playSound="false" pauseBot="false" logOut="false" defaultValue="50%" />
        <AlertsEnabled enabled="false" />
      </AlertSettings>
      <PersistentScriptsSettings>
        <PersistentScript scriptName="AutoHealF1" enabled="true" script="aWYgbm90IGdfZ2FtZS5pc09ubGluZSgpIHRoZW4gcmV0dXJuIGVuZA0KbG9jYWwgcGxheWVyID0gZ19nYW1lLmdldExvY2FsUGxheWVyKCkNCmlmIHBsYXllcjpnZXRIZWFsdGhQZXJjZW50KCkgPD0gOTUgdGhlbg0KICBnX2dhbWUuc2VuZEtleSgiRjEiKQ0KZW5kDQphdXRvKDEwMCk=" />
        <PersistentScript scriptName="AutoHealF5" enabled="true" script="aWYgbm90IGdfZ2FtZS5pc09ubGluZSgpIHRoZW4gcmV0dXJuIGVuZA0KbG9jYWwgcGxheWVyID0gZ19nYW1lLmdldExvY2FsUGxheWVyKCkNCmlmIHBsYXllcjpnZXRIZWFsdGhQZXJjZW50KCkgPD0gNTAgdGhlbg0KICBnX2dhbWUuc2VuZEtleSgiRjUiKQ0KZW5kDQphdXRvKDEwMCk=" />
        <PersistentScript scriptName="New Script3" enabled="true" script="bG9jYWwgY3JlYXR1cmUNCmZvciB2LCBrIGluIHBhaXJzKGdfZ2FtZS5nZXRDcmVhdHVyZXMoKSkgZG8NCiAgaWYgazpnZXROYW1lKCkgPT0gIlN1c2hhIiB0aGVuDQogICAgY3JlYXR1cmUgPSBrDQogICAgYnJlYWsNCiAgZW5kDQplbmQNCmlmIG5vdCBnX2dhbWUuaXNBdHRhY2tpbmcoKSBhbmQgI2dfZ2FtZS5nZXRNb25zdGVyc0Fyb3VuZCgxKSA+PSAxIGFuZCBjcmVhdHVyZSB0aGVuIA0KICBnX2dhbWUuYXR0YWNrKGNyZWF0dXJlKQ0KZW5kDQphdXRvKDIwMCk=" />
        <PersistentScript scriptName="AutoManaF5" enabled="true" script="aWYgbm90IGdfZ2FtZS5pc09ubGluZSgpIHRoZW4gcmV0dXJuIGVuZA0KbG9jYWwgcGxheWVyID0gZ19nYW1lLmdldExvY2FsUGxheWVyKCkNCmlmIHBsYXllcjpnZXRNYW5hUGVyY2VudCgpIDw9IDE1IHRoZW4NCiAgZ19nYW1lLnNlbmRLZXkoIkY1IikNCmVuZA0KYXV0bygxMDAp" />
      </PersistentScriptsSettings>
      <HotkeyScriptsSettings />
      <TargetingProfiles>
        <TargetingProfile profileName="Default Profile" defaultProfile="true" danger="25" diagonalMovement="false" health="35" level="1" nonPvpMode="false" proximity="30" stick="25" targetReachable="false" targetShootable="false" autoSwitchProfiles="false" vocations="Any vocation" />
      </TargetingProfiles>
      <TargetingCreatures>
        <TargetingCreature creatureName="Susha" count="1+" hpFrom="0" hpTo="100" action="Attack" distanceFrom="1" distanceTo="1" attackMode="No Change" avoidance="No Avoidance" profileName="Default Profile" stance="Reach" danger="2" dontLoot="true" playAlarm="false" firstSpell="" secondSpell="" thirdSpell="" fourthSpell="" delayFrom="100" delayTo="100" />
      </TargetingCreatures>
      <TargetingEnabled enabled="true" />
      <CavebotSettings ShovelID="3457" RopeID="3003" MacheteID="3308" PickID="3456" pauseBotOnDeath="false" walkingMethod="" mapWalkDistance="10" walkThroughPlayers="false" ignoreNonPathable="false" />
      <CavebotScripts>
        <CavebotScript scriptName="Eat Food" enabled="true" script="bG9jYWwgZm9vZElkID0gMzU4OSAtLSBicm93biBtdXNocm9vbQ0KZ19nYW1lLnVzZShmb29kSWQpDQphdXRvKDMwMDAwLCA2MDAwMCk=" />
        <CavebotScript scriptName="Change GP" enabled="false" script="bG9jYWwgY29pbklkcyA9IHszMDMxLCAzMDM1fQ0KbG9jYWwgY29udGFpbmVycyA9IGdfZ2FtZS5nZXRDb250YWluZXJzKCkNCmZvciB2LCBjb250YWluZXIgaW4gcGFpcnMoY29udGFpbmVycykgZG8NCglpZiBjb250YWluZXI6Z2V0SXRlbXNDb3VudCgpID4gMCB0aGVuDQoJCWxvY2FsIGNvbnRhaW5lckl0ZW1zID0gY29udGFpbmVyOmdldEl0ZW1zKCkNCgkJZm9yIGosIGl0ZW0gaW4gcGFpcnMoY29udGFpbmVySXRlbXMpIGRvDQoJCQlmb3IgXywgY29pbklkIGluIHBhaXJzKGNvaW5JZHMpIGRvDQoJCQkJaWYgY29pbklkID09IGl0ZW06Z2V0SWQoKSBhbmQgaXRlbTpnZXRDb3VudCgpID09IDEwMCB0aGVuDQoJCQkJCWdfZ2FtZS51c2VJbnZlbnRvcnlJdGVtKDMwMzEpDQoJCQkJCWJyZWFrDQoJCQkJZW5kDQoJCQllbmQNCgkJZW5kDQoJZW5kDQplbmQNCmF1dG8oMjAwKQ==" />
        <CavebotScript scriptName="Combo" enabled="true" script="IGdfZ2FtZS5zZW5kS2V5KCJGMiIpDQpnX2dhbWUuc2VuZEtleSgiRjMiKQ0KZ19nYW1lLnNlbmRLZXkoIkY0IikNCmdfZ2FtZS5zZW5kS2V5KCJGNiIpDQphdXRvKDEwMCk=" />
        <CavebotScript scriptName="TurnToTarget" enabled="true" script="bG9jYWwgbW9uc3RlcnNUb1R1cm4gPSAxDQppZiAjZ19nYW1lLmdldE1vbnN0ZXJzQXJvdW5kKDEpID49IG1vbnN0ZXJzVG9UdXJuIHRoZW4NCiAgZ19nYW1lLnR1cm4oZ19nYW1lLmdldEJlc3RUdXJuRGlyZWN0aW9uKCkpDQplbmQNCmF1dG8oMjUwKQ==" />
        <CavebotScript scriptName="DropItems" enabled="true" script="aWYgbm90IGdfZ2FtZS5pc09ubGluZSgpIHRoZW4NCiAgcmV0dXJuDQplbmQNCmxvY2FsIGl0ZW1zVG9Ecm9wID0gezMzOTMsIDMzMDIsIDQyNTN9IC0tIHBvcHVsYXRlIHRoaXMgdGFibGUgd2l0aCBpdGVtcyBJRHMgeW91IHdvdWxkIGxpa2UgdG8gZHJvcA0KbG9jYWwgY29udGFpbmVycyA9IGdfZ2FtZS5nZXRDb250YWluZXJzKCkNCmZvciB2LCBjb250YWluZXIgaW4gcGFpcnMoY29udGFpbmVycykgZG8NCiAgaWYgY29udGFpbmVyOmdldEl0ZW1zQ291bnQoKSA+IDAgdGhlbg0KICAgIGxvY2FsIGNvbnRhaW5lckl0ZW1zID0gY29udGFpbmVyOmdldEl0ZW1zKCkNCiAgICBmb3IgaiwgaXRlbSBpbiBwYWlycyhjb250YWluZXJJdGVtcykgZG8NCiAgICAgIGZvciBrLCBpdGVtSWQgaW4gcGFpcnMoaXRlbXNUb0Ryb3ApIGRvDQogICAgICAgIGlmIGl0ZW06Z2V0SWQoKSA9PSBpdGVtSWQgdGhlbg0KICAgICAgICAgIGdfZ2FtZS5tb3ZlSXRlbShpdGVtLCBnX2dhbWUuZ2V0TG9jYWxQbGF5ZXIoKTpnZXRQb3NpdGlvbigpLCBpdGVtOmdldENvdW50KCkpDQogICAgICAgICAgcmV0dXJuDQogICAgICAgIGVuZA0KICAgICAgZW5kDQogICAgZW5kDQogIGVuZA0KZW5kDQphdXRvKDEwMDAwKQ==" />
      </CavebotScripts>
      <CavebotWaypoints>
        <CavebotWaypoint index="35" type="Node" label="" x="2369" y="2639" z="7" rangeFrom="1" rangeTo="1" action="" offsetX="0" offsetY="0" dgv="dgvWpt2" tabName="Waypoints" />
        <CavebotWaypoint index="36" type="Node" label="" x="2360" y="2639" z="7" rangeFrom="1" rangeTo="1" action="" offsetX="0" offsetY="0" dgv="dgvWpt2" tabName="Waypoints" />
        <CavebotWaypoint index="37" type="Node" label="" x="2366" y="2653" z="7" rangeFrom="1" rangeTo="1" action="" offsetX="0" offsetY="0" dgv="dgvWpt2" tabName="Waypoints" />
        <CavebotWaypoint index="38" type="Node" label="" x="2367" y="2667" z="7" rangeFrom="1" rangeTo="1" action="" offsetX="0" offsetY="0" dgv="dgvWpt2" tabName="Waypoints" />
      </CavebotWaypoints>
      <CavebotEnabled enabled="true" />
      <LootingProfiles>
        <LootingProfile profileName="Default Profile" defaultProfile="false" lootingRange="10" eatFromCorpses="false" onlyOpenValuableBodies="false" onlyOpenVeryValuableBodies="false" openBpAtLogin="false" openNextBp="false" valuableBodies="5000" veryValuableBodies="50000" lootPolicy="Loot After Melee Kill">
          <LootingDestination destination="Backpack" name="Backpack" />
        </LootingProfile>
      </LootingProfiles>
      <LootingItems />
      <LootingEnabled enabled="false" />
    </OTClientBotSettings>
     

     

  3. When bot moving then ignoring monsters on map till go to waypoint.
    When cavebot cant go to waypoint then cavebot stop working and stuck.


    For attacking monsters I using script. Is not ideal, because attack just monsters with 100% hp, under 99% just ignoring.
    But with targeting and this script. Bot attacking more monsters.
     

    Quote

    local creature
    for v, k in pairs(g_game.getCreatures()) do
      if k:getName() == "Bandit" then
        creature = k
        break
      end
    end
    if not g_game.isAttacking() and #g_game.getMonstersAround(1) >= 2 and creature then 
      g_game.attack(creature)
    end
    auto(200)

     

  4. 3 minutes ago, Zelek said:

    How is that a script request? Also it does work, probably the server you are playing at just have very strict limit of packets per second and you just have to increase the delay in the script.

    So... I request gold changer for Return Of The Saiyans. I changed (auto) from 200 to 20000 and 10000. Still DCs.

  5. Quote

    local coinIds = {3031}
    local containers = g_game.getContainers()
    for v, container in pairs(containers) do
        if container:getItemsCount() > 0 then
            local containerItems = container:getItems()
            for j, item in pairs(containerItems) do
                for _, coinId in pairs(coinIds) do
                    if coinId == item:getId() and item:getCount() == 100 then
                        g_game.useItem(item)
                        break
                    end
                end
            end
        end
    end
    auto(200)

    This script is bugged, when bot try to change to coin just log off from game. Return Of The Saiyans

  6. Bot goes up the stairs by itself, falls into holes, etc.
    I tried to add waypoints from +1 in case if he goes up. But when it comes to this waypoint just stuck.

    For Open locations without stairs/Wall(houses) is realy good. But with this things is rl bad to do good waypoints.
     

  7. My bot a lot of times stuck on Return of the Saiyans.

    Options like "Target Must Be Reachable/Shootable" not working. Just stay next to wall try to kill monster.
    Anychance to add option. Attack 1st monsters near me?

  8. 27 minutes ago, Zelek said:

    You can adjust your targeting priorities to accomplish what you want. 

    I’ll be optimizing the cavebot logic in future beta releases.

    Anyway not working. Because ROTS got fuck up data files and missing a lot of flags. 
    Can you add just option, if bot cant attack monster A, and cant move to monster A, then attack 1st monster around him (anti stuck). When miss waypoint just try to find next one.
    My waypoints are ok, with stand etc. But sometimes when go -1, dont reach this movment.

    • Like 1
  9. Cavebot with a lot of monsters dont working well... when we have 2-3 types of monsters and our bot attack example moster A and we are blocked by 8 monsters B this bot dont change his targert on monster A, and we stuck and die.
    Also somethimes just go up/down to hole, stairs etc so stuck to... so better to add option go to nest waypoint if stuck like xenobot had

  10. 3 minutes ago, Zelek said:
    
    if not g_game.isOnline() then return end
    local player = g_game.getLocalPlayer()
    local pos = player:getPosition()
    local offsetX = 2 -- how many sqms to the west/east
    local offsetY = 0 -- how many sqms to the north/south
    g_game.useMapItem({x = pos.x + offsetX, y = pos.y + offsetY, z = pos.z})

     

    Can you change it, to find pos by item id?

  11. DirectX version

     

    == application crashed
    app name: Return Of The Saiyans
    app version: 1.0
    build compiler: msvc12
    build date: Sep 28 2020
    build type: RelWithDebInfo
    build revision: 0 (master)
    crash date: Oct 10 2020 20:40:36
    exception: Access violation (0xc0000005)
    exception address: 0x6a52d419
      backtrace:
        0: D:\Saiyans Return\VCRUNTIME140.dll(memcpy+0x509) [0x000000006A52D419]
        1: D:\Saiyans Return\otclientbotmsvs.dll [0x00000000652E0F9C]
        2: D:\Saiyans Return\otclientbotmsvs.dll [0x00000000652DFA5E]
        3: D:\Saiyans Return\otclientbotmsvs.dll [0x00000000652DBAE5]
        4: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0xa9656) [0x00000000003674E6]
        5: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0xa97b9) [0x0000000000367649]
        6: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x10dbc3) [0x00000000003CBA53]
        7: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x10d698) [0x00000000003CB528]
        8: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x10d8a1) [0x00000000003CB731]
        9: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x38d4b) [0x00000000002F6BDB]
        10: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x38f3d) [0x00000000002F6DCD]
        11: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x5a500) [0x0000000000318390]
        12: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0xaa2aa) [0x000000000036813A]
        13: D:\Saiyans Return\otclient.exe [0x000000000014A03A]
        14: Unknown [0x0000000000010661]
        15: Unknown [0x00000000009D01F0]

  12. OK after 5 min cavebot - bot crashed

    @Zelek 

    Quote

    == application crashed
    app name: Return Of The Saiyans
    app version: 1.0
    build compiler: msvc12
    build date: Sep 28 2020
    build type: RelWithDebInfo
    build revision: 0 (master)
    crash date: Oct 10 2020 20:40:36
    exception: Access violation (0xc0000005)
    exception address: 0x6a52d419
      backtrace:
        0: D:\Saiyans Return\VCRUNTIME140.dll(memcpy+0x509) [0x000000006A52D419]
        1: D:\Saiyans Return\otclientbotmsvs.dll [0x00000000652E0F9C]
        2: D:\Saiyans Return\otclientbotmsvs.dll [0x00000000652DFA5E]
        3: D:\Saiyans Return\otclientbotmsvs.dll [0x00000000652DBAE5]
        4: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0xa9656) [0x00000000003674E6]
        5: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0xa97b9) [0x0000000000367649]
        6: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x10dbc3) [0x00000000003CBA53]
        7: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x10d698) [0x00000000003CB528]
        8: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x10d8a1) [0x00000000003CB731]
        9: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x38d4b) [0x00000000002F6BDB]
        10: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x38f3d) [0x00000000002F6DCD]
        11: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0x5a500) [0x0000000000318390]
        12: D:\Saiyans Return\otclient.exe(OPENSSL_Applink+0xaa2aa) [0x000000000036813A]
        13: D:\Saiyans Return\otclient.exe [0x000000000014A03A]
        14: Unknown [0x0000000000010661]
        15: Unknown [0x00000000009D01F0]

     

×
×
  • Create New...