Updates for Nyy's Scripts

MUD Client Links and Help
Post Reply
Zepharian
Bilge Rat
Posts: 5
Joined: Sat Jan 27, 2024 3:49 pm

Updates for Nyy's Scripts

Post by Zepharian »

If you use the Train script as a Tank and have the nameplates w/ health % prompt display turned on instead of the classic conditions it will not call out when the mob reaches nasty wounds so that any casters can stop mem and come back. Update the "EC: nasty wounds" trigger to add this new pattern match:

Code: Select all

.*Target:\s+([A-Za-z' ]+)\s+([0-9]+)\%.*
Then update the body of the trigger to this:

Code: Select all

local xname=string.lower(matches[2])

if NyyLIB.smtrainposition == nil then
  return
end

local xtarget=string.lower(NyyLIB.smtrainstops[NyyLIB.smtrainposition][2])

-- TODO need to capitalize all words in name, not just first

if NyyLIB.trainecho ~= 1 then
  
  if string.findPattern(xtarget, xname) or (matches[3] ~= nil and tonumber(matches[3]) ~= nil and tonumber(matches[3]) < 30) then
    NyyLIB.trainecho=1

    local str = NyyLIB.smtrainstops[NyyLIB.smtrainposition][2]
    local nextmob = string.gsub(" "..str, "%W%l", string.upper):sub(2)

    if not silent then
      mud:send("gcmd [" .. nextmob .. " has nasty wounds!]")
    end
  end
end

Last edited by Zepharian on Tue May 14, 2024 9:43 am, edited 1 time in total.
Zepharian
Bilge Rat
Posts: 5
Joined: Sat Jan 27, 2024 3:49 pm

Re: Updates for Nyy's Scripts

Post by Zepharian »

If you are using Nyy's autocast / auto action scripts to run trains, or just to script your class, and you have spellslots (paladins, blackguards, rangers, bards, etc) the prompt trigger does not parse correctly so that the script can know how many available spells you have in each slot. To fix this update the "spellslots" Trigger with the following pattern match:

Code: Select all

^<.*\s+\|([0-9\|]+)\|.*>$
Zepharian
Bilge Rat
Posts: 5
Joined: Sat Jan 27, 2024 3:49 pm

Re: Updates for Nyy's Scripts

Post by Zepharian »

In the Shaman script (Scripts -> NyyLib/ClassScripts / ShaScript) the spirit_wrack power is misspelled in the powersTable. This causes the button to not show how many spells you have pray'd for that.

It should be:

Code: Select all

{ "sw", "spirit_wrack", "Spirit|Wrack", "autohlmissile", nil, 36, 1}
byzanthia
Bilge Rat
Posts: 27
Joined: Tue Feb 20, 2024 8:24 pm

Re: Updates for Nyy's Scripts

Post by byzanthia »

The WarScript line 23 should be updated from "waros" to "warros."
Post Reply