Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

[Mudlet] Quick Question

IsmayIsmay Member Posts: 294 ✭✭✭✭ - Eminent
Ok, this -used- to work but no longer does.



if target_calling == true and not svo.inslowcuringmode() and not ndb.istargossian(matches[2]) and radiance == off then

send("pt " .. matches[2] .. " entered " .. gmcp.Room.Info.area)

end



It's still announcing Targossian citizens, and still announces even when I have my target_calling toggle turned off. Has anything changed in svof? Or does anyone know why it no longer works?


Comments

  • DragonknightDragonknight Member Posts: 220 ✭✭✭✭ - Eminent
    radiance == "off" 

    Would probably fix it. Depending on how you are changing the contents of that variable. At the moment, it is currently comparing the variable radiance contents to the variable off contents. 
    Mathilda
  • IsmayIsmay Member Posts: 294 ✭✭✭✭ - Eminent
    Ok, I got the above fixed to this:

    ^(\w+) has entered the area\.$

    if target_calling == true and not svo.inslowcuringmode() and not ndb.istargossian(matches[2]) and radiance == off then

    send("pt " .. matches[2] .. " entered " .. gmcp.Room.Info.area)

    end



    How would I change that to announce groups on single lines (grouped), instead of individually spamming my party out when large enemy groups enter the area?






  • ZahanZahan ValhallaMember Posts: 189 ✭✭✭ - Distinguished
    I'd build the names into a table (or variable), then use something after the enter messages to call that table, such as a prompt trigger that gets activated on the first entry.

    Click here for Nexus packages
    Currently available: Abs, Cnote, Keepalive, Lootpet, Mapmod
  • IsmayIsmay Member Posts: 294 ✭✭✭✭ - Eminent
    Yeah, I don't know how to do that. If someone else does, I'd be willing to shoot a few credits your way for sharing.
  • AntoniusAntonius Member Posts: 4,005 @@ - Legendary Achaean

    Pretty basic, but should do the trick.

    -- Trigger:
    Pattern (perl regex): ^(\w+) has entered the area\.$
    Code:
    mindnetPeople = mindnetPeople or {}
    table.insert(mindnetPeople, matches[2])
    enableTrigger("Mindnet Prompt")
    
    -- Trigger (be careful about the case being exact on the name)
    Name: Mindnet Prompt
    Pattern (Lua function): return isPrompt()
    Code:
    disableTrigger("Mindnet Prompt")
    send("PT " .. table.concat(mindnetPeople, ", ") .. " entered " .. gmcp.Room.Info.area)
    mindnetPeople = {}
    
    Zahan
Sign In to Comment.