Moderator: MacroQuest Developers

tailoring.ini
Code: Select all
[WUCL]
Cont=Large Sewing Kit
Comp0=gorget pattern
Comp1=heady kiola
Comp2=heady kiola
Comp3=heady kiola
Comp4=heady kiola
Comp5=silk swatch
Comp6=vial of viscous mana
[WUC]
Cont=Large Sewing Kit
Comp0=cap pattern
Comp1=heady kiola
Comp2=heady kiola
Comp3=heady kiola
Comp4=heady kiola
Comp5=silk swatch
Comp6=vial of viscous mana
[WUS]
Cont=Large Sewing Kit
Comp0=sleeve pattern
Comp1=heady kiola
Comp2=heady kiola
Comp3=heady kiola
Comp4=heady kiola
Comp5=silk swatch
Comp6=silk swatch
Comp7=vial of viscous mana
[SS]
Cont=Large Sewing Kit
Comp0=spider silk
Comp1=spider silk
Code: Select all
|
| Tailoring.mac
| Tailoring Macro from 1 to 151
| Version 1.1
| Date: September 14, 2004
|
| Please be sure to get the lastest updates at http://www.soc-music.com/mq2/
|
| Before are the settings you need to change for you.
| This Macro can take you up to 151 in tailoring.
| SkillMaxWanted can be change to what skill you want to stop at.
|
| You will need to be in front of Caerlyna in the bazaar before you start it.
|
| Disclaimer:
| Code was used from other programers also from the MQ Forums.
|
#event CombineError "#*#There was no place to put that#*#"
#event CombineError "#*#You cannot combine these items in this container type!#*#"
#event CombineError "#*#did not accept these items#*#"
#include common/sell.inc
#include common/packs.inc
#include common/cleanpacks.inc
#include common/bazaarbuy.inc
#include common/buy.inc
#include common/gogetitem.inc
Sub Main
/declare ItemToBuy string inner
/declare HighestPriceToPay int inner
/declare TotalYouWant int inner
/declare OldSkill int outer
/declare SkillMaxWanted int outer
/declare PackCode string outer
/declare Component[10] string outer
/declare i int outer
/declare CombItemName string outer
/declare ItemTo string outer
/declare EndingVar int outer
/declare SSwatch item outer
/declare VMana item outer
/declare PatternT item outer
/declare HKiola item outer
/varset OldSkill ${Me.Skill[Tailoring]}
| ************************************************
| * Change these settings to what you want. *
| ************************************************
/varset SkillMaxWanted 151
| ************************************************
| ************************************************
:start
/echo Tailoring is at ${Me.Skill[Tailoring]}
/if (${Me.Skill[Tailoring]}>=${SkillMaxWanted}) {
/echo Tailoring is at ${SkillMaxWanted}. Quiting!
/endmacro
}
/if (${Me.Skill[Tailoring]}<128) {
/varset HKiola "heady kiola"
/varset SSwatch "silk swatch"
/varset VMana "vial of viscous mana"
/varset PatternT "gorget pattern"
/varset CombItemName "WUCL"
/varset ItemTo "Wu's Fighting Collar"
}
/if (${Me.Skill[Tailoring]}>=128 && ${Me.Skill[Tailoring]}<142) {
/varset HKiola "heady kiola"
/varset SSwatch "silk swatch"
/varset VMana "vial of viscous mana"
/varset PatternT "cap pattern"
/varset CombItemName "WUC"
/varset ItemTo "Wu's Fighting Cap"
}
/if (${Me.Skill[Tailoring]}>=142 && ${Me.Skill[Tailoring]}<151) {
/varset HKiola "heady kiola"
/varset SSwatch "silk swatch"
/varset VMana "vial of viscous mana"
/varset PatternT "sleeve pattern"
/varset CombItemName "WUS"
/varset ItemTo "Wu's Fighting Sleeves"
}
| *****************************************************
| * Buying Heady Kiola *
| *****************************************************
:headykiola
/varset ItemToBuy Heady Kiola
/varset HighestPriceToPay 10000
/varset TotalYouWant 80
/call BazaarBuy "${ItemToBuy}" ${HighestPriceToPay} ${TotalYouWant}
/if (${FindItemCount[=${ItemToBuy}]}<${TotalYouWant}) /goto :headykiola
/ech Done getting Heady Kiola!
| *****************************************************
| *****************************************************
| *****************************************************
| * Buying Vial of Viscous Mana *
| *****************************************************
:viscousmana
/varset ItemToBuy Vial of Viscous Mana
/varset HighestPriceToPay 10000
/varset TotalYouWant 20
/call BazaarBuy "${ItemToBuy}" ${HighestPriceToPay} ${TotalYouWant}
/if (${FindItemCount[=${ItemToBuy}]}<${TotalYouWant}) /goto :viscousmana
/ech Done getting Vial of Viscous Mana!
| *****************************************************
| *****************************************************
| *****************************************************
| * Buying Pattern *
| *****************************************************
:MovePattern
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -766.00,0.00
/if (${Math.Distance[-766.00,0.00]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-766.00,0.00]}<=2) {
/nomodkey /keypress forward
/goto :MovePatterna
}
/goto :MovePattern
:MovePatterna
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -604.45,-19.68
/if (${Math.Distance[-604.45,-19.68]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-604.45,-19.68]}<=2) {
/nomodkey /keypress forward
/goto :DonePattern
}
/goto :MovePatterna
:DonePattern
/varset EndingVar 1
/target Dolsoj
/face
/delay 1s
/nomodkey /click right target
/delay 2s
/call Buy ${PatternT} 20
/delay 1s
/nomodkey /notify MerchantWnd DoneButton leftmouseup
/delay 2s
:MoveLoopPatternb
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -604.45,-19.68
/if (${Math.Distance[-604.45,-19.68]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-604.45,-19.68]}<=2) {
/nomodkey /keypress forward
/goto :MovePatternc
}
/goto :MovePatternb
:MovePatternc
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -766.00,0.00
/if (${Math.Distance[-766.00,0.00]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-766.00,0.00]}<=2) {
/nomodkey /keypress forward
/goto :DonePatterna
}
/goto :MovePatternc
:DonePatterna
/echo Done getting Patterns!
| *****************************************************
| *****************************************************
| *****************************************************
| * Getting Silk Swatch *
| *****************************************************
/if (${FindItemCount[=Silk Swatch]}<40) {
/call GetSwatch
/echo Done getting Silk Swatches!
} else {
/echo Already have Swatches!
}
| *****************************************************
| *****************************************************
| *****************************************************
| * Doing Combine *
| *****************************************************
/varset EndingVar 1
/call OpenPacks
/delay 1s
/call readIni "${CombItemName}"
:Begin
/if (${EndingVar}==1) /call ClearCursor
/for i 1 to 10
/if (${EndingVar}==1) /call AddComp "${Component[${i}]}" ${i}
/next i
/if (${EndingVar}==1) /call DoCombine
/if (${EndingVar}==1) /goto :Begin
/call ClosePacks
| *****************************************************
| *****************************************************
| *****************************************************
| * Selling Combines *
| *****************************************************
:MoveSell
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -766.00,0.00
/if (${Math.Distance[-766.00,0.00]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-766.00,0.00]}<=2) {
/nomodkey /keypress forward
/goto :MoveSella
}
/goto :MoveSell
:MoveSella
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -604.45,-19.68
/if (${Math.Distance[-604.45,-19.68]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-604.45,-19.68]}<=2) {
/nomodkey /keypress forward
/goto :DoneSell
}
/goto :MoveSella
:DoneSell
/varset EndingVar 1
/target Dolsoj
/face
/delay 1s
/nomodkey /click right target
/call OpenPacks
/delay 2s
/call Sell ${ItemTo}
/delay 1s
/nomodkey /notify MerchantWnd DoneButton leftmouseup
/call ClosePacks
:MoveSellb
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -604.45,-19.68
/if (${Math.Distance[-604.45,-19.68]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-604.45,-19.68]}<=2) {
/nomodkey /keypress forward
/goto :MoveSellc
}
/goto :MoveSellb
:MoveSellc
/if (${Me.State.Equal[SIT]}) /stand
/face nolook loc -766.00,0.00
/if (${Math.Distance[-766.00,0.00]}>2) /nomodkey /keypress forward hold
/if (${Math.Distance[-766.00,0.00]}<=2) {
/nomodkey /keypress forward
/goto :DoneSella
}
/goto :MoveSellc
:DoneSella
/echo Done Selling!
| *****************************************************
| *****************************************************
/goto :start
/return
Sub readIni(RecipeName)
/declare Container string local
/echo Running ${RecipeName} recipe, which makes ${ItemTo}.
/if (${Ini["tailoring.ini","${RecipeName}",-1,"NOTFOUND"].Equal["NOTFOUND"]}) {
/echo Recipe ${RecipeName} not found
/endmacro
}
/varset Container ${Ini[tailoring.ini,${RecipeName},Cont,Enviro]}
/if (${Container.Equal[Enviro]}) {
/varset PackCode Enviro
} else {
/varset PackCode ${FindItem[=${Container}].InvSlot}
/if (${PackCode.Equal[NULL]}) {
/echo Could not find container ${Container}
/varset EndingVar 2
/return
}
| pack1 = 22, ... , pack8 = 29
/varset PackCode pack${Math.Calc[${PackCode}-21].Int}
}
/call cleanPack "${Container}"
/for i 1 to 10
/varset Component[${i}] ${Ini[tailoring.ini,${RecipeName},Comp${Math.Calc[${i}-1].Int},NOTFOUND]}
/next i
/return
sub ClearCursor
:Loop
/if (!${Cursor.ID}) /return
/autoinv
| /destroy
/delay 5
/doevents
/goto :Loop
/return
sub DoCombine
:Loop
/combine ${PackCode}
/delay 1s
/if (${PackCode.Equal[Enviro]}) /delay 1s
/doevents
/if (${InvSlot[${PackCode}].Item.Items}) /goto :Loop
/delay 5
/if (${Me.Skill[Tailoring]}>${OldSkill}) {
/echo Your Tailoring Went Up!! It's now ${Me.Skill[Tailoring]}!
/varset OldSkill ${Me.Skill[Tailoring]}
}
/return
sub AddComp(CompName, PackSlot)
/if (${CompName.Equal[NOTFOUND]}) /return
/if (!${FindItem[=${CompName}].ID}) {
/echo Could not find ${CompName} in inventory
/beep
/varset EndingVar 2
/return
}
:Loop
/nomodkey /ctrl /itemnotify ${FindItem[=${CompName}].InvSlot} leftmouseup
/if (!${Cursor.ID}) {
/delay 1
/goto :Loop
}
/if (${PackCode.Equal[Enviro]}) {
/nomodkey /itemnotify ${InvSlot[enviro${PackSlot}]} leftmouseup
} else {
/nomodkey /itemnotify in ${PackCode} ${PackSlot} leftmouseup
}
/return
Sub Event_CombineError
/varset EndingVar 2
/return
Sub GetSwatch
/declare ItemToBuy string inner
/declare HighestPriceToPay int inner
/declare TotalYouWant int inner
:swatch
/varset ItemToBuy Spider Silk
/varset HighestPriceToPay 10000
/varset TotalYouWant 200
/call BazaarBuy "${ItemToBuy}" ${HighestPriceToPay} ${TotalYouWant}
/if (${FindItemCount[=${ItemToBuy}]}<${TotalYouWant}) /goto :swatch
/call OpenPacks
/call readIni "SS"
:Begin
/if (${EndingVar}==1) /call ClearCursor
/for i 1 to 10
/if (${EndingVar}==1) /call AddComp "${Component[${i}]}" ${i}
/next i
/if (${EndingVar}==1) /call DoCombine
/if (${EndingVar}==1) /goto :Begin
/call ClosePacks
/return

Code: Select all
|
| jc.mac
| Takes you from 1 to 250 in Jewelry Crafting
| Version 2.2
| Date: August 3, 2004
|
| Please be sure to get the lastest updates at
| http://www.soc-music.com/mq2/index.htm
|
| Before are the settings you need to change for you.
| This Macro can take you up to 250 in Jewelry Crafting.
| SkillMaxWanted can be change to what skill you want to stop at.
| MerchantName is which merchant you are at.
|
| This Macro has been adjusted by Thaner to work in Plane of Knowledge, |
| for those of us without GoD,
| you must be standing inbetween Kirem Deepfacet and Audri Deepfacet
| Might wanna do a manual check by right clicking on
| vendors to see if they are both in range.
| Also, be sure you have a lot of money on you to go from 1 to 250.
| **This was a quick fix and i ran it overnight,
| went from 0 to 191 for 7k pp
|
| Requirements:
| You will need a Jewelry Kit (in the last slot).
|
| Disclaimer:
| Code was used from other programers also from the MQ Forums.
|
#event CombineError "#*#There was no place to put that#*#"
#event CombineError "#*#You cannot combine these items in this container type!#*#"
#event CombineError "#*#did not accept these items#*#"
#include common/sell.inc
#include common/buy.inc
#include common/packs.inc
Sub Main
/declare OldSkill int outer
/declare SkillMaxWanted int outer
/declare PackCode string outer
/declare Component[10] string outer
/declare i int outer
/declare MerchantName1 string Outer
/declare MerchantName2 string Outer
/declare BarItem item outer
/declare GemItem item outer
/declare CombItemName string outer
/declare ItemTo string outer
/declare EndingVar int outer
/declare Levelname int outer
/varset OldSkill ${Me.Skill[Jewelry Making]}
| ************************************************
| * Change these settings to what you want. *
| ************************************************
/varset SkillMaxWanted 250
/varset MerchantName1 "Kirem Deepfacet"
/varset MerchantName2 "Audri Deepfacet"
| ************************************************
| ************************************************
:start
/echo Jewelry Crafting is at ${Me.Skill[Jewelry Making]}
/if (${Me.Skill[Jewelry Making]}>=${SkillMaxWanted}) {
/echo Jewelry Making is at ${SkillMaxWanted}. Quiting!
/endmacro
}
/if (${Me.Skill[Jewelry Making]}>=220 && ${Me.Skill[Jewelry Making]}<250) {
/varset BarItem "platinum bar"
/varset GemItem "jade"
/varset CombItemName "PJ"
/varset ItemTo "Jaded Platinum Ring"
}
/if (${Me.Skill[Jewelry Making]}>=202 && ${Me.Skill[Jewelry Making]}<220) {
/varset BarItem "platinum bar"
/varset GemItem "lapis lazuli"
/varset CombItemName "PLL"
/varset ItemTo "Platinum Lapis Lazuli Necklace"
}
/if (${Me.Skill[Jewelry Making]}>=191 && ${Me.Skill[Jewelry Making]}<202) {
/varset BarItem "gold bar"
/varset GemItem "fire emerald"
/varset CombItemName "GFE"
/varset ItemTo "Fire Emerald Golden Bracelet"
}
/if (${Me.Skill[Jewelry Making]}>=183 && ${Me.Skill[Jewelry Making]}<191) {
/varset BarItem "gold bar"
/varset GemItem "star ruby"
/varset CombItemName "GSA"
/varset ItemTo "Golden Star Ruby Ring"
}
/if (${Me.Skill[Jewelry Making]}>=183 && ${Me.Skill[Jewelry Making]}<191) {
/varset BarItem "gold bar"
/varset GemItem "opal"
/varset CombItemName "GO"
/varset ItemTo "Golden Opal Amulet"
}
/if (${Me.Skill[Jewelry Making]}>=172 && ${Me.Skill[Jewelry Making]}<183) {
/varset BarItem "gold bar"
/varset GemItem "topaz"
/varset CombItemName "GT"
/varset ItemTo "Golden Topaz Earring"
}
/if (${Me.Skill[Jewelry Making]}>=146 && ${Me.Skill[Jewelry Making]}<172) {
/varset BarItem "gold bar"
/varset GemItem "amber"
/varset CombItemName "GA"
/varset ItemTo "Golden Amber Earring"
}
/if (${Me.Skill[Jewelry Making]}>=100 && ${Me.Skill[Jewelry Making]}<146) {
/varset BarItem "gold bar"
/varset GemItem "malachite"
/varset CombItemName "GM"
/varset ItemTo "Gold Malachite Bracelet"
}
/if (${Me.Skill[Jewelry Making]}>=76 && ${Me.Skill[Jewelry Making]}<100) {
/varset BarItem "electrum bar"
/varset GemItem "amber"
/varset CombItemName "EA"
/varset ItemTo "Electrum Amber Earring"
}
/if (${Me.Skill[Jewelry Making]}<76) {
/varset BarItem "electrum bar"
/varset GemItem "lapis lazuli"
/varset CombItemName "EL"
/varset ItemTo "Electrum Lapis Lazuli Earring"
}
/varset EndingVar 1
/target ${MerchantName2}
/face fast
/click right target
/delay 3s
/call Buy ${BarItem} 20
/delay 3s
/notify MerchantWnd DoneButton leftmouseup
/delay 5s
/target ${MerchantName1}
/face fast
/click right target
/delay 3s
/call Buy ${GemItem} 20
/delay 3s
/notify MerchantWnd DoneButton leftmouseup
/delay 5s
/call OpenPacks
/delay 5s
/notify TradeskillWnd ExperimentButton leftmousehold
/notify TradeskillWnd ExperimentButton leftmouseup
/delay 5s
/call readIni "${CombItemName}"
:Begin
/if (${EndingVar}==1) /call ClearCursor
/for i 1 to 10
/if (${EndingVar}==1) /call AddComp "${Component[${i}]}" ${i}
/next i
/if (${EndingVar}==1) /call DoCombine
/if (${EndingVar}==1) /goto :Begin
/delay 1s
/call ClosePacks
/keypress esc
/keypress esc
/target ${MerchantName1}
/face
/click right target
/delay 3s
/call OpenPacks
/delay 5s
/call Sell ${ItemTo}
/delay 3s
/call ClosePacks
/keypress esc
/keypress esc
/goto :start
/return
Sub readIni(RecipeName)
/declare Container string
/echo Running ${RecipeName} recipe, which makes ${ItemTo}.
/if (${Ini["jc.ini","${RecipeName}",-1,"NOTFOUND"].Equal["NOTFOUND"]}) {
/echo Recipe ${RecipeName} not found
/endmacro
}
/varset Container ${Ini[jc.ini,${RecipeName},Cont,Enviro]}
/if (${Container.Equal[Enviro]}) {
/varset PackCode Enviro
} else {
/varset PackCode ${FindItem[=${Container}].InvSlot}
/if (${PackCode.Equal[NULL]}) {
/echo Could not find container ${Container}
/varset EndingVar 2
/return
}
| pack1 = 22, ... , pack8 = 29
/varset PackCode pack${Math.Calc[${PackCode}-21].Int}
}
/for i 1 to 10
/varset Component[${i}] ${Ini[jc.ini,${RecipeName},Comp${Math.Calc[${i}-1].Int},NOTFOUND]}
/next i
/return
sub ClearCursor
:Loop
/if (!${Cursor.ID}) /return
/autoinv
| /destroy
/delay 7
/doevents
/goto :Loop
/return
sub DoCombine
:Loop
/combine ${PackCode}
/delay 3s
/if (${PackCode.Equal[Enviro]}) /delay 3s
/doevents
/if (${InvSlot[${PackCode}].Item.Items}) /goto :Loop
/delay 7
/if (${Me.Skill[Jewelry Making]}>${OldSkill}) {
/echo Your Jewelry Crafting Went Up!! It's now ${Me.Skill[Jewelry Making]}!
/varset OldSkill ${Me.Skill[Jewelry Making]}
}
/return
sub AddComp(CompName, PackSlot)
/if (${CompName.Equal[NOTFOUND]}) /return
/if (!${FindItem[=${CompName}].ID}) {
/echo Could not find ${CompName} in inventory
/beep
/varset EndingVar 2
/return
}
:Loop
/ctrl /itemnotify ${FindItem[=${CompName}].InvSlot} leftmouseup
/if (!${Cursor.ID}) {
/delay 3
/goto :Loop
}
/if (${PackCode.Equal[Enviro]}) {
/itemnotify ${InvSlot[enviro${PackSlot}]} leftmouseup
} else {
/itemnotify in ${PackCode} ${PackSlot} leftmouseup
}
/return
Sub Event_CombineError
/varset EndingVar 2
/return Code: Select all
| jc.mac
| Takes you from 1 to 250 in Jewelry Crafting
| Version 2.5
| Date: September 14, 2004
|
| Please be sure to get the lastest updates at http://www.soc-music.com/mq2/
|
| Before are the settings you need to change for you.
| This Macro can take you up to 250 in Jewelry Crafting.
| SkillMaxWanted can be change to what skill you want to stop at.
| MerchantName is which merchant you are at.
| You will need to change the DelayMult to higher if you are laggy, this
| number will be multiplied to the default delay.
|
| This Macro works best in the Abysmal Sea since all the components are there.
| You WILL need to be next to the merchant in order for this to work.
| Also, be sure you have a lot of money on you to go from 1 to 250.
|
| Requirements:
| You will need a Jewelry Kit (in the last slot).
|
| Disclaimer:
| Code was used from other programers also from the MQ Forums.
|
#event CombineError "#*#There was no place to put that#*#"
#event CombineError "#*#You cannot combine these items in this container type!#*#"
#event CombineError "#*#did not accept these items#*#"
#include common/sell.inc
#include common/buy.inc
#include common/packs.inc
#include common/cleanpacks.inc
Sub Main
/declare OldSkill int outer
/declare SkillMaxWanted int outer
/declare PackCode string outer
/declare Component[10] string outer
/declare i int outer
/declare MerchantName string Outer
/declare BarItem item outer
/declare GemItem item outer
/declare CombItemName string outer
/declare ItemTo string outer
/declare EndingVar int outer
/declare Levelname int outer
/declare DelayMult int outer
/varset OldSkill ${Me.Skill[Jewelry Making]}
| ************************************************
| * Change these settings to what you want. *
| ************************************************
/varset SkillMaxWanted 279
/varset MerchantName "Rilwind Sitnai"
/varset DelayMult 1
| ************************************************
| ************************************************
:start
/echo Jewelry Crafting is at ${Me.Skill[Jewelry Making]}
/if (${Me.Skill[Jewelry Making]}>=${SkillMaxWanted}) {
/echo Jewelry Making is at ${SkillMaxWanted}. Quiting!
/endmacro
}
|#####---Start New Recipes---#####|
/if (${Me.Skill[Jewelry Making]}>=276 && ${Me.Skill[Jewelry Making]}<=279) {
/varset BarItem "platinum bar"
/varset GemItem "ruby"
/varset CombItemName "PR"
/varset ItemTo "Platinum Ruby Veil"
}
/if (${Me.Skill[Jewelry Making]}>=274 && ${Me.Skill[Jewelry Making]}<276) {
/varset BarItem "platinum bar"
/varset GemItem "sapphire"
/varset CombItemName "PS"
/varset ItemTo "Sapphire Platinum Necklace"
}
/if (${Me.Skill[Jewelry Making]}>=271 && ${Me.Skill[Jewelry Making]}<274) {
/varset BarItem "platinum bar"
/varset GemItem "fire emerald"
/varset CombItemName "PFE"
/varset ItemTo "Fire Emerald Platinum Ring"
}
/if (${Me.Skill[Jewelry Making]}>=268 && ${Me.Skill[Jewelry Making]}<271) {
/varset BarItem "platinum bar"
/varset GemItem "star ruby"
/varset CombItemName "PSR"
/varset ItemTo "Platinum Star Ruby Veil"
}
/if (${Me.Skill[Jewelry Making]}>=263 && ${Me.Skill[Jewelry Making]}<268) {
/varset BarItem "platinum bar"
/varset GemItem "fire opal"
/varset CombItemName "PFO"
/varset ItemTo "Platinum Fire Wedding Ring"
}
/if (${Me.Skill[Jewelry Making]}>=260 && ${Me.Skill[Jewelry Making]}<263) {
/varset BarItem "platinum bar"
/varset GemItem "opal"
/varset CombItemName "PO"
/varset ItemTo "Platinum Opal Engagement Ring"
}
/if (${Me.Skill[Jewelry Making]}>=258 && ${Me.Skill[Jewelry Making]}<260) {
/varset BarItem "platinum bar"
/varset GemItem "emerald"
/varset CombItemName "PE"
/varset ItemTo "Platinum Emerald Ring"
}
/if (${Me.Skill[Jewelry Making]}>=255 && ${Me.Skill[Jewelry Making]}<258) {
/varset BarItem "platinum bar"
/varset GemItem "peridot"
/varset CombItemName "PP"
/varset ItemTo "Platinum Peridot Ring"
}
/if (${Me.Skill[Jewelry Making]}>=250 && ${Me.Skill[Jewelry Making]}<255) {
/varset BarItem "platinum bar"
/varset GemItem "topaz"
/varset CombItemName "PT"
/varset ItemTo "Platinum Topaz Necklace"
}
|#####---End New Recipes---#####|
/if (${Me.Skill[Jewelry Making]}>=220 && ${Me.Skill[Jewelry Making]}<250) {
/varset BarItem "platinum bar"
/varset GemItem "jade"
/varset CombItemName "PJ"
/varset ItemTo "Jaded Platinum Ring"
}
/if (${Me.Skill[Jewelry Making]}>=202 && ${Me.Skill[Jewelry Making]}<220) {
/varset BarItem "platinum bar"
/varset GemItem "lapis lazuli"
/varset CombItemName "PLL"
/varset ItemTo "Platinum Lapis Lazuli Necklace"
}
/if (${Me.Skill[Jewelry Making]}>=191 && ${Me.Skill[Jewelry Making]}<202) {
/varset BarItem "gold bar"
/varset GemItem "fire emerald"
/varset CombItemName "GFE"
/varset ItemTo "Fire Emerald Golden Bracelet"
}
/if (${Me.Skill[Jewelry Making]}>=183 && ${Me.Skill[Jewelry Making]}<191) {
/varset BarItem "gold bar"
/varset GemItem "star ruby"
/varset CombItemName "GSA"
/varset ItemTo "Golden Star Ruby Ring"
}
/if (${Me.Skill[Jewelry Making]}>=183 && ${Me.Skill[Jewelry Making]}<191) {
/varset BarItem "gold bar"
/varset GemItem "opal"
/varset CombItemName "GO"
/varset ItemTo "Golden Opal Amulet"
}
/if (${Me.Skill[Jewelry Making]}>=172 && ${Me.Skill[Jewelry Making]}<183) {
/varset BarItem "gold bar"
/varset GemItem "topaz"
/varset CombItemName "GT"
/varset ItemTo "Golden Topaz Earring"
}
/if (${Me.Skill[Jewelry Making]}>=146 && ${Me.Skill[Jewelry Making]}<172) {
/varset BarItem "gold bar"
/varset GemItem "amber"
/varset CombItemName "GA"
/varset ItemTo "Golden Amber Earring"
}
/if (${Me.Skill[Jewelry Making]}>=100 && ${Me.Skill[Jewelry Making]}<146) {
/varset BarItem "gold bar"
/varset GemItem "malachite"
/varset CombItemName "GM"
/varset ItemTo "Gold Malachite Bracelet"
}
/if (${Me.Skill[Jewelry Making]}>=76 && ${Me.Skill[Jewelry Making]}<100) {
/varset BarItem "electrum bar"
/varset GemItem "amber"
/varset CombItemName "EA"
/varset ItemTo "Electrum Amber Earring"
}
/if (${Me.Skill[Jewelry Making]}<76) {
/varset BarItem "electrum bar"
/varset GemItem "lapis lazuli"
/varset CombItemName "EL"
/varset ItemTo "Electrum Lapis Lazuli Earring"
}
/varset EndingVar 1
/target ${MerchantName}
/face
/nomodkey /click right target
/call OpenPacks
/delay ${Math.Calc[${DelayMult}*2]}s
/call Sell ${BarItem}
/delay ${Math.Calc[${DelayMult}*1]}s
/call Sell ${GemItem}
/delay ${Math.Calc[${DelayMult}*1]}s
/call Buy ${BarItem} 20
/delay ${Math.Calc[${DelayMult}*1]}s
/call Buy ${GemItem} 20
/delay ${Math.Calc[${DelayMult}*1]}s
/nomodkey /notify MerchantWnd DoneButton leftmouseup
/call ClosePacks
/call OpenPacks
/delay ${Math.Calc[${DelayMult}*2]}s
/call readIni "${CombItemName}"
:Begin
/if (${EndingVar}==1) /call ClearCursor
/for i 1 to 10
/if (${EndingVar}==1) /call AddComp "${Component[${i}]}" ${i}
/next i
/if (${EndingVar}==1) /call DoCombine
/if (${EndingVar}==1) /goto :Begin
/delay ${Math.Calc[${DelayMult}*1]}s
/call ClosePacks
/delay ${Math.Calc[${DelayMult}*1]}s
/target ${MerchantName}
/face
/nomodkey /click right target
/delay ${Math.Calc[${DelayMult}*1]}s
/call OpenPacks
/delay ${Math.Calc[${DelayMult}*2]}s
/call Sell ${ItemTo}
/delay ${Math.Calc[${DelayMult}*1]}s
/nomodkey /notify MerchantWnd DoneButton leftmouseup
/call ClosePacks
/goto :start
/return
Sub readIni(RecipeName)
/declare Container string
/echo Running ${RecipeName} recipe, which makes ${ItemTo}.
/if (${Ini["jc.ini","${RecipeName}",-1,"NOTFOUND"].Equal["NOTFOUND"]}) {
/echo Recipe ${RecipeName} not found
/endmacro
}
/varset Container ${Ini[jc.ini,${RecipeName},Cont,Enviro]}
/if (${Container.Equal[Enviro]}) {
/varset PackCode Enviro
} else {
/varset PackCode ${FindItem[=${Container}].InvSlot}
/if (${PackCode.Equal[NULL]}) {
/echo Could not find container ${Container}
/varset EndingVar 2
/return
}
| pack1 = 22, ... , pack8 = 29
/varset PackCode pack${Math.Calc[${PackCode}-21].Int}
}
/call cleanPack "${Container}"
/for i 1 to 10
/varset Component[${i}] ${Ini[jc.ini,${RecipeName},Comp${Math.Calc[${i}-1].Int},NOTFOUND]}
/next i
/return
sub ClearCursor
:Loop
/if (!${Cursor.ID}) /return
/autoinv
| /destroy
/delay ${Math.Calc[${DelayMult}*5]}s
/doevents
/goto :Loop
/return
sub DoCombine
:Loop
/combine ${PackCode}
/delay ${Math.Calc[${DelayMult}*1]}s
/if (${PackCode.Equal[Enviro]}) /delay 1s
/doevents
/if (${InvSlot[${PackCode}].Item.Items}) /goto :Loop
/delay ${Math.Calc[${DelayMult}*2]}s
/if (${Me.Skill[Jewelry Making]}>${OldSkill}) {
/echo Your Jewelry Crafting Went Up!! It's now ${Me.Skill[Jewelry Making]}!
/varset OldSkill ${Me.Skill[Jewelry Making]}
}
/return
sub AddComp(CompName, PackSlot)
/if (${CompName.Equal[NOTFOUND]}) /return
/if (!${FindItem[=${CompName}].ID}) {
/echo Could not find ${CompName} in inventory
/beep
/varset EndingVar 2
/return
}
:Loop
/nomodkey /ctrl /itemnotify ${FindItem[=${CompName}].InvSlot} leftmouseup
/if (!${Cursor.ID}) {
/delay ${Math.Calc[${DelayMult}*1]}s
/goto :Loop
}
/if (${PackCode.Equal[Enviro]}) {
/nomodkey /itemnotify ${InvSlot[enviro${PackSlot}]} leftmouseup
} else {
/nomodkey /itemnotify in ${PackCode} ${PackSlot} leftmouseup
}
/return
Sub Event_CombineError
/varset EndingVar 2
/return
Code: Select all
[EL]
Cont=Jeweler's Kit
Comp0=electrum bar
Comp1=lapis lazuli
[EA]
Cont=Jeweler's Kit
Comp0=electrum bar
Comp1=amber
[GM]
Cont=Jeweler's Kit
Comp0=gold bar
Comp1=malachite
[GA]
Cont=Jeweler's Kit
Comp0=gold bar
Comp1=amber
[GT]
Cont=Jeweler's Kit
Comp0=gold bar
Comp1=topaz
[GO]
Cont=Jeweler's Kit
Comp0=gold bar
Comp1=opal
[GSR]
Cont=Jeweler's Kit
Comp0=gold bar
Comp1=star ruby
[GFE]
Cont=Jeweler's Kit
Comp0=gold bar
Comp1=fire emerald
[PLL]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=lapis lazuli
[PJ]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=jade
[PT]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=topaz
[PP]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=peridot
[PE]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=emerald
[PO]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=opal
[PFO]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=fire opal
[PSR]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=star ruby
[PFE]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=fire emerald
[PS]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=sapphire
[PR]
Cont=Jeweler's Kit
Comp0=platinum bar
Comp1=ruby
