How to drop cards?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

How to drop cards?

#1 Post by powerattack »

hey again,
How can I set my cleanbag userfunction to drop cards?

Code: Select all

function KSCheckForFullInventory()
	if ((not KS_check_bag) or (getZoneId() == 6)) then return; end;
	
	CleanBag(KS_loot_discard_value,KS_loot_discard_quality);
			yrest(500);
	

	local spacesLeft = inventory:itemTotalCountForSlots(0,settings.profile.options.INV_AUTOSELL_FROMSLOT+60,settings.profile.options.INV_AUTOSELL_TOSLOT+60) + (KS_item_queue_size - ItemQueueCount());
	ksLog("Cleared bags: "..tostring(spacesLeft).." spaces free", LOGLEVEL_DEBUG);
	if (0 >= spacesLeft)  then    
		KSResetInstance();
	end 
end
this is the script, do I need to change something in there or in my profile orsomething.

I saw in Lisa's script she added

Code: Select all

if item:isType("Runes") or item:isType("Monster Cards") then 
					item:delete()
				end
but I can't seem to get that to work in my version.

Thanks in advance
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How to drop cards?

#2 Post by rock5 »

We would probably need to see what you tried to do because we don't know what your version of cleanbag looks like.
  • 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
powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

Re: How to drop cards?

#3 Post by powerattack »

I'm sorry that was my waypoint script, I didn't do anything with my cleanbag yet, do I need to add that line in there? or like Lisa in my waypoint file?
powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

Re: How to drop cards?

#4 Post by powerattack »

found it, if people are intrested:

Code: Select all

	for i, item in pairs(inventory.BagSlot) do
		if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 60 and
		settings.profile.options.INV_AUTOSELL_TOSLOT + 60 >= item.SlotNumber then

[color=#FF0000]				if item:isType("Runes") or item:isType("Monster Cards") then 
					item:delete()[/color]
				end
in cleanbag userfunction

the red part isn't in the original one ;)
Post Reply