change Lootomatic Setting at start Macro
-
- Posts: 12
- Joined: Sat Jul 23, 2011 7:22 pm
change Lootomatic Setting at start Macro
change Lootomatic Setting at start Macro (In Onload)
i have search for the setting and how i can take her in a macro but i dont get it start.
i wont a standart setting if i start a specific macro with this settings
Lootomatic = Enabled
Roll: Normal
Autoloot: rare/loot Boss
Autopass: Never
Autogreed: Rare
thanks for help
i have search for the setting and how i can take her in a macro but i dont get it start.
i wont a standart setting if i start a specific macro with this settings
Lootomatic = Enabled
Roll: Normal
Autoloot: rare/loot Boss
Autopass: Never
Autogreed: Rare
thanks for help
Re: change Lootomatic Setting at start Macro
I think they might be
I think that should work.
Code: Select all
RoMScript("}
Lootomatic_Settings.Enabled = true;
Lootomatic_Settings.Roll = 3; -- 'Normal'
Lootomatic_Settings.AutoLoot = 5; -- 'Rare'
Lootomatic_Settings.AutoLootBoss = true;
Lootomatic_Settings.AutoPass = 1; -- 'never'
Lootomatic_Settings.AutoGreed = 5; -- 'Rare'
a={")
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 12
- Joined: Sat Jul 23, 2011 7:22 pm
Re: change Lootomatic Setting at start Macro
no Rock if i copie this in the ONLOAD Line he brakes up when i load the macro
Re: change Lootomatic Setting at start Macro
When you say macro do you mean when you start the bot?Ballerlocke wrote: if i copie this in the ONLOAD Line he brakes up when i load the macro
what do you mean by "he brakes up"
Also maybe try it without the comments
Code: Select all
RoMScript("}
Lootomatic_Settings.Enabled = true;
Lootomatic_Settings.Roll = 3;
Lootomatic_Settings.AutoLoot = 5;
Lootomatic_Settings.AutoLootBoss = true;
Lootomatic_Settings.AutoPass = 1;
Lootomatic_Settings.AutoGreed = 5;
a={")
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: change Lootomatic Setting at start Macro
Good point. I believe with comments it is well over 255. Without comments it should be about 230-240.lisa wrote:Does it stay under the 255 characters ?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: change Lootomatic Setting at start Macro
could always just do it in 2 lots
Code: Select all
RoMScript("}
Lootomatic_Settings.Enabled = true;
Lootomatic_Settings.Roll = 3;
Lootomatic_Settings.AutoLoot = 5;
a={")
Code: Select all
RoMScript("}
Lootomatic_Settings.AutoLootBoss = true;
Lootomatic_Settings.AutoPass = 1;
Lootomatic_Settings.AutoGreed = 5;
a={")
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: change Lootomatic Setting at start Macro
Hm - the above examples did not work for me. I even don't understand parts of the code. Why this:
But I found another solution. Add this function to the end of main.lua of the lootomatic addon:
at the end of the assignments?a={
But I found another solution. Add this function to the end of main.lua of the lootomatic addon:
Then you can put something like this in your MM scripts:function Lootomatic.Func.Enable(aBool, roll, autoloot, autolootBoss, autopass, autogreed)
Lootomatic_Settings.Enabled = aBool;
Lootomatic_Settings.Roll = roll;
Lootomatic_Settings.AutoLoot = autoloot;
Lootomatic_Settings.AutoLootBoss = autolootBoss;
Lootomatic_Settings.AutoPass = autopass;
Lootomatic_Settings.AutoGreed = autogreed;
end;
Code: Select all
RoMScript("Lootomatic.Func.Enable(true,3,5,true,3,1);")
Re: change Lootomatic Setting at start Macro
making your own function would work =)
As for the a ={
you can easily call functions but if you want to change in game variables you need to have them between this
As to why it didn't work did you try just changing a couple at a time, there is a 255 character limit for macros.
As for the a ={
you can easily call functions but if you want to change in game variables you need to have them between this
Code: Select all
}
--some variable
a={
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: change Lootomatic Setting at start Macro
Basically, when you run a RoMScript, the commands get put into a table as part of it's code and then the values in the table get returned. eg.Jandrana wrote:Hm - the above examples did not work for me. I even don't understand parts of the code. Why this:at the end of the assignments?a={
Code: Select all
RoMScript("GetZoneID()")
Code: Select all
a = {GetZoneId()}
If on the other hand you try to run some code eg.
Code: Select all
RoMScript("SomeVariable = true")
Code: Select all
a = {SomeVariable = true}
To execute any code you need to prefix with } and end with a={ . So
Code: Select all
RoMScript("} SomeVariable = true a={")
Code: Select all
a={} SomeVariable = true a={}
If you want to return any value, you have to assign it to a in a table because that is the value it returns. For example my old ItemQueusCount function that counts the items in the incoming item queue.
Code: Select all
function ItemQueueCount()
return RoMScript("} a = 20 while GetItemQueueInfo(a) == nil do a=a-1 if a==0 then break end end a ={a} z={")
end
That's fairly technical. All you need to know is if you want to change a value in game you have to start the RoMScript command with a } and end with a a={
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: change Lootomatic Setting at start Macro
Thank you for your explanation, rock!
Re: change Lootomatic Setting at start Macro
Code: Select all
function Lootomatic.Func.Enable(aBool, roll, autoloot, autolootBoss, autopass, autogreed)
Lootomatic_Settings.Enabled = aBool;
Lootomatic_Settings.Roll = roll;
Lootomatic_Settings.AutoLoot = autoloot;
Lootomatic_Settings.AutoLootBoss = autolootBoss;
Lootomatic_Settings.AutoPass = autopass;
Lootomatic_Settings.AutoGreed = autogreed;
end;
i just to paste inside .Lua file? nad rename like this?? "userfunction_lootomatic.lua" ??
Re: change Lootomatic Setting at start Macro
Nopekuripot wrote:i just to paste inside .Lua file? nad rename like this?? "userfunction_lootomatic.lua" ??
What Jandrana did was edit the actual addon files, you could probably make up a userfunction to do it, it would be similar to the code I posted earlier just doing some RoMScript
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Who is online
Users browsing this forum: No registered users and 1 guest