Oceanrescue
New member
- Joined
- Nov 15, 2005
- RedCents
- 0¢
Ok,
I have macroquest up and running but when I try to add a macro to my macro folder and then run it I get the following:
Couldn't open macro file: c:/program files/macro2/release/macros/trades.mac
I named the macro trades.mac
I read the guide but cant find out what i am doing wrong. I copy paste the text for the macro. I open notepad and paste it to a new file. Save it as whatever.mac and make sure all files is selected. ANSI format ok?
Here is the mac I was trying to use:
#Event SkillTrivial "#*#You can no longer advance your skill from making this item#*#"
Code:
|===========================================|
| V2.1 |
|___________________________________________|
|fletch.mac MQ2Data Compliant by Fuergrissa |
|#Events updated 12-05-04 |
|___________________________________________|
#Event SkillUp "You have become better at #1#! (#2#)"
#Event nocomp "#*#You are missing#*#"
#Event SkillTrivial "#*#You can no longer advance your skill from making this item#*#"
#Event FullInventory "#*#There was no place to put that#*#"
#Event SkillFailure "#*#You lacked the skills#*#"
#Event SkillSuccess "#*#You have fashioned the items together to create something new#*#"
Sub Main
/declare SkillFailCounter int outer
/declare SkillSuccessCounter int outer
/declare SuccessRate int outer
/declare TotalAttempts int outer
/varset SkillFailCounter 0
/varset SkillSuccessCounter 0
/varset SuccessRate 0
/varset TotalAttempts 0
:mainloop
/doevents
/call Combine
/goto :mainloop
/end
Sub Combine
/notify COMBW_CombineArea CombineButton leftmouseup
/delay 2
/if (${Cursor.ID}) /autoinv
/return
Sub DisplayStats
/echo Combine Statistics - Successes: ${SkillSuccessCounter}, Failures: ${SkillFailCounter}
/varcalc TotalAttempts ${SkillFailCounter} + ${SkillSuccessCounter}
/varcalc SuccessRate ${SkillSuccessCounter} / ${TotalAttempts} * 100
/echo Success Rate: ${SuccessRate} % out of ${TotalAttempts} attempts
/return
Sub Event_SkillUp(SkillUpText,TheSkill,int Amount)
/popup ${TheSkill} increased - ${Amount}
/echo ${TheSkill} increased - ${Amount}
/return
Sub Event_nocomp
/echo "You have run out of Componants. ((Ending Macro)) "
/popup You have run out of Componants. ((Ending Macro))
/if (${Cursor.ID}) /autoinv
/call DisplayStats
/end
Sub Event_SkillTrivial
/echo "You can no longer advance your skill from making this item. ((Ending Macro))"
/popup You can no longer advance your skill from making this item. ((Ending Macro))
/if (${Cursor.ID}) /autoinv
/call DisplayStats
/end
Sub Event_FullInventory
/echo "Your inventory is full, ((( Ending Macro ))) "
/popup Your inventory is full, ((( Ending Macro )))
/call DisplayStats
/end
Sub Event_SkillFailure
/varcalc SkillFailCounter ${SkillFailCounter}+1
/return
Sub Event_SkillSuccess
/varcalc SkillSuccessCounter ${SkillSuccessCounter}+1
/return
I copied all this and pasted it to where my macros file is. Am i not supposed to copy paste all of it or something? Any help would be great. Thanks
I have macroquest up and running but when I try to add a macro to my macro folder and then run it I get the following:
Couldn't open macro file: c:/program files/macro2/release/macros/trades.mac
I named the macro trades.mac
I read the guide but cant find out what i am doing wrong. I copy paste the text for the macro. I open notepad and paste it to a new file. Save it as whatever.mac and make sure all files is selected. ANSI format ok?
Here is the mac I was trying to use:
#Event SkillTrivial "#*#You can no longer advance your skill from making this item#*#"
Code:
|===========================================|
| V2.1 |
|___________________________________________|
|fletch.mac MQ2Data Compliant by Fuergrissa |
|#Events updated 12-05-04 |
|___________________________________________|
#Event SkillUp "You have become better at #1#! (#2#)"
#Event nocomp "#*#You are missing#*#"
#Event SkillTrivial "#*#You can no longer advance your skill from making this item#*#"
#Event FullInventory "#*#There was no place to put that#*#"
#Event SkillFailure "#*#You lacked the skills#*#"
#Event SkillSuccess "#*#You have fashioned the items together to create something new#*#"
Sub Main
/declare SkillFailCounter int outer
/declare SkillSuccessCounter int outer
/declare SuccessRate int outer
/declare TotalAttempts int outer
/varset SkillFailCounter 0
/varset SkillSuccessCounter 0
/varset SuccessRate 0
/varset TotalAttempts 0
:mainloop
/doevents
/call Combine
/goto :mainloop
/end
Sub Combine
/notify COMBW_CombineArea CombineButton leftmouseup
/delay 2
/if (${Cursor.ID}) /autoinv
/return
Sub DisplayStats
/echo Combine Statistics - Successes: ${SkillSuccessCounter}, Failures: ${SkillFailCounter}
/varcalc TotalAttempts ${SkillFailCounter} + ${SkillSuccessCounter}
/varcalc SuccessRate ${SkillSuccessCounter} / ${TotalAttempts} * 100
/echo Success Rate: ${SuccessRate} % out of ${TotalAttempts} attempts
/return
Sub Event_SkillUp(SkillUpText,TheSkill,int Amount)
/popup ${TheSkill} increased - ${Amount}
/echo ${TheSkill} increased - ${Amount}
/return
Sub Event_nocomp
/echo "You have run out of Componants. ((Ending Macro)) "
/popup You have run out of Componants. ((Ending Macro))
/if (${Cursor.ID}) /autoinv
/call DisplayStats
/end
Sub Event_SkillTrivial
/echo "You can no longer advance your skill from making this item. ((Ending Macro))"
/popup You can no longer advance your skill from making this item. ((Ending Macro))
/if (${Cursor.ID}) /autoinv
/call DisplayStats
/end
Sub Event_FullInventory
/echo "Your inventory is full, ((( Ending Macro ))) "
/popup Your inventory is full, ((( Ending Macro )))
/call DisplayStats
/end
Sub Event_SkillFailure
/varcalc SkillFailCounter ${SkillFailCounter}+1
/return
Sub Event_SkillSuccess
/varcalc SkillSuccessCounter ${SkillSuccessCounter}+1
/return
I copied all this and pasted it to where my macros file is. Am i not supposed to copy paste all of it or something? Any help would be great. Thanks