Page 1 of 1

How to use different skills at waypoint?

Posted: Sun Oct 31, 2010 5:51 pm
by miximixi007
Hi,anyone help me?Thx.
For example:
<!-- # 1 --><waypoint x="2273" z="1815">
I wanna use skills 4\5\6
</waypoint>
<!-- # 2 --><waypoint x="2284" z="1834">
here I wanna use skills 6\7
</waypoint>

Re: How to use different skills at waypoint?

Posted: Sun Oct 31, 2010 7:21 pm
by hellburns
try this

Code: Select all

<!-- # 1 --><waypoint x="2273" z="1815">
keyboardPress(key.VK_4); yrest(5000)
keyboardPress(key.VK_5); yrest(5000)
keyboardPress(key.VK_6); yrest(5000)
</waypoint>
<!-- # 2 --><waypoint x="2284" z="1834">
keyboardPress(key.VK_6); yrest(5000)
keyboardPress(key.VK_7); yrest(5000)
</waypoint>

Re: How to use different skills at waypoint?

Posted: Sun Oct 31, 2010 11:08 pm
by miximixi007
sorry,I mean when i meet the monster,i will cast those skills,how to change the setting like:
<skills_mage>
<skill name="MAGE_FLAME" modifier="" hotkey="VK_4" priority="80" />
<skill name="MAGE_ELEMENTAL_CATALYST" modifier="" hotkey="VK_5" priority="30" inbattle="true" />
</skills_mage>

Re: How to use different skills at waypoint?

Posted: Tue Nov 02, 2010 2:33 am
by rock5
miximixi007 wrote:sorry,I mean when i meet the monster,i will cast those skills,how to change the setting like:
<skills_mage>
<skill name="MAGE_FLAME" modifier="" hotkey="VK_4" priority="80" />
<skill name="MAGE_ELEMENTAL_CATALYST" modifier="" hotkey="VK_5" priority="30" inbattle="true" />
</skills_mage>
You could try changing the skills Autouse value.

To tell you the truth I'm not sure how the skills are stored but it looks like you will have to search the list to change them. Try this, but the servers are down at the moment so I couldn't test it.

Code: Select all

	for i,v in pairs(settings.profile.skills) do
		-- Switch off skills
		if v.Name == "Skill_Name4" or v.Name == "Skill_Name5" or v.Name == "Skill_Name6" then
			v.AutoUse = false
		end
		-- Switch on skills
		if v.Name == "Skill_Name6" or v.Name == "Skill_Name7" then
			v.AutoUse = true
		end
	end
And then you do the reverse when you want to switch them back.

Re: How to use different skills at waypoint?

Posted: Tue Nov 02, 2010 5:05 am
by miximixi007
tyvm rock5,work very well.u r the reason of i come to here every day.ty