Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 1,072
» Latest member: Fishing Phillip Island
» Forum threads: 120
» Forum posts: 501

Full Statistics

Online Users
There are currently 19 online users.
» 0 Member(s) | 19 Guest(s)

Latest Threads
2.0.17 or 2.1.17
Forum: General
Last Post: NightCrawler504
11-10-2018, 01:03 AM
» Replies: 2
» Views: 45
3M silicone rubber window...
Forum: General
Last Post: danmei
11-05-2018, 06:38 AM
» Replies: 0
» Views: 34
folding bread box manufac...
Forum: General
Last Post: danmei
11-05-2018, 06:34 AM
» Replies: 0
» Views: 17
Security Seal Stickers su...
Forum: General
Last Post: danmei
11-05-2018, 06:31 AM
» Replies: 0
» Views: 17
China Knee Cap suppliers
Forum: General
Last Post: danmei
11-05-2018, 06:27 AM
» Replies: 0
» Views: 15
Click Model Vinyl Floorin...
Forum: General
Last Post: danmei
11-05-2018, 06:26 AM
» Replies: 0
» Views: 11
best Custom designed fash...
Forum: General
Last Post: danmei
11-05-2018, 06:21 AM
» Replies: 0
» Views: 17
Customized Carbon steel P...
Forum: General
Last Post: danmei
11-05-2018, 06:20 AM
» Replies: 0
» Views: 13
5V4.2A 3 USB car charger ...
Forum: General
Last Post: danmei
11-05-2018, 06:19 AM
» Replies: 0
» Views: 13
79418-78-3 CRO
Forum: General
Last Post: danmei
11-05-2018, 06:16 AM
» Replies: 0
» Views: 14

 
  Functions for logging out when if we get stuck or the nav mesh crash
Posted by: Logitech - 11-08-2017, 02:56 PM - Forum: General - Replies (1)

Im back leveling with this bot and since I've been having problems with the nav mesh crashing I dont wanna get banned standing still forever... So I made some functions for detection this...

Add these functions and run: StopIfStuck(); on every iteration.

function SavePos()
    local x, y, z = GetUnitsPosition(GetLocalPlayer());
    SetVar('myX', x);
    SetVar('myY', y);
    SetVar('myZ', z);  
    SetVar('myTime', GetTimeX());
end

function GetSavedX() if (GetVar('myX') ~= 0) then return GetVar('myX'); else return 0; end end
function GetSavedY() if (GetVar('myY') ~= 0) then return GetVar('myY'); else return 0; end end
function GetSavedZ() if (GetVar('myZ') ~= 0) then return GetVar('myZ'); else return 0; end end
function GetSavedTime() if (GetVar('myTime') ~= 0) then return GetVar('myTime'); else return 0; end end

function GetDistanceDif()
    local x, y, z = GetUnitsPosition(GetLocalPlayer());
    local xV = GetSavedX()-x;
    local yV = GetSavedY()-y;
    local zV = GetSavedZ()-z;
    return math.sqrt(xV^2 + yV^2 + zV^2);
end

function StopIfStuck()
    -- Draw functions
    DrawText('Stuck feature:', 250, 240, 255, 255, 0);
    DrawText('Current distance to last saved coordinates: ' .. math.floor(GetDistanceDif()) .. ' yards...', 250, 250, 255, 255, 255);
    DrawText('Logging out in' .. ' ' .. math.floor(30-((GetTimeX()-GetSavedTime())/1000)) .. ' s if we do not move or save a new position...', 250, 260, 255, 255, 255);
    DrawText('New position is saved if we move more than 20 yards or when we are in combat or eating...', 250, 270, 255, 255, 255);

    -- Save our pos if we moved more then 20 yards or if we are in combat or eating
    if (GetDistanceDif() > 20 or IsInCombat() == 1 or IsEating() == 1) then
        SavePos();
        return;
    end

    -- Check if we are stuck/standing still (moved less than 20 yards) since 30 sec since last saved position
    if (GetDistanceDif() < 20 and ((GetTimeX()-GetSavedTime())/1000) > 30) then
        if (logOutIfStuck) then Logout(); end
        StopBot();
        return;
    end
end


  Log4cplus: ERROR No appenders coud be found for logger <AdSyncNamespace>
Posted by: Akaronte - 11-07-2017, 11:48 AM - Forum: Support - No Replies

Log4cplus: ERROR No appenders coud be found for logger <AdSyncNamespace>



Attached Files Thumbnail(s)
   

Star Shaman 1.2b (w/ totems)
Posted by: SomebodyFound - 11-06-2017, 07:05 AM - Forum: Shaman - Replies (5)

i've had a hard time with those totems, it should be so simple, but the bot sometimes did landed the totems, sometimes it didn't....

now it seems to be working properly, so i decided to release, but consider it as a beta, feedback would be nice <3 


-- Version 1.1 and beyond modified by SomebodyFound
-- from original 1.0 Logitech work
--
-- V1.1
-- -fixed: walking stuttering for low level shamans
-- -added: new drinking logic with driking lists
-- -added: new eating logic with drinking lists
-- -added: new potion logic with potion lists
-- -added: new bandage logic with bandage lists
-- all logics implemented from beniamin rogue's rotation
-- V1.2b
-- -added: totems
-- -added: now you can choose wich elemental shock
-- will be used (earth by default)
-- -added: flame shock will be used to renew the debuff
-- (toggleable)
-- -added: ice shock may now be used to renew debuff
-- (toggleable, false by default)
-- V1.3
-- -added: Lightning bolt is now toggleable
-- -added: air totem
-- -fixed: bandage wasn't working as intended
-- -added: stormstrike (toggleable, false by default)


have fun!



Attached Files
.lua   Shaman.lua (Size: 26.38 KB / Downloads: 209)

  Simple Druid profile 1.6
Posted by: SomebodyFound - 11-04-2017, 10:52 PM - Forum: Druid - Replies (15)

-- 1.1 minor fixes
-- 1.2 added bear fight
-- 1.3 fixed some heal issues 
-- version 1.4 by somebodyfound
-- -added: Bandage logic
-- -added: Potion logic
-- -added: new eat logic
-- -added: new drink logic
-- all new logics are based on beniamin's rogue rotation
-- version 1.5 by somebodyfound
-- -added: rejuvenation to the rotation
-- -fixed: Bandage logic wasn't working as intended
-- -fixed: re-cast moonfire when debuff ends
-- -added: demoralizing roar to the rotation
-- -added: will now use enrage in-combat (toggleable)
-- -added: demoralizing roar is now toggleable 
-- -added: rejuvenate is now toggleable 
-- and also used out of combat
-- version 1.6 by somebodyfound and teewee
-- -added: now demoralizing roar can be
-- configured to use only when fighting
-- a certain number of enemies
-- -added: new paranoid function for elven druids
-- 1.6b
-- -added: use maul faster depending on cost red. talent
-- -fixed: enrage wasn't working as intended
-- (still need better fix, but it's at least working now)


have fun



Attached Files
.lua   Druid.lua (Size: 33.45 KB / Downloads: 257)

Heart Auto-pot
Posted by: SomebodyFound - 10-18-2017, 10:39 PM - Forum: Warlock - No Replies

Basic auto-use potion rotation, it'll by default use potions when 50% or lower, and healthstone at 30% or lower

note: works on any class



Attached Files
.lua   AutoPot.lua (Size: 1.19 KB / Downloads: 128)

  South_of_Camp_Tarajo_level_22-25
Posted by: zerger - 10-18-2017, 04:42 PM - Forum: 20 to 29 - No Replies

by MrMagoo



Attached Files
.xml   South_of_Camp_Tarajo_level_22-25.xml (Size: 13.95 KB / Downloads: 182)

  South_Barrens_20-26
Posted by: zerger - 10-18-2017, 04:40 PM - Forum: 20 to 29 - No Replies

by MrMagoo



Attached Files
.xml   South_Barrens_20-26.xml (Size: 22.34 KB / Downloads: 197)

  Shimmer_Flats_31-34
Posted by: zerger - 10-18-2017, 04:37 PM - Forum: 30 to 39 - No Replies

by MrMagoo



Attached Files
.xml   Shimmer_Flats_31-34.xml (Size: 16.68 KB / Downloads: 176)

  Northwest_Feralas__48-50
Posted by: zerger - 10-18-2017, 04:35 PM - Forum: 40 to 49 - No Replies

by MrMagoo



Attached Files
.xml   Northwest_Feralas__48-50.xml (Size: 2.42 KB / Downloads: 160)

  Mid_Barrens_15-17
Posted by: zerger - 10-18-2017, 04:34 PM - Forum: 10 to 19 - No Replies

by MrMagoo



Attached Files
.xml   Mid_Barrens_15-17.xml (Size: 3.22 KB / Downloads: 196)