I was frustrated with Other Rescue Sets

Scripts and support for your favorite MUD client.
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

I was frustrated with Other Rescue Sets

Postby Gizep » Mon Jul 31, 2006 6:00 pm

I don't know how well this will work if you dont delete the old version I posted.
This is not tested fully but has worked in theoretical testing using emotes.

To adjust priority of rescues you must update the primary variable and the primaryabbr variable and keep them synced, should be obvious if you try this.

I'm also not sure if it's properly adding anti paladins to group list.

commands to use:
rescon - turns on autorescue, rebuilds group and rescue list.
rescoff - turns off autorescue, deletes rescuelist only
rclear - clear the rescuelist
rgadd - build group and rescuelist
test - force the reset of all rescue variables as well as break down rescue priority for the group

I believe I have fixed all of the import problems of the last one, switches set wrong, etc.
Priority is:
Cleric
Enchanter
Battlechanter
Bard
Illusionist
Shaman
Druid
Elementalist
Psionicist
Invoker
Necromancer
Lich
Rogue
Ranger
Dire-Raider
Anon - Cuz i h9 anon bitches.

This is heavily based on Disotulip's which is heavily based on someone elses. I just had to throw my 2 cents in to make it right.

Enjoy and tell me if anything wrong.
#CLASS {Variables}
#VAR Looked {0} {0}
#VAR RescueBegin {0} {0}
#VAR Primary {Cleric|Enchanter|Battlechanter|Bard|Illusionist|Shaman|Druid|Elementalist|Psionicist|Invoker|Necromancer|Lich|Rogue|Ranger|Direraider|Paladin|Antipaladin|Warrior|Anon}
#VAR PrimaryAbbr {Cle|Enc|Ctr|Bar|Ill|Sha|Dru|Ele|Psi|Inv|Nec|Lic|Rog|Ran|Dir|Pal|A-P|War|Anon}
#VAR Attacks {beat|beats|choke|chokes|touch|touches|hit|hits|slash|slashes|crush|crushes|misses|whip|whips|pierce|pierces|smash|smashes|sting|stings|drain|drains|strike|strikes|pummel|pummels|pound|pounds|claw|claws|nip|nips|burn|burns|bite|bites}
#VAR RescueAbbr {Cle|Enc|Ctr|Bar|Ill|Sha|Dru|Ele|Psi|Inv|Nec|Lic|Rog|Ran|Dir|Anon}
#VAR AutoRescue {0} {0}
#CLASS 0
#CLASS {Commands}
#ALIAS test {#SAY %null;#SAY Resetting Rescue Variables to Next Trigger should Fire:;#VAR Looked {0} {0} "Variables";#VAR RescueBegin {0} {0} "Variables";#VAR AutoRescue {1} {0} "Variables";#VAR Queue {} {} "Variables";#VAR CRescue {} {} "Variables";#SAY Current Rescue List:;#SAY Current Priority Order and Sync Check:;#LOOP %numitems( @Primary) {#SAY %i:%item( @Primary, %i) - %item( @PrimaryAbbr, %i) - Group Members:@{%item( @Primary, %i)}}}
#ALIAS rgadd {#DELCLASS GBuild;#DELCLASS RescueVariables;#UNVAR RescueList;#UNVAR GroupList;#VAR RescueList {} {} "RescueVariables";#VAR GroupList {} {} "GBuild";#FORALL @Primary {#UNVAR %i};#FORALL @Primary {#VAR %i {} {} "GBuild"};#T+ GroupBuild;who ingr}
#ALIAS rclear {#DELCLASS RescueVariables;#UNVAR RescueList;#VAR RescueList {} {} "RescueVariables"}
#ALIAS gclear {#DELCLASS GBuild;#UNVAR GroupList;#VAR GroupList {} {} "GBuild";#FORALL @Primary {#UNVAR %i};#FORALL @Primary {#VAR %i {} {} "GBuild"}}
#ALIAS rescon {#Var AutoRescue {1} {0} "Variables";#SAY Rescue On Populating Rescue List;rgadd}
#ALIAS rescoff {#Var AutoRescue {0} {0} "Variables";#SAY Rescue Off Clearing List;rclear}
#CLASS 0
#CLASS {GroupBuild} {disable}
#TRIGGER {~[{*}~ ({%w})~] ({%w})~ } {#IF (%ismember( %1, @RescueAbbr)) {#ADDITEM RescueList {%2}};#ADDITEM %item( @Primary, %ismember( %1, @PrimaryAbbr)) {%2};#ADDITEM GroupList {%2}}
#TRIGGER {~[%s({%w})%s~] ({%w})~ } {#IF (%1 == Anon) {#ADDITEM Anon %2;#ADDITEM RescueList %2}}
#TRIGGER {Record number of players on this boot~:} {#VAR Trescue {} {} "Variables";#FORALL @Primary {#FORALL @{%i} {#IF (%ismember( %j, @RescueList) > 0) {#ADDITEM Trescue %j}}};#VAR RescueList {@Trescue} {} "RescueVariables";#UNVAR Trescue;#T- GroupBuild}
#CLASS 0
#CLASS {Rescue}
#ALIAS *addQ {#IF (@Queue == "") {#VAR RescueBegin {1} {0} "Variables"};#IF (%ismember( %1, @Queue) == 0 & @CRescue != %1) {#ADDITEM Queue %1};#VAR Trescue {} {} "RescueVariables";#FORALL @Primary {#FORALL @{%i} {#IF (%ismember( %j, @Queue) > 0) {#ADDITEM Trescue %j}}};#VAR Queue {@Trescue} {} "Variables";#UNVAR Trescue}
#ALIAS *resQ {#if (@Queue != "") {#VAR CRescue {%pop( Queue)} {} "Variables";#IF (@AutoRescue == 1) {resc @CRescue} {#SAY *resQ called resc @CRescue and It's not on}} {#VAR CRescue {} {} "Variables"}}
#TRIGGER { fighting *({@RescueList})} {#execute *addQ %1}
#TRIGGER {T: ({@RescueList})} {#execute *addQ} "" {nocr|prompt}
#TRIGGER {Banzai! To the rescue...} {#execute *resQ}
#TRIGGER {You fail the rescue.} {#execute resc @CRescue}
#TRIGGER {{But nobody is fighting|Who do you want to rescue?}} {#execute *resQ}
#TRIGGER {{Maybe you should get on your feet first?|Maybe you should get up off your knees first?|Sorry, you can't do that while laying around.}} {stand;#IF (@CRescue != "") {#IF (@AutoRescue == 1) {resc @CRescue} {#SAY Trigger Called @CRescue and It's not on}}}
#TRIGGER {^~<} {#IF (@RescueBegin == 1) {#VAR RescueBegin {0} {0} "Variables";#execute *resQ}} "" {nocr|prompt}
#CLASS 0
#CLASS {Rescue|Switches}
#TRIGGER {switches targets..} {#IF (@Looked != 1) {look;#VAR Looked {1} {0} "Variables"}}
#TRIGGER {Exits:} {#VAR Looked {0} {0} "Variables"}
#TRIGGER {With an arcane motion of its hand, a * gates in someone!} {#IF (@Looked != 1) {look;#VAR Looked {1} {0} "Variables"}}
#CLASS 0
#CLASS {Rescue|Respond}
#TRIGGER { {@Attacks} ({@RescueList})} {#execute *addQ %1}
#TRIGGER { enshrouds ({@RescueList}) in a mist of blood with its deadly {@Attacks}!} {#execute *addQ %1}
#TRIGGER { {lands a mighty * on|places * in the back of|tried to backstab} ({@RescueList})} {#execute *addQ %1}
#TRIGGER { ({@RescueList}) {gasps from * awesome|is nearly slain by the force of|staggers from a fearsome}} {#execute *addQ %1}
#CLASS 0
#CLASS {RescueVariables}
#VAR RescueList {} {}
#CLASS 0
Last edited by Gizep on Fri Mar 09, 2007 8:23 am, edited 1 time in total.
As long as we live in this world we are bound to encounter problems. If, at such times, we lose hope and become discouraged, we diminish our ability to face difficulties. If, on the other hand, we remember that it is not just ourselves but everyone who has to undergo suffering, this more realistic perspective will increase our determination and capacity to overcome troubles.
-- The Dali Lama
Teralyn
Sojourner
Posts: 60
Joined: Wed Nov 27, 2002 6:01 am
Contact:

Postby Teralyn » Tue Aug 22, 2006 8:29 pm

Hey, did you ever get this patched up? I wanna try out a new one.


-Serraie|Lurra
Teralyn
Sojourner
Posts: 60
Joined: Wed Nov 27, 2002 6:01 am
Contact:

Postby Teralyn » Tue Sep 12, 2006 6:29 am

Ok, so I tried it out...everytime the mob switched targets it sent the command to look. and everytime I would rescue someone, when it would send the alias remQ, I would try to rescue the same target again. I couldn't figure out what was wrong, but then again, I'm pretty much an idiot at this kind of thing. Hope this helps.
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

Postby Gizep » Tue Feb 27, 2007 11:17 pm

deleted cuz update above...
As long as we live in this world we are bound to encounter problems. If, at such times, we lose hope and become discouraged, we diminish our ability to face difficulties. If, on the other hand, we remember that it is not just ourselves but everyone who has to undergo suffering, this more realistic perspective will increase our determination and capacity to overcome troubles.
-- The Dali Lama
Tala_Darkraven
Sojourner
Posts: 16
Joined: Sat Apr 22, 2006 12:25 am

Postby Tala_Darkraven » Tue Mar 20, 2007 12:28 am

Where do I put this file?

Noobness is bliss.
Tasan
Sojourner
Posts: 1710
Joined: Fri Mar 30, 2001 6:01 am
Location: Fridley, Mn USA
Contact:

Postby Tasan » Tue Mar 20, 2007 1:19 pm

Settings->Import->Script (ASCII)
Danahg tells you 'yeah, luckily i kept most of it in my mouth and nasal membranes, ugh'

Dlur group-says 'I have a dead horse that I'm dragging down the shaft with my 4 corpses. Anyone want to help me beat it?'

Calladuran: There are other games to play if you want to play with yourself.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 2 guests