Lusternia auto-sipper

by Unknown

Back to Mechanic's Corner.

Unknown2005-05-15 02:51:37
I've always drunk health manually, but for bashing purposes lately I've preferred to do it on a trigger that sips health when I go below a certain point. Problem is, I can't get such to work right off the prompt in Lusternia. How do you guys do it?

I was using zMUD and #if (2000>%1) {drink health}, of course I have something to deactivate it too, but it just constantly sips health when I have %1h, be my health.
Unknown2005-05-15 05:08:48
#CLASS {Autosipper}
#ALIAS autosipper {
#if ((@health < 1300) and (@autosipbalance = 1)) {
sip health
#var autosipbalance 0
}
}
#VAR autosipbalance {1} {1}
#TRIGGER {^&%d{health}h, &%d{mana}m, &%d{ego}e, &%d{power}p, &%d{endurance}en, &%d{willpower}w *-$} {autosipper}
#TRIGGER {You may drink another health, mana, or bromide potion.} {#var autosipbalance 1}
#CLASS 0
Unknown2005-05-15 05:11:14
Thanks dawg. happy.gif
Shiri2005-05-15 05:12:29
Screws you up vs. Guardians who want an absolution/wrack/toad, but.

EDIT: Or warriors with deepwounds, come to think of it. tongue.gif

...or mages with wounds illusions...wacko.gif
Unknown2005-05-15 05:19:51
Its for bashing =p. I'm horrible at fighting anyway. If it were for fighting, It would be prioritized (and have mana) Something like this

#ALIAS autosipper {
#if ((@health < 25%health) and (@autosipbalance = 1)) {
sip health
#var autosipbalance 0
}
#if ((@mana < 25%mana) and (@autosipbalance = 1)) {
sip mana
#var autosipbalance 0
}
#if ((@health < 400%health) and (@autosipbalance = 1)) {
sip health
#var autosipbalance 0
}
#if ((@mana < 60%mana) and (@autosipbalance = 1)) {
sip mana
#var autosipbalance 0
}
#if ((@health < 75%health) and (@autosipbalance = 1)) {
sip health
#var autosipbalance 0
}
#if ((@mana < 75%mana) and (@autosipbalance = 1)) {
sip mana
#var autosipbalance 0
}
}

Dunno about the actual numbers...

Oh, and any fools *cough* who actually use my script, change the 1300 to whatever level you want it to start sipping at. Should be a little bit lower than maxhp.
Unknown2005-05-15 05:33:55
Yeah, I will still manual it for fighting.
Unknown2005-05-15 07:00:59
Man, that sipper doesn't work sad.gif

EDIT: I think I got it going, my prompt was just different from the trigger you gave me tongue.gif
Unknown2005-05-15 12:23:26
Thats with a full stat prompt. Endurance and will power. I can give you the small prompt trigger if you want.
Amaru2005-05-15 15:45:00
laugh.gif
Nayl2005-05-15 15:59:01
Amaru, Shh, or contribute.
By the way, I made a Sipper for Llexyn.
I'll dig it up for you
QUOTE
health = 3350 (or whatever your max is)
#trigger {^(%d)h, (%d)m, (%d)e, (%d)p ()} {health = %1;#if ((@health < @siphealth) and @sipbalance) {sip health; sipbalance=0}}
#trigger {You may drink another health, mana, or bromide potion.} {sipbalance=1}

That's for health, mana, ego, power

EDIT: Oh, and siphealth, is however much you want your health to drop to
So, if you have 3350 health, and want to sip at less than 2400, siphealth = 2400, and health = 3350.
Easy.
Amaru2005-05-15 16:17:38
Contribute? Okay!

Selling my system for 900cr.
Manjanaia2005-05-15 16:35:20
900 credits is an obscene amount.
Unknown2005-05-15 23:55:12
*bows down to Amaru's programming skills* doh.gif
Unknown2005-05-16 01:21:31
I have programming skills too! just lemme find them....
Unknown2005-05-16 01:22:34
I don't get why people talk smack about fighting in IRE games anymore. Years ago when most people manualed, sure, but now it'd get you laughed at by any serious gamer.
Unknown2005-05-16 01:31:34
Cause they need an ego boost?
Real life ego, mind you.
Terenas2005-05-16 05:08:25
I really don't see what's so special about an autosipper besides saving you from pressing a macro every 6 seconds. I only have an auto reset on my sip balance so I don't lose it due to illusion or stun, otherwise I just manually sip and eat sparkleberry.

Anyway, this is what I use to keep track of prompt.

CODE

#REGEX {^(\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p, (\\d+)en, (\\d+)w (+)} {#va health %1;#va mana %2;#va endurance %5;#va promptcheck %7;#if (%pos( e, @promptcheck)) {#var eq 1} {#var eq 0;#va able 0};#if (%pos( l, @promptcheck)) {#va lbal 1} {#va lbal 0;#va able 0};#if (%pos( r, @promptcheck)) {#va rbal 1} {#va rbal 0;#va able 0};#if (%pos( x, @promptcheck)) {#var balance 1} {#var balance 0;#va able 0};#if (%pos( d, @promptcheck)) {#var deaf 1} {#var deaf 0};#if (%pos( b, @promptcheck)) {#var blind 1} {#var blind 0};#if (%pos( p, @promptcheck)) {#var proned 1} {#va proned 0};#if (%pos( k, @promptcheck)) {#var kafe 1} {#var kafe 0};#if @proned=0 {paralysis=0} {#va able 0};#if @balance=1 {#if @eq=1 {#if @rbal=1 {#if @lbal=1 {#if @proned=0 {#va able 1}}}}}} "" {nocr|prompt}
Unknown2005-05-16 12:45:13
When you make prompt triggers, don't forget the "nocr|prompt" options. Terenas remembered them, at least. smile.gif
Amaru2005-05-16 14:01:05
QUOTE(Jello @ May 16 2005, 02:22 AM)
I don't get why people talk smack about fighting in IRE games anymore. Years ago when most people manualed, sure, but now it'd get you laughed at by any serious gamer.
118795



I know smack about programming.

It's common sense, ZMUD 'script'... seriously, not hard.
Unknown2005-05-16 21:40:10
Yeah, a simple mistake that took me a couple minutes to identify and correct. I coded a mud from more or less scratch in LPC language, so there tongue.gif