auto assisting anyone only in my group -- anyone got any?

Scripts and support for your favorite MUD client.
Ssnyss
Sojourner
Posts: 25
Joined: Tue Jan 23, 2007 12:53 am

auto assisting anyone only in my group -- anyone got any?

Postby Ssnyss » Mon Jan 29, 2007 1:43 am

I used to have a simple trigger set waaay back in Sojourn, but lost everything when i got new pc after old one imploded on me. I know zmud's changed a lot since then ( I think iwas using 4.something years ago) and i cant remember how to make the trigger sets.

Can't even remember how to tell zmud to follow/map a zone while following someone so im not clueless onwher i am all the time.
moritheil
Sojourner
Posts: 4845
Joined: Wed Jan 31, 2001 6:01 am

Postby moritheil » Mon Jan 29, 2007 2:42 am

I can't help you with mapping. Commit zones to memory! :P

Basically what you want is something akin to:

Code: Select all

If (@hitter == {name1|name2|name3})
assist @hitter


Note that this can be a pain to work with for 15-person groups because it requires that you go in and manually enter/clear the names each time. I personally don't autoassist, but let me know how it works for you!
Yotus group-says 'special quest if you type hi dragon'
Shevarash OOC: 'I feature only the finest mammary glands.'
Silena group-says 'he was so fat and juicy..couldnt resist'
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Mon Jan 29, 2007 4:19 am

CLASS {autoassist} {disable}
#TRIGGER {@tank sends (*) sprawling with a powerful bash.} {assist @tank}
#TRIGGER {You assist @tank heroically.} {#t- autoassist;#t+ autoassist2}
#TRIGGER {@tank {attacks|slashes|barely slashes|barely hits|barely pierces}} {assist @tank}
#TRIGGER {assist @tank} {#t- autoassist;#t+ autoassist2}
#TRIGGER {@tank places a (*) in the back of} {assist @tank}
#TRIGGER {@tank attemps a shieldpunch} {assist @tank}
#TRIGGER {@tank slams (*) shield into (*) in a an awesome display of brute force!} {assist @tank}
#TRIGGER {@tank takes aim} {assist @tank}
#TRIGGER {@tank's mount charges} {assist @tank}
#TRIGGER {@tank's mount misses} {assist @tank}
#CLASS 0

#CLASS {autoassist2} {disable}
#TRIGGER {You receive your share of experience.} {#t+ autoassist;#t- autoassist2}
#CLASS 0

create two new class folders and copy from #class to #class 0 for each of the two

#VAR {tank}{whoever}

set tank=name as a variable and you are set

also put this on a button and set both as
Disable class when connecting to a mud

and remember if you can mud without being at keys and paying attention, you are botting .. so make SURE this is disbled when you are inactive

and i am quite sure the zmud gurus can clean it up some .. but it never fails (for me) ... I use Zmud 7.21 as of now
"When a child is born, so is a grandmother."

-Italian Proverb
moritheil
Sojourner
Posts: 4845
Joined: Wed Jan 31, 2001 6:01 am

Postby moritheil » Mon Jan 29, 2007 2:55 pm

Oh yeah, the details. I focused on name parsing and forgot that you need to trigger off the text where the hitter actually hits :P
Yotus group-says 'special quest if you type hi dragon'

Shevarash OOC: 'I feature only the finest mammary glands.'

Silena group-says 'he was so fat and juicy..couldnt resist'
Ssnyss
Sojourner
Posts: 25
Joined: Tue Jan 23, 2007 12:53 am

Postby Ssnyss » Mon Jan 29, 2007 3:09 pm

Basically i need to remember how to make a thingie that has @tank = (grouplist) so if anyone in grouplist (NOT just tankA) hits something i assist him instead of trying to type assist goddamlongarsename here. lol

I cant remember how to wright someething that connects tank to a grouplist.
moritheil
Sojourner
Posts: 4845
Joined: Wed Jan 31, 2001 6:01 am

Postby moritheil » Mon Jan 29, 2007 10:06 pm

Oh, you want it fully automated. Hmm, IIRC the last time I saw that done, it required the user to do a Who Ingroup, and then looked at each line of text for "War" "Pal" or "A-P" and added matches to the list.
Yotus group-says 'special quest if you type hi dragon'

Shevarash OOC: 'I feature only the finest mammary glands.'

Silena group-says 'he was so fat and juicy..couldnt resist'
Ambar
Sojourner
Posts: 2872
Joined: Tue Jul 02, 2002 5:01 am
Location: Our House in Va.
Contact:

Postby Ambar » Mon Jan 29, 2007 10:56 pm

#ALIAS tadd {tanklist=%additem( %1, @tanklist)}
#ALIAS trem {tanklist=%delitem( %1, @tanklist)}
#ALIAS trep {#say @tanklist}


no idea how to adapt it tho .. i am pretty damn trigger dumb
"When a child is born, so is a grandmother."



-Italian Proverb
moritheil
Sojourner
Posts: 4845
Joined: Wed Jan 31, 2001 6:01 am

Postby moritheil » Mon Jan 29, 2007 11:04 pm

Of course, if you don't mind typing names in by hand at the start of your run, you can still use the solution I suggested initially.

Ambar's tadd aliases will make it a little easier to type them in by hand.
Yotus group-says 'special quest if you type hi dragon'

Shevarash OOC: 'I feature only the finest mammary glands.'

Silena group-says 'he was so fat and juicy..couldnt resist'
Ssnyss
Sojourner
Posts: 25
Joined: Tue Jan 23, 2007 12:53 am

Postby Ssnyss » Tue Jan 30, 2007 12:57 am

hmm not realy caring about tank type, i just want anyone in my group who gets attacked by random mob to assist them. doesnt need to be a tanker type.
Ifin
Sojourner
Posts: 171
Joined: Mon Nov 14, 2005 11:43 pm

Postby Ifin » Tue Jan 30, 2007 12:23 pm

I'm a big proponent of speeding up trivial xp which drives off all the new players!

Install one of the auto-group listers in my other thread (or you can manually build a list). It'll autofill everyone to categories, but all the group members will also be in @groupList.

Then use Ambar's autoassist class, but change @tank to: ({@groupList})

The command line should be changed to: assist %1

({@groupList}) - the {}'s make it run through a list that's in a variable, the ()'s set it to %#, if it's the first () then it's %1.
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Thu Feb 01, 2007 8:30 pm

You can also from the commandline write


Code: Select all

@tank = Ann|Bob|Carl|Doris


That will automatically fill the @tank as an array
Gizep
Sojourner
Posts: 150
Joined: Thu Mar 10, 2005 4:34 pm
Location: Menzoberranzan
Contact:

Postby Gizep » Tue Feb 27, 2007 12:33 pm

Mine is sexah :)
rgadd adds everyone in who ingr to your group

Code: Select all

#CLASS 0

#VAR CasterAbbr {Ill|Inv|Psi|Ele|Lic|Nec}
#VAR ClericAbbr {Cle}
#VAR EnchAbbr {Enc}
#VAR HealerAbbr {Sha|Dru|Bar}
#VAR HitterAbbr {Rog|Dir|Ran}
#VAR TankAbbr {War|Pal|A-P}
#VAR AutoAssist 1
#ALIAS rgadd {#VARIABLE GroupList {};#VARIABLE GroupClerics {};#VARIABLE GroupHealers {};#VARIABLE GroupCasters {};#VARIABLE GroupEnchanter {};#VARIABLE GroupHitters {};#VARIABLE GroupTanks {};#T+ Group;who ingr}

#CLASS {Group} {disable}
#TRIGGER {There are %d mortal~(s~) on~.} {#T- Group;#VARIABLE GroupList {%replace( %dups( @GroupClerics|@GroupEnchanter|@GroupHealers|@GroupCasters|@GroupHitters|@GroupTanks), "||", "|")};#VARIABLE RescueList {%replace( %dups( @GroupClerics|@GroupEnchanter|@GroupHealers|@GroupCasters|@GroupHitters), "||", "|")}}
#TRIGGER {&%dGLevel &%wGClass~] &%wGMember} {#IF (%ismember( @GClass, @ClericAbbr) > 0) {#ADDITEM GroupClerics @GMember};#IF (%ismember( @GClass, @EnchAbbr) > 0) {#ADDITEM GroupEnchanter @GMember};#IF (%ismember( @GClass, @HealerAbbr) > 0) {#ADDITEM GroupHealers @GMember};#IF (%ismember( @GClass, @CasterAbbr) > 0) {#ADDITEM GroupCasters @GMember};#IF (%ismember( @GClass, @HitterAbbr) > 0) {#ADDITEM GroupHitters @GMember};#IF (%ismember( @GClass, @TankAbbr) > 0) {#ADDITEM GroupTanks @GMember}}
#TRIGGER {~[ Anon ~] &%wGMember} {#ADDITEM GroupHitters @GMember}
#CLASS 0


#CLASS {Assist} {disable}
#TRIGGER {&%wOne attacks &%wTwo} {#IF (@Fighting == 0 & @NeedMem == 0) {#IF (%ismember( @One, @GroupList)) {#IF (@Fighting == 0 & @AutoAssist == 1) {#VARIABLE Fighting 1;assist @One;#SAY Assisting @One;#IF (@RoundOne == 0 & @AutoBuffer == 1) {bufftank}}};#IF (%ismember( @Two, @GroupList)) {#IF (@Fighting == 0 & @AutoAssist == 1) {#VARIABLE Fighting 1;assist @Two;#SAY Assisting @Two;#VARIABLE Fighting 1;#IF (@RoundOne == 0 & @AutoBuffer == 1) {bufftank}}};#IF (@RoundOne == 0 & @Buffer == 1) {bufftank}} {#IF (@Fighting == 0 & @AutoMem == 1) {memout}}}
#TRIGGER {E~: &guy EC~:} {#VARIABLE Fighting 1}
#TRIGGER {R.I.P.} {#VARIABLE Fighting 0}
#TRIGGER {You are rescued by ({&%wT})} {#VARIABLE Fighting 1;assist @T}
#CLASS 0


Might be some spare crap in there, but it should ignore it....
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

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 5 guests