• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver
Resource icon

Release Turnin.mac 9.3.2017

No permission to download
Joined
Sep 20, 2005
RedCents
1,793¢
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
 
Giveitems.mac has been updated to include a giving to PC and NPC function as well now. You may want to check it out.
 
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?
 
I can't guarantee without testing, but don't think that would work. it's focused on items in your inventory to give. Coins are kind of an odd item.
 
Release Turnin.mac

Users who are viewing this thread

Back
Top
Cart