Page 1 of 1

how do i use?

Posted: Wed Jan 25, 2012 9:10 am
by Golbez
just wondering how i would tell the bot to use the magic perfume i have in my inventory every 6 hours.


edit: i was also wondering if this was a good setup for a level 47mage/45priest.

Code: Select all


<skills_mage>
		<skill name="MAGE_FLAME"                hotkey="MACRO" priority="80" />
		<skill name="MAGE_FIREBALL"          	hotkey="MACRO" priority="80" />
		<skill name="MAGE_LIGHTNING"         	hotkey="MACRO" priority="50" />
		<skill name="PRIEST_RISING_TIDE"     	hotkey="MACRO" priority="50" />
		<skill name="MAGE_ELEMENTAL_WEAKNESS"   hotkey="MACRO" priority="85" nobuffname="target" nobufftarget="target"/>

		<skill name="MAGE_INTENSIFICATION" 		hotkey="MACRO" priority="20" hpper="15" />
		<skill name="MAGE_ENERGY_WELL" 		  	hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ENERGY_INFLUX" 	  	hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ELEMENTAL_CATALYST"   hotkey="MACRO" priority="60" manaper="75" inbattle="true" />
		<skill name="MAGE_ESSENCE_OF_MAGIC" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="MAGE_FIRE_WARD"			hotkey="MACRO" priority="20" rebuffcut="50" inbattle="false" />
		<skill name="PRIEST_BLESSED_SPRING_WATER"	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_MAGIC_BARRIER"  	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false"/>

		<skill name="PRIEST_URGENT_HEAL"     	hotkey="MACRO" priority="100" hpper="60"  />
		<skill name="PRIEST_REGENERATE"      	hotkey="MACRO" priority="90"  hpper="80" />
		<skill name="MAGE_ELECTROSTATIC_CHARGE" hotkey="MACRO" priority="100" inbattle="true" hpper="35" nobuffname="player" nobufftarget="player"/>
		<skill name="PRIEST_HOLY_AURA"       	hotkey="MACRO" priority="100" inbattle="true" hpper="25" />
	</skills_mage>



Re: how do i use?

Posted: Wed Jan 25, 2012 11:18 am
by MustHave
First you need to find out the item id:
go and check out on http://de.runesdatabase.com
Because there are several items of magic perfume (time is the difference) you need to pick up the right item id of which one you have in your bag.

- Just search for magic perfume then click the right item.
- Look into the browser address bar there you see some numbers. This is your item id

Example:
http://de.runesdatabase.com/item/207582/magic-perfume-1-day
then open your profile and put in onleave combat:

Code: Select all

	<onLeaveCombat><![CDATA[
		-- Additional Lua code to execute after killing an enemy
	]]>
	if (not player:hasBuff("buffname")) then
	inventory:useItem(207582);
	end
	</onLeaveCombat>
As I didn't know what's the exact buffname of your item I used a placeholder.
This will always check after each fight if you still have the buff and if not will use the item if it could.

Re: how do i use?

Posted: Thu Jan 26, 2012 1:56 am
by Golbez
ty for your help :D

Re: how do i use?

Posted: Thu Jan 26, 2012 9:02 am
by MustHave
You're welcome buddy ;)