Question/Sigils

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
eragonios
Posts: 13
Joined: Thu Sep 08, 2011 6:42 am

Question/Sigils

#1 Post by eragonios » Sat Apr 28, 2012 6:23 am

How to completely disable looting the sigils?

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Question/Sigils

#2 Post by BillDoorNZ » Sun Apr 29, 2012 2:10 pm

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" />    

eragonios
Posts: 13
Joined: Thu Sep 08, 2011 6:42 am

Re: Question/Sigils

#3 Post by eragonios » Mon Apr 30, 2012 2:49 pm

Very thanks for your reply.. + it works!

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Question/Sigils

#4 Post by rock5 » Tue May 01, 2012 12:31 am

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.
  • 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

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Question/Sigils

#5 Post by BillDoorNZ » Tue May 01, 2012 3:02 pm

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 :)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Question/Sigils

#6 Post by rock5 » Thu May 03, 2012 4:49 am

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.
  • 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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests