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

Mudlet Scripts

AnnekeAnneke Member Posts: 16
Hello, I've done some searches and googling, found a couple scripts, but apparently most links are old or broken. I'm looking for something to make harvesting, gathering, extraction, synthesis, etc a bit easier. Yes, I could totally make a crap ton of aliases to do this, but I'd rather have something a bit more clean. If anyone can put something decent together that would be great, I can pay if needed. Thanks.

Comments

  • JonathinJonathin A hole in the groundMember Posts: 3,040 @@ - Legendary Achaean
    I don't have anything for synthesis, but check out the links in my signature. P sure I've got the rest in there somewhere.

    (Mudlet Clan): Nylian says, "Mosr's on the case. Fix incoming."

    Tutorials and scripts  The Repository

  • AnnekeAnneke Member Posts: 16
    That works, thanks.
  • KyrraKyrra Sanctum of the SkyMember Posts: 4,162 @@ - Legendary Achaean
    edited December 2016
    This one by @Mishgul is pretty awesome for Harvesting, Gathering, and Extracting!

    http://forums.achaea.com/discussion/3047/harvester-gatherer-extractor/

    It's just missing the harvesting definitions for Svof in the latest version, which he really ought to update back in. But they can easily just be added onto a new script in the Harvesting folder so the custom prompt works.

    function HarvestingDefinitions()
    
    	svo.adddefinition("@harvmode", "returnHarvMode()")
    
    end
    
    function returnHarvMode()
    	local string = ""
     	if harvesting then
    		string = string .. "[Harv]"
    	end
    	if extracting then
    		string = string .. "[Extr]"
    	end
    	if gathering then
    		string = string .. "[Gath]"
    	end
    	return string
    end

    (D.M.A.): Cooper says, "Kyrra is either the most innocent person in the world, or the girl who uses the most innuendo seemingly unintentionally but really on purpose."

    Anneke
  • AnnekeAnneke Member Posts: 16
    That's amazingly hot... thank you!
    Kyrra
  • AnnekeAnneke Member Posts: 16
    On a slightly different note... does anyone have a working conjuration script I can have/buy/steal or what ever? I've tried using some of the enchanting scripts I've found but the only working one I found has missing pieces. Since I'm not a coder I don't know how to fix it without ruining everything, which by the way, I'm amazing at doing.

    If anyone has anything please let me know, thank you!
  • DragonknightDragonknight Member Posts: 220 ✭✭✭✭ - Eminent
    There is one inside Svo
  • AnnekeAnneke Member Posts: 16
    Okay, didn't think to look there, found it. Do you know if I have to set anything up, can it do multiples at a time, etc?
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    The documentation is your friend: http://svof.github.io/svof/enchanter.html

    If you have the medallion, use "vconfig haveenchantmentmedallion", if you don't have a standard pack or need to specify a pack ID, use vconfig enchantgetgold <command> and vconfig enchantputgold <command>
  • AnnekeAnneke Member Posts: 16
    Thank you! You're amazing!
  • AnnekeAnneke Member Posts: 16
    Uhhh... something else, I don't see anything in the script for imbuing on scrolls.. is it in there and I'm just not seeing it?
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    just use the scroll as item to enchant
    Kyrra
  • AnnekeAnneke Member Posts: 16
    Okay, I'm just an idiot I think. I believe I've figured it out. Thank you again :)
  • AmerothAmeroth Member Posts: 21

    input_var = "1123" --Coming from another function/event/trigger etc

    output_var = ""

     

    table1 = {

     

    var1 = {store1 = "command1", store2 = "command2", store3 = "command3", store4 = "command4", currentcount = 1, count = 4},

    var2 = {store1 = "command1", store2 = "command2", store3 = "command3", store4 = "command4", currentcount = 1, count = 4},

    var3 = {store1 = "command1", store2 = "command2", currentcount = 1, count = 2},

    var4 = {store1 = "command1", store2 = "command2", store3 = "command3", currentcount = 1, count = 3},

     

    }

     

     

     

    -- var1, var2 etc will be numbers

    -- input_var will be number

    -- command1, command2, etc will be string

     

     

    for i ,v in pairs(table1) do

     

    if i == input_var then

     

    output_var = v.store[currentcount]

     

    currentcount = currentcount + 1

     

    if currentcount == count then

     

    currentcount = 1

     

    end

    end

    end

     

    send("output_var")

     

    So basically if var1 is the same as input_var and var1.currentcount is 1 then output_var should be command1,then var1.currentcount should be 2.

     

    else if var2 is the same as input_var  and var2.currentcount is 4 then output_var should be command4, then var2.currentcount should reset back to 1

  • AmerothAmeroth Member Posts: 21
    Trying to remember what's the proper way to combine stored values and strings to reference already defined keys in a way that would make above script work, apologies for bad post layouts writing from phone.
  • AntoniusAntonius Member Posts: 3,921 @@ - Legendary Achaean
    edited April 13

    If you want to access the value referenced in a table by a variable key, you need to use the square bracket notation:

    v["store" .. currentcount]

Sign In to Comment.