Rifbot Nostalrius 2024-01-10

[2024-01-29 13:00] Rifbot will now works with WAD - WeAreDragons beta gameclient.

 

Hello,

Updated Rifbot for last Nostalrius game client re-download

34 comments:

  1. Hey boss, I need a script
    If a monster named "MonsterName" appears on the screen, our character uses the "utamo vita" spell. He uses it only once, repeats it only when our utamo vita ends and when this monster is on the screen.

    ReplyDelete
    Replies
    1. Go with this code:

      Module.New("utamo vita if special monster", function (mod)
      if Self.isConnected() then
      local mob = Creature.getCreatures("MonsterName")
      if table.count(mob) > 1 then
      if not Self.isManaShielded() then
      Self.Say("utamo vita")
      end
      end
      end
      mod:Delay(500)
      end)

      Delete
  2. I need one more script:
    When the player "PlayerName" appears on the screen, the game client closes - exit.

    ReplyDelete
    Replies
    1. You can edit little bit this script: https://github.com/Ascerr/Lua-Scripts/blob/master/Exit%20Game%20if%20player.lua

      Delete
  3. Czy można zrobić taki skrypt że robi runy przy domku, a jak będę makery atakowane to wchodzi do domku i po jakimś czasie wychodzi za pomocą "Alana sio" ? Z góry dziękuje za pomoc.

    ReplyDelete
    Replies
    1. Ten tutaj sobie z tym poradzi ale musisz wszystko dobrze w config ustawić bo jest zaawansowany: https://github.com/Ascerr/Lua-Scripts/blob/master/Superhuman%20House%20Runemaker.lua

      Delete
  4. Wszystko działa, ale wraca przed domek za pomocą "aleta sio" praktycznie bez od razu, zmieniam wartość deley ale i tak wraca tak samo, co moge jeszcze zrobic?

    ReplyDelete
    Replies
    1. Sprawdź czy masz delay ustawiony tutaj:
      WHEN_PLAYER_HIDE
      back = {enabled = false, delay = 5}
      oraz tutaj:

      WHEN_DMG_TAKEN_HIDE
      back = {enabled = true, delay = 5}

      Delete
  5. works for https://ravendawn.online/en/ ???

    ReplyDelete

  6. Hello, I would like to ask you to add an action so that he can talk to the NPC on media through the NPC Chat and not through the General Chat, or even an action where he sells the loot without having to write
    it could be via the moon too.
    Grateful

    ReplyDelete
    Replies
    1. Medivia and not moon, its a .lua. i use translate sorry for this mistakes

      Delete
    2. Use last bot version, i added there to functions -> walker -> action -> say -> correct channel to talk with npc.
      Selling loot via new window in not possible in rifbot.

      Delete
    3. Yes, but check release date also in top bot panel -> about - >about rifbot -> LAST_UPDATE

      Delete
  7. Hello, is there a way to create a combo script that you put someone as commander and everyone else instantly attack the same enemy he chooses?

    ReplyDelete
    Replies
    1. Hello,

      I don't create such as script due huge destructive for game play.

      Delete
  8. Could you make a lua script to play explosion in the exact square that will hit the 3 monsters. plx!

    ReplyDelete
    Replies
    1. Use this lua script: https://github.com/Ascerr/Lua-Scripts/blob/master/Safe%20Explo.lua

      Delete
    2. This script is not using the Explosion in the right place, and only in the target!

      Delete
    3. Make sure you have in config:
      shoot_only_with_target = false,

      Delete
  9. I tried to look for this but couldn't find it.

    if current targgeted monster (just need to check if currently attacking a mob) then i need to do another check, if targetted mob health is below X% hp, do this else do this

    is that possible?

    ReplyDelete
    Replies
    1. Module.New("monster hpperc", function()
      local target = Self.TargetID()
      if target > 0 then
      local c = Creature.getCreatures(target)
      if table.count(c) > 1 then
      if c.hpperc <= 20 then
      print("monster hpperc < 20%")
      else
      print("above 20%")
      end
      end
      end
      end)

      Delete
  10. Replies
    1. Sure , i support this server since few years now.

      Delete
  11. If i run rifbot inside a virtual machine and play tibia normally with my computer, can i get ban with battleye or it doesnt check whats running inside a vm?

    ReplyDelete
  12. Module.New("DROP FISH WHEN 100 OR GREATER", function()
    if item ~= false then
    if item.count >= 100 then
    local pos = Self.Position()
    Self.DropItem(pos.x, pos.y, pos.z, FISH, 50)stack.
    end
    end

    mod:Delay(DROP_DELAY[1], DROP_DELAY[2]) -- mod delay
    end)

    shouldn't this only drop 50?

    It does drop 50 but then drops the other 50, too

    What am I doing wrong?

    ReplyDelete
    Replies
    1. Script has no logic, better use already done example:
      https://github.com/Ascerr/Lua-Scripts/blob/master/Drop%20Fish%20and%20Burst%20Arrow.lua

      Delete
  13. https://github.com/Ascerr/Lua-Scripts/blob/master/Heal%20monster.lua <<<how to use exura gran mas res instead of rune uh

    ReplyDelete
    Replies
    1. change line 28 from original:

      Self.UseItemWithCreature(c, RUNE_ID, 2050)

      To this one:

      Self.Say("exura gran mas res")

      Delete