Soll2006-07-05 03:53:30
CODE
#class Demesne
#class EnterDemesne
#class LeaveDemesne
#class 0
#trigger "DemesneOpenTrigger" {^(%w) enters your demesne.$} {#cw 12;#t+ {EnterDemesne};#t- "Demesne|DemesneOpenTrigger"} "Demesne"
#trigger "DemesneCloseTrigger" {^(%w) leaves your demesne.$} {#cw 10;#t+ {LeaveDemesne};#t- "Demesne|DemesneCloseTrigger"} "Demesne"
#alias adem {#echo %null;#echo %ansi( 10)You will announce when enemies enter your demesne.;#var announcedemesne 1} "Demesne"
#alias nadem {#echo %null;#echo %ansi( 12)You will no longer announce when enemies enter your demesne.;#var announcedemesne 0} "Demesne"
#alias enemy {#if (@active) {#send {Enemy %1};#additem enemylist %proper( "%1")}} "Demesne"
#alias unenemy {#if (@active and %1!="all" and %1!="All") {#send {Unenemy %1};#delitem enemylist %proper( "%1")} {#if (@active) {#send {Unenemy all};#var enemylist ""}}} "Demesne"
#trigger {^(%w) enters your demesne.$} {#cw 12;#if (%ismember( "%1", @enemylist)) {#if (@demesneenter=%null) {#add demesneenter "%1"} {#add demesneenter ", %1"}}} "EnterDemesne"
#trigger {^(%d)h, (%d)m, (%d)e} {#if (@active and @announcedemesne and @demesneenter!=%null) {Clt4 Entering my demesne: @demesneenter;#var demesneenter ""};#t- {EnterDemesne};#t+ "Demesne|DemesneOpenTrigger"} "EnterDemesne" {nocr|prompt}
#trigger {^(%w) leaves your demesne.$} {#co 10;#if (%ismember( "%1", @enemylist)) {#if (@demesneleave=%null) {#add demesneleave "%1"} {#add demesneleave ", %1"}}} "LeaveDemesne"
#trigger {^(%d)h, (%d)m, (%d)e} {#if (@active and @announcedemesne and @demesneleave!=%null) {Clt4 Left my demesne: @demesneleave;#var demesneleave ""};#t- {LeaveDemesne};#t+ "Demesne|DemesneCloseTrigger"} "LeaveDemesne" {nocr|prompt}
#class 0
#t+ "DemesneOpenTrigger"
#t+ "DemesneCloseTrigger"
#t- {EnterDemesne}
#t- {LeaveDemesne}
#class EnterDemesne
#class LeaveDemesne
#class 0
#trigger "DemesneOpenTrigger" {^(%w) enters your demesne.$} {#cw 12;#t+ {EnterDemesne};#t- "Demesne|DemesneOpenTrigger"} "Demesne"
#trigger "DemesneCloseTrigger" {^(%w) leaves your demesne.$} {#cw 10;#t+ {LeaveDemesne};#t- "Demesne|DemesneCloseTrigger"} "Demesne"
#alias adem {#echo %null;#echo %ansi( 10)You will announce when enemies enter your demesne.;#var announcedemesne 1} "Demesne"
#alias nadem {#echo %null;#echo %ansi( 12)You will no longer announce when enemies enter your demesne.;#var announcedemesne 0} "Demesne"
#alias enemy {#if (@active) {#send {Enemy %1};#additem enemylist %proper( "%1")}} "Demesne"
#alias unenemy {#if (@active and %1!="all" and %1!="All") {#send {Unenemy %1};#delitem enemylist %proper( "%1")} {#if (@active) {#send {Unenemy all};#var enemylist ""}}} "Demesne"
#trigger {^(%w) enters your demesne.$} {#cw 12;#if (%ismember( "%1", @enemylist)) {#if (@demesneenter=%null) {#add demesneenter "%1"} {#add demesneenter ", %1"}}} "EnterDemesne"
#trigger {^(%d)h, (%d)m, (%d)e} {#if (@active and @announcedemesne and @demesneenter!=%null) {Clt4 Entering my demesne: @demesneenter;#var demesneenter ""};#t- {EnterDemesne};#t+ "Demesne|DemesneOpenTrigger"} "EnterDemesne" {nocr|prompt}
#trigger {^(%w) leaves your demesne.$} {#co 10;#if (%ismember( "%1", @enemylist)) {#if (@demesneleave=%null) {#add demesneleave "%1"} {#add demesneleave ", %1"}}} "LeaveDemesne"
#trigger {^(%d)h, (%d)m, (%d)e} {#if (@active and @announcedemesne and @demesneleave!=%null) {Clt4 Left my demesne: @demesneleave;#var demesneleave ""};#t- {LeaveDemesne};#t+ "Demesne|DemesneCloseTrigger"} "LeaveDemesne" {nocr|prompt}
#class 0
#t+ "DemesneOpenTrigger"
#t+ "DemesneCloseTrigger"
#t- {EnterDemesne}
#t- {LeaveDemesne}
Remember to alter the 'clt4' bit to whichever clan you want it to tell to.
Callus2006-07-05 12:50:38
Aww, um...
Could someone do this for MUSH, too? Unless this is for MUSH and I've just made a total idiot of myself.
Could someone do this for MUSH, too? Unless this is for MUSH and I've just made a total idiot of myself.
Soll2006-07-05 12:56:07
This if for zMUD. I'm sure this could be done for MUSH, but I have no experience with it. Sorry.
And, since I forgot to explain, this will basically trigger a list that sends to a specified clan when enemies enter and leaves your demesne, without spamming a load of seperate people entering. (Ie, if people enter as a group, the whole group gets sent to your clan tells.)
Example:
Murphy enters your demesne.
Ixion enters your demesne.
Daevos enters your demesne.
Ethelon enters your demesne.
Mederrach enters your demesne.
3122h, 4217m, 3620e, 10p, 14510en, 20390w esSixk---\\\\10:28:06:453//
(Mysterious secret clan 4): You say, "Entering my demesne: Murphy, Ixion, Daevos, Ethelon, Mederrach."
3122h, 4217m, 3620e, 10p, 14510en, 20390w esSixk---\\\\10:28:06:792//
(Mysterious secret clan 4): You say, "Eep."
And, since I forgot to explain, this will basically trigger a list that sends to a specified clan when enemies enter and leaves your demesne, without spamming a load of seperate people entering. (Ie, if people enter as a group, the whole group gets sent to your clan tells.)
Example:
QUOTE
Murphy enters your demesne.
Ixion enters your demesne.
Daevos enters your demesne.
Ethelon enters your demesne.
Mederrach enters your demesne.
3122h, 4217m, 3620e, 10p, 14510en, 20390w esSixk---\\\\10:28:06:453//
(Mysterious secret clan 4): You say, "Entering my demesne: Murphy, Ixion, Daevos, Ethelon, Mederrach."
3122h, 4217m, 3620e, 10p, 14510en, 20390w esSixk---\\\\10:28:06:792//
(Mysterious secret clan 4): You say, "Eep."
Unknown2006-07-07 10:57:18
This is for Mush, I got it all, took me a full hour just to make this work...
TRIGGERS
Trigger: ^(|) enters your demesne\\.$
Send: if getvariable ("WATCH") = 1 then
send "CT entering my demesne %1" *
end if
check box:
Omit from output
Keep evaluating
Regular expression
Repeat on same line
Expand variables
Send to: Script
Label: entering
group: demesne
Trigger: ^(|) leaves your demesne\\.$
Send: if getvariable ("WATCH") = 1 then
send "CT leaving my demesne: %!" *
end if
check box:
Omit from output
Keep evaluating
Regular expression
Repeat on same line
Expand variables
Send to: Script
Label: entering
group: demesne
VARIABLES
For the variables just make a new one and name it WATCH and its contents 0
ALIASES
Alias: WATCH ON
Send: world.enabletrigger "entering", "1"
world.enabletrigger "leaving", "1"
world.setvariable ("WATCH"), "1"
world.note "WATCHING DEMESNE"
Check:
Enabled
Ignore Case
Send to: Script
Alias: WATCH OFF
Send: world.enabletrigger "entering", "0"
world.enabletrigger "leaving", "0"
world.setvariable ("WATCH"), "0"
world.note "NOT WATCHING DEMESNE"
Check:
Enabled
Ignore Case
Send to: Script
LEGENDS:
* you can change this to whatever command in the game EX: send "say %1 has entered my demesne"
whew, hope you guys understand it all
TRIGGERS
Trigger: ^(
Send: if getvariable ("WATCH") = 1 then
send "CT entering my demesne %1" *
end if
check box:
Omit from output
Keep evaluating
Regular expression
Repeat on same line
Expand variables
Send to: Script
Label: entering
group: demesne
Trigger: ^(
Send: if getvariable ("WATCH") = 1 then
send "CT leaving my demesne: %!" *
end if
check box:
Omit from output
Keep evaluating
Regular expression
Repeat on same line
Expand variables
Send to: Script
Label: entering
group: demesne
VARIABLES
For the variables just make a new one and name it WATCH and its contents 0
ALIASES
Alias: WATCH ON
Send: world.enabletrigger "entering", "1"
world.enabletrigger "leaving", "1"
world.setvariable ("WATCH"), "1"
world.note "WATCHING DEMESNE"
Check:
Enabled
Ignore Case
Send to: Script
Alias: WATCH OFF
Send: world.enabletrigger "entering", "0"
world.enabletrigger "leaving", "0"
world.setvariable ("WATCH"), "0"
world.note "NOT WATCHING DEMESNE"
Check:
Enabled
Ignore Case
Send to: Script
LEGENDS:
* you can change this to whatever command in the game EX: send "say %1 has entered my demesne"
whew, hope you guys understand it all
Unknown2006-07-13 14:16:21
Ooer... I need that for Nexus! And, I saw you do that, Soll, on that clan... Yeah. I was wondering how you did it!