Page 1 of 1

Question/Sigils

Posted: Sat Apr 28, 2012 6:23 am
by eragonios
How to completely disable looting the sigils?

Re: Question/Sigils

Posted: Sun Apr 29, 2012 2:10 pm
by BillDoorNZ
I modded my player.lua to do this the other day:

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
replace with:

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
then, if you want to loot them, you can just add a LOOT_SIGILS option to your characters profile. e.g.

Code: Select all

    <option name="LOOT_SIGILS" value="true" />    

Re: Question/Sigils

Posted: Mon Apr 30, 2012 2:49 pm
by eragonios
Very thanks for your reply.. + it works!

Re: Question/Sigils

Posted: Tue May 01, 2012 12:31 am
by rock5
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.

Re: Question/Sigils

Posted: Tue May 01, 2012 3:02 pm
by BillDoorNZ
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

Posted: Thu May 03, 2012 4:49 am
by rock5
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.