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.
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)
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.
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
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?
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
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.
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
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)
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?
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)
re-update for medivia pls?
ReplyDeletedone
DeleteHey boss, I need a script
ReplyDeleteIf 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.
Go with this code:
DeleteModule.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)
I need one more script:
ReplyDeleteWhen the player "PlayerName" appears on the screen, the game client closes - exit.
You can edit little bit this script: https://github.com/Ascerr/Lua-Scripts/blob/master/Exit%20Game%20if%20player.lua
Deleteidk how
DeleteCzy 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.
ReplyDeleteTen 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
DeleteWszystko 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?
ReplyDeleteSprawdź czy masz delay ustawiony tutaj:
DeleteWHEN_PLAYER_HIDE
back = {enabled = false, delay = 5}
oraz tutaj:
WHEN_DMG_TAKEN_HIDE
back = {enabled = true, delay = 5}
works for https://ravendawn.online/en/ ???
ReplyDeleteNope.
Delete
ReplyDeleteHello, 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
Medivia and not moon, its a .lua. i use translate sorry for this mistakes
DeleteUse last bot version, i added there to functions -> walker -> action -> say -> correct channel to talk with npc.
DeleteSelling loot via new window in not possible in rifbot.
Version 2.65?
DeleteYes, but check release date also in top bot panel -> about - >about rifbot -> LAST_UPDATE
DeleteHello, 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?
ReplyDeleteHello,
DeleteI don't create such as script due huge destructive for game play.
Could you make a lua script to play explosion in the exact square that will hit the 3 monsters. plx!
ReplyDeleteUse this lua script: https://github.com/Ascerr/Lua-Scripts/blob/master/Safe%20Explo.lua
DeleteThis script is not using the Explosion in the right place, and only in the target!
DeleteMake sure you have in config:
Deleteshoot_only_with_target = false,
I tried to look for this but couldn't find it.
ReplyDeleteif 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?
Module.New("monster hpperc", function()
Deletelocal 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)
Run medivia ?
ReplyDeleteSure , i support this server since few years now.
DeleteIf 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?
ReplyDeleteI don't know.
DeleteModule.New("DROP FISH WHEN 100 OR GREATER", function()
ReplyDeleteif 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?
Script has no logic, better use already done example:
Deletehttps://github.com/Ascerr/Lua-Scripts/blob/master/Drop%20Fish%20and%20Burst%20Arrow.lua
https://github.com/Ascerr/Lua-Scripts/blob/master/Heal%20monster.lua <<<how to use exura gran mas res instead of rune uh
ReplyDeletechange line 28 from original:
DeleteSelf.UseItemWithCreature(c, RUNE_ID, 2050)
To this one:
Self.Say("exura gran mas res")