basically I wanted to only give the npc one tolken at a time on the basis that giving 4 at a time could result in duplicate gold tickets... one being lost to lore (yeah I know the chances of this are phenominally slim) and also to go buy new tolkens when I ran out.... I'm not sure what's causing it but occassionally the macro doesn't seem to be autoinventorying properly
Code: Select all
Code:
|MSN is maxheinze@hotmail.com
|USAGE: /macro casino
Sub Main
/declare l0 local
:Loop
/if "$cursor()"!="NULL" /goto :cursorclear
/if n $count("Gold Ticket")>0 /endmacro
/sendkey down ctrl
/for l0 1 to 1
/finditem "King's Court Token"
/if $find()==FALSE /goto :Done
/delay 3
/if n @l0==1 /click left target
/delay 3
/if n @l0>1 /click left npctrade cancel
/sendkey up ctrl
/delay 3
/click left npctrade give
/delay 3
/goto :Loop
:Done
/sendkey up ctrl
/delay 5
/click left npctrade give
/end
:Buymore
/target Nayda
/face fast
/sendkey down Up
/goto :loop1
:loop1
/if $target(distance)<10 /goto :continue
/goto :loop1
:continue
/sendkey up Up
/click right target
/goto :purchase
:purchase
/buyitem 20
/finditem "King's Court Token"
/if $find()==FALSE /goto :purchase
/target Therin
/face fast
/sendkey down Up
/goto :loop2
:loop2
/if $target(distance)<13 /goto :end
/goto :loop2
:end
/sendkey up Up
/goto :Loop
:cursorclear
/autoinv
/delay 5
/if "$cursor()"!="NULL" /goto :cursorclear
/delay 5
/goto :Loop any help'd be appreciated

