Sub Main
/declare NPCName string outer Shazda Asad
/declare ItemName string outer Sentinel Creot's Head
:checkSpawnLoop
/if (${Spawn[${NPCName} npc].ID} && ${Target.ID}!=${Spawn[${NPCName} npc].ID}) {
/squelch /target id ${Spawn[${NPCName} npc].ID}
} leftmouseup
/delay 2s ${Cursor.ID}
/click left target
/delay 2s ${Window[GiveWnd].Open}
/if (${Window[GiveWnd].Open}) {
/notify GiveWnd GVW_Give_Button leftmouseup}
/goto :checkSpawnLoop
When i start it, it click the npc finely, put in the whatever thing i have on my cursor ( just like i wanted ) in trade with the say NPC, but doesnt click give.
It say : Invalid notification leftmouseup}
and when i use this
Sub Main
/declare NPCName string outer Shazda Asad
/declare ItemName string outer Sentinel Creot's Head
:checkSpawnLoop
/if (${Spawn[${NPCName} npc].ID} && ${Target.ID}!=${Spawn[${NPCName} npc].ID}) {
/squelch /target id ${Spawn[${NPCName} npc].ID}
} leftmouseup
/delay 2s ${Cursor.ID}
/click left target
/delay 2s ${Window[GiveWnd].Open}
/if (${Window[GiveWnd].Open}) {
/notify GiveWnd GVW_Give_Button leftmouseup
It work fine , target the NPC, put in whatever i have on the cursor like intended and give to the npc......but it endmacro coz i have no Loop properly configurated.
So i doesnt know how to properly fix it, as soon i add a loop it stop to work....
someone can tell me what is wrong with it ?
/declare NPCName string outer Shazda Asad
/declare ItemName string outer Sentinel Creot's Head
:checkSpawnLoop
/if (${Spawn[${NPCName} npc].ID} && ${Target.ID}!=${Spawn[${NPCName} npc].ID}) {
/squelch /target id ${Spawn[${NPCName} npc].ID}
} leftmouseup
/delay 2s ${Cursor.ID}
/click left target
/delay 2s ${Window[GiveWnd].Open}
/if (${Window[GiveWnd].Open}) {
/notify GiveWnd GVW_Give_Button leftmouseup}
/goto :checkSpawnLoop
When i start it, it click the npc finely, put in the whatever thing i have on my cursor ( just like i wanted ) in trade with the say NPC, but doesnt click give.
It say : Invalid notification leftmouseup}
and when i use this
Sub Main
/declare NPCName string outer Shazda Asad
/declare ItemName string outer Sentinel Creot's Head
:checkSpawnLoop
/if (${Spawn[${NPCName} npc].ID} && ${Target.ID}!=${Spawn[${NPCName} npc].ID}) {
/squelch /target id ${Spawn[${NPCName} npc].ID}
} leftmouseup
/delay 2s ${Cursor.ID}
/click left target
/delay 2s ${Window[GiveWnd].Open}
/if (${Window[GiveWnd].Open}) {
/notify GiveWnd GVW_Give_Button leftmouseup
It work fine , target the NPC, put in whatever i have on the cursor like intended and give to the npc......but it endmacro coz i have no Loop properly configurated.
So i doesnt know how to properly fix it, as soon i add a loop it stop to work....
someone can tell me what is wrong with it ?

