• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
Resource icon

Release Turnin.mac 9.3.2017

As requested by @klipche

Let me know if any issues.

Rich (BB code):
| turnin.mac - Sym 9.3.2017 exclusively for RedGuides.com
|
| Gives selected item on cursor to targeted npc
| Usage: /mac turnin [count]
|
| count is optional, default is 4
| 
| Start macro with item to give on cursor and npc targeted.
|
| This macro will give one of each item to npc until count items have been given, then it will click the give button.
|   It will loop until there are no more items to give.
|


Sub Main
    /declare GiveCount int outer 4
    
    /if (${Defined[Param0]}) /varset GiveCount ${Param0}
    
    /declare a int 0
    /declare ItemToGive ${Cursor.Name}
    
    /if (!${Target.ID}) {
        /echo \arStart macro with NPC targeted.
        /endm
    }
    /if (!${Cursor.ID}) {
        /echo \arStart macro with turn in item on cursor.
        /endm
    }
    
    /if (${GiveCount} > 4) /varset GiveCount 4
    /autoinv
    /delay 1s !${Cursor.ID}

    /while (${FindItemCount[=${ItemToGive}]}) {
        /for a 1 to ${GiveCount}
            /nomodkey /ctrlkey /itemnotify ${FindItem[=${ItemToGive}].InvSlot} leftmouseup
            /delay 1s ${Cursor.ID}
            /if (${Cursor.ID}) {
                /click left target
                /delay 1s !${Cursor.ID}
            }
        /next a
        
        /notify GiveWnd GVW_Give_Button leftmouseup
        /delay 10s !${Window[GiveWnd].Open}
    }    

    /if (${Window[GiveWnd].Open}) {
        /notify GiveWnd GVW_Give_Button leftmouseup
    }
    

/return
 
Last edited:
So I have been having an issue with this macro lately. When it is run, it will turn in one item like i want but then immeadiatrly ends. Their is an error in mq2 window as such:

DoCommand - Couldnt parse '/while'
(${FindItemCount[=${ItemToGive}]}) {'
turnin.mac@36 (Main): /while
(${FindItemCount[=${ItemToGive}]}) {'
The current macro has ended

Thanks in advnace
 
Can this be used to turn in coin rather than an item? An example would be the 5 gold coins (exact) to Guard Shilster for a bottle of beer. Or faction... maybe...

Anyway, can I put five gold coins on my cursor, target Shilster, sit back and watch the turn-in until I stop the macro?
 
Release Turnin.mac

Users who are viewing this thread

Back
Top
Cart