Quick Coding Questions

1568101124

Comments

  • Is there a function that will disable/enable alias or trigger groups in Mudlet, or do I just refer to the folder name in enableTrigger() and disableAlias() etc?
    (Party): Kondar says, "Anyone else a little terrified of Astrika right now?"
    (Party): Volan says, "No groin strikes please."

    Ryldagh falls in a blaze of silver to Astrika, Acolyte of Cruelty's sword, Dark Gorillas.
    (Cyrene): Ahmet says, "Buahahaha."
    (Cyrene): Jayden says, "Hehehehe."
    (Cyrene): Ahmet says, "I am the evil Astrika, warrior of Mhaldor! Bow to my vicious blade, Dark Gorillas!"
  • enableTrigger uses folder name, yeah.
  • Thought that might be the case. Thanks!

    Does anyone have tips or stock code for a highlighter? I'm looking for something that will highlight a word or specific set of words, like limbs or my target's name.
    (Party): Kondar says, "Anyone else a little terrified of Astrika right now?"
    (Party): Volan says, "No groin strikes please."

    Ryldagh falls in a blaze of silver to Astrika, Acolyte of Cruelty's sword, Dark Gorillas.
    (Cyrene): Ahmet says, "Buahahaha."
    (Cyrene): Jayden says, "Hehehehe."
    (Cyrene): Ahmet says, "I am the evil Astrika, warrior of Mhaldor! Bow to my vicious blade, Dark Gorillas!"
  • edited February 2016
    Wow why does this mess up the spacing so hard :open_mouth:

    http://pastebin.com/P1nrZNgk




    Penwize has cowardly forfeited the challenge to mortal combat issued by Atalkez.
  • Trying to figure out how to set up my offense as a sentinel. I have an idea as to what I want to do strategy wise, but not so much in the coding and implementation. What I'm considering right now is a macro key to set a variable for each kill strat: ie f10 killstrat = riftlock, f11 killstrat = dismember etc. My problem comes to the scripting side, and aff tracking. Is there a good way to go about it? Thanks for any help!
  • Have a look at @Austere's AK system. I don't use it, but that is an aff tracker which should help with such things.
  • edited February 2016
    I had to reinstall windows recently and can't click in the little ellipses for when code is present and such. (on the forums) anyone know why?  Thanks for the help.
  • Borre said:
    Trying to figure out how to set up my offense as a sentinel. I have an idea as to what I want to do strategy wise, but not so much in the coding and implementation. What I'm considering right now is a macro key to set a variable for each kill strat: ie f10 killstrat = riftlock, f11 killstrat = dismember etc. My problem comes to the scripting side, and aff tracking. Is there a good way to go about it? Thanks for any help!

    I'm using AK and it has saved me dozens of hours coding my own tracking. I can highly recommend it, and @Austere is great when / if you have any trouble.

    http://forums.achaea.com/discussion/3314/ak-opponent-tracking/p1

  • SkyeSkye The Duchess Bellatere
    I'm still on the old SVO but uh... has anyone been having problems with the svo.deleteLineP() function?

    I gag my swashbucklers cause they spammy. And the function's worked fine until now...

    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:37:09.968) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:37:19.626) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:37:36.688) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:19.926) no line out
    Elowin has been slain by the might of a maniacal atavian inmate.
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:43.028) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:45.692) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:54.224) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:39:29.061) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:40:03.196) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:40:12.618) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:40:46.789) no line out
    Iridi has bled to death.
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:41:55.987) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:42:47.567) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:42:56.084) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:43:04.616) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:43:13.273) no line out
    if I stand on my deck my screen can fill up with prompt.




  • AhmetAhmet Wherever I wanna be
    Skye said:
    I'm still on the old SVO but uh... has anyone been having problems with the svo.deleteLineP() function?

    I gag my swashbucklers cause they spammy. And the function's worked fine until now...

    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:37:09.968) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:37:19.626) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:37:36.688) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:19.926) no line out
    Elowin has been slain by the might of a maniacal atavian inmate.
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:43.028) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:45.692) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:38:54.224) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:39:29.061) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:40:03.196) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:40:12.618) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:40:46.789) no line out
    Iridi has bled to death.
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:41:55.987) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:42:47.567) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:42:56.084) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:43:04.616) no line out
    (ex) {8140hp|7130mp|36100e|31510wp}{db|} |5445 ()| 32.3%XP (07:43:13.273) no line out
    if I stand on my deck my screen can fill up with prompt.


    svo.deleteLineP() doesn't work with shipprompt properly, at least for a number of people.
    Huh. Neat.
  • SkyeSkye The Duchess Bellatere
    hmmm but my shipmode is off so I'm not seeing the double prompts which often mess up the function.

    This only recently happened. I was setting up some stuff for shopkeeping so I wonder if I've broken something accidentally. 

    Also, it seems to be working perfectly on my ultra shitty and unupdated work-side system. 


  • How would I track my own voice balance via gmcp?  I'm a total nub.
  • AhmetAhmet Wherever I wanna be
    edited February 2016
    Rouillier said:
    How would I track my own voice balance via gmcp?  I'm a total nub.
    function hasVoiceBal()
    local voiceBal = false
    for index, val in ipairs(gmcp.Char.Vitals.charstats) do
    if val == "Voice: True" then voiceBal = true end
    end
    return voiceBal
    end
    I forget the exact formatting for the voice so check gmcp.Char.Vitals.charstats to make sure that's accurate for when you do have balance, but that should work fine otherwise.
    Huh. Neat.
  • AhmetAhmet Wherever I wanna be
    Quick coding question, why the fek does the codebox remove my bloody newlines
    Huh. Neat.
  • Ahmet said:
    Rouillier said:
    How would I track my own voice balance via gmcp?  I'm a total nub.
    function hasVoiceBal()
    local voiceBal = false
    for index, val in ipairs(gmcp.Char.Vitals.charstats) do
    if val == "Voice: True" then voiceBal = true end
    end
    return voiceBal
    end
    I forget the exact formatting for the voice so check gmcp.Char.Vitals.charstats to make sure that's accurate for when you do have balance, but that should work fine otherwise.
    How would I use this?  An example of what I'd like to do:

    if havevoicebalance then
        send("sing cantata")
    else
        send("raze")
    end
  • AhmetAhmet Wherever I wanna be
    Rouillier said:
    Ahmet said:
    Rouillier said:
    How would I track my own voice balance via gmcp?  I'm a total nub.
    function hasVoiceBal()
    local voiceBal = false
    for index, val in ipairs(gmcp.Char.Vitals.charstats) do
    if val == "Voice: True" then voiceBal = true end
    end
    return voiceBal
    end
    I forget the exact formatting for the voice so check gmcp.Char.Vitals.charstats to make sure that's accurate for when you do have balance, but that should work fine otherwise.
    How would I use this?  An example of what I'd like to do:

    if havevoicebalance then
        send("sing cantata")
    else
        send("raze")
    end
    if hasVoiceBal() then
        send("sing cantata")
    else 
    blah blah
    Huh. Neat.
  • Thank you!
  • Is there a GMCP event for gained/lost balance? 

  • Dairon said:
    Is there a GMCP event for gained/lost balance? 

    Yeah, it's gmcp.Char.Vitals. The values you want are gmcp.Char.Vitals.bal and gmcp.Char.Vitals.eq. The values are strings. "1" means you have balance, "0" means you don't.
  • edited April 2016
    Jacero said:
    Dairon said:
    Is there a GMCP event for gained/lost balance? 

    Yeah, it's gmcp.Char.Vitals. The values you want are gmcp.Char.Vitals.bal and gmcp.Char.Vitals.eq. The values are strings. "1" means you have balance, "0" means you don't.
    Though word of warning - if you're using the serverside queueing it won't show you regaining balance between balanceful commands. You'll see the "You have recovered balance on all limbs." message, but all the Char.Vitals messages will have 0 for balance.
  • Is there a syntax that I may use within the Nexus client to view the whole GMCP list? Within Mudlet, I believe the syntax was "lua gmcp".
  • http://forums.achaea.com/discussion/3611/basic-html5-gmcp-questions  <-- appears to be exactly what I was looking for, but I have yet to tinker and try it out. 
  • Sirixi said:
    Is there a syntax that I may use within the Nexus client to view the whole GMCP list? Within Mudlet, I believe the syntax was "lua gmcp".
    There isn't really such a thing as a "GMCP list".

    GMCP messages come just like regular mesages. Mudlet just saves the last GMCP message of each kind into an internal table called gmcp.

    If you want to see GMCP messages, there's a checkbox in the settings under Advanced. If you want to save the last GMCP message of each kind the way Mudlet does, you'll have to write something yourself to do it, though that'd be pretty easy to do.
  • Does anyone know why the mudlet mapper might randomly stop working after upgrading the mapper script?  It still picks up my room and updates roomname, room ID, m0x, m0y and m0z ok (see screenshot below), but it doesn't display the area surrounding that room any more.

    Please help!

  • Nevermind, all fixed.
  • edited April 2016
    Anyone able to hook me up with a set target script, that auto targets denizens? currently I'm having to "st xyz" kill xyz, "st abc", kill abc... kinda annoying in areas like, for example, manara, where there's mingruks, gnolls, atavians, etc.
    Bonus points if it doesn't interfere with my current st script, so I can still use that for players.

    Edit: Don't need the whole bashing thing, just the targets.. in case anyone was thinking about linking me a full bashing script.
    Omor Ceberek - Targossas

    got gud
  • edited April 2016
    Omor said:
    Anyone able to hook me up with a set target script, that auto targets denizens? currently I'm having to "st xyz" kill xyz, "st abc", kill abc... kinda annoying in areas like, for example, manara, where there's mingruks, gnolls, atavians, etc.
    Bonus points if it doesn't interfere with my current st script, so I can still use that for players.

    Edit: Don't need the whole bashing thing, just the targets.. in case anyone was thinking about linking me a full bashing script.
    I do not have such a script, but:
    1. If you're using Nexus, you can use tab to target the next thing.
    2. If you're in Manara, just "st gnoll" and be done with it. Instead of changing the target to mingruk, just go find more gnolls. With the way bashing is balanced now, it's extraordinarily rare that you'll ever actually run out of gnolls. The same is true for a pretty large number of other places, and probably more places than you think have more-generic targeting nouns (you can use "undead" in Azdun for instance and it'll hit just about anything in the lower floors).




  • Penwize has cowardly forfeited the challenge to mortal combat issued by Atalkez.
  • I had an issue with running something similar, if not the same, with WunderSys, for some reason. Only worked with SVO. @Atalkez ... does it work with ws?
    Omor Ceberek - Targossas

    got gud
Sign In or Register to comment.