Auto Codex Change Snippets by barryroser
Description from the author:
# Codex Change Snippets
#
# These snippets can be used in echo change scripts/standalone button scripts
# User must edit the line in each snippet that handles your custom loadout name
# Default loadout name is "LOADOUT NAME HERE"
#
##########################################################################
# Potion Codex
if findtype "potion codex" backpack as potcodex
clearsysmsg
dclick potcodex
waitforgump 2571832515 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 2571832515
waitforgump 2571832515 500
endwhile
gumpresponse 7 2571832515
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 2571832515
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 2571832515
waitforgump 2571832515 500
gumpclose 2571832515
cooldown "Potion Codex Reset" 300000
endif
endif
##########################################################################
# Wizard Grimoire
if findtype "wizards grimoire" backpack as wizgrim
clearsysmsg
dclick wizgrim
waitforgump 1281623709 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 1281623709
waitforgump 1281623709 500
endwhile
gumpresponse 7 1281623709
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 1281623709
stop
elseif insysmsg "This is already your current loadout"
overhead "Echo Change Complete!" 88
overhead 'Deathmage Enabled' 77
stop
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 1281623709
waitforgump 1281623709 500
gumpclose 1281623709
cooldown "Wizard Grimoire Reset" 300000
endif
endif
##########################################################################
# Trap Kit
if findtype "trap kit" backpack as trapcodex
clearsysmsg
dclick trapcodex
waitforgump 4044985415 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 4044985415
waitforgump 4044985415 500
endwhile
gumpresponse 7 4044985415
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 4044985415
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 4044985415
waitforgump 4044985415 500
gumpclose 4044985415
cooldown "Trap Kit Reset" 300000
endif
endif
##########################################################################
# Summoners Tome
if findtype "summoners tome" backpack as summcodex
clearsysmsg
dclick summcodex
waitforgump 2279346433 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 2279346433
waitforgump 2279346433 500
endwhile
gumpresponse 7 2279346433
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 2279346433
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 2279346433
waitforgump 2279346433 500
gumpclose 2279346433
cooldown "Summoner Tome Reset" 300000
endif
endif
##########################################################################
# Poison Kit
if findtype "full vials" backpack as poisonkit
clearsysmsg
dclick poisonkit
waitforgump 1144890379 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 1144890379
waitforgump 1144890379 500
endwhile
gumpresponse 7 1144890379
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 1144890379
stop
elseif insysmsg "This is already your current loadout"
overhead "Echo Change Complete!" 88
overhead 'Nox Dex Enabled' 77
stop
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 1144890379
waitforgump 1144890379 500
gumpclose 1144890379
cooldown "Poison Kit Reset" 300000
endif
endif
##########################################################################
# Bard Codex
if findtype "bard codex" backpack as bardcodex
clearsysmsg
dclick bardcodex
waitforgump 2952534525 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 2952534525
waitforgump 2952534525 500
endwhile
gumpresponse 7 2952534525
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 2952534525
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 2952534525
waitforgump 2952534525 500
gumpclose 2952534525
cooldown "Bard Codex Reset" 300000
endif
endif
##########################################################################
# Taming Bestiary
if findtype "taming bestiary" backpack as beastcodex
clearsysmsg
dclick beastcodex
waitforgump 1353229584 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 1353229584
waitforgump 1353229584 500
endwhile
gumpresponse 7 1353229584
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 1353229584
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 1353229584
waitforgump 1353229584 500
gumpclose 1353229584
cooldown "Taming Bestiary Reset" 300000
endif
endif
##########################################################################
# Thief Codex
if findtype "thief codex" backpack as tcodex
clearsysmsg
dclick tcodex
waitforgump 2955404556 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 2955404556
waitforgump 2955404556 500
endwhile
gumpresponse 7 2955404556
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 2955404556
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 2955404556
waitforgump 2955404556 500
gumpclose 2955404556
cooldown "Thief Codex Reset" 300000
endif
endif
##########################################################################
# Healers Codex
if findtype "healers codex" backpack as healcodex
clearsysmsg
dclick healcodex
waitforgump 1244441914 500
while not ingump "LOADOUT NAME HERE"
gumpresponse 3 1244441914
waitforgump 1244441914 500
endwhile
gumpresponse 7 1244441914
getlabel backpack ping
if insysmsg "You must wait another"
overhead "Codex Reset Cooling Down..." 38
gumpclose 1244441914
elseif insysmsg "Click again to activate this loadout"
gumpresponse 7 1244441914
waitforgump 1244441914 500
gumpclose 1244441914
cooldown "Healers Codex Reset" 300000
endif
endifThis script auto enables specific loadouts for Codexs








