(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
//======================================FISH============================================
// Coded by: Kanny
// ALT 9 = /fish
// resolution: 1152 x 864
// before this macro will work you need to go into ffxi and make youe alt9 macro do /fish
// this will only work well for rigs, and lures. it wont rebait a hook.....yet.
// to start macro type "/echo cast" in game, to stop macro type "/echo stop"
// when stopping macro type the stop command after you have cast your line
//======================================================================================
SetActiveWindow FFXiApp
Constants
cast = 1
wait = 0
fullwait = 16000
checkitemwait = 9000
sortdropwait = 7000
End
CALL Start
Procedure Start // starts the macro from in the game
While 1=1
delay 500
IsObject StartMacro at 20, 828
delay 1000
CALL Fish
End
End
End
//==================================Fishing Procedure====================================
Procedure Fish
if $wait = 1
SetConst wait = 0
delay 18000
Else
if $wait = 2
SetConst wait = 0
delay 7000
End
End
keys /echo cast $cast
delay 250
keys {RETURN}
delay 250
keydown @9 100 // casts
Inc $cast
delay 500
Loop 600 // checks caught hook or no catch and then checks for what was caught
delay 100
IsObject CaughtHook at 20, 828
delay 3500
keys {RETURN}
Loop 100
delay 100
IsObject ObtainItem at 20, 828
delay $checkitemwait
CALL CheckItem
Else
IsObject CaughtFish at 55, 830
delay $checkitemwait
CALL CheckItem
End
End
IsObject LostItem at 20, 828
SetConst wait = 1
CALL Fish
Else
IsObject SmallFish at 20, 828
SetConst wait = 1
CALL Fish
End
End
End
Else
IsObject noItem at 20, 828
SetConst wait = 1
CALL Fish
Else
IsObject WaitMore at 20, 828
delay 5000
CALL Fish
End
End
IsObject Monster at 160, 830
CALL Start
Else
IsObject StopMacro at 20, 828
CALL Start
End
End
IsObject CantFish at 20, 828
CALL Start
End
End
End
End
//=====================================Item Prcedures===================================
Procedure CheckItem // 3 seconds
keys {ESC}
keydown @i 100
delay 1000
keydown {RIGHT} 2000
IsObject Rusty at 40, 215
CALL DropItem
Else
IsObject Copper at 40, 215
CALL DropItem
Else
CALL SortItem
End
End
End
Procedure DropItem // 2.5 seconds
keys {RETURN}
delay 500
keydown {DOWN} 100
delay 500
keys {RETURN}
delay 500
keydown {DOWN} 100
delay 500
keys {RETURN}
delay 500
keydown @n 100
SetConst wait = 2
CALL Fish
End
Procedure SortItem // 2.5 seconds
keydown @f 100
delay 500
keys {RETURN}
Delay 500
keydown {DOWN} 100
delay 500
keys {RETURN}
delay 500
keydown @n 100
SetConst wait = 2
CALL Fish
End
//======================================OBJECTS=========================================
Object noItem // Test at coords 20, 828
255=62,6|255=76,6|
255=38,8|255=48,8|255=52,8|255=62,8|255=66,8|
255=38,10|255=48,10|255=52,10|255=62,10|255=66,10|
255=26,12|255=42,12|255=56,12|255=62,12|
End Object
Object WaitMore // Test at coords 20, 828
210=2,4|255=8,4|217=68,4|
255=4,6|255=6,6|255=14,6|255=16,6|213=22,6|255=38,6|255=40,6|255=42,6|255=44,6|255=46,6|213=50,6|255=60,6|255=62,6|255=68,6|255=70,6|
207=4,8|255=6,8|213=12,8|255=18,8|213=22,8|255=38,8|255=42,8|255=46,8|213=50,8|255=60,8|213=68,8|
213=12,10|255=18,10|213=22,10|255=38,10|255=42,10|255=46,10|213=50,10|255=62,10|255=64,10|213=68,10|
255=14,12|217=16,12|113=18,12|200=22,12|200=24,12|255=26,12|255=38,12|255=42,12|255=46,12|200=50,12|200=52,12|255=54,12|255=60,12|217=64,12|213=68,12|
End Object
Object CaughtHook // Test at coords 20, 828
255=2,4|255=44,4|255=50,4|
255=2,6|255=44,6|255=50,6|255=64,6|255=74,6|
255=12,8|255=38,8|255=44,8|255=50,8|255=54,8|255=64,8|255=68,8|255=72,8|
255=12,10|255=44,10|255=50,10|255=54,10|255=64,10|255=68,10|255=72,10|
255=6,12|255=16,12|255=34,12|255=44,12|255=50,12|255=54,12|255=64,12|
End Object
Object LostItem // Test at coords 20, 828
255=8,3|
255=39,4|255=63,4|
255=39,5|255=63,5|
255=23,6|255=39,6|255=62,6|255=63,6|
255=23,7|255=39,7|255=62,7|255=63,7|
255=13,8|255=23,8|255=39,8|255=44,8|255=63,8|
255=13,9|255=23,9|255=39,9|255=44,9|255=63,9|
255=13,10|255=23,10|255=39,10|255=44,10|255=63,10|
255=13,11|255=23,11|255=39,11|255=44,11|255=63,11|
255=17,12|255=26,12|255=27,12|255=48,12|255=57,12|255=63,12|
255=15,13|255=16,13|255=27,13|255=46,13|255=47,13|255=56,13|255=57,13|255=63,13|255=64,13|
End Object
Object SmallFish // Test at coords 20, 828
255=2,4|255=16,4|
255=2,6|255=16,6|255=28,6|255=34,6|255=50,6|255=54,6|255=70,6|
255=8,8|255=16,8|255=20,8|255=40,8|255=50,8|255=58,8|255=68,8|
255=10,10|255=16,10|255=20,10|255=40,10|255=58,10|
255=4,12|255=10,12|255=16,12|255=20,12|255=52,12|
End Object
Object ObtainItem // Test at coords 20, 828
255=16,6|255=22,6|255=32,6|
255=38,8|255=56,8|255=60,8|
255=2,10|255=8,10|255=38,10|255=60,10|
255=52,12|255=64,12|
End Object
Object CaughtFish // Test at coords 55, 830
255=40,2|255=50,2|
255=16,4|255=22,4|255=32,4|255=40,4|255=50,4|
255=22,6|255=30,6|255=40,6|255=44,6|255=50,6|
255=22,8|255=30,8|255=40,8|255=44,8|255=50,8|
255=4,10|255=26,10|255=40,10|255=44,10|255=50,10|
End Object
Object Monster // Test at coords 160, 830
255=46,4|255=64,4|
255=14,6|255=52,6|255=62,6|
255=14,8|255=52,8|
End Object
Object CantFish // Test at coords 20, 828
210=2,4|255=8,4|255=86,4|
255=4,6|255=6,6|255=14,6|255=16,6|213=22,6|255=40,6|255=42,6|255=48,6|255=50,6|213=58,6|255=60,6|255=66,6|255=68,6|255=70,6|255=76,6|255=78,6|217=84,6|255=86,6|
207=4,8|255=6,8|213=12,8|255=18,8|213=22,8|255=38,8|255=52,8|255=66,8|255=70,8|213=74,8|255=80,8|255=86,8|
213=12,10|255=18,10|213=22,10|255=38,10|255=48,10|255=52,10|255=66,10|255=70,10|213=74,10|255=80,10|255=86,10|
255=14,12|217=16,12|200=22,12|200=24,12|255=26,12|213=38,12|213=40,12|255=42,12|255=48,12|207=50,12|255=52,12|255=66,12|255=70,12|255=76,12|217=78,12|255=86,12|
End Object
//===========types of items=====================
Object Rusty // Test at coords 40, 215
255=0,4|255=2,4|255=4,4|
255=28,6|
255=4,8|255=10,8|255=14,8|255=18,8|255=22,8|255=28,8|255=34,8|255=38,8|
255=2,10|255=10,10|255=14,10|255=20,10|255=28,10|255=36,10|
255=4,12|255=10,12|255=14,12|255=28,12|255=36,12|
255=4,14|255=10,14|255=14,14|255=20,14|255=22,14|255=28,14|255=36,14|
End Object
Object Silver // Test at coords 40, 215
255=0,4|255=2,4|255=4,4|255=14,4|
255=14,6|
255=0,8|255=2,8|255=14,8|255=28,8|255=36,8|
255=4,10|255=14,10|255=20,10|255=22,10|255=28,10|255=30,10|255=32,10|255=36,10|
255=4,12|255=14,12|255=20,12|255=22,12|255=36,12|
255=0,14|255=2,14|255=14,14|255=30,14|255=36,14|
End Object
Object Copper // Test at coords 40, 215
255=0,4|255=2,4|255=4,4|
255=4,6|
255=28,8|255=32,8|255=40,8|255=46,8|
255=14,10|255=24,10|255=28,10|255=32,10|255=36,10|255=38,10|255=40,10|
255=4,12|255=14,12|255=22,12|255=28,12|255=30,12|255=36,12|
255=0,14|255=2,14|255=10,14|255=12,14|255=28,14|255=38,14|255=40,14|
End Object
//=======================================control=========================================
Object AutoSelected // Test at coords 1100, 90
179=0,0|178=2,0|179=4,0|178=6,0|179=8,0|178=10,0|179=12,0|178=14,0|179=16,0|178=18,0|
190=0,2|183=2,2|190=4,2|183=6,2|190=8,2|183=10,2|190=12,2|183=14,2|190=16,2|183=18,2|
End Object
Object StartMacro // Test at coords 20, 828
255=28,4|
255=2,6|255=4,6|255=12,6|255=14,6|255=20,6|255=22,6|255=28,6|255=30,6|
255=2,8|255=14,8|255=20,8|255=28,8|
255=10,10|255=12,10|255=14,10|255=22,10|255=24,10|255=28,10|
255=2,12|255=6,12|255=10,12|255=14,12|255=20,12|255=24,12|255=28,12|
End Object
Object StopMacro // Test at coords 20, 828
255=10,4|
255=2,6|255=4,6|255=10,6|255=12,6|255=18,6|255=20,6|255=26,6|255=28,6|255=30,6|
255=2,8|255=10,8|255=16,8|255=22,8|255=26,8|255=32,8|
255=4,10|255=6,10|255=10,10|255=16,10|255=22,10|255=26,10|255=28,10|255=30,10|255=32,10|
255=2,12|255=6,12|255=10,12|255=18,12|255=20,12|255=26,12|
255=26,14|
End Object
[/u]