Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Badges

Lionas ✭✭✭✭✭

About

Username
Lionas
Joined
Visits
4,972
Last Active
Roles
Member, Historian
Points
1,136
Posts
765
Badges
25
  • Re: iLua/IMTS coding and scripting megathread

    Going to leave this here, more or less the only useful thing I have left in ilua. Yes, parsing it out with gsubs is about as ugly as it gets, but I wrote it in a hurry and never bothered to make the old ilua version cleaner.
     
    EDIT: Apparently code tags aren't a thing/are broken.
     
    require("curl")

    function alias_handler( input )
    if string.match(input, "^truehonors %w+$") then
    local buffer = {}
    local c = curl.easy_init()
    c:setopt(curl.OPT_CONNECTTIMEOUT,'5')
    c:setopt(curl.OPT_WRITEFUNCTION,
    function (s, len) table.insert(buffer,s) return len end)
    res = c:perform()
    local pat = "Information about %w+ from Imperian.*Pk level: %d+"
    local stuffIwant = ""
    for i,v in ipairs(buffer) do if(string.match(v,pat)) then stuffIwant = string.match(v,pat) end end
    stuffIwant = string.gsub(stuffIwant,"</h3>","")
    stuffIwant = string.gsub(stuffIwant,"<[/]?div>","")
    stuffIwant = string.gsub(stuffIwant,"Imperian","Imperian\n")
    stuffIwant = string.gsub(stuffIwant,"Full name","\nFull name")
    stuffIwant = string.gsub(stuffIwant,"City","\nCity")
    stuffIwant = string.gsub(stuffIwant,"Guild","\nGuild")
    stuffIwant = string.gsub(stuffIwant,"Towne","\nTowne")
    stuffIwant = string.gsub(stuffIwant,"Level","\nLevel")
    stuffIwant = string.gsub(stuffIwant,"Bashing","\nBashing")
    stuffIwant = string.gsub(stuffIwant,"Questing","\nQuesting")
    stuffIwant = string.gsub(stuffIwant,"Pk","\nPk")
    echo(stuffIwant)
    return(true)
    end
    end
    mb.client_aliases = alias_handler
    Asai
  • Re: Now Playing

    Slightly off topic, Today is the 20th anniversary of the release of Tombstone. Go watch it!
    Sarciossis
  • Re: Cult and Sect Expansion

    Tahirah said:
    I guess I did as a newb speak rather out of turn, without knowing what sort of admin we have at our expense. Was thinking along the lines of overall activity - Person A hunts a eff-ton but person B preaches/practices/lives this sect's ideals an eff-ton also. I suppose so neither can be overlooked. you're right though, it would be hard to monitor without admin to have time to more or less sneak a peek at what various members are up to.
    Well, you're talking cross purposes here. The player that spends time preaching should get noticed by the sect's entity and rewarded with an entity favor, but that isn't something that plays into the kind of system we're talking about here with shrines.
    TahirahAhkan
  • Re: Now Playing

    Bathan said:
    Ahkan showed me a hilarious League of Legends video, and I really enjoyed this song from it. It's basically been my Imperian teamfight music of choice. The soundbytes really make it for me: 'Round one!' 'You win!' 'You lose!'

    http://www.youtube.com/watch?v=-CzBYn7iRS
    HADOKEN
    VelionAhkan
  • Re: Quotes

    Menoch said:
    ETA2 (upon reflection): In addition to you asking me every. single. time. we were both logged in at the same time for help, like in monos or obelisks or etc, you also never asked your new bosum buddies for aid. I didn't see you getting Kabahkan to team with you going 2v5, although I was always first on said list. But Kryss and Septus aren't major fighters right?

    Then you don't pay much attention.
    Ahkan