AA's Snippet Addendums to Conj Routines

Status
Not open for further replies.

AnyoneAnywhere

Active Member
This one is for a Sacrifice toggle. Requires some common sense to know where everything goes, but you're all smart guys.

..Class Routines\Conjurer.iss

Add:
Code:
SacMode:Set[${SettingXML[${charfile}].Set[${Me.SubClass}].GetString[Use Sacrifice,TRUE]}]
Add:
Code:
declare SacMode bool script 1
Append to the end of the Expiation IF check:
Code:
&& ${SacMode}
Append to the beginning of the Expiation IF check:
Code:
${SacMode} &&
..UI\Conjurer.iss

Add:
Code:
	<Commandcheckbox Name='UseSac' Template='EQ2.Commandcheckbox'>
		<Visible>1</Visible>
		<X>10</X>
		<Y>230</Y>
		<Width>30%</Width>
		<Height>20</Height>
		<Text>Use Sacrifice</Text>
		<OnLeftClick>
			if ${This.Checked}
			{
				Script[EQ2Bot].Variable[SacMode]:Set[TRUE]
				SettingXML[Scripts/EQ2Bot/Character Config/${Me.Name}.xml].Set[${Me.SubClass}]:Set["Use Sacrifice",TRUE]:Save
			}
			else
			{
				Script[EQ2Bot].Variable[SacMode]:Set[FALSE]
				SettingXML[Scripts/EQ2Bot/Character Config/${Me.Name}.xml].Set[${Me.SubClass}]:Set["Use Sacrifice",FALSE]:Save
			}
		</OnLeftClick>
		<Data>${SettingXML[Scripts/EQ2Bot/Character Config/${Me.Name}.xml].Set[${Me.SubClass}].GetString[Use Sacrifice]}</Data>
	</Commandcheckbox>
Haven't tested it thoroughly, but I don't see why it shouldn't work.
 
Last edited:
Status
Not open for further replies.
Top Bottom