Alright First off I am trying to make a trigger automaticaly get items as I walk by, This works great most the time except when the Item name gets split onto two lines.
eg.
Regimental fencing chamber.
You could progress eastwards. A trash tub sits here. There are two potion
bottles here.
Ok Now If I had a Trigger to get POTION BOTTLES Well When the word POTION is at the end of the first line and BOTTLES is at the start of the next line it does not match.
Is there a way to get MUSHClient to realize that some sentences etc. continue to the next line?
I am trying to work out a script so that When I am attacked I will automaticly drink my correct potion
They are three types of potion DARK PALE AND CLEAR they recover 80 40 and 20 Health respectivly
Colonel Garek of the Cardinal's Foot Guards takes a slash at you, hitting as
you just fail to parry.
Your health is now 88.
That is what I see when Someone attacks me So I have a max health of 124 So I want to drink the proper potion because drinking a dark potion has a 6 second recycle rate where clear only has 2 ... Problem Is When I drink potion I get...
You take a sip of clear healing draft from a potion bottle.
The healing liquid infuses you with a warm glow.
Your health is now 108.
So If I just match on the your health is line It trys to drink again when I drink the first time which creates a longer wait time because it says I cannot drink but that time is added to the previous time in which till I can drink again
Also people can feint Where it looks just like a hit but your health stays the same I don't want to drink on them either..
Colonel Garek of the Cardinal's Foot Guards lunges at you, just hitting as you
barely fail to parry.
Your health is now 124.
That's a feint...
Ok What I have for script so far is....
Sub DRINK (thename, theoutput, thewildcards)
Dim MyHealthOld
Dim MyHealth
MyHealthOld = World.GetVariable ("HEALTHOLD")
MyHealth = World.GetVariable ("HEALTH")
world.note "Health Before: " & MyHealthOld & "---" & "Health Now: " & MyHealth & "---" & "Damage Taken: " & MyHealthOld - MyHealth
If MyHealthOld = MyHealth Then
world.note "FEINT"
world.SetVariable "HEALTHOLD", MyHealth
elseif MyHealth > 103 and MyHealth < 124 then
world.note "CLEAR"
world.SetVariable "HEALTHOLD", MyHealth + 20
elseIf MyHealth > 83 and MyHealth < 104 then
world.note "PALE"
world.SetVariable "HEALTHOLD", MyHealth + 40
ElseIf MyHealth > 0 and MyHealth < 84 then
world.note "DARK"
world.SetVariable "HEALTHOLD", MyHealth + 80
End If
End Sub
Any Help would be Greatly Appreciated in theese matters, Thanks
Bill
eg.
Regimental fencing chamber.
You could progress eastwards. A trash tub sits here. There are two potion
bottles here.
Ok Now If I had a Trigger to get POTION BOTTLES Well When the word POTION is at the end of the first line and BOTTLES is at the start of the next line it does not match.
Is there a way to get MUSHClient to realize that some sentences etc. continue to the next line?
I am trying to work out a script so that When I am attacked I will automaticly drink my correct potion
They are three types of potion DARK PALE AND CLEAR they recover 80 40 and 20 Health respectivly
Colonel Garek of the Cardinal's Foot Guards takes a slash at you, hitting as
you just fail to parry.
Your health is now 88.
That is what I see when Someone attacks me So I have a max health of 124 So I want to drink the proper potion because drinking a dark potion has a 6 second recycle rate where clear only has 2 ... Problem Is When I drink potion I get...
You take a sip of clear healing draft from a potion bottle.
The healing liquid infuses you with a warm glow.
Your health is now 108.
So If I just match on the your health is line It trys to drink again when I drink the first time which creates a longer wait time because it says I cannot drink but that time is added to the previous time in which till I can drink again
Also people can feint Where it looks just like a hit but your health stays the same I don't want to drink on them either..
Colonel Garek of the Cardinal's Foot Guards lunges at you, just hitting as you
barely fail to parry.
Your health is now 124.
That's a feint...
Ok What I have for script so far is....
Sub DRINK (thename, theoutput, thewildcards)
Dim MyHealthOld
Dim MyHealth
MyHealthOld = World.GetVariable ("HEALTHOLD")
MyHealth = World.GetVariable ("HEALTH")
world.note "Health Before: " & MyHealthOld & "---" & "Health Now: " & MyHealth & "---" & "Damage Taken: " & MyHealthOld - MyHealth
If MyHealthOld = MyHealth Then
world.note "FEINT"
world.SetVariable "HEALTHOLD", MyHealth
elseif MyHealth > 103 and MyHealth < 124 then
world.note "CLEAR"
world.SetVariable "HEALTHOLD", MyHealth + 20
elseIf MyHealth > 83 and MyHealth < 104 then
world.note "PALE"
world.SetVariable "HEALTHOLD", MyHealth + 40
ElseIf MyHealth > 0 and MyHealth < 84 then
world.note "DARK"
world.SetVariable "HEALTHOLD", MyHealth + 80
End If
End Sub
Any Help would be Greatly Appreciated in theese matters, Thanks
Bill