Question on Housekeeper's Items

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Question on Housekeeper's Items

#1 Post by Germangold » Sat Jan 21, 2012 3:16 pm

Hi @ all

Is there a way to read on a housekeepers item its remaining "life time" till it disapears?

would be cool to implement into my KS farming script

pseudocode

Code: Select all

remaining_Clear_Thought = getRemaingTime:item(207202);

if (remaining_Clear_Thought < 600) then
 delete:item(207202);
end

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: Question on Housekeeper's Items

#2 Post by M4gm4 » Sat Jan 21, 2012 3:28 pm

hmmm,, evtl kann man das mit der os time machen

quasi ala
wenn du items holst beim hausmädchen then
verfallsdatum = os time

dann,

check das item erneut am verfallsdatum + 1minute (damit das auch definitv nicht mehr im beutel ist)



..oo000OOEnglishOO000oo..
hmmm, can you possibly do with the os time

quasi-ala
if you bring the items home girl - then
expiry date = os time

then,

check the item again at the expiry date + 1minute (so that's definitely not in the bag)
I use the google translator, so do not be surprised if my english is funny

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Question on Housekeeper's Items

#3 Post by Germangold » Sat Jan 21, 2012 3:40 pm

thanks for that advice
but unfortunately that wont work.

this is my procedure after 24 hours reconnect

1. start at respawn point ks < due to logging out in the middle of a run
2. recalls to sacilia
3. go to the mailbox send gold, tier III runes and guild runes to a collector character
4. go to housekeeper npc
5. >> CHECK all needed housekeepers items, magic dust, clear tought and speed and if neccessary delete those
6. if housekeeprs item are delteted enter house and talk to all 3 housemaids
7. leave the house
8. teleport to ks back with a spesific teleport locaton (cost 1 rune each time)

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: Question on Housekeeper's Items

#4 Post by M4gm4 » Sat Jan 21, 2012 4:04 pm

if you do that anyway after 24 hours, then delete it but just a flat rate, and get just new.

edit: I have an idea, give me a few minutes

I think it goes in this direction

Code: Select all

GameTooltip:SetBagItem(GetBagItemInfo(207202))
edit2: possibly help you further, my head is smoking degree and I can not think http://www.solarstrike.net/phpBB3/viewt ... 432#p17432
I use the google translator, so do not be surprised if my english is funny

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Question on Housekeeper's Items

#5 Post by Ego95 » Sat May 11, 2013 5:29 pm

Anyone found out, if it's possible? This would be the next thing i want to implent in my ks script :/

AlterEgo95

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

Re: Question on Housekeeper's Items

#6 Post by rock5 » Sat May 11, 2013 11:43 pm

I don't think you have to delete them. You can just merge new items with old and make them all new. The trick is getting all the item moves in the right order. I haven't done it in a while so I don't remember all the rules to make it work. Still, you probably will need to know the Expire time of the items.
  • 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

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

Re: Question on Housekeeper's Items

#7 Post by rock5 » Sun May 12, 2013 1:12 am

Ok I got something for you. I couldn't find a function but the item address + 0xC is the time the item was created (in seconds since 1970, ie. "Unix epoch time"). Just compare it to os.time() and you'll get the age of the item in seconds. Then you just need to know how long the items last, in this case 24 hours, to work out how much longer they will last. Here is a little function that returns an items age in hours, I figured that would be the most useful.

Code: Select all

function GetItemAge(item)
	if type(item) == "number" and item >= 1 and 240 >= item then
		item = inventory.BagSlot[item]
	elseif type(item) ~= "table" or item.Address == nil then
		error("GetItemAge: Expected bag slot number or item table.")
	end

	local itemCreated = memoryReadUInt(getProc(), item.Address + 0xC)

	return (os.time() - itemCreated)/3600
end
  • 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

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Question on Housekeeper's Items

#8 Post by Ego95 » Sun May 12, 2013 10:11 am

Nice I'm gooing to try this :) Would be awesome to check it at the rez point and then get new housemaid potions.

AlterEgo95

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Question on Housekeeper's Items

#9 Post by lisa » Sun May 12, 2013 6:10 pm

ahh, I was looking for a countdown, didn't think of looking for a time it was created.
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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests