Difference between revisions of "Dartan's zMUD AutoRescue"

From AvatarWiki
Jump to navigation Jump to search
(Created page with "This is the Auto rescue set of triggers from the Avatar Wikipedia Zmud_Auto_Rescue with multiple tweaks. addrescue or addr adds someone to Rescue List clearrescue clears Resc...")
 
Line 9: Line 9:
 
rescue checks if you are below 30% hp and if you are it tries to revive you.  It also checks if you are above your @rescuehp threshold to rescue.  For example if your @rescuehp is 13000 and you are at 12000 hp you will not rescue
 
rescue checks if you are below 30% hp and if you are it tries to revive you.  It also checks if you are above your @rescuehp threshold to rescue.  For example if your @rescuehp is 13000 and you are at 12000 hp you will not rescue
  
 
+
== Code ==
 
#CLASS {autorescue|rescue}
 
#CLASS {autorescue|rescue}
 
#CLASS {autorescue|rescue back on}
 
#CLASS {autorescue|rescue back on}

Revision as of 20:40, 30 April 2022

This is the Auto rescue set of triggers from the Avatar Wikipedia Zmud_Auto_Rescue with multiple tweaks.

addrescue or addr adds someone to Rescue List clearrescue clears Rescue List showrescue shows Rescue List dradd adds someone to the Don't Rescue List autoaddr # adds everyone in group that is # HP or lower and will not add anyone on the Don't Rescue List pres augments then rescues. There is a check in the rescue trigger where it checks if your name in variable @lastlogin is Zuno and rescues you rescue checks if you are below 30% hp and if you are it tries to revive you. It also checks if you are above your @rescuehp threshold to rescue. For example if your @rescuehp is 13000 and you are at 12000 hp you will not rescue

Code

  1. CLASS {autorescue|rescue}
  2. CLASS {autorescue|rescue back on}
  3. CLASS {autorescue|autoadd}
  4. ALIAS addrescue {#ec autorescue - %1;#var rescuelist %additem( %lower( %1), @rescuelist)} "autorescue"
  5. ALIAS clearrescue {#ye {clear the rescue list?} {yes:rescuelist="";#ec rescue buffer - cleared} {no:}} "autorescue"
  6. ALIAS showrescue {#ec %null;#ec --- CHARACTERS IN THE RESCUE LIST ---;#ec %null;#fo @rescuelist {#ec %i}} "autorescue"
  7. ALIAS ar {#var ar %1;#var report 1;#t+ report;#var frenzy 1;#if (@ar) {#t+ autorescue;#say Autorescue On} {#t- autorescue;#say Autorescue Off}}
  8. ALIAS aprompt {prompt |BR|<%h/%Hhp>|BW|<%m/%Mm>|BY|<%v/%Vmv><%T><Lag:%s>%n;prompt2 <Mon:%u:%w/%W>%n;//prompt2 <Mon:%u:%w/%W><%jIQI/%J %kOQI/%K>%n}
  9. ALIAS addr {addrescue %1}
  10. ALIAS autoaddr {#var autoaddrhp %1;#t+ autorescue|autoadd;gr} "autorescue"
  11. ALIAS remrescue {#ec don't rescue - %1;#var rescuelist %delitem( %lower( %1), @rescuelist);//#fo @rescuelist {#ec %i}}
  12. ALIAS dradd {#var dontrescuelist %additem( %lower( %1), @dontrescuelist);#echo Added %1 to Don't Rescue list}
  13. ALIAS pres {aug 3;rescue %1;aug off}
  14. ALIAS rescue {#math hps_percent {@HP*100/@maxhp};#if (@hps_percent < 30) {rev};#if (@hp > @rescuehp) {#if (@rescuedelay > 0) {#untrig "+@rescuedelay";#alarm +@rescuedelay {#if (@lastlogin = Zuno) {aug 3};rescu %1;#if (@lastlogin = Zuno) {aug off}}} {#if (@lastlogin = Zuno) {aug 3};rescu %1;#if (@lastlogin = Zuno) {aug off}}}}
  15. TRIGGER {(%*) attacks strike (%w)} {#if %ismember( %lower( %2), @rescuelist) {rescue %2;#t- rescue}} "autorescue|rescue"
  16. TRIGGER {(%*) attacks haven't hurt (%w)} {#if %ismember( %lower( %2), @rescuelist) {rescue %2;#t- rescue}} "autorescue|rescue"
  17. TRIGGER {(%*) {pierce|attack} strikes (%w)} {#if %ismember( %lower( %2), @rescuelist) {rescue %2;#t- rescue}} "autorescue|rescue"
  18. TRIGGER {^(%*) is DEAD!!} {#T+ rescue} "autorescue|rescue back on"
  19. TRIGGER {You successfully rescue} {#T+ rescue} "autorescue|rescue back on"
  20. TRIGGER {doesn't need your help.} {#T+ rescue} "autorescue|rescue back on"
  21. TRIGGER {You fail to rescue} {stance protect;#T+ rescue} "autorescue|rescue back on"
  22. TRIGGER {doesn't NEED rescuing!} {#T+ rescue;look} "autorescue|rescue back on"
  23. TRIGGER {(*) pokes you in the ribs} {rescue %1} "autorescue"
  24. TRIGGER {(*) tells the group 'add me'} {addrescue %1} "autorescue"
  25. TRIGGER {(*) tells the group 'rem me'} {remrescue %1} "autorescue"
  26. TRIGGER {(*)'s backstab} {#if %ismember( %lower( %1), @rescuelist) {rescue %1;#t- rescue}} "autorescue|rescue"
  27. TRIGGER {^{*}(*){*} tells the group 'get me'} {rescue %1} "autorescue"
  28. TRIGGER {(*) tells the group 'remove me'} {remrescue %1} "autorescue"
  29. TRIGGER {^*@leader* tells the group 'get (%1)'} {#var rescuetarget {%1};#if (@rescuetarget != me) {rescue %1} {rescue @leader}} "autorescue"
  30. TRIGGER {^{*}(*){*} tells the group 'remove me'} {remrescue %1} "autorescue"
  31. TRIGGER {^{*}(*){*} tells the group 'add me'} {addrescue %1} "autorescue"
  32. TRIGGER {(*) tells the group 'get me'} {rescue %1} "autorescue"
  33. TRIGGER {(*) {Lord|Hero} (*) {Stand|Fight|Busy|Sleep|Rest} (*)/(*) (*)/(*) (*)/(*)} {#var groupmemberhp %4;#if (@autoaddrhp > @groupmemberhp) {#if %ismember( %lower( %2), @dontrescuelist) {} {addr %2}}} "autorescue|autoadd"
  34. TRIGGER {(*) joins @leader's group.} {autoaddr @autoaddrhp} "autorescue"
  35. TRIGGER {You pale as you see death before you.} {gt I am feared! Please emotive drain me for more rescues} "autorescue"
  36. TRIGGER {You consider rescuing (*), but chicken out!} {gt Feared, can't rescue :(} "autorescue"
  37. TRIGGER {You finally get your nerves under control.} {gt I am no longer afraid! (Fear expired)} "autorescue"
  38. TRIGGER {strikes down (%*)'s illusion!} {#if %ismember( %lower( %1), @rescuelist) {rescue %1;#t- rescue}} "autorescue|rescue"
  39. TRIGGER {is here, fighting (*).} {#if %ismember( %lower( %1), @rescuelist) {rescue %1;#t- rescue}} "autorescue|rescue"
  40. TRIGGER {^(%w)'s pierce strikes } {#if %ismember( %lower( %1), @rescuelist) {rescue %1;#t- rescue}} "autorescue|rescue"
  41. TRIGGER {<(*)/(*)hp><(*)/(*)m><(*)>} {#if (@report) {#highlight;#var HP %1;#var maxHP %2;#var mana %3;#var maxMana %4}} "Report"
  42. MENU {Rescue - Add} {addrescue %selword} "autorescue"
  43. MENU {Rescue - Remove} {remrescue %selword} "autorescue"
  44. MENU {Rescue - Show} {showrescue} "autorescue"
  45. MENU {Rescue - Clear} {clearrescue} "autorescue"