Small Mudlet scripts

TeaniTeani Evening SkySwedenMember Posts: 2,106 ✭✭✭✭✭
I thought I'd share a few small things I made for Mudlet that just looks neat and can be of some use to people. The only reason they are in Pastebin is because I use color tags, and they do not translate when writing these posts for some reason. If someone lets me know how, I'll edit the post and put them in!

Having trouble with date/time conversion? Here's a small script with the more common timezones and how they correspond to the Aetolian weekdays. (Note OZ = Australia, KIWI = New Zealand)

https://pastebin.com/WGDJ4YXc


The colors can be removed by taking out all markers. You can also change the color names if you do not have the proper ones scripted.

--------------------------------

If you want the full color table I use, this is it. Just put it in a script, and you have it too.

color_table = {
AliceBlue = {240, 248, 255},
alice_blue = {240, 248, 255},
amaranth = {159, 43, 104},
amber = {255, 191, 0},
amethyst = {153, 102, 204},
AntiqueWhite = {250, 235, 215},
antique_white = {250, 235, 215},
apple = {141, 182, 0},
aqua = {2, 132, 130} ,
aquamarine = {127, 255, 212},
ash = {178, 190, 181},
azure = {51, 102, 153},
BabyBlue = {137, 207, 240},
beige = {245, 245, 220},
bisque = {255, 228, 196},
black = {0, 0, 0},
BlanchedAlmond = {255, 235, 205},
blanched_almond = {255, 235, 205},
blood = {138, 7, 7},
blue = {0, 0, 255},
BlueGray = {102, 153, 204},
blue_gray = {102, 153, 204},
blue_grey = {102, 153, 204},
BlueGreen = {13, 152, 186},
blue_green = {13, 152, 186},
BlueViolet = {138, 43, 226},
blue_violet = {138, 43, 226},
bronze = {205, 127, 50},
brown = {165, 42, 42},
burgundy = {144, 0, 32},
burlywood = {222, 184, 135},
BurntOrange = {204, 85, 0},
burnt_orange = {204, 85, 0},
CadetBlue = {95, 158, 160},
cadet_blue = {95, 158, 160},
cardinal = {196, 30, 58},
carmine = {150, 0, 24},
carnelian = {179, 27, 27},
cerise = {222, 49, 99},
cerulean = {0, 123, 167},
charcoal = {54, 69, 79},
chartreuse = {127, 255, 0},
chestnut = {149, 69, 53},
chocolate = {123, 36, 0},
citrine = {228, 208, 10},
cobalt = {0, 71, 171},
cold_black = {0, 46, 99},
copper = {184, 115, 51},
coral = {255, 127, 80},
CornflowerBlue = {100, 149, 237},
cornflower_blue = {100, 149, 237},
cornsilk = {255, 248, 220},
cream = {255, 253, 208},
crimson = {220, 20, 60},
cyan = {0, 255, 255},
DarkBlue = {0, 0, 139},
dark_blue = {0, 0, 139},
DarkGoldenrod = {184, 134, 11},
dark_goldenrod = {184, 134, 11},
DarkGreen = {0, 100, 0},
dark_green = {0, 100, 0},
dark_khaki = {189, 183, 107},
DarkKhaki = {189, 183, 107},
dark_olive_green = {85, 107, 47},
DarkOliveGreen = {85, 107, 47},
dark_orange = {255, 140, 0},
DarkOrange = {255, 140, 0},
dark_orchid = {153, 50, 204},
DarkOrchid = {153, 50, 204},
dark_red = {139, 0, 0},
DarkRed = {139, 0, 0},
dark_salmon = {233, 150, 122},
DarkSalmon = {233, 150, 122},
dark_sea_green = {143, 188, 143},
DarkSeaGreen = {143, 188, 143},
DarkSlateBlue = {72, 61, 139},
dark_slate_blue = {72, 61, 139},
DarkSlateGray = {47, 79, 79},
dark_slate_gray = {47, 79, 79},
dark_slate_grey = {47, 79, 79},
DarkTurquoise = {0, 206, 209},
dark_turquoise = {0, 206, 209},
DarkViolet = {148, 0, 211},
dark_violet = {148, 0, 211},
DeepPink = {255, 20, 147},
deep_pink = {255, 20, 147},
DeepSkyBlue = {0, 191, 255},
deep_sky_blue = {0, 191, 255},
dim_gray = {105, 105, 105},
dim_grey = {105, 105, 105},
DimGray = {105, 105, 105},
dodger_blue = {30, 144, 255},
DodgerBlue = {30, 144, 255},
earthy = {225, 169, 95},
ebony = {85, 93, 80},
eggplant = {97, 64, 81},
emerald = {80, 200, 120},
fallow = {193, 154, 107},
fawn = {229, 170, 112},
fern = {113, 188, 120},
firebrick = {178, 34, 34},
flaxen = {238, 220, 130},
FloralWhite = {255, 250, 240},
floral_white = {255, 250, 240},
ForestGreen = {1, 68, 33},
forest_green = {1, 68, 33},
fuchsia = {199, 67, 117},
gainsboro = {220, 220, 220},
garnet = {135, 7, 31},
GhostWhite = {248, 248, 255},
ghost_white = {248, 248, 255},
gold = {212, 175, 55},
golden = {240, 169, 10},
goldenrod = {218, 165, 32},
gray = {190, 190, 190},
grey = {190, 190, 190},
green = {0, 255, 0},
GreenYellow = {173, 255, 47},
green_yellow = {173, 255, 47},
honeydew = {240, 255, 240},
HotPink = {255, 105, 180},
hot_pink = {255, 105, 180},
hunter_green = {53, 94, 59},
HunterGreen = {53, 94, 59},
IndianRed = {205, 92, 92},
indian_red = {205, 92, 92},
indigo = {75, 0, 130},
iris = {138, 43, 226},
ivory = {255, 255, 240},
jade = {0, 168, 107},
jet_black = {5, 0, 2},
kawhe = {111, 78, 55},
khaki = {240, 230, 140},
lavender = {181, 126, 220},
LavenderBlush = {255, 240, 245},
lavender_blush = {255, 240, 245},
lawn_green = {124, 252, 0},
LawnGreen = {124, 252, 0},
lemon = {255, 244, 79},
lemon_chiffon = {255, 250, 205},
LemonChiffon = {255, 250, 205},
LightBlue = {173, 216, 230},
light_blue = {173, 216, 230},
LightCoral = {240, 128, 128},
light_coral = {240, 128, 128},
LightCyan = {224, 255, 255},
light_cyan = {224, 255, 255},
LightGoldenrod = {238, 221, 130},
light_goldenrod = {238, 221, 130},
LightGoldenrodYellow = {250, 250, 210},
light_goldenrod_yellow = {250, 250, 210},
LightGray = {211, 211, 211},
light_gray = {211, 211, 211},
light_grey = {211, 211, 211},
LightPink = {255, 182, 193},
light_pink = {255, 182, 193},
LightSalmon = {255, 160, 122},
light_salmon = {255, 160, 122},
LightSeaGreen = {32, 178, 170},
light_sea_green = {32, 178, 170},
LightSkyBlue = {135, 206, 250},
light_sky_blue = {135, 206, 250},
LightSlateBlue = {132, 112, 255},
light_slate_blue = {132, 112, 255},
LightSlateGray = {119, 136, 153},
light_slate_gray = {119, 136, 153},
light_slate_grey = {119, 136, 153},
LightSteelBlue = {176, 196, 222},
light_steel_blue = {176, 196, 222},
LightYellow = {255, 255, 224},
light_yellow = {255, 255, 224},
lilac = {220, 208, 255},
lime = {50, 205, 50},
lime_green = {50, 205, 50},
LimeGreen = {50, 205, 50},
linen = {250, 240, 230},
madder = {118, 79, 82},
magenta = {255, 0, 255},
mahogany = {192, 64, 0},
maroon = {128, 0, 0},
mauve = {224, 176, 255},
medium_aquamarine = {102, 205, 170},
MediumAquamarine = {102, 205, 170},
medium_blue = {0, 0, 205},
MediumBlue = {0, 0, 205},
medium_orchid = {186, 85, 211},
MediumOrchid = {186, 85, 211},
medium_purple = {147, 112, 219},
MediumPurple = {147, 112, 219},
medium_sea_green = {60, 179, 113},
MediumSeaGreen = {60, 179, 113},
medium_slate_blue = {123, 104, 238},
MediumSlateBlue = {123, 104, 238},
medium_spring_green = {0, 250, 154},
MediumSpringGreen = {0, 250, 154},
medium_turquoise = {72, 209, 204},
MediumTurquoise = {72, 209, 204},
medium_violet_red = {199, 21, 133},
MediumVioletRed = {199, 21, 133},
midnight_blue = {25, 25, 112},
MidnightBlue = {25, 25, 112},
mint = {62, 180, 137},
mint_cream = {245, 255, 250},
MintCream = {245, 255, 250},
misty_rose = {255, 228, 225},
MistyRose = {255, 228, 225},
moccasin = {255, 228, 181},
moss_green = {173, 223, 173},
MossGreen = {173, 223, 173},
mustard = {255, 219, 88},
navajo_white = {255, 222, 173},
NavajoWhite = {255, 222, 173},
navy = {0, 0, 128},
obsidian = {52, 54, 55},
ocean_blue = {28, 169, 201},
OceanBlue = {28, 169, 201},
old_lace = {253, 245, 230},
OldLace = {253, 245, 230},
olive = {174, 176, 93},
olive_drab = {107, 142, 35},
OliveDrab = {107, 142, 35},
onyx = {53, 56, 57},
orange = {255, 127, 0},
orange_red = {255, 69, 0},
OrangeRed = {255, 69, 0},
orange_yellow = {255, 159, 0},
OrangeYellow = {255, 159, 0},
orchid = {218, 112, 214},
pale_goldenrod = {238, 232, 170},
PaleGoldenrod = {238, 232, 170},
pale_green = {152, 251, 152},
PaleGreen = {152, 251, 152},
pale_turquoise = {175, 238, 238},
PaleTurquoise = {175, 238, 238},
pale_violet_red = {219, 112, 147},
PaleVioletRed = {219, 112, 147},
papaya_whip = {255, 239, 213},
PapayaWhip = {255, 239, 213},
peach = {255, 229, 180},
peach_puff = {255, 218, 185},
PeachPuff = {255, 218, 185},
peacock = {35, 179, 231},
pear = {209, 226, 49},
periwinkle = {204, 204, 255},
peru = {205, 133, 63},
pink = {255, 192, 203},
plum = {142, 69, 133},
pomegranate = {242, 31, 31},
powder_blue = {176, 224, 230},
PowderBlue = {176, 224, 230},
purple = {128, 0, 128},
red = {255, 0, 0},
rose = {255, 0, 127},
rosy_brown = {188, 143, 143},
RosyBrown = {188, 143, 143},
royal_blue = {65, 105, 225},
RoyalBlue = {65, 105, 225},
ruby = {224, 17, 95},
ruddy = {187, 101, 40},
russet = {128, 70, 27},
rust = {183, 65, 14},
sable = {62, 53, 38},
saddle_brown = {139, 69, 19},
SaddleBrown = {139, 69, 19},
saffron = {244, 196, 48},
salmon = {250, 128, 114},
sand = {194, 178, 128},
sandy_brown = {244, 164, 96},
SandyBrown = {244, 164, 96},
sanguine = {108, 55, 54},
sapphire = {15, 82, 186},
scarlet = {255, 36, 0},
sea_green = {46, 139, 87},
SeaGreen = {46, 139, 87},
seashell = {255, 245, 238},
sepia = {112, 66, 20},
sienna = {160, 82, 45},
silver = {192, 192, 192},
sky_blue = {135, 206, 235},
SkyBlue = {135, 206, 235},
slate_blue = {106, 90, 205},
SlateBlue = {106, 90, 205},
slate_gray = {112, 128, 144},
slate_grey = {112, 128, 144},
SlateGray = {112, 128, 144},
sloe_black = {0, 10, 51},
sloe_blue = {82, 118, 137},
smoke = {245, 245, 245},
smoky = {95, 95, 95},
snow = {255, 250, 250},
spring_green = {0, 255, 127},
SpringGreen = {0, 255, 127},
steel = {123, 144, 149},
steel_blue = {70, 130, 180},
SteelBlue = {70, 130, 180},
straw = {228, 217, 111},
sunglow = {255, 204, 51},
sunset = {253, 94, 83},
tan = {210, 180, 140},
tawny = {205, 87, 0},
teal = {0, 128, 128},
thistle = {216, 191, 216},
tomato = {255, 99, 71},
turquoise = {64, 224, 208},
umber = {99, 81, 71},
verdigris = {26, 70, 68},
vermilion = {227, 66, 52},
violet = {127, 0, 255},
violet_red = {208, 32, 144},
VioletRed = {208, 32, 144},
viridian = {64, 130, 109},
WarmBlack = {0, 66, 66},
warm_black = {0, 66, 66},
wheat = {245, 222, 179},
white = {255, 255, 255},
white_smoke = {245, 245, 245},
WhiteSmoke = {245, 245, 245},
wine = {114, 47, 55},
woad_blue = {23, 23, 63},
WoadBlue = {23, 23, 63},
yellow = {255, 255, 0},
yellow_green = {154, 205, 50},
YellowGreen = {154, 205, 50},
}


And for a neat display of all the colors, simply add this alias:

https://pastebin.com/vU4kLnCN



Ephi

Comments

  • TekiasTekias WisconsinMember Posts: 414 ✭✭✭
    edited May 23
    Farmers, wanting to know how much RL time you have left per season? I got a script for you. Somewhere, either after login or in your defup script, add this line:

    sendGMCP('Core.Supports.Add ["IRE.Time 1"]')

    Then, in a script, add this function

    function SeasonLeft()
    sendGMCP("IRE.Time.Request")
    local month = tonumber(gmcp.IRE.Time.List.month)
    local day = tonumber(gmcp.IRE.Time.List.day)
    local time = tonumber(gmcp.IRE.Time.List.daynight)
    local remainingday
    local remainingtime = 4
    local timeleft = 0
    local season = 0
    local readout
    remainingday = (((((month - 1) * 25) + day) + 15) * 4)
    time = time + 50
    if time >= 200 then time = time - 200 end
    while time < 150 do
    time = time + 50
    remainingtime = remainingtime - 1
    end
    while (remainingday - remainingtime) >= 296 do
    remainingday = remainingday - 300
    season = season + 1
    end
    remainingday = 300 - remainingday
    if season == 0 then seasonname = "Winter" end
    if season == 1 then seasonname = "Spring" end
    if season == 2 then seasonname = "Summer" end
    if season == 3 then seasonname = "Autumn" end
    timeleft = (remainingday - remainingtime)
    readout = timeleft .. " hours left in " .. seasonname
    return readout
    end


    End result: A string that says "X hours left in (Season)" that you can plug in where you need it.
    Formerly: Spiegel. Eidycue.

    Hi.

    image
    EscelikaKeroc
  • TekiasTekias WisconsinMember Posts: 414 ✭✭✭
    edited May 24
    I also have a small(?) one that EVERYONE can use! Ever wonder how many platinum milestones you've done, how many keystones you'll get? I have three triggers that will do all that work for you.

    EXACT MATCH
    # Info Keys Progress
    Edit: Forum kills my formatting. Copy the top line from your CM printout and use that
    platcomp = 0
    unclaimed = 0
    unclcheck = {}


    PERL REGEX
    ^(\d+)\).+((?:1|2|3|4|6|8))\s+((?:UNCLAIMED!|0 \/ 1|0 \/ 2|1 \/ 2|\d+ \/ 50))$
    if matches[4] == "UNCLAIMED!" then
    platcomp = platcomp + 1
    unclaimed = unclaimed + tonumber(matches[3])
    unclcheck[platcomp] = tonumber(matches[3])
    end


    EXACT MATCH
    -------------------------------------------------------------------------------
    if platcomp > 0 then
    if platcomp < 10 then
    plspacer = " "
    else
    plspacer = ""
    end
    if unclaimed < 10 then
    unspacer = " "
    else
    unspacer = ""
    end
    yield = 0
    sorter = 1
    local sorted = {}
    local pcheck = 0
    while pcheck < platcomp do
    pcheck = pcheck + 1
    if unclcheck[pcheck] == 8 then
    sorted[sorter] = unclcheck[pcheck]
    sorter = sorter + 1
    end
    end
    pcheck = 0
    while pcheck < platcomp do
    pcheck = pcheck + 1
    if unclcheck[pcheck] == 6 then
    sorted[sorter] = unclcheck[pcheck]
    sorter = sorter + 1
    end
    end
    pcheck = 0
    while pcheck < platcomp do
    pcheck = pcheck + 1
    if unclcheck[pcheck] == 4 then
    sorted[sorter] = unclcheck[pcheck]
    sorter = sorter + 1
    end
    end
    pcheck = 0
    while pcheck < platcomp do
    pcheck = pcheck + 1
    if unclcheck[pcheck] == 3 then
    sorted[sorter] = unclcheck[pcheck]
    sorter = sorter + 1
    end
    end
    pcheck = 0
    while pcheck < platcomp do
    pcheck = pcheck + 1
    if unclcheck[pcheck] == 2 then
    sorted[sorter] = unclcheck[pcheck]
    sorter = sorter + 1
    end
    end
    pcheck = 0
    while pcheck < platcomp do
    pcheck = pcheck + 1
    if unclcheck[pcheck] == 1 then
    sorted[sorter] = unclcheck[pcheck]
    sorter = sorter + 1
    end
    end
    pcheck = 0
    while pcheck < 15 and pcheck < platcomp do
    pcheck = pcheck + 1
    yield = yield + sorted[pcheck]
    end
    if yield > 30 then yield = 30 end
    if yield < 10 then yspacer = " " else yspacer = "" end
    yielddis = " Keystone Yield: " .. yspacer .. yield .. " "
    if platcomp < 10 then platspacer = " " else platspacer = "" end
    if unclaimed < 10 then unclspacer = " " else unclspacer = "" end
    milestonereadout = " Milestones Completed: " .. platspacer .. platcomp .. " | Keystones Earned: " .. unclspacer .. unclaimed .. " |" .. yielddis
    --hecho("\n" .. RBText(milestonereadout))
    cecho("\n" .. milestonereadout)
    end
    platcomp = 0
    unclaimed = 0


    I'm sure that last one could be optimized, but as it is, all you have to do is check your CM list and it will spit out a line at the bottom. For instance, here's mine at present:


    At present, it IS accounting for the May promo expanding it to 15 milestones/30 keystones, but just change 2 key lines to make it go back to 10/20

    while pcheck < 15 and pcheck < platcomp do
    should be 10 and

    if yield > 30 then yield = 30 end
    should be 20 each
    Formerly: Spiegel. Eidycue.

    Hi.

    image
    Teani
Sign In or Register to comment.