Cleanbag userfunction 2.5
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
Re: Cleanbag userfunction 2.0
30 downloads and no remarks? guess all is good then
Re: Cleanbag userfunction 2.0
getting the following error when trying to use this function
tried adding both
CleanBag(500, 4, true)
and
CleanBag(500, 4, true)
inventory:update();
both get the same error
Code: Select all
9:36pm - .../scripts/rom/userfunctions/userfunction_CleanBag.lua:25: attempt to
call global 'logInfo' (a nil value)
CleanBag(500, 4, true)
and
CleanBag(500, 4, true)
inventory:update();
both get the same error
Re: Cleanbag userfunction 2.0
I'd say he forgot to add a list of requirements. 'logInfo' is a userfunction. Do a search for it on the forum.
- 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: Cleanbag userfunction 2.0
thanks for the info, will try and add that userfunction, when i get home tonight.rock5 wrote:I'd say he forgot to add a list of requirements. 'logInfo' is a userfunction. Do a search for it on the forum.
Re: Cleanbag userfunction 2.0
yeah my bad, thought everyone would be using that xd
Re: Cleanbag userfunction 2.0
ooh ooh ooh, I recognize that name, it's one of mine =)
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: Cleanbag userfunction 2.0
It is now working, after also installing the userfunction HaveCard.
So now i can start on my card farming waypoints to fill up my cardbook.
EDIT: Unfortunately, when using the function, it only deletes armor pieces, and only 6 each time.
With my very limited knowledge (close to zero) in lua coding, I was able to make it also include accessories in the 6 items it destroys each time the function is called.
However, I would like to use it, so it destroys everything except Cards, and only keeps those in the bag, keeping my usual food/pots and other stuff in slot 1-20, so that the function deletes everything from slot 21-60, except Cards. Is that possible?
So now i can start on my card farming waypoints to fill up my cardbook.
EDIT: Unfortunately, when using the function, it only deletes armor pieces, and only 6 each time.
With my very limited knowledge (close to zero) in lua coding, I was able to make it also include accessories in the 6 items it destroys each time the function is called.
However, I would like to use it, so it destroys everything except Cards, and only keeps those in the bag, keeping my usual food/pots and other stuff in slot 1-20, so that the function deletes everything from slot 21-60, except Cards. Is that possible?
Re: Cleanbag userfunction 2.0
uhmmm, maybe stupid question, but where is the userfunction haveCard? the only result of search is this post O_O
can smone point me to the right direction? thx
can smone point me to the right direction? thx
Re: Cleanbag userfunction 2.0
Code: Select all
function haveCard(idorname)
if type(idorname) == "string" and type(tonumber(idorname)) ~= "number" then
idorname = "\""..idorname.."\""
end
return RoMScript("} for x=0,15 do "..
"local cc=LuaFunc_GetCardMaxCount(x) "..
"if cc~=nil and cc>0 then "..
"for y=1,cc do "..
"local i,f,n=LuaFunc_GetCardInfo(x,y-1) "..
"if i=="..idorname.." or n=="..idorname.." then "..
"a={f==1} "..
"end "..
"end "..
"end "..
"end z={")
end
Re: Cleanbag userfunction 2.0
That's because the search function doesn't actually search code on a page and the word "havecard" was never said. If you were more general and searched for "have card" you would have found it. Anyway I've added the word so it will appear in searches now. This is where I posted it BTWsilinky wrote:uhmmm, maybe stupid question, but where is the userfunction haveCard? the only result of search is this post O_O
http://www.solarstrike.net/phpBB3/viewt ... 606#p44606
- 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: Cleanbag userfunction 2.0
haha everyday i learn something new thx for the tip mate.rock5 wrote:That's because the search function doesn't actually search code on a page and the word "havecard" was never said. If you were more general and searched for "have card" you would have found it. Anyway I've added the word so it will appear in searches now. This is where I posted it BTWsilinky wrote:uhmmm, maybe stupid question, but where is the userfunction haveCard? the only result of search is this post O_O
http://www.solarstrike.net/phpBB3/viewt ... 606#p44606
Re: Cleanbag userfunction 2.1
updated, i fixed a bug, and made log function to be able to turn it off.
included the log and havecard function in it.
included the log and havecard function in it.
Re: Cleanbag userfunction 2.2
updated with code to delete useless potions because their to low to use on the level of the char.
just a few more additions and i dont even need lootfilter anymore
just a few more additions and i dont even need lootfilter anymore
Re: Cleanbag userfunction 2.2
Your addon may be nice, but one thing could be wished:
what about looting runes and throwing only runes type I and II?
what about looting runes and throwing only runes type I and II?
Re: Cleanbag userfunction 2.2
open source, add it yourself?
edit, i actually thought about it, and i dunno how i can easely do this, except with a user database in which users can store what stuff to NOT drop.
that way you just add the name of the rune, and it keeps it.
and perhaps lua has a findinstring function, so if the item is a rune, and it has II in the name, i can drop it, i dunno man, ill have to do some research on that...
edit, i actually thought about it, and i dunno how i can easely do this, except with a user database in which users can store what stuff to NOT drop.
that way you just add the name of the rune, and it keeps it.
and perhaps lua has a findinstring function, so if the item is a rune, and it has II in the name, i can drop it, i dunno man, ill have to do some research on that...
Re: Cleanbag userfunction 2.2
how to ignore item to delete??
i mean i want to delete all item that indicated in userfunction but dont delete an specific item
i mean i want to delete all item that indicated in userfunction but dont delete an specific item
Re: Cleanbag userfunction 2.2
you cant , well, not yet, im adding a database to force items to keep in bag, next update ^^
Re: Cleanbag userfunction 2.3
updated to 2.3
new database in the file itself, you can add items to force drop, and force keep in there.
also, it drops all runes by default, delete that piece of code, or add them to the keep database.
new database in the file itself, you can add items to force drop, and force keep in there.
also, it drops all runes by default, delete that piece of code, or add them to the keep database.
Re: Cleanbag userfunction 2.2
This can be done woth lootomatic, easily. Just addgloover wrote: what about looting runes and throwing only runes type I and II?
Code: Select all
$rune1
$rune2
Code: Select all
$runes1
$runes2
Its just dangerous in the Minigame "Ancient Treasure", where it will throw those higher rank I+IIer runes away, too.
Who is online
Users browsing this forum: No registered users and 1 guest