Page 6 of 6

Re: Cleanbag userfunction 2.5

Posted: Fri Jun 13, 2014 1:59 am
by botje
here silinky, try the one i attached here, i cant test it, i got my ass banned xd
userfunction_CleanBag.lua
2.5.1 test
(4.81 KiB) Downloaded 328 times

Re: Cleanbag userfunction 2.5

Posted: Sun Jun 15, 2014 6:15 pm
by silinky
ty didn't know it is that easy :)
sorry for your ban. what were you doing when banned (to avoid it as high risk action)?

Re: Cleanbag userfunction 2.5

Posted: Mon Jun 16, 2014 12:07 pm
by botje
minigames on 6 chars after eachother.

guess i were reported :P

Re: Cleanbag userfunction 2.5

Posted: Tue Jun 17, 2014 5:50 am
by silinky
i think they are watching the minigames. this why i asked, because one of my chars that never botted, except minigames(andor, malatina, lyliya), was banned for 2 weeks. the dog meat. ks and tier stone bots were not affected.
sorry for the offtopic and thx for the fix :)

Re: Cleanbag userfunction 2.5

Posted: Tue Jun 17, 2014 5:56 am
by Bubi
silinky wrote:i think they are watching the minigames. this why i asked, because one of my chars that never botted, except minigames(andor, malatina, lyliya), was banned for 2 weeks. the dog meat. ks and tier stone bots were not affected.
sorry for the offtopic and thx for the fix :)
They also watching ks !! :evil: !!

Re: Cleanbag userfunction 2.5

Posted: Tue Jun 17, 2014 6:11 am
by botje
ah, that explains it then.

oh well, was my first ban in 4 years or so, 7 days.

its a risk you take :P

Re: Cleanbag userfunction 2.5

Posted: Mon Sep 15, 2014 6:29 am
by Lamkefyned
hi, I'm trying as deleting the object (203024) but does not work Cleanbag userfunction

Re: Cleanbag userfunction 2.5

Posted: Mon Sep 15, 2014 7:09 am
by rock5
I had a look at version 2.5 on the first post and 2.5.1 on the last page. Neither of them allow you to delete an item by id or name. Or are you saying you used cleanbag, it cleaned your bag but left that item? What command exactly did you use? Do you get a confirmation dialog when you try to delete it?

Re: Cleanbag userfunction 2.5

Posted: Tue Sep 16, 2014 9:18 pm
by Lamkefyned
the fact is that I could not delete the object ....

You can make a function to delete by id?

Re: Cleanbag userfunction 2.5

Posted: Wed Sep 17, 2014 12:41 am
by rock5
The question is "Why can't you delete it?". Can you delete it manually? If so, what do you have to do to delete it manually? For instance do you get the confirmation dialog confirming whether you want to delete the item?

By the way normally to delete an item by id you could do

Code: Select all

item = inventory:findItem(id)
if item then
    item:delete()
end

Re: Cleanbag userfunction 2.5

Posted: Wed Sep 17, 2014 1:44 am
by Lamkefyned
I had already tried a similar code but does not work so resorted to this userfunction. In the end I already like deleting objects

Thanks a lot! R5

Re: Cleanbag userfunction 2.5

Posted: Tue Nov 04, 2014 1:12 am
by Lamkefyned
Hello, good
as we walk?
Well I wanted to ask how you could make a table to delete several objects .... for example ...

Code: Select all

itemsDelete=[[25488,54554,56555]]
item = inventory:findItem(itemsDelete)
if item then
    item:delete()
end
but does not work for me ... guess where the problem but did not fix it xD

Re: Cleanbag userfunction 2.5

Posted: Tue Nov 04, 2014 2:24 am
by rock5

Code: Select all

local itemsDelete={25488,54554,56555}
for k,v in pairs(itemsDelete) do
   while inventory:itemTotalCount(v) > 0 do
      local item = inventory:findItem(v)
      if item then
         item:delete()
      end
   end
end