Welcome to the Achaea Forums! Please be sure to read the Forum Rules.
[Nexus] Simple scripts that you find helpful and that might help others!

Raemond
Member Posts: 9 ✭✭ - Stalwart
Here's a quick one I like for automatically using my damage rage abilities.
Regex Trigger: Total: ([0-9]+)
Execute Script:
Regex Trigger: Total: ([0-9]+)
Execute Script:
//Check rage, use abilities---------------------------------------------------
var rage = args[1];
if(rage >= 36){
send_command("golem squeeze " + get_variable("tar"));
}else if (rage >= 14){
send_command("cast windlash at " + get_variable("tar"));
}
I attempted to put this in a code block but it blew up the forums, not sure what's up with that.
I attempted to put this in a code block but it blew up the forums, not sure what's up with that.
2
Comments
-
Here's one for gathering all monsters that should be targetable in a room. Looks like it refreshes when you enter a room, do a look, or quick look. This will store all the ID's in ascending variables (tar0, tar1, tar2) for use by other scripts (like Stormhammer, which is what I use it for). This code goes in the onGMCP Function.//Gather targets when entering a roomif (args.gmcp_method == "Char.Items.List" && args.gmcp_args.location == "room") {var roomArray = args.gmcp_args.items;var filteredArray = [];for (index = 0; index < roomArray.length; ++index){if(roomArray[index].attrib != null){if(roomArray[index].attrib.search('m') != -1 && roomArray[index].attrib.search('x') == -1 && roomArray[index].name != "a crystalline golem"){filteredArray.push(roomArray[index]);}}}for (index = 0; index < filteredArray.length; ++index) {set_variable("tar"+index, filteredArray[index].id);}}1
-
Raemond said:Here's one for gathering all monsters that should be targetable in a room. Looks like it refreshes when you enter a room, do a look, or quick look. This will store all the ID's in ascending variables (tar0, tar1, tar2) for use by other scripts (like Stormhammer, which is what I use it for). This code goes in the onGMCP Function.//Gather targets when entering a roomif (args.gmcp_method == "Char.Items.List" && args.gmcp_args.location == "room") {var roomArray = args.gmcp_args.items;var filteredArray = [];for (index = 0; index < roomArray.length; ++index){if(roomArray[index].attrib != null){if(roomArray[index].attrib.search('m') != -1 && roomArray[index].attrib.search('x') == -1 && roomArray[index].name != "a crystalline golem"){filteredArray.push(roomArray[index]);}}}for (index = 0; index < filteredArray.length; ++index) {set_variable("tar"+index, filteredArray[index].id);}}Tharos, the Announcer of Delos shouts, "It's near the end of the egghunt and I still haven't figured out how to pronounce Clean-dat-hoo."0
-
Good idea, when that happens now I always just ql. But it would be nice not to have to do that.0
Sign In to Comment.
Hail, Stranger!
Categories
- 6K All Categories
- 3K Everything Achaea
- 1.5K North of Thera
- 21 Archives of the Terraformer
- 246 The Matsuhama Arena
- 873 The Golden Dais of Creation
- 283 The Scarlattan Theatre
- 145 The Blank Canvas
- 1.9K Getting Help
- 392 General Questions
- 251 Quick Class Questions
- 1.3K Tech Support
- 299 Client Help
- 458 Curing Systems and Scripts
- 829 Off-Topic
- 250 The Wander Inn
- 579 The Universal Membrane
- 286 Class Discussions
- 286 Individual Class Sections
- 20 Alchemist
- 9 Apostate
- 29 Blademaster
- 9 Depthswalker
- 12 Druid
- 4 Infernal
- 20 Jester
- 19 Magi
- 31 Monk
- 10 Occultist
- 7 Paladin
- 7 Priest
- 28 Runewarden
- 18 Sentinel
- 26 Serpent
- 19 Shaman
- 9 Sylvan