http://macroquest2.com/phpBB2/viewtopic ... ght=casino
was wondering if anyone has bothered to make anything like this yet with the new datatypes?
im gonna take a nap and ill play with it later, just wanted to see if anyone was willing to help ;o he he he
Code: Select all
|USAGE: /macro bonechips.mac
Sub Main
/declare l0 local
:Loop
/sendkey down ctrl
/for l0 1 to 4
/finditem "Bone Chips"
/if $find()==FALSE /goto :Done
/delay 2
/if n @l0==1 /click left target
/delay 2
/if n @l0>1 /click left npctrade $int($calc(@l0-1))
/delay 2
/next l0
/sendkey up ctrl
/delay 2
/click left npctrade give
/delay 2
:cursorclear
/destroy
/delay 2
/if "$cursor()"!="NULL" /goto :cursorclear
/goto :Loop
:Done
/sendkey up ctrl
/delay 3
/click left npctrade give
/end im guessing its going to look something like this (partially done)
the stuff in red i need to change to the new format and that should be it right?
Code: Select all
|USAGE: /macro bonechips.mac
Sub Main
/declare l0 local
:Loop
/sendkey down ctrl
/for l0 1 to 4
/finditem "Bone Chips"
/if [color=red]$find()==FALSE[/color] /goto :Done
/delay 2
/if (@l0==1) /click left target
/delay 2
/if (@l0>1) /click left npctrade [color=red]$int($calc(@l0-1))[/color]
/delay 2
/next l0
/sendkey up ctrl
/delay 2
/click left npctrade give
/delay 2
:cursorclear
/destroy
/delay 2
/if [color=red]"$cursor()"!="NULL"[/color] /goto :cursorclear
/goto :Loop
:Done
/sendkey up ctrl
/delay 3
/click left npctrade give
/end
