Question/Sigils
Question/Sigils
How to completely disable looting the sigils?
-
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Question/Sigils
I modded my player.lua to do this the other day:
search for the lines below:
replace with:
then, if you want to loot them, you can just add a LOOT_SIGILS option to your characters profile. e.g.
search for the lines below:
Code: Select all
local sigil = getNearestSigil();
--while( sigil ) do
if( sigil ) then
local dist = distance(self.X, self.Z, self.Y, sigil.X, sigil.Z, sigil.Y);
local angle = math.atan2(sigil.Z - self.Z, sigil.X - self.X);
local yangle = math.atan2(sigil.Y - self.Y, ((sigil.X - self.X)^2 + (sigil.Z - self.Z)^2)^.5 );
local nY = self.Y + math.sin(yangle) * (dist + 15);
local hypotenuse = (1 - math.sin(yangle)^2)^.5
local nX = self.X + math.cos(angle) * (dist + 15) * hypotenuse;
local nZ = self.Z + math.sin(angle) * (dist + 15) * hypotenuse;
self:moveTo( CWaypoint(nX, nZ, nY), true );
yrest(500);
self:update();
sigil = getNearestSigil();
end
Code: Select all
if (settings.profile.options.LOOT_SIGILS) then
local sigil = getNearestSigil();
--while( sigil ) do
if( sigil ) then
local dist = distance(self.X, self.Z, self.Y, sigil.X, sigil.Z, sigil.Y);
local angle = math.atan2(sigil.Z - self.Z, sigil.X - self.X);
local yangle = math.atan2(sigil.Y - self.Y, ((sigil.X - self.X)^2 + (sigil.Z - self.Z)^2)^.5 );
local nY = self.Y + math.sin(yangle) * (dist + 15);
local hypotenuse = (1 - math.sin(yangle)^2)^.5
local nX = self.X + math.cos(angle) * (dist + 15) * hypotenuse;
local nZ = self.Z + math.sin(angle) * (dist + 15) * hypotenuse;
self:moveTo( CWaypoint(nX, nZ, nY), true );
yrest(500);
self:update();
sigil = getNearestSigil();
end
end
Code: Select all
<option name="LOOT_SIGILS" value="true" />
Re: Question/Sigils
Very thanks for your reply.. + it works!
Re: Question/Sigils
Do you guys want this in the bot? I could add it to the update I'm doing. Although I'd have to do it properly do it functions like it used toif users don't use the option.
It would also be nice to be able to collect the sigils even when not looting.
It would also be nice to be able to collect the sigils even when not looting.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Question/Sigils
sounds like a plan. I added it to my bot as I found it would run me off walls in KS and get me stuck doesn't help much when that happens
Re: Question/Sigils
BTW, the LOOT_SIGILS profile option has been added to revision 709.
If not used then sigils will be collected if LOOT is enable, like it was before.
If LOOT_SIGILS is true then it will loot sigils, regardless of the LOOT setting.
If LOOT_SIGILS is false then it won't loot sigils, regardless of the LOOT setting.
If not used then sigils will be collected if LOOT is enable, like it was before.
If LOOT_SIGILS is true then it will loot sigils, regardless of the LOOT setting.
If LOOT_SIGILS is false then it won't loot sigils, regardless of the LOOT setting.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests