Quote:
Originally Posted by Lynne77
is there a script to auto loot kibrium mob,since we afk as ally or league,and manually loot after the lead is done killing
we just stand in one spot anyway since lead is taking mob to us
|
I tried the 2 monster farming from short script library myself but it didn't work, it actually tried to loot but looting there takes ages, so my character would stop trying to loot after some time and lost the loot. It also took a ton of CPU because it is a real time combat script which in our case it is absolutely useless since we do not even need to kill the mob
I assume you are in the asmodian side where people bring the bosses there and kill them there. If you are an elyos, forget about this post.
----------
This script will work for asmodians, it will work for that camp, it will go back to obelisk on death and return to the right spot using the teleporter.
What it does is that it keeps selecting nearest corpses using F9 keybind and tries to loot for 10 seconds or until there is no target anymore. Of course there are times he won't be able to loot it within half a minute because people tend to loot really slowly, so this will round robin, the mobs take too long to disappear so it will reselect the same corpse and most likely loot it after some time. It will also select corpses that you already looted but it doesn't matter because F9 keeps selecting all near corpses and not just the nearest to you so it will round robin in all corpses. It also returns to the center of the camp every 30 seconds or so, chest for potion need etc, in case some corpse is outside the camp so he is back to security.
I wanted to make the script smarter, by making it looting only the mobs that are "lootable" but there is no code to show me if a corpse is lootable or not, this would have made it better, it would keep trying to loot a lootable corpse until it did loot it. but it still works this way.
Also this was done for a chanter I played so I put him to do stamina restoration (those mobs usually do AoE) and also used a potion command just in case.
If you are not familiar with code this might not be too helpful for you because you might need to tweak it to make it work for you. Last time I played it was 3 weeks ago, kibriums are not really profitable for me, so I'd rather not do it.
-----------
I did this with 10 fps so I could load like 8 clients in that crowded place and still my CPU could handle those. Start it on the camp and let it do its magic. ALL my characters had the exact amount of kibrium and cubicle pouches, so it means it worked perfectly for all of them and not a single char had missed a loot. I hope it still works.
Code:
#IF=%FirstTime,;
UseSpeed=1;
#UseLoop
#SmoothBackground
MemPtrWrite=%AddrFPS,%OffsetFPS1,10,BYTE;
MemPtrWrite=%AddrFPS,%OffsetFPS2,10,FLOAT;
Command=;
#ENDIF
#EXECUTE=CheckDead;
FlySmooth=1757.077,2342.383,254; go to the right spot again
MemPtrWrite=%AddrThirdPerson,%OffsetThirdPerson,90,FLOAT; <--camera
MemWrite=%AddrCamX,0,FLOAT;
MemWrite=%AddrCamY,90,FLOAT;
Delay=100;
Command=/skill Stamina Restoration;
Delay=100;
_ACPotion=Superior Recovery Potion,HP/MP,60,99;
#DO=31000;
SendKey=0x78; F9 to select nearest corpse
Delay=500;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
SendKey=0x43;
Delay=1000;
#UNTIL=%TargetName,---;
######################################################################################
start_CheckDead;
_IFFrameVisible=267;
#DO=15000;
MemWrite=%AddrResurrect,7,BYTE; <- Resurrect
_UNTILMemPtrRead=%PlayerBase,%OffsetHP,DWORD,>0;
Delay=2500;
#EXECUTE=FindSoulHealer;
Delay=1000;
#EXECUTE=Return;
#ENDIF
end_CheckDead;
start_FindSoulHealer;
MemWrite=%AddrCamY,85,FLOAT;
#DO=7000;
SendKey=0x76;
Delay=35;
_UNTILMemPtrRead=%TargetBase,%OffsetData/0x1090,CHAR[10],=soulhealer;
_IFMemPtrRead=%TargetBase,%OffsetData/0x1090,CHAR[10],=soulhealer;
#DO=15000;
Command=/attack;
Delay=1550;
DialogClick=NpcFunc128;
Delay=750;
_UNTILMemPtrRead=%AddrFrameID[525],0x28,BYTE,=175;
FrameAction=525,XPOS,0;
FrameAction=525,YPOS,0;
Delay=550;
Mouse=160,95;
Delay=750;
_UNTILMemPtrRead=%PlayerBase,%OffsetPercentHP,BYTE,=100;
#ELSE
_ACReg=;
#ENDIF
SendKey=0x1B;
Delay=15;
SendKey=0x1B;
MemPtrWrite=%AddrFrameID[19],0x28,142,BYTE;
MemWrite=%AddrCamY,25,FLOAT;
#EXECUTE=CheckAutoLoot;
end_FindSoulHealer;
start_Return;
FlySmooth=2882.3,2502.8,310;
FlySmooth=2882,2505,310;
FlySmooth=2881.6,2507.1,310;
FlySmooth=2880.3,2510,310;
FlySmooth=2879,2512.9,310;
FlySmooth=2877.6,2515.8,310;
#DO=5000;
Command=/select Teleport Device;
Delay=150;
Command=/attack;
Delay=500;
_UNTILMemPtrRead=%AddrDialoghwnd,%OffsetDialoghwnd,BYTE,=175;
Delay=750;
_IFMemPtrRead=%AddrDialoghwnd,%OffsetDialoghwnd,BYTE,=175;
Delay=1000;
Mouse=396,243;
Delay=1500;
Mouse=130,162;
Delay=1500;
Mouse=207,282;
Delay=3000;
#DO=10000;
Delay=500;
#UNTIL=%Position,1742.918/2346.108/254;
Delay=2500;
#ENDIF
FlySmooth=1757.077,2342.383,254;
end_Return;