[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Aardwolf Consider all miniwindow.
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Aardwolf Consider all miniwindow.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Pages: 1  2  3  4  5  6 

Posted by Khannon   (20 posts)  [Biography] bio
Date Reply #75 on Wed 30 Mar 2016 02:30 PM (UTC)
Message
Found the reason for this error through aard awesome tech channel.

There's couple mobs named 'mob!?'

That caused miniwin to break and reproduce the error I posted.

I've changed this line:
mob = string.match (line, k)
to
mob = string.match (string.gsub(line, "?!", ""), k)

This fix was suggested to me in tech channel I'm merely the messenger!

Also maybe worth to mention, this error only occured if mob had no auras (good, evil and angry, the error for this particular mob name only showed if - 'mob!?'
[Go to top] top

Posted by Fiendish   USA  (1,662 posts)  [Biography] bio   Global Moderator
Date Reply #76 on Thu 22 Sep 2016 08:46 PM (UTC)
Message
Got this report.

Quote:
Hello!
I've found a little problem with the Consider_All plugin for MUSH, but the thread is closed so I'd figured I just write you here in game. It's missing a trigger for auto considering after a mob is killed and the player has the noexp option on.
Maybe you want to add it to the thread.
Bye!


Included with that is:

    <trigger
   enabled="n"
   group="auto_consider"
   match="^You have set your character to receive no experience points\!$"
   omit_from_output="n"
   keep_evaluating="y"
   regexp="y"
   script="send_consider"
   send_to="12"
   sequence="1"
  >
  </trigger>

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Rincewind   (1 post)  [Biography] bio
Date Reply #77 on Thu 22 Sep 2016 08:56 PM (UTC)
Message
That's another trigger I've added for when a new mob appears in the room:


  <trigger
   enabled="n"
   group="auto_consider"
   match="^(.+) appears in the room\.$"
   omit_from_output="n"
   keep_evaluating="y"
   regexp="y"
   script="send_consider"
   send_to="12"
   sequence="1"
  >
  </trigger>
[Go to top] top

Posted by Fiendish   USA  (1,662 posts)  [Biography] bio   Global Moderator
Date Reply #78 on Sun 31 Dec 2017 08:46 AM (UTC)
Message
Aardwolf's Kobus (no forum account) has made a number of updates to the plugin. Here is the new code:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Friday, August 14, 2009, 6:13 AM -->
<!-- MuClient version 4.93 -->

<!-- Plugin "Consider_Window" generated by Plugin Wizard -->
<!-- Updates Made by Strazor on September 6, 2014
     1) Updated sPat variable to correctly escape in LUA and capture "-" and "." in mob names
     2) Updated some of the triggers to regular expressions
     3) Triggers should now capture Auras of Mobs in Minwin.  This is not perfect but works.
     4) Put a SPACE in match="\[ Exits\:.+$" to make the consider update work when moving
     5) Tested on Aardwolf Mudclient R1802 | Mushclient version 4.93 - http://www.aardwolf.com/play/downloadmc.htm -->
<!-- More updates by Kobus November 2017
	* Converted all consider triggers to regex including all possible flags, short or long
	* Replaced a gsub in adapt_consider with wildcard from the regex
	* Added gsub loop in adapt_consider for mobs with ?, ! or " in their names (nod Khannon)
	* Triggers now set color and level range variables for the miniwindow
	* Removed for loop in adapt_consider, no longer needed with color, range variables set by the triggers
	* Removed the consider_messages table as it is no longer needed with color, range set by the triggers
	* Added 2 triggers suggested on the forum for noexp and mob entry on repop
	* Removed call to adapt_consider when "You see no one here but yourself!"
	* Added 4 triggers for unkillable mobs (for omit only)
	* Added a trigger for mobs already being challenged (omit only)
	* Added a trigger for safe rooms (omit only)
	* Added suggestion on install for the help command 'conw ?'
-->
<muclient>
<plugin
   name="Aardwolf_Consider_Window"
   author="Blainer"
   id="584807a32cf46af04a1bece3"
   language="Lua"
   purpose="Display clickable consider command output."
   save_state="y"
   date_written="2009-08-14 06:12:14"
   requires="4.43"
   version="2.0"
   >
<description trim="y">
<![CDATA[
Put consider info in a miniwindow with commands.
Mostly copied from: http://www.gammon.com.au/forum/bbshowpost.php?id=8847
And: http://www.gammon.com.au/forum/?id=9664
]]>
</description>
</plugin>

<!--  Get our standard constants -->

<include name="constants.lua"/>
<!--  Triggers  -->

<triggers>
  <trigger
   enabled="n"
   regexp="y"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*(.+) looks a little worried about the idea\.$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "chartreuse"
mob_range = "-2 to -6"</send>
  </trigger>
  <trigger
   enabled="n"
   regexp="y"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*(.+) says 'BEGONE FROM MY SIGHT unworthy!'$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "darkviolet"
mob_range = "+41 to +50"</send>
  </trigger>
  <trigger
   enabled="n"
   regexp="y"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*(.+) should be a fair fight!$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "springgreen"
mob_range = "-2 to +2"</send>
  </trigger>
  <trigger
   enabled="n"
   regexp="y"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*(.+) snickers nervously\.$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "darkgoldenrod"
mob_range = "+2 to +3"</send>
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   regexp="y"
   match="^(\([A-Za-z ]+\) ?)*(.+) would be easy, but is it even worth the work out\?$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "darkgreen"
mob_range = "-10 to -19"</send>
  </trigger>
  <trigger
   enabled="n"
   regexp="y"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*(.+) would crush you like a bug!$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "lightpink"
mob_range = "+21 to +32"</send>
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*(.+) would dance on your grave!$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "darkmagenta"
mob_range = "+32 to +41"</send>
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*Best run away from (.+) while you can!$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "tomato"
mob_range = "+8 to +16"</send>
  </trigger>
  <trigger
   enabled="n"
   regexp="y"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*Challenging (.+) would be either very brave or very stupid\.$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "crimson"
mob_range = "+16 to +21"</send>
  </trigger>
  <trigger
   enabled="n"
   regexp="y"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*No Problem! (.+) is weak compared to you\.$"
   keep_evaluating="y"
   omit_from_output="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "forestgreen"
mob_range = "-6 to -9"</send>
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*You would be completely annihilated by (.+)!$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "magenta"
mob_range = "+50 and above"</send>
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*You would stomp (.+) into the ground\.$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "gray"
mob_range = "-19 and below"</send>
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^(\([A-Za-z ]+\) ?)*(.+) chuckles at the thought of you fighting"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   script="adapt_consider"
   sequence="100"
   send_to="12"
  >
  <send>mob_color = "gold"
mob_range = "+3 to +8"</send>
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^You see no one here but yourself!$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^.+ would smite you for killing .+!$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^.+ would not approve of you killing .+!$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^.+ has divine protection\.$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^.+ has already been challenged\.$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^If you killed .+, who would serve"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^Strange forces prevent violence here\.$"
   keep_evaluating="y"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   group="consider"
   match="^nhm$"
   omit_from_output="y"
   keep_evaluating="n"
   regexp="y"
   script="Show_Window"
   send_to="12"
   sequence="1"
  >
  </trigger>
  <trigger
   enabled="n"
   group="auto_consider"
   match="^You have set your character to receive no experience points!$"
   omit_from_output="n"
   keep_evaluating="y"
   regexp="y"
   script="send_consider"
   send_to="12"
   sequence="1"
  >
  </trigger>
  <trigger
   enabled="n"
   group="auto_consider"
   match="^.+ appears in the room\.$"
   omit_from_output="n"
   keep_evaluating="y"
   regexp="y"
   script="send_consider"
   send_to="12"
   sequence="1"
  >
  </trigger>
    <trigger
   enabled="n"
   group="auto_consider"
   match="^You receive .+ experience points\.$"
   omit_from_output="n"
   keep_evaluating="y"
   regexp="y"
   script="send_consider"
   send_to="12"
   sequence="1"
  >
  </trigger>
   <trigger
   enabled="n"
   group="auto_consider"
   match="^\[ Exits"
   omit_from_output="n"
   keep_evaluating="y"
   regexp="y"
   script="send_consider"
   send_to="12"
   sequence="1"
  >
  </trigger>
   <trigger
   enabled="n"
   group="auto_consider"
   match="^.+ has fled!$"
   omit_from_output="n"
   keep_evaluating="y"
   regexp="y"
   script="send_consider"
   send_to="12"
   sequence="1"
  >
  </trigger>

</triggers>
<!-- Aliases -->
<aliases>
  <alias
   script="conw"
   match="^conw\s(.*)$"
   keep_evaluating="y"
   enabled="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  </alias>
    <alias
   script="send_consider"
   match="^conw$"
   keep_evaluating="y"
   enabled="y"
   regexp="y"
   send_to="12"
   sequence="99"
  >
  </alias>
  <alias
   script="command_line"
   match="^(\d+)\s?(\w*)$"
   enabled="y"
   regexp="y"
   send_to="12"
   keep_evaluating="y"
   sequence="1"
  >
  </alias>
</aliases>
<!--  Script  -->
<script>
<![CDATA[
-- Options -----------------------------------------------
local BACKGROUND_COLOUR     = ColourNameToRGB "black"
local BORDER_COLOUR         = ColourNameToRGB "dimgray"
local DEFAULT_TEXT_COLOUR   = ColourNameToRGB "white"
local TEXT_OFFSET           = "4"
local BORDER_WIDTH          = "1"
local LINE_SPACING          = "1"
local FONT_NAME             = "Dina"
local FONT_SIZE             = 8
local WIN_STACK             = "aa"  -- Windows are stacked alphabetically, so a win named "aa" will sit on top of a win named "zz".
                                    -- Adjust this setting to get the window to sit in front or behind other windows.
local SHOW_WELCOME          = true
local TITLE                 = "consider all"
local ECHO_CONSIDER         = false -- show consider in command window
local SHOW_NO_MOB           = false -- show warning when considering an empty room

require "movewindow"
mob_color = "gray" -- Color set by the triggers - Kobus
mob_range = "0 to 0" -- Range set by the triggers - Kobus

-- Consider messages table removed, no longe needed - Kobus

replaceT =  { -- words to remove from Mobile's names to get the keyword
            ["a"] = "",
            ["A"] = "",
            ["an"] = "",
            ["An"] = "",
            ["the"] = "",
            ["The"] = "",
            ["of"] = "",
            ["Of"] = "",
            ["captured"] = "",
            ["damned"] = "",
            ["yummy"] = "",
            ["looking"] = "",
            ["wanders"] = "",
            ["beef"] = "",
            ["pot"] = "",
            ["scrumptious"] = "",
            ["tortured"] = "",
            ["Hell"] = "",
            ["largest"] = "",
            ["older"] = "",
            ["slithering"] = "",
            ["tiny"] = "",
            ["huge"] = ""
            }

targT = {}

function keyword_change (name, line, wildcards)

    if keyword_position == "end" then
        SetVariable ("keyword_position", "beginning")
    else
        SetVariable ("keyword_position", "end")
    end
    keyword_position = GetVariable ("keyword_position")

    ColourTell ("white", "blue", "Keywords will now be taken from the " .. keyword_position .. " of Mobile names. ")
    ColourNote ("", "black", " ")

end -- keyword_position

function conw (name, line, wildcards)

    --show help <conw ?>
    if wildcards[1] == "?" then
            a = {
                "conw - update window with consider all command.",
                "<num> <word> - Execute <word> with keyword from line <num> on consider window.",
                "<num> - Execute with default word.",
                "conw <word> - set default command.",
                "conw chng - swop keyword from beginning of name to end of name or vice-versa.",
                "conw auto - toggle auto update consider window on room entry and after combat.",
                "conw ? - show this help."
                }
        for i,v in ipairs (a) do
            sSpa = string.rep (" ", 20 - v:sub(1,v:find("-") - 1):len() )
            ColourTell ("yellow", GetInfo(271), v:sub(1,v:find("-") - 1) .. sSpa )
            ColourNote ("white", GetInfo(271), v:sub(v:find("-"), v:len() ))
        end
        return
    end

    if wildcards[1] == "auto" then
        if tonumber (GetVariable ("auto_conw")) == 1 then
            SetVariable ("auto_conw", 0)
            EnableTriggerGroup ("auto_consider", 0)
            ColourTell ("white", "blue", "Auto consider off.")
            ColourNote ("", "black", " ")
        else
            SetVariable ("auto_conw", 1)
            EnableTriggerGroup ("auto_consider", 1)
            ColourTell ("white", "blue", "Auto consider on.")
            ColourNote ("", "black", " ")
        end
        return
    end

    if wildcards[1] == "chng" then
        keyword_change ()
        return
    end

    if wildcards[1] and wildcards[1]:match ("^%w+$") then
        SetVariable ("default_command", wildcards[1])
        default_command = GetVariable ("default_command")
        ColourTell ("white", "blue", "Default command: " .. wildcards[1])
        ColourNote ("", "black", " ")
    end


end -- send_consider

function send_consider ()

    if GetVariable ("doing_consider") == "true" then
        return
    else
        SetVariable ("doing_consider", "true")
        EnableTriggerGroup ("consider", true)
        SendNoEcho ("consider all")
        SendNoEcho ("echo nhm")
        targT = {}
    end

end -- send_consider

function execute_command (id, s)

    if not s then
        return
    end

    s = s:match ("^([%w']+)%:%d+$")
    Execute (default_command .. " " .. s)
    ColourTell ("white", "blue", default_command .. " " .. s)
    ColourNote ("", "black", " ")

end -- execute_command

function command_line (name, line, wildcards)

    iNum = tonumber (wildcards[1])
    if iNum > #targT then
        return
    end

    if wildcards[2] == "" then
        sKey = default_command
    else
        sKey = tostring (wildcards[2])
    end

    if targT[iNum] then
        Execute (sKey .. " " .. targT[iNum].keyword)
        ColourTell ("white", "blue", sKey .. " " .. targT[iNum].keyword .. " ")
        ColourNote ("", "black", " ")
    else
        ColourTell ("white", "blue", "no target in targT ")
        ColourNote ("", "black", " ")
    end

end -- command_line

function adapt_consider (name, line, wildcards)
    mob = nil
	mob = wildcards[2] -- New version because of regex triggers - Kobus
	while string.match(mob,[=[[?!",]]=]) do -- Pull out ? and ! - Kobus
		mob = string.gsub(mob,"%?","")
		mob = string.gsub(mob,"!","")
		mob = string.gsub(mob,[=["]=],"")
		mob = string.gsub(mob,[=[,]=],"")
	end -- Stripping ? ! " and , from mob names -- Kobus
    if keyword_position == "end" then
        sPat = "[%w\\-\\.]+$"
    else
        sPat = "^[%w\\-\\.]+"
    end
	-- Removed for loop here, no longer necessary with color, range set by triggers - Kobus
    if mob then
        t = {
            keyword = mob:gsub ("%w+", function (str) return replaceT [str] end ):gsub("^%s+", ""):gsub("%s+$", ""):match(sPat),
            name    = mob,
            line    = line,
            colour  = mob_color,
            range   = "(" .. mob_range .. ")",
            message = line
            } -- Changed to use color, range set by triggers - Kobus
        if ECHO_CONSIDER then
            ColourNote (mob_color, "", line .. " (" .. mob_range .. ")" )
			-- Changed to use color, range set by triggers - Kobus
        end
        table.insert (targT, t)
    end -- if


    if not mob and SHOW_NO_MOB then
        ColourTell ("white", "blue", "Could not find anything: " .. line)
        ColourNote ("", "black", " ")
    end -- not  found in table

end -- adapt_consider

function Draw_Title ()

    --draw the title and add drag hotspot
    top     = BORDER_WIDTH + LINE_SPACING
    bottom  = top + font_height
    left    = BORDER_WIDTH + TEXT_OFFSET
    right   = WindowInfo (win, 3)
    movewindow.add_drag_handler (win, 0, top, right, bottom, 1)
    WindowText (win, font_id, TITLE .. " (" .. default_command .. ")", left, top, right, bottom, BORDER_COLOUR)

    -- draw drag bar rectangle
    WindowRectOp (win, 1, 0, 0, WindowInfo (win, 3) , WindowInfo (win, 4), BORDER_COLOUR)

    banner_height = bottom + LINE_SPACING + BORDER_WIDTH

end -- MakeTitle

function Show_Window ()

    -- get width and height and draw the window
    if #targT > 0 then
        for i,v in ipairs (targT) do
            window_width = math.max (WindowTextWidth (win, font_id, tostring (i) .. ". " .. v.name .. " " .. v.range) + TEXT_OFFSET * 2 + BORDER_WIDTH * 2, banner_width, window_width)
        end
    else
        window_width = banner_width
    end
    window_height = banner_height * 1.2 + #targT * (font_height + LINE_SPACING)

    WindowCreate (win,
         windowinfo.window_left,
         windowinfo.window_top,
         window_width,     -- width
         window_height,  -- height
         windowinfo.window_mode,
         windowinfo.window_flags,
         BACKGROUND_COLOUR)

    -- draw each line
    top     = banner_height + LINE_SPACING
    left    = TEXT_OFFSET + BORDER_WIDTH
    bottom  = top + font_height

    for i,v in ipairs (targT) do
        sLine = tostring (i) .. ". " .. v.name .. " " .. v.range
        right   = WindowTextWidth (win, font_id, sLine) + left
        WindowText (win, font_id, sLine, left, top, right, bottom, ColourNameToRGB (v.colour))
        sBalloon = v.line .. " " .. v.range .. "\n\n" .. "Click to Execute: '" .. default_command .. " " ..  v.keyword .. "'"
        WindowAddHotspot (win, v.keyword .. ":" .. tostring (i), left, top, right, bottom,
            "", -- MouseOver
            "", -- CancelMouseOver
            "", -- MouseDown
            "", -- CancelMouseDown
            "execute_command", -- MouseUp
            sBalloon,
            1, -- Cursor
            0) --  Flag
        top     = bottom + LINE_SPACING
        bottom  = top + font_height
    end

    --draw the title
    Draw_Title()

    WindowShow (win, true)
    SetVariable ("doing_consider", "false")
    EnableTriggerGroup ("consider", false)

end -- Show_Consider

function Show_Banner ()

    window_width = title_width + BORDER_WIDTH * 2 + TEXT_OFFSET * 2
    window_height = font_height + LINE_SPACING * 2 + descent

    WindowCreate (win,
         windowinfo.window_left,
         windowinfo.window_top,
         window_width,     -- width
         window_height,  -- height
         windowinfo.window_mode,
         windowinfo.window_flags,
         BACKGROUND_COLOUR)

    Draw_Title ()

    WindowShow (win, true)

end -- ShowBanner

function OnPluginInstall ()

    if SHOW_WELCOME then
        Note("Consider_Window.xml installed")
		-- Suggest help command - Kobus
		Note("For a list of commands type 'conw ?'")
    end

    win = WIN_STACK .. GetPluginID ()

    local fonts = utils.getfontfamilies ()
    if fonts[FONT_NAME] then
        font_size = FONT_SIZE
        font_name = FONT_NAME
    elseif fonts.Dina then
        font_size = 8
        font_name = "Dina"    -- the actual font
    else
        font_size = 10
        font_name = "Courier"
    end -- if

    font_id = "consider_font"

    windowinfo = movewindow.install (win, 6, miniwin.create_absolute_location)

    check (WindowCreate (win,
        windowinfo.window_left,
        windowinfo.window_top,
        1, 1,
        windowinfo.window_mode,
        windowinfo.window_flags,
        BACKGROUND_COLOUR) )

    WindowFont (win, font_id, font_name, font_size, false, false, false, false, 0, 0)  -- normal
    font_height = WindowFontInfo (win, font_id, 1)  -- height
    ascent = WindowFontInfo (win, font_id, 2)
    descent = WindowFontInfo (win, font_id, 3)

    default_command = GetVariable ("default_command") or "kill"
    keyword_position = GetVariable ("keyword_position") or "end"

    SetVariable ("doing_consider", "false")

    auto_conw = GetVariable ("auto_conw") or 1

    EnableTriggerGroup ("auto_consider", auto_conw)

    if GetVariable ("enabled") == "false" then
        ColourNote ("yellow", "", "Warning: Plugin " .. GetPluginName ().. " is currently disabled.")
        check (EnablePlugin(GetPluginID (), false))
        return
    end -- they didn't enable us last time

    OnPluginEnable ()

end -- OnPluginInstall

function OnPluginEnable ()

    title_width = WindowTextWidth (win, font_id, TITLE .. " (" .. default_command .. ")")
    banner_width = title_width + BORDER_WIDTH * 2 + TEXT_OFFSET * 2
    Show_Banner ()

end -- OnPluginEnable

function OnPluginDisable ()

  WindowShow (win, false)

end -- OnPluginDisable

function OnPluginSaveState ()

  SetVariable ("enabled", tostring (GetPluginInfo (GetPluginID (), 17)))
  SetVariable ("doing_consider", "false")
  movewindow.save_state (win)

end -- OnPluginSaveState

]]>
</script>
</muclient>

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


80,046 views.

This is page 6, subject is 6 pages long:  [Previous page]  1  2  3  4  5  6 

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]