|
| Created by Rowdan
|
| skill.mac
|
| you need to have the components in your inventory
| open the trade skill window you want to use "I.E. mixing bowl, brewing barrel....."
| select the resipe you want to make from the list
|
| Useage: /mac skill #
|
| where # is put in how many combindes you want to do
| I.E. /mac skill 10
| will combine ten times
|
#Event Fail "You lacked the skills to fashion the items together."
#Event Made "You have fashioned the items together to create something new!"
#Event Miss "Sorry, but you don't have everything you need for this recipe in your general inventory."
#Event SkillUp "You have become better at #1#! (#2#)"
Sub main(int SkillQuant)
/declare loop int local 0
/declare failed int local 0
/declare fail int outer 0
/declare SkillQuantity int outer 0
/varcalc SkillQuantity ${SkillQuant}
/varcalc fail ${failed}
/for loop 1 to ${SkillQuantity} step 1
:docombine
/notify TradeskillWnd CombineButton LeftMouseUp
/delay 10
/doevents
| /echo ${loop} out of ${SkillQuantity}
/next loop
/echo Faild ${fail} times out of ${SkillQuant}
/popup Faild ${fail} times out of ${SkillQuant}
/return
Sub Event_Fail
/varcalc fail ${fail}+1
/echo FAILED ${fail} times out of ${SkillQuantity} tries
/popup FAILED ${fail} times out of ${SkillQuantity} tries
/call item
/return
Sub Event_Made
:check
/delay 2
/if (!${Cursor.ID}) /goto :check
/delay 2
/call item
/delay 10
/return
Sub Event_Miss
/echo you are missing components
/popup Sorry, but you don't have everything you need for this recipe in your general inventory.
/endmacro
/return
Sub Item
:putin
/autoinventory
/delay 10
/if (${Cursor.ID}) /goto :putin
/return
Sub Event_SkillUp(SkillUpText, SkillName, SkillLevel)
/echo Your ${SkillName} Went Up!! It's now ${SkillLevel}!
/popup Your ${SkillName} Went Up!! It's now ${SkillLevel}!
/return