Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------------
- --- GLOBAL
- ----------------------------------------------------------------------
- --[[
- --- Bind special characters
- @ = Windows Key
- % = Works only when text bar not up.
- $ = Works only when text bar is up.
- ^ = Control Key
- ! = Alt Key
- ~ = Shift Key
- # = Apps Key
- --- Colors
- 28 (Dark Red) - Red Alert
- 053 (Beige) - Bind Action
- 214 (Green) - Degrade
- 8 (Darkorange) - Lua Load
- --]]
- ----------------------------------------------------------------------
- --- GLOBAL OPTIONS
- ----------------------------------------------------------------------
- --- What Buffs to notify
- NotifyBuffs = S{'doom','petrification','sleep'}
- --- Turnaround
- turnmode = "turnaround"
- ----------------------------------------------------------------------
- --- GLOBAL KEYMAPS
- ----------------------------------------------------------------------
- --- Global GS Default Binding
- function global_on_load()
- send_command('bind f9 gs c cycle OffenseMode')
- send_command('bind ^f9 gs c cycle HybridMode')
- send_command('bind !f9 gs c cycle RangedMode')
- send_command('bind @f9 gs c cycle WeaponskillMode')
- send_command('bind f10 gs c set DefenseMode Physical')
- send_command('bind ^f10 gs c cycle PhysicalDefenseMode')
- send_command('bind f11 gs c set DefenseMode Magical')
- send_command('bind ^f11 gs c cycle CastingMode')
- send_command('bind f12 gs c update user')
- send_command('bind ^f12 gs c cycle IdleMode')
- send_command('bind !f12 gs c reset DefenseMode')
- send_command('bind ^- gs c toggle selectnpctargets')
- send_command('bind ^= gs c cycle pctargetmode')
- end
- --- Global Undind
- function global_on_unload()
- send_command('unbind f9')
- send_command('unbind ^f9')
- send_command('unbind !f9')
- send_command('unbind @f9')
- send_command('unbind f10')
- send_command('unbind ^f10')
- send_command('unbind !f10')
- send_command('unbind f11')
- send_command('unbind ^f11')
- send_command('unbind !f11')
- send_command('unbind f12')
- send_command('unbind ^f12')
- send_command('unbind !f12')
- send_command('unbind ^-')
- send_command('unbind ^=')
- send_command('unbind %1')
- send_command('unbind %2')
- send_command('unbind %3')
- send_command('unbind %4')
- send_command('unbind %5')
- send_command('unbind %6')
- send_command('unbind %7')
- send_command('unbind %8')
- send_command('unbind %9')
- send_command('unbind %0')
- send_command('unbind ^a')
- send_command('unbind !a')
- send_command('unbind ^d')
- send_command('unbind !d')
- send_command('unbind %e')
- send_command('unbind %~e')
- send_command('unbind !e')
- send_command('unbind ^s')
- send_command('unbind %q')
- send_command('unbind ^q')
- send_command('unbind !q')
- send_command('unbind %~q')
- send_command('unbind %g')
- send_command('unbind %x')
- send_command('unbind ^x')
- send_command('unbind !x')
- send_command('unbind %~x')
- send_command('unbind %z')
- send_command('unbind !z')
- send_command('unbind ^z')
- send_command('unbind home')
- send_command('unbind !home')
- send_command('unbind ^home')
- send_command('unbind delete')
- send_command('unbind !delete')
- send_command('unbind ^delete')
- send_command('unbind end')
- send_command('unbind ^end')
- send_command('unbind !end')
- send_command('unbind pagedown')
- send_command('unbind !pagedown')
- send_command('unbind ^pagedown')
- send_command('unbind pageup')
- send_command('unbind !pageup')
- send_command('unbind ^pageup')
- send_command('unbind %numpad0')
- send_command('unbind %numpad1')
- send_command('unbind %numpad2')
- send_command('unbind %numpad3')
- send_command('unbind %numpad4')
- send_command('unbind %numpad5')
- send_command('unbind %numpad6')
- send_command('unbind %numpad7')
- send_command('unbind %numpad8')
- send_command('unbind %numpad9')
- send_command('unbind %numpad.')
- end
- ----------------------------------------------------------------------
- --- GLOBAL JOB BINDINGS/ALIASES
- ----------------------------------------------------------------------
- --- Medicine
- send_command('alias echodrop input /item "Echo Drops" <me>')
- send_command('alias echo input /item "Echo Drops" <me>')
- send_command('alias remedy input /item "Remedy" <me>')
- send_command('alias hwater input /item "Holy Water" <me>')
- send_command('alias panacea input /item "Panacea" <me>')
- send_command('alias vile1 input /item "Vile Elixir" <me>')
- send_command('alias vile2 input /item "Vile Elixir +1" <me>')
- --- A Seal
- send_command('alias aseal input /item "Abdhaljs Seal" <me>')
- --- Temps
- send_command('alias super input /item "Super Revitalizer" <me>')
- send_command('alias revi input /item "Super Revitalizer" <me>')
- send_command('alias wing1 input /item "Daedalus Wing" <me>')
- send_command('alias wing2 input /item "Pair of Lucid Wings I" <me>')
- send_command('alias wing3 input /item "Pair of Lucid Wings II" <me>')
- send_command('alias wings1 input /item "Daedalus Wing" <me>')
- send_command('alias wings2 input /item "Pair of Lucid Wings I" <me>')
- send_command('alias wings3 input /item "Pair of Lucid Wings II" <me>')
- send_command('alias charm input /item "Phial of Charm buffer" <me>')
- send_command('alias doom input /item "Bottle of Savior\'s tonic" <me>')
- send_command('alias amnesia input /item "Bottle of Moneta\'s tonic" <me>')
- send_command('alias terror input /item "Bottle of Steadfast tonic" <me>')
- send_command('alias curse input /item "Curse Buffer" <me>')
- send_command('alias petrify input /item "Mirror\'s Tonic" <me>')
- send_command('alias regain input /item "Bottle of Monarch\'s Drink" <me>')
- send_command('alias cleric input /item "Cleric\'s Drink" <me>')
- send_command('alias pax input /item "Gnostic\'s Drink" <me>')
- send_command('alias mana1 input /item "Lucid Potion I" <me>')
- send_command('alias mana2 input /item "Lucid Potion II" <me>')
- send_command('alias mana3 input /item "Lucid Potion III" <me>')
- send_command('alias manaaoe input /item "Pinch of Mana Mist" <me>')
- send_command('alias heal1 input /item "Lucid Ether I" <me>')
- send_command('alias heal2 input /item "Lucid Ether II" <me>')
- send_command('alias heal3 input /item "Lucid Ether III" <me>')
- send_command('alias healaoe input /item "Flask of Healing Mist" <me>')
- send_command('alias healpet1 input /item "Tube of Healing Salve I" <me>')
- send_command('alias healpet2 input /item "Tube of Healing Salve II" <me>')
- --- Food
- send_command('alias sushi gs c usesushi')
- send_command('alias miso gs c usemiso')
- send_command('alias crepe gs c usecrepe')
- send_command('alias curry gs c usecurry')
- --- Homepoints
- send_command('alias home gs c home')
- send_command('alias homeall gs c homeall')
- send_command('alias mhaura gs c mhaura')
- send_command('alias mhauraall gs c mhauraall')
- send_command('alias whitegate gs c whitegate2')
- send_command('alias whitegate2 gs c whitegate2')
- send_command('alias whitegate1 gs c whitegate1')
- send_command('alias whitegateall gs c whitegate2all')
- send_command('alias whitegate2all gs c whitegate2all')
- send_command('alias whitegate1all gs c whitegate1all')
- send_command('alias norg gs c norg')
- send_command('alias norgall gs c norgall')
- send_command('alias qufim gs c qufim')
- send_command('alias quifmall gs c qufimall')
- send_command('alias pjeuno gs c pjeuno')
- send_command('alias pjeunoall gs c pjeunoall')
- send_command('alias garden gs c garden')
- send_command('alias gardenall gs c gardenall')
- send_command('alias psan gs c psan')
- send_command('alias psanall gs c psanall')
- send_command('alias nsan gs c nsan')
- send_command('alias nsanall gs c nsanall')
- send_command('alias ssan gs c ssan')
- send_command('alias ssanall gs c ssanall')
- send_command('alias bmines gs c bmines')
- send_command('alias bminesall gs c bminesall')
- send_command('alias wwoods gs c wwoods')
- send_command('alias wwoodsall gs c wwoodsall')
- send_command('alias wwalls gs c wwalls')
- send_command('alias wwallsall gs c wwallsall')
- send_command('alias coast gs c coast')
- send_command('alias coastall gs c coastall')
- send_command('alias nashmau gs c nashmau')
- send_command('alias nashmauall gs c nashmauall')
- send_command('alias mire gs c mire')
- send_command('alias mireall gs c mireall')
- send_command('alias selbina gs c selbina')
- send_command('alias selbinaall gs c selbinaall')
- --- Warp
- send_command('bind ~pause send @all gs c useitem ring2 Dim. Ring (Holla)')
- send_command('bind !pause send @all warp')
- send_command('bind pause warp')
- send_command('alias d2all send Vioh warp2 Vyna ;wait 11; send Vioh warp2 Venya;wait 11; send Vioh warp2 Voeh;wait 11; send Vioh warp2 Vaneska;wait 11;send Vioh warp')
- --- Map
- send_command('bind %numpad- map')
- send_command('bind ^numpad- load ffxidb')
- send_command('bind !numpad- unload ffxidb')
- --- Attack/Disengage/Target
- send_command('bind ^f gs c attack;wait 1;gs c assist')
- send_command('bind %~f send @all gs c attackoff')
- --- Follow
- send_command('bind %numpad0 gs c follow')
- send_command('bind ^numpad0 gs c unfolchar')
- send_command('bind !numpad0 gs c unfol')
- --- Assister
- send_command('bind %numpad. lua load assister')
- send_command('bind ^numpad. assister on')
- send_command('bind !numpad. assister off')
- --- BRD
- send_command('alias marchmarchmadmad send Venya gs c marchmarchmadmad')
- send_command('alias marchmarchmadmin send Venya gs c marchmarchmadmin')
- send_command('alias marchmarchminmin send Venya gs c marchmarchminmin')
- send_command('alias marchmarchballadballad send Venya gs c marchmarchballadballad')
- send_command('alias marchmadminmin send Venya gs c marchmadminmin')
- --- HTMB
- send_command('alias buykey send Vaneska gs c htmbkey;wait 3;send Venya gs c htmbkey;wait 3;send Vioh gs c htmbkey;wait 3;send Vyna gs c htmbkey;wait 3;send Voeh gs c htmbkey')
- --- Sparks
- send_command('alias loadsparks send @all lua load sparks')
- send_command('alias radi send @all sparks buyki radialens')
- send_command('alias trib send @all sparks buyki tribulens')
- send_command('alias allkey send @all sparks buyallki')
- send_command('alias temps send @all sparks buyalltemps')
- --- Treasury
- send_command('alias passall send @all tr passall')
- send_command('alias lotall send @all tr lotall')
- send_command('alias pass tr passall')
- send_command('alias lot tr lotall')
- --- Mount
- send_command('alias mount input /mount "Raptor" <me>')
- send_command('alias mountall send @all input /mount "Raptor" <me>')
- --- Checkparam
- send_command('bind %o checkparam <me>')
- --- Char Commands
- send_command('alias vioh send Vioh')
- send_command('alias venya send Venya')
- send_command('alias vyna send Vyna')
- send_command('alias vaneska send Vaneska')
- send_command('alias voeh send Voeh')
- send_command('alias all send @all')
- --- Only for Main Jobs
- if meleeJobs:contains(player.main_job) then
- send_command('bind %t sta Venya elegy; wait 5; sta Venya nocturne')
- send_command('bind !s sta Venya input /ma "Horde Lullaby II" <t>')
- send_command('bind ^s sta Venya input /ma "Foe Lullaby II" <t>; wait 2;sta Voeh input /ma "Sleep II" <t>')
- send_command('bind ^d sta Venya finale; wait 3;sta Voeh dispel; wait 3;sta Vioh dispel')
- end
- --- Auto WS
- send_command('bind %numpad7 gs c toggle AutoWSMode')
- send_command('bind %numpad8 gs c toggle MaintainAftermath')
- --------------------------------------------------------------------------
- --- GLOBAL COMMANDS
- --------------------------------------------------------------------------
- function user_self_command(commandArgs, eventArgs)
- --- Attack
- if commandArgs[1] == 'attack' then
- if player.status == 'Engaged' then
- add_to_chat(053,'---- Already Attacking ----')
- else
- send_command('input /attack')
- end
- --- Disengage
- elseif commandArgs[1] == 'attackoff' then
- if player.status == 'Engaged' then
- send_command('input /attackoff')
- end
- --- Assist
- elseif commandArgs[1] == 'assist' then
- send_command('send Voeh input /assist Vaneska;wait 2; send Voeh input /a on')
- send_command('send Venya input /assist Vaneska;wait 2; send Venya input /a on')
- --- Follow
- elseif commandArgs[1] == 'follow' then
- send_command('ffo me')
- add_to_chat(053,'---- All Follow ----')
- --- Unfollow
- elseif commandArgs[1] == 'unfol' then
- send_command('ffo stopall')
- send_command:schedule(1,'send @others setkey r down;wait 0.1;send @others setkey r up')
- add_to_chat(053,'---- All Unfollow ----')
- --- Unfollow Char Only
- elseif commandArgs[1] == 'unfolchar' then
- send_command('ffo stop')
- send_command:schedule(1,'setkey r down;wait 0.1;setkey r up')
- add_to_chat(053,'---- Char Unfollow ----')
- --- Turnaround
- elseif commandArgs[1] == 'turnaround' then
- if turnmode == "turnaround" then
- turn_target()
- turnmode = "facemob"
- add_to_chat(053,'---- Turn Around ----')
- else
- face_target()
- turnmode = "turnaround"
- add_to_chat(053,'---- Face Mob ----')
- end
- --- HTMB
- elseif commandArgs[1] == 'htmbkey' then
- send_command('htmb buy')
- add_to_chat(053,'---- Buy HTMB Key ----')
- --- Radialens
- elseif commandArgs[1] == 'radi' then
- send_command('sparks buyki Radialens')
- add_to_chat(053,'---- Buy Radialens ----')
- --- Tribulens
- elseif commandArgs[1] == 'trib' then
- send_command('sparks buyki Tribulens')
- add_to_chat(053,'---- Buy Tribulens ----')
- --- Buy All Temps
- elseif commandArgs[1] == 'temps' then
- send_command('sparks buyalltemps')
- add_to_chat(053,'---- Buy Temps ----')
- --- Shield
- elseif commandArgs[1] == 'shield' then
- send_command('sparks buyall Acheron Shield')
- add_to_chat(053,'---- Buy Acheron Shield ----')
- --- Sublime Sushi
- elseif commandArgs[1] == 'usesushi' then
- if item_available('Sublime Sushi') then
- send_command('input /item "Sublime Sushi" <me>')
- else
- add_to_chat(053,'---- No Sushi in Inventory ----')
- end
- --- Red Curry Bun
- elseif commandArgs[1] == 'usecurry' then
- if item_available('Red Curry Bun') then
- send_command('input /item "Red Curry Bun" <me>')
- else
- add_to_chat(053,'---- No Curry in Inventory ----')
- end
- --- Pear Crepe
- elseif commandArgs[1] == 'usecrepe' then
- if item_available('Pear Crepe') then
- send_command('input /item "Pear Crepe" <me>')
- else
- add_to_chat(053,'---- No Crepe in Inventory ----')
- end
- --- Miso Ramen
- elseif commandArgs[1] == 'usemiso' then
- if item_available('Miso Ramen') then
- send_command('input /item "Miso Ramen" <me>')
- else
- add_to_chat(053,'---- No Miso Ramen in Inventory ----')
- end
- --- Eastern Adoulin 2
- elseif commandArgs[1] == 'home' then
- send_command('input //hp Eastern Adoulin 2')
- elseif commandArgs[1] == 'homeall' then
- send_command('input //hp all Eastern Adoulin 2')
- --- Mhaura
- elseif commandArgs[1] == 'mhaura' then
- send_command('input //hp Mhaura 1')
- elseif commandArgs[1] == 'mhauraall' then
- send_command('input //hp all Mhaura 1')
- --- Aht Urhgan Whitegate 2
- elseif commandArgs[1] == 'whitegate2' then
- send_command('input //hp Aht Urhgan Whitegate 2')
- elseif commandArgs[1] == 'whitegate2all' then
- send_command('input //hp all Aht Urhgan Whitegate 2')
- --- Aht Urhgan Whitegate 1
- elseif commandArgs[1] == 'whitegate1' then
- send_command('input //hp Aht Urhgan Whitegate 1')
- elseif commandArgs[1] == 'whitegate1all' then
- send_command('input //hp all Aht Urhgan Whitegate 1')
- --- Norg
- elseif commandArgs[1] == 'norg' then
- send_command('input //hp Norg 2')
- elseif commandArgs[1] == 'norgall' then
- send_command('input //hp all Norg 2')
- --- Qufim
- elseif commandArgs[1] == 'qufim' then
- send_command('input //hp Qufim Island 1')
- elseif commandArgs[1] == 'qufimall' then
- send_command('input //hp all Qufim Island 1')
- --- Port Jeuno 2
- elseif commandArgs[1] == 'pjeuno' then
- send_command('input //hp Port Jeuno 2')
- elseif commandArgs[1] == 'pjeunoall' then
- send_command('input //hp all Port Jeuno 2')
- --- Ru'Lude Gardens 1
- elseif commandArgs[1] == 'garden' then
- send_command('input //hp Ru\'Lude Gardens 1')
- elseif commandArgs[1] == 'gardenall' then
- send_command('input //hp all Ru\'Lude Gardens 1')
- --- Port Sand'Oria 2
- elseif commandArgs[1] == 'psan' then
- send_command('input //hp Port San d\'Oria 2')
- elseif commandArgs[1] == 'psanall' then
- send_command('input //hp all Port San d\'Oria 2')
- --- Northern Sand'Oria 2
- elseif commandArgs[1] == 'nsan' then
- send_command('input //hp Northern San d\'Oria 2')
- elseif commandArgs[1] == 'nsanall' then
- send_command('input //hp all Northern San d\'Oria 2')
- --- Southern Sand'Oria 2
- elseif commandArgs[1] == 'ssan' then
- send_command('input //hp Southern San d\'Oria 2')
- elseif commandArgs[1] == 'ssanall' then
- send_command('input //hp all Southern San d\'Oria 2')
- --- Windurst Woods 2
- elseif commandArgs[1] == 'wwoods' then
- send_command('input //hp Windurst Woods 2')
- elseif commandArgs[1] == 'wwoodsall' then
- send_command('input //hp all Windurst Woods 2')
- --- Windurst Walls 1
- elseif commandArgs[1] == 'wwalls' then
- send_command('input //hp Windurst Walls 1')
- elseif commandArgs[1] == 'wwallsall' then
- send_command('input //hp all Windurst Walls 1')
- --- Misareaux Coast
- elseif commandArgs[1] == 'coast' then
- send_command('input //hp Misareaux Coast 1')
- elseif commandArgs[1] == 'coastall' then
- send_command('input //hp all Misareaux Coast 1')
- --- Bastok Mines
- elseif commandArgs[1] == 'bmines' then
- send_command('input //hp Bastok Mines 1')
- elseif commandArgs[1] == 'bminesall' then
- send_command('input //hp all Bastok Mines 1')
- --- Nashmau
- elseif commandArgs[1] == 'nashmau' then
- send_command('input //hp Nashmau 1')
- elseif commandArgs[1] == 'nashmauall' then
- send_command('input //hp all Nashmau 1')
- --- Caedarva Mire
- elseif commandArgs[1] == 'mire' then
- send_command('input //hp Caedarva Mire 1')
- elseif commandArgs[1] == 'mireall' then
- send_command('input //hp all Caedarva Mire 1')
- --- Selbina
- elseif commandArgs[1] == 'selbina' then
- send_command('input //hp Selbina 1')
- elseif commandArgs[1] == 'selbinaall' then
- send_command('input //hp all Selbina 1')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement