dude i love how u eddited ur file to have "main" "boting" "equipper" "war" those tabs, do you mind sharing it?? and any other evolunia sweet script would preciate it tooWould someone be able to make macro that by 1click wears on EQ for DMG and EQ for Survivability just like on screen ?
View attachment 42949
Any tips what commandline in lua files makes that u wear item of specific ID would be useful too.
Thanks
example of better follow, including stairs, holes, teleports etc
Code:local toFollow = "Player2" local toFollowPos = {} local followMacro = macro(20, "follow target", function() local target = getCreatureByName(toFollow) if target then local tpos = target:getPosition() toFollowPos[tpos.z] = tpos end if player:isWalking() then return end local p = toFollowPos[posz()] if not p then return end if autoWalk(p, 20, {ignoreNonPathable=true, precision=1}) then delay(100) end end) onCreaturePositionChange(function(creature, oldPos, newPos) if creature:getName() == toFollow then toFollowPos[newPos.z] = newPos end end)
macro(10000, "auto eat", function()Someone has the script for Auto Eat Food?
He's using a picture posted by me on discord. The script he's referring to is public and I think I already sent it to him somewhere.dude i love how u eddited ur file to have "main" "boting" "equipper" "war" those tabs, do you mind sharing it?? and any other evolunia sweet script would preciate it too
He's using a picture posted by me on discord. The script he's referring to is public and I think I already sent it to him somewhere.
-- Example on how to implement tabs
local warTab = addTab("War")
macro(100, "Random", function()
say("Example")
end, warTab)
Idk if I'm allowed to link on here but -> bot . otclient . ovh has some documentation for otclientv8 botIs there a guide somewhere so I can learn how to script?
I have a hard time understanding how to use functions and methods and so on.
If anyone can point me to the right direction, would be nice![]()
Sweet, I will def. check it out. Thanks alotIdk if I'm allowed to link on here but -> bot . otclient . ovh has some documentation for otclientv8 bot
local messageText = "some unique part of the message/whole message"
local alertSwitch = macro(1000, "Boss Alarm", function() end)
onTextMessage(function(mode, text)
if alertSwitch.isOn() and string.find(text, messageText) then
playAlarm()
end
end)
local creatureNames =
{
"Dragon",
"Rat",
"Rotworm",
"Npc name works here too"
}
macro(1000, "Alarm when creature", function()
for _, spec in ipairs(getSpectators()) do
for _, creature in pairs(creatureNames) do
if spec:getName():lower():find(creature:lower()) then
playAlarm()
end
end
end
end)
--Created by Thirstix aka Stixu--
local center={y=1146, x=920, z=9}
macro(10, "Dance", function()
if(posx()>=center.x-2 and posx()<=center.x+2 and posy()>=center.y-2 and posy()<=center.y+2) then
local safeClosestPositionCoord=nil
local safeClosestPosition=99
local safeClosestPositionCenter=99
local unSafe=nil
for i, tile in ipairs(g_map.getTiles(posz())) do
local effectDeteced=0
for j, fx in ipairs(tile:getEffects()) do
if(fx:getId()>=19 and fx:getId()<=25) then
effectDeteced=1
end
if(fx:getId()<=25 and fx:getId()>=19 and getDistanceBetween(pos(),tile:getPosition())==0) then
unSafe=1
end
end
if(getDistanceBetween2(pos(),tile:getPosition())==1 and getDistanceBetween2(center,tile:getPosition())<getDistanceBetween2(pos(),center) and effectDeteced==0) then
autoWalk(tile:getPosition(), 100, {ignoreNextOutfitWindow=true})
return
elseif(getDistanceBetween(pos(),tile:getPosition())==1 and getDistanceBetween2(center,tile:getPosition())<getDistanceBetween2(pos(),center) and effectDeteced==0) then
tilePos = tile:getPosition()
if(tilePos.x+1==posx() and tilePos.y-1==posy()) then
g_game.walk(SouthWest,false)
return
elseif(tilePos.x+1==posx() and tilePos.y+1==posy()) then
g_game.walk(NorthWest,false)
return
elseif(tilePos.x-1==posx() and tilePos.y-1==posy()) then
g_game.walk(SouthEast,false)
return
elseif(tilePos.x-1==posx() and tilePos.y+1==posy()) then
g_game.walk(NorthEast,false)
return
end
end
if(getDistanceBetween2(pos(),tile:getPosition())<safeClosestPosition and effectDeteced==0 and tile:isWalkable()) then
safeClosestPositionCoord=tile:getPosition()
safeClosestPosition=getDistanceBetween2(pos(),tile:getPosition())
safeClosestPositionCenter=getDistanceBetween2(center,tile:getPosition())
end
if(getDistanceBetween2(pos(),tile:getPosition())==safeClosestPosition and getDistanceBetween2(center,tile:getPosition())<safeClosestPositionCenter and effectDeteced==0 and tile:isWalkable()) then
safeClosestPositionCoord=tile:getPosition()
safeClosestPosition=getDistanceBetween2(pos(),tile:getPosition())
safeClosestPositionCenter=getDistanceBetween2(center,tile:getPosition())
end
end
if unSafe then
if(getDistanceBetween(pos(),safeClosestPositionCoord)==1 and getDistanceBetween2(pos(),safeClosestPositionCoord)==2) then
if(safeClosestPositionCoord.x+1==posx() and safeClosestPositionCoord.y-1==posy()) then
g_game.walk(SouthWest,false)
return
elseif(safeClosestPositionCoord.x+1==posx() and safeClosestPositionCoord.y+1==posy()) then
g_game.walk(NorthWest,false)
return
elseif(safeClosestPositionCoord.x-1==posx() and safeClosestPositionCoord.y-1==posy()) then
g_game.walk(SouthEast,false)
return
elseif(safeClosestPositionCoord.x-1==posx() and safeClosestPositionCoord.y+1==posy()) then
g_game.walk(NorthEast,false)
return
end
else
autoWalk(safeClosestPositionCoord, 100, {ignoreNonPathable = true})
end
end
end
end)
macro(100, "Auto Haste", nil, function()
if not hasHaste() and storage.autoHasteText:len() > 0 then
if saySpell(storage.autoHasteText) then
delay(2000)
end
end
end)
addTextEdit("autoHasteText", storage.autoHasteText or "utani hur", function(widget, text)
storage.autoHasteText = text
end)
function getDistanceBetween2(Coord1,Coord2)
return (Coord1.x-Coord2.x)*(Coord1.x-Coord2.x)+(Coord1.y-Coord2.y)*(Coord1.y-Coord2.y)
end
Did you ever get a script to do this macro for specific set equipper?Would someone be able to make macro that by 1click wears on EQ for DMG and EQ for Survivability just like on screen ?
View attachment 42949
Any tips what commandline in lua files makes that u wear item of specific ID would be useful too.
Thanks
Did you ever get a script to do this macro for specific set equipper?