RoaringLion
Member
- Joined
- Apr 21, 2020
- RedCents
- 21¢
I'm trying to automate the process of turning in Rat Ears in Qeynos Hills to Rephas. Essentially an ALT gets XP for performing this turn in similar to the red wine quest. For context, I must clarify that I have two toons involved in this process. An alt and a Druid. I'll provide a step by step overview what I have each of the two toons doing.
Druid:
Once I have in my inventory 64x stacks of 1000 Rat Ears. I run the following code. This code technically works concerning handing in the Rat Ears. The problem is there are five items that are randomly handed back to me. Some of these returned items are placed on the cursor and I'm having problems deleting/destroying them before I perform the next turn in. These items are: Grilled Rat Ears, Spell: Lull, Spell: True North, Spell: Weaken, Tattered Cloth Sandal.
I'm able to sort've delete Grilled Rat Ears. Although the code I'm using doesn't work 1000% with the items on the cursor and I'm only able to target one item at a time.
Problem #2: Druid won't gate after running to merchant and buying the Rat Ears
This code stops working at 'mac buystuff "Rat Ears" 66000. The macro just ends. I have to manually hit macro: " /mac buystuff "Rat Ears" 66000" then it works, but won't automatically gate after. I assume I need to automatically close window?
Problem #3: No Idea how to automate player to player trading.
So far this is all I got. It opens a trade and puts 8 backpacks up in trade window, but only from the Druid sending the trade, and zero checks are being performed to determine whether bags are full or empty from either ALT or Druid.
I just started actually learning how to create macros a few days ago so I understand my coding is extremely amateur. Please help! If this is not allowed please correct me. But the first person to provide me a fully working macro I'll tip $5 via paypal. I'm just extremely curious how to automate this process at this point. I must know!
Druid:
- If backpacks are empty;
- Ports to Commonlands (automated)
- Runs to Katha Firespinner (automated)
- Buys 64000 Rat Ears (automated)
- Gates to bind point (set at Rephas in Qeynos Hills)
- Trades 8 backpacks full of rat ears to ALT.
- Loop to Step One.
- If invetory is full of Rat Eats, target Rephas.
- Give Rephas 1000 stacks (four times) of Rat Ears.
- Delete the items Rephas occasionally hands back to ALT (semi-automated.)
- Continuing giving Rephas 1000 stacks of Rat Ears until there are zero items in inventory.
- Trade Druid eight empty backpacks for eight backpacks full of Rat Ears.
- Loop to Step One.
Once I have in my inventory 64x stacks of 1000 Rat Ears. I run the following code. This code technically works concerning handing in the Rat Ears. The problem is there are five items that are randomly handed back to me. Some of these returned items are placed on the cursor and I'm having problems deleting/destroying them before I perform the next turn in. These items are: Grilled Rat Ears, Spell: Lull, Spell: True North, Spell: Weaken, Tattered Cloth Sandal.
INI:
Sub Main
/target Rephas
/delay 1s
:loop
/itemnotify "Rat Ears" leftmouseup
/delay 4
/invoke ${Target.LeftClick}
/delay 4
/itemnotify "Rat Ears" leftmouseup
/delay 4
/invoke ${Target.LeftClick}
/delay 4
/itemnotify "Rat Ears" leftmouseup
/delay 4
/invoke ${Target.LeftClick}
/delay 4
/itemnotify "Rat Ears" leftmouseup
/delay 4
/invoke ${Target.LeftClick}
/delay 4
/notify givewnd GVW_Give_Button leftmouseup
/delay 48s
/goto :loop
/return
I'm able to sort've delete Grilled Rat Ears. Although the code I'm using doesn't work 1000% with the items on the cursor and I'm only able to target one item at a time.
INI:
/keypress shift+b
/delay 2s
/mac deleteitem "grilled rat ears"
/delay s
/keypress shift+b
Problem #2: Druid won't gate after running to merchant and buying the Rat Ears
This code stops working at 'mac buystuff "Rat Ears" 66000. The macro just ends. I have to manually hit macro: " /mac buystuff "Rat Ears" 66000" then it works, but won't automatically gate after. I assume I need to automatically close window?
INI:
Sub Main
/cast Ring of Commons
/say Porting to the Commonlands
/delay 35s
/tar Katha Firespinner
/delay 1s
/nav target
/delay 80s
/end
/delay 1s
/tar Katha Firespinner
/delay 1s
/mac buystuff "Rat Ears" 66000
/multiline ; delay 13m ; /cast Gate
/delay 40s
/say I have returned with rat eats friend!
/delay 5s
/say this is the end!
/return
Problem #3: No Idea how to automate player to player trading.
So far this is all I got. It opens a trade and puts 8 backpacks up in trade window, but only from the Druid sending the trade, and zero checks are being performed to determine whether bags are full or empty from either ALT or Druid.
INI:
Sub Main
/itemnotify pack1 leftmouseup
/multiline ; /target Psalms ; /delay 1s ; /nomodkey /click left target
/multiline ; /itemnotify pack2 leftmouseup ; /nomodkey /click left target
/multiline ; /itemnotify pack3 leftmouseup ; /nomodkey /click left target
/multiline ; /itemnotify pack4 leftmouseup ; /nomodkey /click left target
/multiline ; /itemnotify pack5 leftmouseup ; /nomodkey /click left target
/multiline ; /itemnotify pack6 leftmouseup ; /nomodkey /click left target
/multiline ; /itemnotify pack7 leftmouseup ; /nomodkey /click left target
/multiline ; /itemnotify pack8 leftmouseup ; /nomodkey /click left target
/multiline ; /say trade ACCEPT!
/return
I just started actually learning how to create macros a few days ago so I understand my coding is extremely amateur. Please help! If this is not allowed please correct me. But the first person to provide me a fully working macro I'll tip $5 via paypal. I'm just extremely curious how to automate this process at this point. I must know!
Last edited:


Also, if you are doing this for faction, you could give him back the Grilled Rat Ears.