Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Assorted Scripts

ShecksShecks Member Posts: 1,118 ✭✭✭✭ - Eminent
edited April 16 in Client Help

Just a thread to share scripts that I think other people might like to use, instead of making a new thread every time.

Multi-name city charging script

Lets you charge any number of dirty criminals all at once. Uses multi-line command, so be sure to set the command_separator variable if you have changed your in-game command separator from the default setting.


city charge player [player...] with [crime]

regex:  ^city charge (.+) with (\w+)$

local command_separator = ";"  --default is ;
local s = ""
local t = string.split(matches[2])
local name = ""
local i = 0
local c = 0
while c < #t do
  assert(c < 100,"overrun")
  i=i+1 c=c+1 
  if i == 12 then
    i = 0
    s = ""
  name = t[c]
  s = s.."city charge "..name.." with "..matches[3]
  if i < #t and i ~= 11 and c ~= #t then s = s..command_separator end



  • VinzentVinzent Member Posts: 362 ✭✭✭ - Distinguished

    That seems overly complicated, I can think of how to do that in 1/4th the lines.

  • SaonjiSaonji Member Posts: 972 ✭✭✭✭ - Eminent

    Alias: charge (.+) with (\S+)

    for name in matches[2]:gmatch("%w+") do
      send("city charge "..name.." with "..matches[3])

    Will accept both words as the charge, as well as numbers for utilising city crimes list charges.

  • ErylEryl Member Posts: 359 ✭✭✭✭ - Eminent

    You guys are clearly wrong. Shecks’ code is the best in the game. For 500$, you too could have an aff tracker that barely functions!

  • SobriquetSobriquet Member Posts: 2,877 @@ - Legendary Achaean

    Sarapis Approved.

    (Party): Mezghar says, "Stop."
  • EruEru Member Posts: 6

    Man yall still troll shecks? What are we still in 2008? Grow up, we don't need to derail every forum post.

  • ThaisenThaisen Member Posts: 538 ✭✭✭✭ - Eminent

    Wait a second, I thought Shecks was trolling us?

Sign In to Comment.