Arundel2005-04-10 20:26:12
I got a few of these ideas from some sample settings that came with zMUD.
#CLASS {Macros}
#KEY F1 {mob}
#KEY F2 {tm}
#KEY F3 {gmob}
#CLASS 0
#CLASS {Macros|Keypad}
#KEY KEY5 {ql}
#CLASS 0
#CLASS {Macros|Keypad|Movement}
#CLASS 0
#CLASS {Macros|Keypad|Movement|Walking}
#KEY KEY8 {n}
#KEY KEY7 {nw}
#KEY KEY4 {w}
#KEY KEY1 {sw}
#KEY KEY2 {s}
#KEY KEY3 {se}
#KEY KEY6 {e}
#KEY KEY9 {ne}
#KEY SUB {up}
#KEY ADD {down}
#KEY KEY0 {in}
#KEY DEC {out}
#KEY DIV {fly}
#KEY MULT {land}
#KEY CTRL-DIV {
 #t- Macros|Keypad|Movement|Walking
 #t+ Macros|Keypad|Movement|Swimming
 }
#CLASS 0
#CLASS {Macros|Keypad|Movement|Swimming}
#KEY KEY8 {swim n}
#KEY KEY7 {swim nw}
#KEY KEY4 {swim w}
#KEY KEY1 {swim sw}
#KEY KEY2 {swim s}
#KEY KEY3 {swim se}
#KEY KEY6 {swim e}
#KEY KEY9 {swim ne}
#KEY SUB {swim up}
#KEY ADD {swim down}
#KEY KEY0 {swim in}
#KEY DEC {swim out}
#KEY DIV {fly}
#KEY MULT {land}
#KEY CTRL-DIV {
 #t- Macros|Keypad|Movement|Swimming
 #t+ Macros|Keypad|Movement|Walking
 }
#CLASS 0
#CLASS {Macros|Keypad|Glancing}
#KEY CTRL-KEY8 {gl n}
#KEY CTRL-KEY7 {gl nw}
#KEY CTRL-KEY4 {gl w}
#KEY CTRL-KEY1 {gl sw}
#KEY CTRL-KEY2 {gl s}
#KEY CTRL-KEY3 {gl se}
#KEY CTRL-KEY6 {gl e}
#KEY CTRL-KEY9 {gl ne}
#KEY CTRL-SUB {gl up}
#KEY CTRL-ADD {gl down}
#KEY CTRL-KEY0 {gl in}
#KEY CTRL-DEC {gl out}
#CLASS 0
That basically allows you to use the keypad for walking around (if your enter key is messed up, like mine). You can press ctrl + keypad to glance in a direction. Ctrl + keypad divide switches the keypad to swimming mode. Press it again in swimming mode to revert to walking.
#CLASS {Vermin}
#ALIAS rreset {
 vermins = 0
 money = 0
 }
#ALIAS rat {
 #VA vermin rat
 #echo Vermin set to rat.
 }
#ALIAS weev {
 #VA vermin weevil
 #echo Vermin set to rat.
 }
#VAR vermins {0}
#VAR money {0}
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a large wood weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 7
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a lumbering red weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 14
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a giant red weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 21
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a fat green weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 28
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a hulking green weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 35
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a baby rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 7
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a young rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 14
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 21
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of an old rat.} {
 #if (@vermin = rat) {
  #ad vermins 1
  #ad money 28
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a black rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 35
  }
 }
#CLASS 0
I'm sure most of you have seen a ratting/weeviling thing around before. I just made my own for convenience. "Rat" alias sets your mode to rat, "Weev" alias sets it to weevil. Make an alias to attack @vermin.
If anyone has any advice/comments for my future work on zMUD, I'd appreciate it. I'm still figuring things out.
CODE
#CLASS {Macros}
#KEY F1 {mob}
#KEY F2 {tm}
#KEY F3 {gmob}
#CLASS 0
#CLASS {Macros|Keypad}
#KEY KEY5 {ql}
#CLASS 0
#CLASS {Macros|Keypad|Movement}
#CLASS 0
#CLASS {Macros|Keypad|Movement|Walking}
#KEY KEY8 {n}
#KEY KEY7 {nw}
#KEY KEY4 {w}
#KEY KEY1 {sw}
#KEY KEY2 {s}
#KEY KEY3 {se}
#KEY KEY6 {e}
#KEY KEY9 {ne}
#KEY SUB {up}
#KEY ADD {down}
#KEY KEY0 {in}
#KEY DEC {out}
#KEY DIV {fly}
#KEY MULT {land}
#KEY CTRL-DIV {
 #t- Macros|Keypad|Movement|Walking
 #t+ Macros|Keypad|Movement|Swimming
 }
#CLASS 0
#CLASS {Macros|Keypad|Movement|Swimming}
#KEY KEY8 {swim n}
#KEY KEY7 {swim nw}
#KEY KEY4 {swim w}
#KEY KEY1 {swim sw}
#KEY KEY2 {swim s}
#KEY KEY3 {swim se}
#KEY KEY6 {swim e}
#KEY KEY9 {swim ne}
#KEY SUB {swim up}
#KEY ADD {swim down}
#KEY KEY0 {swim in}
#KEY DEC {swim out}
#KEY DIV {fly}
#KEY MULT {land}
#KEY CTRL-DIV {
 #t- Macros|Keypad|Movement|Swimming
 #t+ Macros|Keypad|Movement|Walking
 }
#CLASS 0
#CLASS {Macros|Keypad|Glancing}
#KEY CTRL-KEY8 {gl n}
#KEY CTRL-KEY7 {gl nw}
#KEY CTRL-KEY4 {gl w}
#KEY CTRL-KEY1 {gl sw}
#KEY CTRL-KEY2 {gl s}
#KEY CTRL-KEY3 {gl se}
#KEY CTRL-KEY6 {gl e}
#KEY CTRL-KEY9 {gl ne}
#KEY CTRL-SUB {gl up}
#KEY CTRL-ADD {gl down}
#KEY CTRL-KEY0 {gl in}
#KEY CTRL-DEC {gl out}
#CLASS 0
That basically allows you to use the keypad for walking around (if your enter key is messed up, like mine). You can press ctrl + keypad to glance in a direction. Ctrl + keypad divide switches the keypad to swimming mode. Press it again in swimming mode to revert to walking.
CODE
#CLASS {Vermin}
#ALIAS rreset {
 vermins = 0
 money = 0
 }
#ALIAS rat {
 #VA vermin rat
 #echo Vermin set to rat.
 }
#ALIAS weev {
 #VA vermin weevil
 #echo Vermin set to rat.
 }
#VAR vermins {0}
#VAR money {0}
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a large wood weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 7
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a lumbering red weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 14
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a giant red weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 21
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a fat green weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 28
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a hulking green weevil.} {
 #if (@vermin = weevil) {
  #add vermins 1
  #add money 35
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a baby rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 7
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a young rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 14
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 21
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of an old rat.} {
 #if (@vermin = rat) {
  #ad vermins 1
  #ad money 28
  }
 }
#TRIGGER {You {pick|scoop|suddenly scoop} up the corpse of a black rat.} {
 #if (@vermin = rat) {
  #add vermins 1
  #add money 35
  }
 }
#CLASS 0
I'm sure most of you have seen a ratting/weeviling thing around before. I just made my own for convenience. "Rat" alias sets your mode to rat, "Weev" alias sets it to weevil. Make an alias to attack @vermin.
If anyone has any advice/comments for my future work on zMUD, I'd appreciate it. I'm still figuring things out.