CODE
#ECHO {IMPORTING~: Dataminer. Type CE to reset it now. Then type mycity=shallam or whatever your city is.}
#ECHO {Then finally type SCANNEXT and LOCATEALL to reset the rest of the system and you're good to go.}
#ECHO {Instructions can be found on the website below the download link for this script.}
#CLASS {Datamining}
#ALIAS infamous {DATA_MSG The following people have been found Infamous%crlf%expandlist( @InfamousOnes, ", ")%crlf;DATA_MSG Use INFAMYUPDATE to update this list.}
#ALIAS infamyupdate {DATA_MSG Updating Infamous Database;#VAR NameCheck "";namecheck = @infamousones;scannext}
#ALIAS shallamcitizensupdate {function = scan;updatestring = %1;DATA_MSG Updating %numitems( @shallamcitizens) Shallam Citizens;#VAR NameCheck @shallamcitizens;#IF {@updatestring = "quick"} {DATA_MSG Quick mode, scanning for dormant players ~(this can take a bit~).;#FORALL @dormant {#DELITEM NameCheck %i};DATA_MSG Scan complete, updating %numitems( @namecheck) active citizens.};scannext}
#ALIAS mhaldorcitizensupdate {function = scan;updatestring = %1;DATA_MSG Updating %numitems( @mhaldorcitizens) Mhaldor Citizens;#VAR NameCheck @mhaldorcitizens;#IF {@updatestring = "quick"} {DATA_MSG Quick mode, scanning for dormant players ~(this can take a bit~).;#FORALL @dormant {#DELITEM NameCheck %i};DATA_MSG Scan complete, updating %numitems( @namecheck) active citizens.};scannext}
#ALIAS eleusiscitizensupdate {function = scan;updatestring = %1;DATA_MSG Updating %numitems( @eleusiscitizens) Eleusis Citizens;#VAR NameCheck @eleusiscitizens;#IF {@updatestring = "quick"} {DATA_MSG Quick mode, scanning for dormant players ~(this can take a bit~).;#FORALL @dormant {#DELITEM NameCheck %i};DATA_MSG Scan complete, updating %numitems( @namecheck) active citizens.};scannext}
#ALIAS hashancitizensupdate {function = scan;updatestring = %1;DATA_MSG Updating %numitems( @hashancitizens) Hashan Citizens;#VAR NameCheck @hashancitizens;#IF {@updatestring = "quick"} {DATA_MSG Quick mode, scanning for dormant players ~(this can take a bit~).;#FORALL @dormant {#DELITEM NameCheck %i};DATA_MSG Scan complete, updating %numitems( @namecheck) active citizens.};scannext}
#ALIAS cyrenecitizensupdate {function = scan;updatestring = %1;DATA_MSG Updating %numitems( @cyrenecitizens) Cyrene Citizens;#VAR NameCheck @cyrenecitizens;#IF {@updatestring = "quick"} {DATA_MSG Quick mode, scanning for dormant players ~(this can take a bit~).;#FORALL @dormant {#DELITEM NameCheck %i};DATA_MSG Scan complete, updating %numitems( @namecheck) active citizens.};scannext}
#ALIAS ashtancitizensupdate {function = scan;updatestring = %1;DATA_MSG Updating %numitems( @ashtancitizens) Ashtan Citizens;#VAR NameCheck @ashtancitizens;#IF {@updatestring = "quick"} {DATA_MSG Quick mode, scanning for dormant players ~(this can take a bit~).;#FORALL @dormant {#DELITEM NameCheck %i};DATA_MSG Scan complete, updating %numitems( @namecheck) active citizens.};scannext}
#ALIAS datascan {function = scan;#VAR NameCheck "";~qw %1;#T+ Datamining|scripting|Names}
#ALIAS citywho {function = who;whostring = %1;whostring2 = %2;#VAR NameCheck "";~qw;#T+ Datamining|scripting|Names}
#ALIAS datastats {#SH Your database has the following stats~:;#SH ~ ;#SH Mhaldor Citizens~: %ansi( green)%numitems( @mhaldorcitizens);#SH Ashtan Citizens ~: %ansi( green)%numitems( @ashtancitizens);#SH Eleusis Citizens~: %ansi( green)%numitems( @eleusiscitizens);#SH Shallam Citizens~: %ansi( green)%numitems( @shallamcitizens);#SH Hashan Citizens ~: %ansi( green)%numitems( @hashancitizens);#SH Cyrene Citizens ~: %ansi( green)%numitems( @cyrenecitizens);#SH Cityless~ ~ ~ ~ ~ ~ ~ ~ ~: %ansi( green)%numitems( @cityless);#SH ---------------------;#SH Adventurer Total~: %ansi( green)%eval( %numitems( @hashancitizens) + %numitems( @ashtancitizens) + %numitems( @eleusiscitizens) + %numitems( @shallamcitizens) + %numitems( @hashancitizens) + %numitems( @cyrenecitizens) + %numitems( @cityless));#SH Dormant~ ~ ~ ~ ~ ~ ~ ~ ~ ~: %ansi( green)%numitems( @dormant);#SH ~ ;#SH ~+City Enemies~ ~ ~ ~: %ansi( green)%numitems( @cityenemies);#SH ~+Infamous~ ~ ~ ~ ~ ~ ~ ~: %ansi( green)%numitems( @infamousones);#SH ---------------------;#SH Total Entries~ ~ ~ ~: %ansi( green)%eval( %numitems( @hashancitizens) + %numitems( @ashtancitizens) + %numitems( @eleusiscitizens) + %numitems( @shallamcitizens) + %numitems( @hashancitizens) + %numitems( @cyrenecitizens) + %numitems( @cityenemies) + %numitems( @infamousones) + %numitems( @dormant) + %numitems( @cityless))}
#ALIAS infamywho {function = who;whostring = infamous;#VAR NameCheck "";~qw;#T+ Datamining|scripting|Names}
#ALIAS ce {#T+ cityenemygathering;cityenemies = "";cityenemies;#WA 2000;#T- cityenemygathering;DATA_MSG City Enemies Updated}
#ALIAS logs {config pagelength 250;amblog @mycity 0 1;amblog @mycity;readlog @mycity 0 1;readlog @mycity;config pagelength 25;#WA 4000;scannext}
#ALIAS coloring {#IF {@coloring = 1} {coloring = 0;#IF {@silentcoloring = 0} {DATA_MSG NameColoring OFF};#t- namecoloring} {coloring = 1;#IF {@silentcoloring = 0} {DATA_MSG NameColoring ON};#t+ namecoloring};silentcoloring = 0}
#ALIAS locate {#T+ locate;#IF {@coloring = 1} {silentcoloring = 1;coloring};function = who;whostring = %1;whostring2 = scan;locatestring = %2;#IF {%3 = ""} {groupsize = 2} {groupsize = %3};#VAR NameCheck "";~qw;#T+ Datamining|scripting|Names}
#ALIAS scanbloodline {function = scan;#VAR NameCheck "";#IF {@coloring = 1} {silentcoloring = 1;coloring};config pagelength 250;~bloodline show %1;#ADDITEM blstudied %1;config pagelength 25;silentcoloring = 1;coloring;#WA 4000;#DELITEM namecheck Unknown;#DELITEM namecheck %proper(%1);scannext}
#ALIAS honors {#IF {@scanning = 1} {DATA_MSG HONORS has been disabled while scanning.} {~honors %1}}
#ALIAS dormantupdate {function = scan;updatestring = %1;DATA_MSG Updating Dormant Players;#VAR NameCheck @dormant;scannext}
#ALIAS studybloodline {function = scan;#VAR NameCheck "";blstudy = 1;#ADDITEM blstudied %1;config pagelength 250;~bloodline show %1;config pagelength 25;#WA 4000;#DELITEM namecheck Unknown;#DELITEM namecheck %proper(%1);scannext}
#ALIAS deepstudybloodline {function = scan;#VAR NameCheck "";blstudy = 1;bldeepstudy = 1;#ADDITEM blstudied %1;config pagelength 250;~bloodline show %1;config pagelength 25;#WA 4000;#DELITEM namecheck Unknown;#DELITEM namecheck %proper(%1);scannext}
#ALIAS honours {#IF {@scanning = 1} {DATA_MSG HONORS has been disabled while scanning.} {~honors %1}}
#ALIAS citylessupdate {function = scan;updatestring = %1;DATA_MSG Updating %numitems( @cityless) cityless adventurers.;#VAR NameCheck @cityless;#IF {@updatestring = "quick"} {DATA_MSG Quick mode, scanning for dormant players ~(this can take a bit~).;#FORALL @dormant {#DELITEM NameCheck %i};DATA_MSG Scan complete, updating %numitems( @namecheck) active adventurers.};scannext}
#ALIAS citizens {function = scan;#VAR NameCheck "";~citizens %1;#T+ Datamining|scripting|Names}
#ALIAS DATA_MSG {#SH %ansi( white)~[%ansi( blue)Datamining%ansi( white)~]~:%-1}
#CLASS 0
#CLASS {Datamining|scripting}
#ALIAS scannext {#IF {@function = scan} {#IF (@NameCheck) {#VAR scanning 1;#T+ Datamining|scripting|Honors;#IF {%numitems( @namecheck) = 800} {DATA_MSG 800 names to go!};#IF {%numitems( @namecheck) = 700} {DATA_MSG 700 names to go!};#IF {%numitems( @namecheck) = 600} {DATA_MSG 600 names to go!};#IF {%numitems( @namecheck) = 500} {DATA_MSG 500 names to go!};#IF {%numitems( @namecheck) = 400} {DATA_MSG 400 names to go!};#IF {%numitems( @namecheck) = 300} {DATA_MSG 300 names to go!};#IF {%numitems( @namecheck) = 200} {DATA_MSG 200 names to go!};#IF {%numitems( @namecheck) = 100} {DATA_MSG 100 names to go!};#IF {%numitems( @namecheck) = 50} {DATA_MSG 50 names to go!};honorsb %pop( NameCheck)} {#T- Datamining|scripting|Honors;#IF {@bldeepstudy = 0} {DATA_MSG Name Scanning Complete, citizenship databases updated.};#VAR scanning 0;Namehonor = "";#IF {@telepathymonitor = 0} {#IF {@bldeepstudy = 0} {blstudy = 0}};#IF {@blstudying} {Namehonor = %item( @blstudying, 1);#DELITEM blstudying %item( @blstudying, 1);scanbloodline @namehonor} {bldeepstudy = 0;#IF {@telepathymonitor = 0} {blstudy = 0}}}};#IF {@function = who} {#VAR whodisplay "";#IF {@whostring = mhaldor} {#FORALL @NameCheck {#IF {%ismember( %i, @mhaldorcitizens)} {#ADDITEM whodisplay %i}}};#IF {@whostring = ashtan} {#FORALL @NameCheck {#IF {%ismember( %i, @ashtancitizens)} {#ADDITEM whodisplay %i}}};#IF {@whostring = eleusis} {#FORALL @NameCheck {#IF {%ismember( %i, @eleusiscitizens)} {#ADDITEM whodisplay %i}}};#IF {@whostring = cyrene} {#FORALL @NameCheck {#IF {%ismember( %i, @cyrenecitizens)} {#ADDITEM whodisplay %i}}};#IF {@whostring = hashan} {#FORALL @NameCheck {#IF {%ismember( %i, @hashancitizens)} {#ADDITEM whodisplay %i}}};#IF {@whostring = shallam} {#FORALL @NameCheck {#IF {%ismember( %i, @shallamcitizens)} {#ADDITEM whodisplay %i}}};#IF {@whostring = infamous} {#FORALL @NameCheck {#IF {%ismember( %i, @InfamousOnes)} {#ADDITEM whodisplay %i}}};#IF {@whostring = cityenemies} {#FORALL @NameCheck {#IF {%ismember( %i, @cityenemies)} {#ADDITEM whodisplay %i}}};#IF {@whostring = cityless} {#FORALL @NameCheck {#IF {%ismember( %i, @cityless)} {#ADDITEM whodisplay %i}}};#IF {@whostring = all} {#FORALL @NameCheck {#ADDITEM whodisplay %i}};#IF {@whostring = raid} {#FORALL @NameCheck {#IF {%ismember( %i, @mhaldorcitizens)} {#ADDITEM whodisplay %i}};#FORALL @NameCheck {#IF {%ismember( %i, @ashtancitizens)} {#ADDITEM whodisplay %i}};#FORALL @NameCheck {#IF {%ismember( %i, @cityenemies)} {#ADDITEM whodisplay %i}}};#IF {@tellcitywho = 1} {tell @tellto %expandlist( @whodisplay, ", ")};#IF {@whostring2 = scan} {locate = @whodisplay;locatestep = 1;#FORALL @whodisplay {mind sense %i}};#IF {@locatestring} {} {#IF {@tellcitywho = 0} {DATA_MSG The following people have been found in %proper( @whostring)%crlf%expandlist( @whodisplay, ", ")%crlf}};function = scan;#VAR whostring "";tellcitywho = 0;#VAR namecheck ""}}
#VAR NameCheck {} {}
#VAR whodisplay {}
#VAR NameHonor {} {}
#VAR function {scan}
#VAR whostring {}
#VAR coloring {1} {1}
#VAR whostring2 {}
#VAR tellto {Thalion}
#VAR tellcitywho {0}
#VAR scanning {0}
#VAR updatestring {} {}
#VAR silentcoloring {0} {0}
#VAR mycity {Shallam}
#ONINPUT {^\s*honou?rsb?\s+(\a+)\s*$} {#VAR NameHonor %proper( %1)} "" {regex}
#TRIGGER {(%w) tells you, ~"Citywho (%w).~"} {#IF {%ismember( %1, @{@{mycity}citizens})} {tell %1 scanning...;tellcitywho = 1;tellto = %1;citywho %2} {#IF {%1 = Durzaan} {tell %1 scanning...;tellcitywho = 1;tellto = %1;citywho %2}}}
#CLASS 0
#CLASS {Datamining|scripting|bloodlines}
#ALIAS endstudy {DATA_MSG Stopping bloodline study. RESUMESTUDY to continue.;config pagelength 25;blstudyingresume = @blstudying;blstudying = "";namecheckresume = @namecheck;namecheck = "";#IF {@telepathymonitor = 0} {blstudy = 0};bldeepstudy = 0}
#ALIAS resumestudy {DATA_MSG Resuming bloodline study. ENDSTUDY to stop.;blstudying = @blstudyingresume;blstudyingresume = "";namecheck = @namecheckresume;namecheckresume = "";blstudy = 1;bldeepstudy = 1;scannext}
#VAR blscanned {}
#VAR blstudy {0} {0}
#VAR blstudying {}
#VAR blstudied {}
#VAR bldeepstudy {0} {0}
#VAR blstudyingresume {}
#VAR namecheckresume {}
#TRIGGER {(%w)%sM~: (%w)%sF~: (%w)} {#IF {@blstudy = 1} {#gag};#IF {%ismember( %1, @blscanned)} {} {#ADDITEM blscanned %1;#ADDITEM namecheck %1};#IF {@blstudy = 1} {#IF {%ismember( %1, @blstudied)} {} {#ADDITEM blstudying %1}};#IF {%ismember( %2, @blscanned)} {} {#ADDITEM blscanned %2;#ADDITEM namecheck %2};#IF {@blstudy = 1} {#IF {%ismember( %2, @blstudied)} {} {#ADDITEM blstudying %2}};#IF {%ismember( %3, @blscanned)} {} {#ADDITEM blscanned %3;#ADDITEM namecheck %3};#IF {@blstudy = 1} {#IF {%ismember( %3, @blstudied)} {} {#ADDITEM blstudying %3}}}
#TRIGGER {(%w) ~(Half~)} {#IF {%ismember( %1, @blscanned)} {} {#ADDITEM blscanned %1;#ADDITEM namecheck %1};#IF {@blstudy = 1} {#IF {%ismember( %1, @blstudied)} {} {#ADDITEM blstudying %1}}}
#TRIGGER {(%w)$(%w) ~(Half~)} {#IF {%ismember( %1, @blscanned)} {} {#ADDITEM blscanned %1;#ADDITEM namecheck %1};#IF {@blstudy = 1} {#IF {%ismember( %1, @blstudied)} {} {#ADDITEM blstudying %1}}}
#TRIGGER {(%w) ~(Half~)$(%w)} {#IF {%ismember( %2, @blscanned)} {} {#ADDITEM blscanned %2;#ADDITEM namecheck %2};#IF {@blstudy = 1} {#IF {%ismember( %2, @blstudied)} {} {#ADDITEM blstudying %2}}}
#TRIGGER {(%w) ~(Half~)$(%w)$(%w)} {#IF {%ismember( %2, @blscanned)} {} {#ADDITEM blscanned %2;#ADDITEM namecheck %2};#IF {@blstudy = 1} {#IF {%ismember( %2, @blstudied)} {} {#ADDITEM blstudying %2}};#IF {%ismember( %3, @blscanned)} {} {#ADDITEM blscanned %3;#ADDITEM namecheck %3};#IF {@blstudy = 1} {#IF {%ismember( %3, @blstudied)} {} {#ADDITEM blstudying %3}}}
#TRIGGER {(%w)$(%w)$(%w) ~(Half~)} {#IF {@blstudy = 1} {#gag};#IF {@blstudy = 1} {#gag};#IF {@blstudy = 1} {#gag};#IF {%ismember( %2, @blscanned)} {} {#ADDITEM blscanned %2;#ADDITEM namecheck %2};#IF {@blstudy = 1} {#IF {%ismember( %2, @blstudied)} {} {#ADDITEM blstudying %2}};#IF {%ismember( %3, @blscanned)} {} {#ADDITEM blscanned %3;#ADDITEM namecheck %3};#IF {@blstudy = 1} {#IF {%ismember( %3, @blstudied)} {} {#ADDITEM blstudying %3}}}
#TRIGGER {~-~-~-~-$(%w)$(%w)} {#IF {@blstudy = 1} {#gag};#IF {@blstudy = 1} {#gag};#IF {%ismember( %1, @blscanned)} {} {#ADDITEM blscanned %1;#ADDITEM namecheck %1};#IF {@blstudy = 1} {#IF {%ismember( %1, @blstudied)} {} {#ADDITEM blstudying %1}};#IF {%ismember( %2, @blscanned)} {} {#ADDITEM blscanned %2;#ADDITEM namecheck %2};#IF {@blstudy = 1} {#IF {%ismember( %2, @blstudied)} {} {#ADDITEM blstudying %2}}}
#TRIGGER {(%w)$(%w)$(%w)} {#IF {%ismember( %1, @blscanned)} {} {#ADDITEM blscanned %1;#ADDITEM namecheck %1};#IF {@blstudy = 1} {#IF {%ismember( %1, @blstudied)} {} {#ADDITEM blstudying %1}};#IF {%ismember( %2, @blscanned)} {} {#ADDITEM blscanned %2;#ADDITEM namecheck %2};#IF {@blstudy = 1} {#IF {%ismember( %2, @blstudied)} {} {#ADDITEM blstudying %2}};#IF {%ismember( %3, @blscanned)} {} {#ADDITEM blscanned %3;#ADDITEM namecheck %3};#IF {@blstudy = 1} {#IF {%ismember( %3, @blstudied)} {} {#ADDITEM blstudying %3}}}
#TRIGGER {Grandchildren} {#IF {@blstudy = 1} {#gag 2}}
#TRIGGER {Children} {#IF {@blstudy = 1} {#gag 2}}
#TRIGGER {Great Grandchildren} {#IF {@blstudy = 1} {#gag 2}}
#TRIGGER {Siblings} {#IF {@blstudy = 1} {#gag};#IF {@blstudy = 1} {#gagb}}
#TRIGGER {Parents} {#IF {@blstudy = 1} {#gag 2}}
#TRIGGER {Grandparents} {#IF {@blstudy = 1} {#gag 2}}
#TRIGGER {Great Grandparents} {#IF {@blstudy = 1} {#gag 2}}
#TRIGGER {Unknown} {#IF {@blstudy = 1} {#gag}}
#TRIGGER {None.} {#IF {@blstudy = 1} {#gag}}
#TRIGGER {Your current pagelength~: 25} {#gag}
#CLASS 0
#CLASS {Datamining|scripting|locate}
#ALIAS locateall {#VAR location %item( @locations, 1);#FORALL @locate {#IF {@%i = @location} {#AD namecount 1;#ADDITEM namelist %i;#DELITEM locate %i;#UNVAR %i}};#DELITEM locations @location;#IF {@locatestring = groups} {#IF {@namecount >= @groupsize} {#SH ~ ;#SH @location;#SH %expandlist( @namelist, ", ")}} {#SH ~ ;#SH @location;#SH %expandlist( @namelist, ", ")};#VAR namelist "";namecount = 0;#IF {@locate} {locateall} {DATA_MSG End of List;whostring2 = "";#VAR locatestring "";#VAR namecheck "";#UNVAR locations;#UNVAR location;#UNVAR namelist;#UNVAR namecount;#ALARM +2 {#T- locate}}}
#VAR locatestep {72}
#VAR locate {}
#VAR locatestring {}
#VAR groupsize {2} {2}
#TRIGGER {An image of (*) appears} {#PRI {#IF {@whostring2 = scan} {#TEMP {(%a)h,} {#GAG};#VA %item( @locate, @locatestep) "%1";#ADDITEM locations "%1";#DELITEM whodisplay %item( @locate, @locatestep);#GAG;#IF {@whodisplay = ""} {DATA_MSG Locations to follow...;silentcoloring = 1;coloring;locateall}};#AD locatestep 1}}
#TRIGGER {Variable * removed.} {#gag}
#TRIGGER {Whom do you wish to sense for?} {#IF {@whostring2 = scan} {#TEMP {(%a)h,} {#gag};#ADDITEM locations "NOT TRACEABLE";#VA %item(@locate,@locatestep) "NOT TRACEABLE";#DELITEM whodisplay %item(@locate,@locatestep);#gag;#IF {@whodisplay = ""} {DATA_MSG Locations to follow...;silentcoloring = 1;coloring;locateall}};#AD locatestep 1}
#TRIGGER {You cannot penetrate the omniscient mind of a deity, impetuous mortal!} {#IF {@whostring2 = scan} {#TEMP {(%a)h,} {#gag};#VA %item(@locate,@locatestep) "NOT TRACEABLE";#ADDITEM locations "NOT TRACEABLE";#DELITEM whodisplay %item(@locate,@locatestep);#gag;#IF {@whodisplay = ""} {DATA_MSG Locations to follow...;silentcoloring = 1;coloring;locateall}};#AD locatestep 1}
#CLASS 0
#CLASS {Datamining|scripting|logupdates}
#ALIAS logupdate {readlog shallam 0 6;more;more;more;more;readlog shallam 0 5;more;more;more;more;readlog shallam 0 4;more;more;more;more;readlog shallam 0 3;more;more;more;more;readlog shallam 0 2;more;more;more;more;readlog shallam 0 1;more;more;more;more;readlog shallam;more;more;more;more;amblog shallam 0 6;more;more;more;more;amblog shallam 0 5;more;more;more;more;amblog shallam 0 4;more;more;more;more;amblog shallam 0 3;more;more;more;more;amblog shallam 0 2;more;more;more;more;amblog shallam 0 1;more;more;more;more;amblog shallam;more;more;more;more}
#TRIGGER {(%a), an enemy of your organisation, has chosen} {#DELITEM cityenemies %1;DATA_MSG %ansi( blue)%1 %ansi( white)suicided, and is no longer an enemy.;DATA_MSG Deleting %1 from database, no longer exists.;#DELITEM infamousones %1;#DELITEM mhaldorcitizens %1;#DELITEM shallamcitizens %1;#DELITEM hashancitizens %1;#DELITEM cyrenecitizens %1;#DELITEM ashtancitizens %1;#DELITEM eleusiscitizens %1;#DELITEM dormant %1;#DELITEM cityenemies %1;#DELITEM cityless %1}
#TRIGGER {declared (%a) to be a formal enemy.} {#ADDITEM cityenemies %1;DATA_MSG %ansi( red)%1 %ansi( white)is now an Enemy.}
#TRIGGER {declared that (%a) is no longer an enemy.} {#DELITEM cityenemies %1;DATA_MSG %ansi( blue)%1 %ansi( white)is no longer an enemy.}
#TRIGGER {(%a) was citizened during the Trial of Rebirth.} {#ADDITEM @{mycity}citizens %1}
#TRIGGER {The citizen (%a) has chosen to depart this mortal coil.} {#DELITEM @{mycity}citizens %1}
#TRIGGER {(%a) quit the city.} {#DELITEM @{mycity}citizens %1;#ADDITEM NameCheck %1}
#TRIGGER {* citizened (%a).} {#ADDITEM @{mycity}citizens %1;#ADDITEM NameCheck %1}
#TRIGGER {(%a) will now be known as (%a).} {#DELITEM @{mycity}citizens %1;#ADDITEM @{mycity}citizens %2}
#TRIGGER {(%a) was citizened by The Prophet, Averroes.} {#ADDITEM @{mycity}citizens %1;#ADDITEM NameCheck %1}
#TRIGGER {(%w) kicked out (%w).} {#DELITEM @{mycity}citizens %2;#ADDITEM NameCheck %2}
#CLASS 0
#CLASS {Datamining|scripting|activehonors}
#VAR citycitizen {0} {0}
#VAR nameold {0} {0}
#VAR nameunranked {0} {0}
#REGEX {is rapidly approaching the ranks of the Infamous.} {#PRI {#IF (@NameCheck) {#GAG};#IF {%ismember( @NameHonor, @InfamousOnes)} {DATA_MSG @NameHonor is no longer Infamous.;#DELITEM InfamousOnes @NameHonor}}}
#TRIGGER {^(%w) is %d years old today!} {#IF {%ismember( %1, @mhaldorcitizens)} {} {#IF {%ismember( %1, @hashancitizens)} {} {#IF {%ismember( %1, @cyrenecitizens)} {} {#IF {%ismember( %1, @shallamcitizens)} {} {#IF {%ismember( %1, @eleusiscitizens)} {} {#IF {%ismember( %1, @ashtancitizens)} {} {#IF {%ismember( %1, @cityless)} {} {#ADDITEM NameCheck %1}}}}}}}}
#REGEX {^(?:He|She) is not known for acts of infamy.} {#PRI {#IF (@NameCheck) {#GAG};#IF {%ismember( @NameHonor, @InfamousOnes)} {DATA_MSG @NameHonor is no longer Infamous.;#DELITEM InfamousOnes @NameHonor}}}
#REGEX {^(?:He|She) is one of.+? Infamous\.$} {#PRI {#IF (@NameCheck) {#GAG};#IF {%ismember( @NameHonor, @InfamousOnes)} {} {DATA_MSG New Infamy Detected, @NameHonor;#ADDITEM InfamousOnes @NameHonor}}}
#TRIGGER {he is {a|an} %w in ({Mhaldor|Ashtan|Eleusis|Shallam|Hashan|Cyrene})} {#PRI {#IF (@NameCheck) {#GAG};citycitizen = 1;#IF {%ismember( @NameHonor, @cityless)} {#DELITEM cityless @Namehonor};#IF {%ismember( @NameHonor, @hashancitizens) & %1 != Hashan} {DATA_MSG @NameHonor moved from Hashan to %1.;#DELITEM hashancitizens @NameHonor};#IF {%ismember( @NameHonor, @mhaldorcitizens) & %1 != Mhaldor} {DATA_MSG @NameHonor moved from Mhaldor to %1.;#DELITEM mhaldorcitizens @NameHonor};#IF {%ismember( @NameHonor, @ashtancitizens) & %1 != Ashtan} {DATA_MSG @NameHonor moved from Ashtan to %1.;#DELITEM ashtancitizens @NameHonor};#IF {%ismember( @NameHonor, @eleusiscitizens) & %1 != Eleusis} {DATA_MSG @NameHonor moved from Eleusis to %1.;#DELITEM eleusiscitizens @NameHonor};#IF {%ismember( @NameHonor, @cyrenecitizens) & %1 != Cyrene} {DATA_MSG @NameHonor moved from Cyrene to %1.;#DELITEM cyrenecitizens @NameHonor};#IF {%ismember( @NameHonor, @shallamcitizens) & %1 != Shallam} {DATA_MSG @NameHonor moved from Shallam to %1.;#DELITEM shallamcitizens @NameHonor};#IF {%ismember( @NameHonor, @%1citizens)} {} {#ADDITEM %1citizens @NameHonor;DATA_MSG New %proper( %1) Citizen, @NameHonor}}}
#TRIGGER {is (%d) years old, having been born} {#IF {%1 > 60} {nameold = 1}}
#TRIGGER {is ranked * in Achaea.} {#PRI {#IF {%ismember( @namehonor, @dormant)} {#DELITEM dormant @namehonor;DATA_MSG @namehonor is no longer Dormant}}}
#TRIGGER {considered to be * your might} {#PRI {#IF {@citycitizen = 0} {#IF {%ismember( @NameHonor, @mhaldorcitizens)} {#DELITEM mhaldorcitizens @Namehonor;DATA_MSG @namehonor quit Mhaldor};#IF {%ismember( @NameHonor, @shallamcitizens)} {#DELITEM shallamcitizens @Namehonor;DATA_MSG @namehonor quit Shallam};#IF {%ismember( @NameHonor, @hashancitizens)} {#DELITEM hashancitizens @Namehonor;DATA_MSG @namehonor quit Hashan};#IF {%ismember( @NameHonor, @cyrenecitizens)} {#DELITEM cyrenecitizens @Namehonor;DATA_MSG @namehonor quit Cyrene};#IF {%ismember( @NameHonor, @Ashtancitizens)} {#DELITEM ashtancitizens @Namehonor;DATA_MSG @namehonor quit Ashtan};#IF {%ismember( @NameHonor, @Eleusiscitizens)} {#DELITEM eleusiscitizens @Namehonor;DATA_MSG @namehonor quit Eleusis};#IF {%ismember( @NameHonor, @cityless)} {} {#ADDITEM cityless @Namehonor;DATA_MSG New Cityless Adventurer, @Namehonor}} {citycitizen = 0};#IF {@nameold = 1 & @nameunranked = 1} {#IF {%ismember( @NameHonor, @dormant)} {} {DATA_MSG @Namehonor is Dormant};#ADDITEM dormant @NameHonor};nameold = 0;nameunranked = 0}}
#TRIGGER {is unranked in Achaea.} {nameunranked = 1}
#TRIGGER {There are %d birthdays today.} {#ALARM +2 {scannext}}
#TRIGGER {*, (%w), * is %d year...} {#IF {%ismember( %1, @mhaldorcitizens)} {} {#IF {%ismember( %1, @hashancitizens)} {} {#IF {%ismember( %1, @cyrenecitizens)} {} {#IF {%ismember( %1, @shallamcitizens)} {} {#IF {%ismember( %1, @eleusiscitizens)} {} {#IF {%ismember( %1, @ashtancitizens)} {} {#IF {%ismember( %1, @cityless)} {} {#ADDITEM NameCheck %1}}}}}}}}
#TRIGGER {^%w (%w) is %d years old today!} {#IF {%ismember( %1, @mhaldorcitizens)} {} {#IF {%ismember( %1, @hashancitizens)} {} {#IF {%ismember( %1, @cyrenecitizens)} {} {#IF {%ismember( %1, @shallamcitizens)} {} {#IF {%ismember( %1, @eleusiscitizens)} {} {#IF {%ismember( %1, @ashtancitizens)} {} {#IF {%ismember( %1, @cityless)} {} {#ADDITEM NameCheck %1}}}}}}}}
#TRIGGER {(%w), * is %d years old today!} {#IF {%ismember( %1, @mhaldorcitizens)} {} {#IF {%ismember( %1, @hashancitizens)} {} {#IF {%ismember( %1, @cyrenecitizens)} {} {#IF {%ismember( %1, @shallamcitizens)} {} {#IF {%ismember( %1, @eleusiscitizens)} {} {#IF {%ismember( %1, @ashtancitizens)} {} {#IF {%ismember( %1, @cityless)} {} {#ADDITEM NameCheck %1}}}}}}}}
#CLASS 0
#CLASS {Datamining|scripting|cityenemygathering}
#TRIGGER {(%w), (%w)$} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2}
#TRIGGER {(%w), (%w), (%w)$} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3}
#TRIGGER {(%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4}
#TRIGGER {(%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5}
#TRIGGER {(%w), (%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5;#ADDITEM cityenemies %6}
#TRIGGER {(%w), (%w), (%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5;#ADDITEM cityenemies %6;#ADDITEM cityenemies %7}
#TRIGGER {(%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5;#ADDITEM cityenemies %6;#ADDITEM cityenemies %7;#ADDITEM cityenemies %8}
#TRIGGER {(%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5;#ADDITEM cityenemies %6;#ADDITEM cityenemies %7;#ADDITEM cityenemies %8;#ADDITEM cityenemies %9}
#TRIGGER {(%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5;#ADDITEM cityenemies %6;#ADDITEM cityenemies %7;#ADDITEM cityenemies %8;#ADDITEM cityenemies %9;#ADDITEM cityenemies %10}
#TRIGGER {(%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5;#ADDITEM cityenemies %6;#ADDITEM cityenemies %7;#ADDITEM cityenemies %8;#ADDITEM cityenemies %9;#ADDITEM cityenemies %10;#ADDITEM cityenemies %11}
#TRIGGER {(%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w), (%w)} {#ADDITEM cityenemies %1;#ADDITEM cityenemies %2;#ADDITEM cityenemies %3;#ADDITEM cityenemies %4;#ADDITEM cityenemies %5;#ADDITEM cityenemies %6;#ADDITEM cityenemies %7;#ADDITEM cityenemies %8;#ADDITEM cityenemies %9;#ADDITEM cityenemies %10;#ADDITEM cityenemies %11;#ADDITEM cityenemies %12}
#CLASS 0
#CLASS {Datamining|scripting|Honors}
#REGEX {^.*?(?:@NameHonor).*? \((?:Female|Male) .+?\)\.} {#GAG}
#REGEX {(?:He|She) bears the arms\: .+} {#gag}
#REGEX {(?:He|She) has triumphed \d+ times? in the combat rankings\.} {#gag}
#REGEX {(?:He|She) is .+? character\.} {#gag}
#REGEX {(?:He|She) is a member of the .+?\.} {#gag}
#REGEX {(?:He|She) is a proud soldier of (?:Ashtan|Mhaldor|Cyrene|Eleusis|Hashan|Shallam)\.} {#gag}
#REGEX {(?:He|She) is (?:ranked|unranked).*? in Achaea\.} {#gag}
#REGEX {(?:He|She) is the \w+ of (?:Ashtan|Mhaldor|Cyrene|Eleusis|Hashan|Shallam)\.} {#gag}
#REGEX {(?:His|Her) (?:motto|warcry)\: .+} {#gag}
#REGEX {(?:He|She) is the .+? ranked combatant with a rating of \d+\.} {#gag}
#REGEX {(?:He|She) is \d+ years old\, having been born on the \d+(?:st|nd|rd|th) of \w+\, \d+ years} {#gag}
#REGEX {Seleucarian Empire\.} {#gag}
#REGEX {(?:He|She) is .+? in the Church\.$} {#gag}
#REGEX {(?:He|She) has filed issues against others \d+ times\, averaging \d+ per Achaean year\.} {#gag}
#REGEX {(?:He|She) walks with Divine Grace\.} {#gag}
#REGEX {(?:He|She) was born before time was counted\.} {#GAG}
#COND {} {scannext} {wait|param=100}
#REGEX {(?:He|She) is considered to be .+? your might\.} {#GAG}
#COND {} {scannext} {wait|param=150}
#TRIGGER {he is {a|an|of} * in the} {#GAG}
#TRIGGER {There is no such person, I'm afraid.} {#PRI {#GAG;DATA_MSG Deleting @namehonor from database, no longer exists.;#DELITEM infamousones @Namehonor;#DELITEM mhaldorcitizens @Namehonor;#DELITEM shallamcitizens @Namehonor;#DELITEM hashancitizens @Namehonor;#DELITEM cyrenecitizens @Namehonor;#DELITEM ashtancitizens @Namehonor;#DELITEM eleusiscitizens @Namehonor;#DELITEM dormant @Namehonor;#DELITEM cityenemies @Namehonor;#DELITEM cityless @NameHonor};scannext}
#CLASS 0
#CLASS {Datamining|scripting|Names}
#ALARM {*10} {#T- Datamining|scripting|Names;DATA_MSG Datamining timeout expired. Try again.}
#REGEX {^([A-Za-z\,\. ]+)$} {#VAR NameCheck {%concat( @NameCheck, "%1")};#gag;#IF (%pos( ".", @NameCheck)) {#VAR NameCheck {%subregex( @NameCheck, "[^\w]+", "|")};#T- Datamining|scripting|Names;scannext}}
#CLASS 0
#CLASS {Datamining|database}
#VAR InfamousOnes {}
#VAR cityenemies {}
#VAR Dormant {}
#CLASS 0
#CLASS {Datamining|namecoloring}
#REGEX {\b(@cityenemies)\b} {#PRI {#CW red}} "" {case}
#REGEX {\b(@mhaldorcitizens)\b} {#PRI {#IF {%ismember( %1, @cityenemies)} {} {#CW orange}}} "" {case}
#REGEX {\b(@ashtancitizens)\b} {#PRI {#IF {%ismember( %1, @cityenemies)} {} {#CW darkkhaki}}} "" {case}
#REGEX {\b(@eleusiscitizens)\b} {#PRI {#IF {%ismember( %1, @cityenemies)} {} {#CW darkgreen}}} "" {case}
#REGEX {\b(@cyrenecitizens)\b} {#PRI {#IF {%ismember( %1, @cityenemies)} {} {#CW cyan}}} "" {case}
#REGEX {\b(@hashancitizens)\b} {#PRI {#IF {%ismember( %1, @cityenemies)} {} {#CW lightpink}}} "" {case}
#REGEX {\b(@shallamcitizens)\b} {#PRI {#IF {%ismember( %1, @cityenemies)} {} {#CW slateblue}}} "" {case}
#REGEX {\b(@cityless)\b} {#PRI {#IF {%ismember( %1, @cityenemies)} {} {#CW white}}} "" {case}
#CLASS 0
this is what i am trying to put over to mush