Skip to content

New HTML Client Sneak Peek

2»

Comments

  • IniarIniar Australia
    @Garryn,

    would you consider adding in a way to scripturally generate regex triggers. :3 plx.
    wit beyond measure is a Sidhe's greatest treasure
  • Sure, not for this version however.
  • IniarIniar Australia
    edited April 2015
    Thanks!

    Is there a way to reliably append something to the prompt line?

    I used onBlock but when it hits bursts of lag, I get this:

    21:07:47 511[99] 575[100] eb db 0 98 93.97 0

    Target: Iniar

    21:07:47 You secure your previously wielded items and instantly draw a dwarven battleaxe into your left hand, with a truesilver shield flowing into your right hand.

    21:07:47 You rub some strychnine on a dwarven battleaxe.

    21:07:47 You reave yourself furiously with a dwarven battleaxe.

    21:07:47 Damage Taken: 40 cutting, physical (raw damage: 91)

    21:07:47 Your hearing is suddenly restored.

    21:07:47 You rub some aconite on a dwarven battleaxe.

    21:07:47 You reave yourself furiously with a dwarven battleaxe.

    21:07:47 Damage Taken: 41 cutting, physical (raw damage: 93)

    21:07:47 Your mind becomes foggy and you are unable to think clearly.

    21:07:47 You are afflicted with stupidity.

    21:07:47 Balance Taken: 3.26s

    21:07:47 Mana Lost: 9

    21:07:47 You focus on your essence and send its portion storming into your body, curing the effects of stupidity and causing significant damage.

    21:07:47 Ahh, you feel able to reason once more.

    21:07:47 You have cured stupidity.

    21:07:47 Damage Taken: 55 cold, mental (raw damage: 59)

    21:07:47 Equilibrium Taken: 2.96s

    21:07:47 Mana Lost: 18

    21:07:47 Iniar's condition stands at 374/512 health and 547/575 mana.

    21:07:47 374[73] 547[95] -- b 12 97 93.97 0

    21:07:47 Autocuring: sip health

    21:07:47 You take a drink of an elixir of health from a desert-painted cedar vial.

    21:07:47 Health Gain: 85

    21:07:47 The elixir heals your body.

    21:07:47 459[89] 547[95] -- b 12 97 93.97 0

    21:07:47 Autocuring: eat juniper

    21:07:47 You take 1 juniper berry, bringing the total to 256.

    21:07:47 You quickly eat a juniper berry.

    21:07:47 Silence engulfs you as your hearing fades.

    21:07:47 459[89] 547[95] -- db 12 97 93.97 0

    Target: Iniar

    Target: Iniar

    Target: Iniar

    wit beyond measure is a Sidhe's greatest treasure
  • edited April 2015
    isPrompt() available in Mudlet. Would think a similar function could be available or made available in future.
  • IniarIniar Australia
    edited April 2015
    I'm having trouble with current_block while testing in onBlock. Both these return 'undefined'. Am I missing something @Garryn?

    client.print(client.current_block); <- undefined
    client.print(current_block); <- undefined
    client.print(args); <- null
    client.print(str); <- this prints out my string ok.

    Yes, @Cassius, I could match my prompt and work it that way, but very nice to have an isPrompt()-like facility.
    wit beyond measure is a Sidhe's greatest treasure
  • I guess that is what I was suggesting. ;)
  • IniarIniar Australia
    edited April 2015
    So... I don't want to rain on your parade... However, when I attempted to pk earlier with the client, it pretty much just froze most of the fight. It only happens when there's about > 4 people in the room. I know the webclient isn't meant to replace Mudlet/CMUD, but if anyone were to distribute their system for new players to sample PK, it's a real experience-killer to have the client freeze for a solid 10 seconds especially now that most fights are group fights.

    I guess: is there anything I would/might be doing to create this sluggishness, and if that isn't the case, roughly how much optimisation would be realistic to expect?

    e: I tried logging it to see where the wheels started falling of the wagon, but the logger crashes fairly frequently.
    wit beyond measure is a Sidhe's greatest treasure
  • IniarIniar Australia
    edited April 2015
    Confused:

    var n = client.current_line.parsed_prompt.text();
    client.current_line.parsed_prompt.replace(n.length,0,str,null);

    This is what it outputs:
            t(Iniar): 512[100] 575[100] eb db 0 100 94.40 
    Intended look:
    512[100] 575[100] eb db 0 100 94.40          t(Iniar): 
    wit beyond measure is a Sidhe's greatest treasure
  • Hmm, the doc is wrong, will fix. The second argument is not length, but the ending index, in your case n.length. There should be no difference when the length is 0, however, so what you write should work anyway. Puzzling. Where are you using that code?
  • IniarIniar Australia
    edited April 2015
    Off a half-matched prompt regex trigger

    ^\d+\[\d+\] \d+\[\d+\]

    edit: In my initial testing, I tried these configurations:

    client.current_line.parsed_prompt.replace(n.length,0,str,null);
    client.current_line.parsed_prompt.replace(0,n.length,str,null); --> this overwrote the prompt, not desirable
    client.current_line.parsed_prompt.replace(n.length,-1,str,null); --> same as #1
    client.current_line.parsed_prompt.replace(2 * n.length,2,str,null); --> same as #1

    e2: Oh hey, this worked:

    client.current_line.parsed_prompt.replace(n.length - 1,n.length,str,null);
    512[100] 575[100] eb db 0 100 94.40 0                 (Iniar)

    e3: This forum has really, really bad formatting.

    e4: while I have you, should I be using client.set_variable() or creating globals in window.my_module? Are there any particular speed benefits to using one over the other? I prefer not having to do get/set but I will if it means better speed.

    wit beyond measure is a Sidhe's greatest treasure
  • set_variable/get_variable will save along with settings, window.X will not. window.X is faster.
  • IniarIniar Australia
    quickdraw sabre shield | rsl raya mebaral | queue eqbal dsl raya hemotoxin ciguatoxin
    You secure your previously wielded items and instantly draw a curved sabre into your left hand, with a truesilver shield flowing into your right hand.
    Your aura of weapons rebounding disappears.
    You have lost the anti-weapon field defence.
    You whip a curved sabre through the air in front of Raya, to no effect.
    You rub some mebaral on a curved sabre.
    You swing a curved sabre at Raya with a powerful strike.
    Raya appears confused.
    Balance Taken: 2.14s
    Dsl raya hemotoxin ciguatoxin added to your EQBAL queue.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya) slow equilibrium,
    Raya touches a tree of life tattoo.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya)
    Autocuring: smoke pipe with linseed
    You take a long drag off your pipe, filling your lungs with linseed smoke.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya)
    You have recovered balance.
    [QUEUE]: dsl raya hemotoxin ciguatoxin.
    You rub some hemotoxin on a curved sabre.
    You slash viciously into Raya with a curved sabre.
    Raya pales suddenly and slumps perceptibly.
    You rub some ciguatoxin on a curved sabre.
    You slash viciously into Raya with a curved sabre.
    Raya appears terrified as her muscles seem to become difficult to control.
    Balance Taken: 2.14s
    512[100] 575[100] e- db 0 100 94.40 0 (Raya) hemotoxin, numbness,
    Raya quickly eats a piece of kelp.
    Raya's colour returns to her face.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya) numbness,
    You have recovered your breath and can smoke once more.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya) numbness,
    A great weight seems to have been lifted from Kryss.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya) numbness,
    Kryss rubs some salve on her skin.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya) numbness,
    Raya concentrates on purging toxins from her body.
    512[100] 575[100] e- db 0 100 94.40 0 (Raya)
    You have recovered balance.
    512[100] 575[100] eb db 0 100 94.40 0 (Raya)
    You feel an aura of rebounding surround you.
    You have gained the anti-weapon field defence.
    512[100] 575[100] eb db 0 100 94.40 0 (Raya)

    Progress!
    wit beyond measure is a Sidhe's greatest treasure
  • IniarIniar Australia
    What colors are available to me via 'colorize()'?
    wit beyond measure is a Sidhe's greatest treasure
  • All HTML colors - #RRGGBB
  • IniarIniar Australia
    OBVIOUSLY SOME REFINING NEEDS TO BE DONE, BUT WE'RE ON THE WAY.

    LOG STARTED
    Mana Gain: 9
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) 
    The skies turn darker as the rain intensifies.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) 
    Loading Eden...
    Completed loading.
    autocuring off
    autocuring on
    Eden knows of: Kryss, 
    Autocuring disabled.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) 
    Autocuring activated.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) 
    ql
    Imperial Parade nearing the gates of Stavenn.
    It is raining heavily, pregnant drops of water pouring down onto you. blablabla. Kryss Miyumae is here, a soft glow of a multi-coloured aura surrounding her. She wields a guardian angel Celani doll in her left hand and a buckler in her right.
    You see exits leading east, southeast, west, northwest, and up.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) 
    Mana Lost: 4
    512[100] 570[99] eb db 0 100 94.15 0         (Kryss) 
    ifeqbal quickdraw sabre shield|rsl Kryss ciguatoxin|trueassess Kryss|
    You secure your previously wielded items and instantly draw a curved sabre into your left hand, with a truesilver shield flowing into your right hand.
    Your aura of weapons rebounding disappears.
    You have lost the anti-weapon field defence.
    You raze Kryss's aura of rebounding with a curved sabre.
    You rub some ciguatoxin on a curved sabre.
    With a lightning-quick motion, you slash Kryss with a curved sabre (ciguatoxin)
    Kryss appears terrified as her muscles seem to become difficult to control +[numbness]
    Balance Taken: 2.14s
    Mana Lost: 18
    Kryss's condition stands at 433/445 health and 444/445 mana.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) numbness, 
    Kryss quickly eats a maidenhair leaf.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) 
    Autocuring: smoke pipe with linseed
    You take a long drag off your pipe, filling your lungs with linseed smoke.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) 
    Kryss takes a long drag off her pipe, exhaling a thick, white haze.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) 
    You have recovered balance.
    512[100] 552[96] eb db 0 100 94.15 0         (Kryss) 
    ifeqbal quickdraw 151790 shield|wm slash shred Kryss ciguatoxin ether|engage Kryss|trueassess Kryss|
    You secure your previously wielded items and instantly draw a battle-worn antediluvian longsword into your left hand, with a truesilver shield flowing into your right hand.
    You rub some ciguatoxin on a battle-worn antediluvian longsword.
    You slash viciously into Kryss with a battle-worn antediluvian longsword(ciguatoxin)
    Kryss appears terrified as her muscles seem to become difficult to control +[numbness]
    You rub some ether on a battle-worn antediluvian longsword.
    You shred Kryss's skin viciously with a battle-worn antediluvian longsword, causing a nasty infection (ether)
    The teeth along the weapon edge cut into Kryss's flesh.
    Kryss's blood starts flowing more freely +[haemophilia]
    Balance Taken: 2.54s
    Mana Lost: 4
    You are already engaging Kryss.
    Mana Lost: 18
    Kryss's condition stands at 386/445 health and 444/445 mana.
    512[100] 529[92] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, numbness, 
    Kryss quickly eats a maidenhair leaf.
    512[100] 529[92] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, 
    Kryss touches a tree of life tattoo.
    512[100] 529[92] e- db 0 100 94.15 0         (Kryss) clumsiness, 
    Mana Lost: 4
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) clumsiness, 
    Kryss concentrates on purging toxins from her body.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) 
    You have recovered your breath and can smoke once more.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) 
    Mana Gain: 23
    512[100] 548[95] e- db 0 100 94.15 0         (Kryss) 
    You have recovered balance.
    512[100] 548[95] eb db 0 100 94.15 0         (Kryss) 
    ifeqbal quickdraw 151790 shield|wm slash shred Kryss ciguatoxin ether|engage Kryss|trueassess Kryss|
    You secure your previously wielded items and instantly draw a battle-worn antediluvian longsword into your left hand, with a truesilver shield flowing into your right hand.
    You rub some ciguatoxin on a battle-worn antediluvian longsword.
    With a lightning-quick motion, you slash Kryss with a battle-worn antediluvian longsword (ciguatoxin)
    Kryss appears terrified as her muscles seem to become difficult to control +[numbness]
    You rub some ether on a battle-worn antediluvian longsword.
    You shred Kryss's skin viciously with a battle-worn antediluvian longsword, causing a nasty infection (ether)
    Kryss's blood starts flowing more freely +[haemophilia]
    Balance Taken: 2.54s
    Mana Lost: 4
    You are already engaging Kryss.
    Mana Lost: 18
    Kryss's condition stands at 355/445 health and 434/445 mana.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, numbness, 
    Kryss takes a drink from a burnished red isan vial.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, numbness, 
    Kryss quickly eats a nightshade root.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    You feel an aura of rebounding surround you.
    You have gained the anti-weapon field defence.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    You suddenly perceive the vague outline of an aura of rebounding around Kryss.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    Kryss quickly eats a piece of kelp.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) numbness, 
    ifeqbal quickdraw sabre shield|rsl Kryss ether|trueassess Kryss|
    You have recovered balance.
    512[100] 525[91] eb db 0 100 94.15 0         (Kryss) numbness, 
    Mana Lost: 4
    512[100] 520[90] eb db 0 100 94.15 0         (Kryss) numbness, 
    You secure your previously wielded items and instantly draw a curved sabre into your left hand, with a truesilver shield flowing into your right hand.
    Your aura of weapons rebounding disappears.
    You have lost the anti-weapon field defence.
    You raze Kryss's aura of rebounding with a curved sabre.
    You rub some ether on a curved sabre.
    You swing a curved sabre at Kryss with a powerful strike (ether)
    Balance Taken: 2.14s
    Mana Lost: 18
    Kryss's condition stands at 404/445 health and 433/445 mana.
    512[100] 502[87] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    Kryss takes a long drag off her pipe, exhaling a thick, white haze.
    512[100] 502[87] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    Autocuring: sip mana
    You take a drink of an elixir of mana from a ruby vial.
    Mana Gain: 72
    Your mind feels rejuvenated.
    512[100] 575[100] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    Autocuring: smoke pipe with linseed
    You take a long drag off your pipe, filling your lungs with linseed smoke.
    512[100] 575[100] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    Kryss quickly eats a piece of kelp.
    512[100] 575[100] e- db 0 100 94.15 0         (Kryss) numbness, 
    ifeqbal quickdraw 151790 shield|wm slash shred Kryss ether mercury|engage Kryss|trueassess Kryss|
    You have recovered balance.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) numbness, 
    Your ally, Fensrun, has entered Imperian.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) numbness, 
    Kryss's muscles lock up in paralysis.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) numbness, 
    Kryss quickly eats a maidenhair leaf.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) 
    You have recovered your breath and can smoke once more.
    512[100] 575[100] eb db 0 100 94.15 0         (Kryss) 
    ifeqbal quickdraw 151790 shield|wm slash shred Kryss ciguatoxin ether|engage Kryss|trueassess Kryss|
    You secure your previously wielded items and instantly draw a battle-worn antediluvian longsword into your left hand, with a truesilver shield flowing into your right hand.
    You rub some ciguatoxin on a battle-worn antediluvian longsword.
    You swing a battle-worn antediluvian longsword at Kryss with a powerful strike (ciguatoxin)
    The teeth along the weapon edge cut into Kryss's flesh.
    Kryss appears terrified as her muscles seem to become difficult to control +[numbness]
    You rub some ether on a battle-worn antediluvian longsword.
    You shred Kryss's skin viciously with a battle-worn antediluvian longsword, causing a nasty infection (ether)
    Kryss's blood starts flowing more freely +[haemophilia]
    Balance Taken: 2.54s
    Mana Lost: 4
    You are already engaging Kryss.
    Mana Lost: 18
    Kryss's condition stands at 351/445 health and 424/445 mana.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, numbness, 
    Kryss takes a drink from a burnished red isan vial.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, numbness, 
    You may drink another healing elixir.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, numbness, 
    Mana Lost: 4
    512[100] 547[95] e- db 0 100 94.15 0         (Kryss) clumsiness, haemophilia, numbness, 
    Kryss quickly eats a nightshade root.
    512[100] 547[95] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    You suddenly perceive the vague outline of an aura of rebounding around Kryss.
    You feel an aura of rebounding surround you.
    You have gained the anti-weapon field defence.
    Mana Gain: 23
    512[100] 570[99] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    ifeqbal quickdraw sabre shield|rsl Kryss mercury|trueassess Kryss|
    You have recovered balance.
    512[100] 570[99] eb db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    You secure your previously wielded items and instantly draw a curved sabre into your left hand, with a truesilver shield flowing into your right hand.
    Your aura of weapons rebounding disappears.
    You have lost the anti-weapon field defence.
    You raze Kryss's aura of rebounding with a curved sabre.
    You rub some mercury on a curved sabre.
    With a lightning-quick motion, you slash Kryss with a curved sabre (mercury)
    Balance Taken: 2.14s
    Mana Lost: 18
    Kryss's condition stands at 417/445 health and 424/445 mana.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, numbness, 
    Autocuring: smoke pipe with linseed
    You take a long drag off your pipe, filling your lungs with linseed smoke.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, numbness, 
    Kryss quickly eats a piece of kelp.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    Kryss takes a long drag off her pipe, exhaling a thick, white haze.
    512[100] 552[96] e- db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    You have recovered balance.
    512[100] 552[96] eb db 0 100 94.15 0         (Kryss) clumsiness, numbness, 
    ifeqbal quickdraw 151790 shield|wm slash shred Kryss mercury hemotoxin|engage Kryss|trueassess Kryss|
    You secure your previously wielded items and instantly draw a battle-worn antediluvian longsword into your left hand, with a truesilver shield flowing into your right hand.
    You rub some mercury on a battle-worn antediluvian longsword.
    With a lightning-quick motion, you slash Kryss with a battle-worn antediluvian longsword (mercury)
    The teeth along the weapon edge cut into Kryss's flesh.
    You rub some hemotoxin on a battle-worn antediluvian longsword.
    You shred Kryss's skin viciously with a battle-worn antediluvian longsword, causing a nasty infection (hemotoxin)
    Kryss pales suddenly and slumps perceptibly +[hemotoxin]
    Kryss's blood starts flowing more freely +[haemophilia]
    Balance Taken: 2.54s
    Mana Lost: 4
    You are already engaging Kryss.
    Mana Lost: 18
    Kryss's condition stands at 357/445 health and 424/445 mana.
    512[100] 529[92] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, haemophilia, hemotoxin, numbness, 
    Kryss takes a drink from a burnished red isan vial.
    512[100] 529[92] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, haemophilia, hemotoxin, numbness, 
    Kryss quickly eats a piece of kelp.
    512[100] 529[92] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, haemophilia, numbness,  <-- I hate you so much blackout. You're the reason why this shit still exists.
    Mana Lost: 4
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, haemophilia, numbness, 
    Kryss's muscles lock up in paralysis.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, haemophilia, numbness, 
    You have recovered your breath and can smoke once more.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, haemophilia, numbness, 
    Kryss quickly eats a maidenhair leaf.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, haemophilia, 
    Kryss touches a tree of life tattoo.
    512[100] 525[91] e- db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    You have recovered balance.
    512[100] 525[91] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    You feel an aura of rebounding surround you.
    You have gained the anti-weapon field defence.
    512[100] 525[91] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    Kryss quickly eats a piece of kelp.
    Kryss's colour returns to her face -[hemotoxin]
    512[100] 525[91] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    You suddenly perceive the vague outline of an aura of rebounding around Kryss.
    512[100] 525[91] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    Mana Lost: 4
    512[100] 520[90] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    Kryss quickly eats a nightshade root.
    512[100] 520[90] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    Mana Gain: 23
    512[100] 543[94] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    Mana Lost: 4
    512[100] 539[93] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    A soft glow mimicking Aryana emanates from the form of Kryss.
    512[100] 539[93] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    Mana Lost: 4
    512[100] 534[92] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    Mana Gain: 23
    512[100] 557[96] eb db 0 100 94.15 0         (Kryss) asthma, clumsiness, 
    wit beyond measure is a Sidhe's greatest treasure
Sign In or Register to comment.