Unknown2008-07-05 07:45:56
Trying to make a nexus auto-sipper and looked around and found one that I tested with Achaea and it seemed to work, so I fiddled with the code to allow ego and etc... yet it won't allow sipping. see anything wrong? Just playing with the health to start off, will add mana and such once I figure out were it's going bad.
TRIGGER: | Health : {w}/{w} Endurance : {w}/{w} Power : {w}p |
SCRIPT: #set totalhealth $2
TRIGGER: {w}h, {w}m, {w}e, {*}p, {w}en, {w}w {w}-
SCRIPT: #set health $1
#math siphealth $totalhealth - 600
#if $health < $siphealth { #if $drinkingon > 5 {#set drinkingon 0
sip health}
}
TRIGGER: The elixir heals and soothes you.
SCRIPT: #set drinkingon 0
TRIGGER: You may drink another health or mana elixir.
SCRIPT: #set drinkingon 10
TRIGGER: | Health : {w}/{w} Endurance : {w}/{w} Power : {w}p |
SCRIPT: #set totalhealth $2
TRIGGER: {w}h, {w}m, {w}e, {*}p, {w}en, {w}w {w}-
SCRIPT: #set health $1
#math siphealth $totalhealth - 600
#if $health < $siphealth { #if $drinkingon > 5 {#set drinkingon 0
sip health}
}
TRIGGER: The elixir heals and soothes you.
SCRIPT: #set drinkingon 0
TRIGGER: You may drink another health or mana elixir.
SCRIPT: #set drinkingon 10
Esano2008-07-05 07:50:26
Change the middle trigger to:
The potion heals and soothes you.
Change the last trigger to:
You may drink another health, mana, or bromide potion.
And you'll probably need to sip manually once to set it running.
The potion heals and soothes you.
Change the last trigger to:
You may drink another health, mana, or bromide potion.
And you'll probably need to sip manually once to set it running.
Selverad2008-07-05 07:50:45
Your first problem is as follows....
You may drink another health, mana, or bromide potion.
Ah, the soothing bromides help strengthen your ego.
Your mind feels stronger and more alert.
The potion heals and soothes you.
Those are the lines you want.
You may drink another health, mana, or bromide potion.
Ah, the soothing bromides help strengthen your ego.
Your mind feels stronger and more alert.
The potion heals and soothes you.
Those are the lines you want.
Unknown2008-07-05 21:14:19
Ahh!! Found it, thanks. Now anyone know how to have it highlight my target?
VARIABLE: x
SCRIPT: rat
ALIAS: x
SCRIPT: #set x $1
So if I was swinging at the target it would be SWING $x, but I'm trying to figure out how I could highlight the $x word only.
VARIABLE: x
SCRIPT: rat
ALIAS: x
SCRIPT: #set x $1
So if I was swinging at the target it would be SWING $x, but I'm trying to figure out how I could highlight the $x word only.
Bashara2008-07-06 02:11:59
Honestly, I'd do it like this:
    4479
    600
    yes
    3679
    4479
   Â#set potionbal no
   Â#set potionbal no
   Â#set potionbal = yes
   Â#math siphealth $totalhealth - $dmglvl
#if $currenthealth < $siphealth {
#if $potionbal = yes {
sip health
}
}
   Â
   Â#set dmglvl = $1
 Â
This is a direct XML export of my script that I've saved on the Archives. You can import it via the Import XML button in the Archive section of your reflexes window. The big difference in the coding is that you used {w} whereas I used {d}. {w} tells Nexus to search for a word, whereas {d} tells nexus to search for an actual numerical value.
*Edit* You might wanna be able to stop the auto-sipper, so I suggest you code this alias into your default group:
Just as a precaution.
As for highlighting your target, I might have a solution for that, too.
However, there is a bit of a problem with that. If you start searching for one word in a billion, Nexus might throw a hissy fit and start to lag while it searches for your target. Honestly, I have a small group of words that I have highlights for. Mainly it's for enemies and specific afflictions, but there are some various other stuffs. It's up to you whether or not to use it, but I'm genuinely hesitant when it comes to these kinds of things, especially when you consider zomgzergcombat spam
CODE
    4479
    600
    yes
    3679
    4479
   Â
   Â
   Â
   Â
#if $currenthealth < $siphealth {
#if $potionbal = yes {
sip health
}
}
   Â
   Â
 Â
This is a direct XML export of my script that I've saved on the Archives. You can import it via the Import XML button in the Archive section of your reflexes window. The big difference in the coding is that you used {w} whereas I used {d}. {w} tells Nexus to search for a word, whereas {d} tells nexus to search for an actual numerical value.
*Edit* You might wanna be able to stop the auto-sipper, so I suggest you code this alias into your default group:
CODE
Alias: autosipoff
script: #set dmglvl = 10000
script: #set dmglvl = 10000
Just as a precaution.
As for highlighting your target, I might have a solution for that, too.
CODE
Var: searchtarg
Var: x
Alias: x
Script: set x $1
Trigger: {w:searchtarg}
Script: #if $searchtarg = $x {
#highlight "yellow"
}
Var: x
Alias: x
Script: set x $1
Trigger: {w:searchtarg}
Script: #if $searchtarg = $x {
#highlight "yellow"
}
However, there is a bit of a problem with that. If you start searching for one word in a billion, Nexus might throw a hissy fit and start to lag while it searches for your target. Honestly, I have a small group of words that I have highlights for. Mainly it's for enemies and specific afflictions, but there are some various other stuffs. It's up to you whether or not to use it, but I'm genuinely hesitant when it comes to these kinds of things, especially when you consider zomgzergcombat spam
Unknown2008-07-06 07:17:57
How would I go about using this in Nexus? Once I click archives and click import xml, I paste the code and then click save, but it says no reflexes found.
Unknown2008-07-06 15:52:11
this is because youll need something like: at the very begining and at the very end
Bashara2008-07-07 15:37:25
QUOTE(Garmr @ Jul 6 2008, 03:52 PM) 529423
this is because youll need something like: at the very begining and at the very end
Yeah, forgot about that.