rpherbig / dr-scripts

A series of Lich 5 (https://github.com/elanthia-online/lich-5) scripts for use with DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!
GNU General Public License v2.0
52 stars 177 forks source link

Better invasion detection/handling in town #327

Closed rpherbig closed 5 years ago

rpherbig commented 8 years ago
[crossing-training: ***Attempting to train Outdoorsmanship***]
[crossing-training]>collect vine
>
You cannot collect anything while in combat!
>

>
Appearing to have lost sight of its target, a champion rebel novice stops advancing.
>

>
The rebel novice moves into a position to parry.
>
The champion novice begins to advance on Eoff.
>
Mageling Eoff went through the Northeast Gate.
>

* Nehahra swings her tower shield, obstructing the rebel gladiator's strike from reaching Celturian!
>

>
The rebel gladiator moves into a position to dodge.
>

>
* Looking as if this were a bad idea, a rebel novice feints to the side at you.  You evade.  
[You're beat up, solidly balanced and have slight advantage.]
>
Crisson draws a bastard sword from an errant shadow, smiling confidently.
>

>

>
A champion rebel novice intently studies the sky.
>
The rebel novice moves into a position to dodge.
>
* Moving in gracefully, a rebel soldier feints low at you.  You badly fail to block with a polished steel parry stick.  The kris lands a light hit (1/23) to your abdomen.
[You're very beat up, solidly balanced with opponent in very strong position.]
>
A rebel novice checks the ground for coins, finds none and frowns.
>

>
Recusant Darkrum came through the Northeast Gate.
>
Recusant Darkrum went down a narrow footpath.
>
Crisson lands a vicious strike (13/23) that bruises the chest with a blow to the ribcage, lightly stunning it.  
>

>
The rebel novice moves into a position to dodge.
>
A rebel hunter lands a good strike (3/23) to Crisson's left arm.  
The slender tip arrow lodges itself shallowly into Crisson!
>
A rebel novice blinks a few times, shaking his head.
>
A rebel gladiator sniffs at the flowers on a hedge, then picks one and places it in his lapel.
>

* Nehahra hoists her tower shield, absorbing the rebel gladiator's attack intended for Celturian!
>

The smooth rock lands nearby!
>

>
Sylverwynd came through the Northeast Gate.
>

>

>
Appearing to have lost sight of its target, a champion rebel novice stops advancing.
>
The champion novice begins to advance on Sylverwynd.
>

>
A rebel gladiator lands a light hit (1/23) to Nehahra's left hand.  
>
The rebel novice moves into a position to parry.
>
A rebel novice sniffs at the flowers on a hedge, then picks one and places it in his lapel.
>
A rebel novice suddenly swings into view, laughing and brandishing his weapon.
>

>
* Moving in like a timid schoolboy, a rebel novice bashes a short hammer at you.  You beat off nearly all the hammer with a polished steel parry stick.  
[You're very beat up, solidly balanced with opponent in better position.]
>
Oakeyed kindly says, "Didnt see anone..."
>
Sylverwynd goes north.
>
Oakeyed lands a good strike (3/23) to the novice's chest.  
>

>

>
The rebel novice moves into a position to dodge.
>

* Positioning herself in front of Celturian, Nehahra absorbs the force of the rebel marksman's attack against her tower shield!
>
* Moving fluidly, a rebel soldier lunges a kris at you.  You fail to block with a polished steel parry stick.  The kris lands a solid hit (4/23) that painfully mashes several toes of the left foot.
[You're very beat up, solidly balanced with opponent dominating.]
>

* Knocking Celturian aside, Nehahra deflects the rebel gladiator's attack with her tower shield!
>

>
Celturian lands a good strike (3/23) to the gladiator's abdomen.  
>
Crisson lands an apocalyptic strike (23/23) (So that's what it felt like when Grazhir shattered!) that snaps bones and removes most of the right arm.  
The novice stares ahead in disbelief before falling to the ground in a crumpled heap.
>
The rebel novice moves into a position to dodge.
>
The champion novice begins to advance on Crisson.
>
[crossing-training: *** No match was found after 15 seconds, dumping info]
[crossing-training: messages seen length: 47]
[crossing-training: message: You cannot collect anything while in combat!]
[crossing-training: message: Appearing to have lost sight of its target, a champion rebel novice stops advancing.]
[crossing-training: message: The rebel novice moves into a position to parry.]
[crossing-training: message: The champion novice begins to advance on Eoff.]
[crossing-training: message: Mageling Eoff went through the Northeast Gate.]
[crossing-training: message: * Nehahra swings her tower shield, obstructing the rebel gladiator's strike from reaching Celturian!]
[crossing-training: message: The rebel gladiator moves into a position to dodge.]
[crossing-training: message: * Looking as if this were a bad idea, a rebel novice feints to the side at you.  You evade.  ]
[crossing-training: message: [You're beat up, solidly balanced and have slight advantage.]]
[crossing-training: message: Crisson draws a bastard sword from an errant shadow, smiling confidently.]
[crossing-training: message: A champion rebel novice intently studies the sky.]
[crossing-training: message: The rebel novice moves into a position to dodge.]
[crossing-training: message: * Moving in gracefully, a rebel soldier feints low at you.  You badly fail to block with a polished steel parry stick.  The kris lands a light hit to your abdomen.]
[crossing-training: message: [You're very beat up, solidly balanced with opponent in very strong position.]]
[crossing-training: message: A rebel novice checks the ground for coins, finds none and frowns.]
[crossing-training: message: Recusant Darkrum came through the Northeast Gate.]
[crossing-training: message: Recusant Darkrum went down a narrow footpath.]
[crossing-training: message: Crisson lands a vicious strike that bruises the chest with a blow to the ribcage, lightly stunning it.  ]
[crossing-training: message: The rebel novice moves into a position to dodge.]
[crossing-training: message: A rebel hunter lands a good strike to Crisson's left arm.  ]
[crossing-training: message: The slender tip arrow lodges itself shallowly into Crisson!]
[crossing-training: message: A rebel novice blinks a few times, shaking his head.]
[crossing-training: message: A rebel gladiator sniffs at the flowers on a hedge, then picks one and places it in his lapel.]
[crossing-training: message: * Nehahra hoists her tower shield, absorbing the rebel gladiator's attack intended for Celturian!]
[crossing-training: message: The smooth rock lands nearby!]
[crossing-training: message: Sylverwynd came through the Northeast Gate.]
[crossing-training: message: Appearing to have lost sight of its target, a champion rebel novice stops advancing.]
[crossing-training: message: The champion novice begins to advance on Sylverwynd.]
[crossing-training: message: A rebel gladiator lands a light hit to Nehahra's left hand.  ]
[crossing-training: message: The rebel novice moves into a position to parry.]
[crossing-training: message: A rebel novice sniffs at the flowers on a hedge, then picks one and places it in his lapel.]
[crossing-training: message: A rebel novice suddenly swings into view, laughing and brandishing his weapon.]
[crossing-training: message: * Moving in like a timid schoolboy, a rebel novice bashes a short hammer at you.  You beat off nearly all the hammer with a polished steel parry stick.  ]
[crossing-training: message: [You're very beat up, solidly balanced with opponent in better position.]]
[crossing-training: message: Oakeyed kindly says, "Didnt see anone..."]
[crossing-training: message: Sylverwynd goes north.]
[crossing-training: message: Oakeyed lands a good strike to the novice's chest.  ]
[crossing-training: message: The rebel novice moves into a position to dodge.]
[crossing-training: message: * Positioning herself in front of Celturian, Nehahra absorbs the force of the rebel marksman's attack against her tower shield!]
[crossing-training: message: * Moving fluidly, a rebel soldier lunges a kris at you.  You fail to block with a polished steel parry stick.  The kris lands a solid hit that painfully mashes several toes of the left foot.]
[crossing-training: message: [You're very beat up, solidly balanced with opponent dominating.]]
[crossing-training: message: * Knocking Celturian aside, Nehahra deflects the rebel gladiator's attack with her tower shield!]
[crossing-training: message: Celturian lands a good strike to the gladiator's abdomen.  ]
[crossing-training: message: Crisson lands an apocalyptic strike (So that's what it felt like when Grazhir shattered!) that snaps bones and removes most of the right arm.  ]
[crossing-training: message: The novice stares ahead in disbelief before falling to the ground in a crumpled heap.]
[crossing-training: message: The rebel novice moves into a position to dodge.]
[crossing-training: message: The champion novice begins to advance on Crisson.]
[crossing-training: checked against [/You manage to collect/i, /The room is too cluttered to find anything here/i]]
[crossing-training]>kick pile

Maybe only improve collecting? What else can we do?

Related to #21.

rpherbig commented 8 years ago

Idea: add a Flag for closes to melee range on you! and if we see it, run to the inn. Maybe exit? Maybe set it as the safe room and keep training?

rpherbig commented 8 years ago

I've observed the last few invasions and the biggest window of time to be hurt/logged out seems to be when crossing-training is running, but sleeping. So I see the failed to play message a lot: You cannot use the copper zills while in combat!

skyleronken commented 7 years ago

you could also check JUSTICE for the message indicating that everything is currently in chaos. Thats the easiest binary check to see if an invasion is occurring.