boss buffing (items only atm)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

boss buffing (items only atm)

#1 Post by lisa » Sat Feb 02, 2013 6:43 am

working version is posted here
http://www.solarstrike.net/phpBB3/viewt ... =27&t=4626


Ok so I am writing up a userfunction that will basically be for buffing up fully before a boss fight.

So I am after a little help from people to save me going out and buying up every item in the game so I can get the correct ID and Buff ID to go with it.

If you have the info for items like momento buff items that would be helpful, I have all the housemaid ones, so don't need them.

Table looks like this atm.

Code: Select all

	local buffitems = {
	--=== Housemaid Potions ===--
	{itemId = 207200, buffId = 506684, types = "both"}, 		-- Unbridled Enthusiasm , faster run/walk
	{itemId = 207202, buffId = 506686, types = "magic"},		-- Clear Thought, faster spell casting
	{itemId = 207203, buffId = 506687, types = "both"},			-- Turn of Luck Powder Dust
	{itemId = 207206, buffId = 506690, types = "both", cooldown = 0},			-- Scarlet Love, increases physical defence
	{itemId = 207207, buffId = 506691, types = "both", cooldown = 0},			-- Pungent Vileness, "tank" increases agro
	{itemId = 207208, buffId = 506692, types = "both"},			-- Godspeed
	
	--=== Housemaid Food ===--
	{itemId = 207209, buffId = 506673, types = "physical"},		-- Housekeeper Special Salted Fish with Sauce
	{itemId = 207210, buffId = 506674, types = "magic"},		-- Housekeeper Special Smoked Bacon with Herbs
	{itemId = 207211, buffId = 506675, types = "physical"},		-- Housekeeper Special Caviar Sandwich
	{itemId = 207212, buffId = 506676, types = "magic"},		-- Housekeeper Special Deluxe Seafood
	{itemId = 207213, buffId = 506677, types = "physical"},		-- Housekeeper Special Spicy Meatsauce Burrito
	{itemId = 207214, buffId = 506678, types = "magic"},		-- Housekeeper Special Delicious Swamp Mix
	{itemId = 207215, buffId = 506679, types = "physical"},		-- Housekeeper Special Unimaginable Salad
	{itemId = 207216, buffId = 506680, types = "magic"},		-- Housekeeper Special Cheese Fishcake
	
	
	--=== mementos vendor ===--
	{itemId = 206874, buffId = 506271, types = "both"},			-- Grassland Mix
	{itemId = 206891, buffId = 506268, types = "both"},			-- Lizard Blood
	
	{itemId = 206875, buffId = 506272, types = "both"},			-- Fresh Fish Soup, "healer"
	{itemId = 206876, buffId = 506273, types = "physical"},		-- Roast Wolf Leg
	{itemId = 206877, buffId = 506119, types = "physical"},		-- Roast Leg of Lamb	
	{itemId = 206878, buffId = 506120, types = "magic"},		-- Crispy Chicken Drumstick
	{itemId = 206890, buffId = 506121, types = "magic"},		-- Charcoal Barbequed Beef
	
	{itemId = 207020, buffId = 506122, types = "both"},			-- Vegetable Sandwich
	{itemId = 207021, buffId = 506123, types = "both"},			-- Smoked Salmon
	
	{itemId = 207969, buffId = 507251, types = "both"},			-- Rhinoceros Blood
	{itemId = 207970, buffId = 507252, types = "physical"},		-- War Insignia
	{itemId = 207971, buffId = 507253, types = "magic"},		-- Secret Ritual Manual
	{itemId = 207675, buffId = 507077, types = "both"},			-- Madness Potion Bag, "tank". IS bag item 207921
	{itemId = 207671, buffId = 506985, types = "both"},			-- Defense Potion Bag, "tank". IS bag item 207922
	{itemId = 207673, buffId = 507075, types = "both"},			-- Cleansing Potion Bag, "healer". IS bag item 207923
	{itemId = 206892, buffId = 506269, types = "physical"},		-- Tiger Fury
	
	--=== Item shop ===--
	{itemId = 202322, buffId = 501647, types = "both"},			-- Potent Luck, might remove this.
	
	{itemId = 200056, buffId = 500999, types = "physical"},		-- Attack Sigil
	{itemId = 200927, buffId = 501002, types = "magic"},		-- Magic Attack Sigil
	{itemId = 200359, buffId = 501631, types = "physical"},		-- Hot Stew
	{itemId = 202240, buffId = 501614, types = "both"},			-- Egg Rice Dumplings
	{itemId = 204553, buffId = 503326, types = "both"},			-- Universal Potion, +100 all attributes
	
	{itemId = 204461, buffId = 503328, types = "magic"},		-- Magic Guitar (3 Days)	
	{itemId = 204462, buffId = 503327, types = "physical"},		-- Magic Lute (3 Days)
	{itemId = 204463, buffId = 503331, types = "both"},			-- Magic Tambourine (3 Days)

	--=== Crafted Items ===--
	{itemId = 207636, buffId = 495798, types = "magic"},		-- Loaf of Handmade Black Bread
	{itemId = 207645, buffId = 507064, types = "magic"},		-- Meat Sandwich
	{itemId = 207654, buffId = 507046, types = "physical"},		-- Spiced Rack of Ribs
	{itemId = 207605, buffId = 495816, types = "physical"},		-- Spiced Roast Fish, needs buff Id checked.
	{itemId = 207653, buffId = 507045, types = "physical"},		-- Lightly Burnt Ribs
	{itemId = 207635, buffId = 507054, types = "magic"},		-- Loaf of Magic Hard Bread
	{itemId = 207644, buffId = 507063, types = "magic"},		-- Lettuce Sandwich
	{itemId = 200122, buffId = 501162, types = "magic"},		-- Dinner of the Gods
	{itemId = 200115, buffId = 501155, types = "magic"},		-- Moti Blended Sausage
	{itemId = 200109, buffId = 501149, types = "magic"},		-- Delicious Swamp Mix
	{itemId = 200108, buffId = 501148, types = "magic"},		-- Seaworm Salad
	{itemId = 200096, buffId = 501136, types = "magic"},		-- Fish Egg Sandwich
	{itemId = 207596, buffId = 507028, types = "both"},			-- Ordinary Chocolate
	{itemId = 207663, buffId = 507019, types = "both"},			-- Cheesecake
	{itemId = 207662, buffId = 507018, types = "both"},			-- Chocolate Cake
	{itemId = 207595, buffId = 507027, types = "both"},			-- Bitter Dark Chocolate
	{itemId = 200192, buffId = 500112, types = "magic"},		-- Ancient Spirit Water
	{itemId = 200225, buffId = 500311, types = "both"},			-- Embrace of the Muse, mana, but knights also use mana
	{itemId = 240535, buffId = 507126, types = "magic"},		-- Extinguish Potion
	{itemId = 240533, buffId = 507122, types = "magic"},		-- Strong Magic Potion
	{itemId = 200114, buffId = 501154, types = "magic"},		-- Cheese Fishcake
	{itemId = 200194, buffId = 501213, types = "both"},			-- Life Source
	{itemId = 200113, buffId = 501153, types = "physical"},		-- General's Three-color Sausage
	{itemId = 200277, buffId = 501337, types = "both"},			-- Hero Potion, all attributes +20%
	{itemId = 200427, buffId = 501325, types = "both"},			-- Tranquility Powder, - agro for 30 seconds
	
	--=== Untested, got info from memory ===--
	{itemId = 207656, buffId = 495827, types = "both"},			-- Smoked Ribs
	{itemId = 207607, buffId = 495818, types = "physical"},		-- Smoked Fish
	{itemId = 207665, buffId = 495791, types = "both"},			-- Honey Cake
	{itemId = 207647, buffId = 495809, types = "magic"},		-- Huge Sandwich
	
	{itemId = 202895, buffId = 850473, types = "both"},			-- Meaningful Love Cake Slice, possible other buffid 623767
	{itemId = 241959, buffId = 850476, types = "physical"},		-- Vanilla Strawberry Dessert, possible other buffid 623770
	{itemId = 241965, buffId = 850482, types = "both"},			-- Elegant Cuisine Delicacy, possible other buffid 623776
	{itemId = 203024, buffId = 492469, types = "both"},			-- Blessing of the Flower God, possible other buffid 502704
	
	}
As you can see my only concern is itemID, buffId and if it for phys/magic or both types.

I will probably blow some dust off some old chars that have a few hundred mems to get any missing items but it would be easier if people could post the ones they use.
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

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

Re: ISO item/buff info for items people use.

#2 Post by lisa » Sat Feb 02, 2013 10:15 am

Are Mage,priest and druid still the only "magic" users?
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

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: ISO item/buff info for items people use.

#3 Post by abron1 » Sat Feb 02, 2013 11:25 am

hero potion level 40
honey cake level 75 pdef food
Smoked Ribs level 75 damage food
Smoked Fish level 75 pattack food
Huge Sandwich level 75 magic damage food
all crafted food

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

Re: ISO item/buff info for items people use.

#4 Post by lisa » Sat Feb 02, 2013 7:42 pm

ahh yes, crafted food.

I am guessing you don't have the Id's for them, I might need to hit the AH lol

None of those on AH
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

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

Re: boss buffing (items only atm)

#5 Post by lisa » Sat Feb 02, 2013 10:31 pm

ok database is looking good, still need the lvl 75 food and hero pot.

Now to work on the usage, some items share cooldowns and some items will override another buff.

--=== option 1 ===--
Add all of the shared cooldown/buffs into a table of the buffId so as not to overlap any buffs.

Code: Select all

{itemId = 207645, buffId = {507064,507046,507045,507054}, types = "magic"},		-- Meat Sandwich
Of course this means that table could get bigger and bigger and bigger and be a pain to "understand" also a pain to add in others without duplicating.

--== option 2 ==--
Making another tag and just grouping items together and using a variable to say that one of those groups has been used and not to use another.

Code: Select all

{itemId = 207645, buffId = 507064, types = "magic", group = "craftfood1"},		-- Meat Sandwich
So when I use the item I set a variable called craftfood1 as true. So when checking other foods if they are in a group that has the group as true then not to try and use that item.


--=== option 3 ===--
Make up a table of all buffage items that you have and then make decisions based on that information. This would be slightly slower but it would allow us to use the longer lasting buffs first.
You don't want to use a buff that lasts 20 seconds and then use all the longer buffs afterwards as by the time you start the fight the 20 second buff might have worn off.


I am personally leaning towards option 3 as the best way to go.
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

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

Re: boss buffing (items only atm)

#6 Post by lisa » Sun Feb 03, 2013 12:19 am

I am going with option 3, have most of the code done now.

So now the time consuming part, working out which items share cooldowns and which items will over ride another buff.

example
housekeeper Clear Thought shares the same cooldown as the crafted item Ancient Spirit Water, this is because they both increase casting speed.

I went looking to see if the buff info for an item is held nearby in memory, in my travels I did come across something.

There is a section of memory that has all the buff Id's all lined up and has a pointer.
example

Code: Select all

506686 (decimal) f864d44 (hex)
Ok so buff Id 506686 is clear thought. the address points to a spot in memory that has a value counting up, while you have the buff the counter keeps going up, when you cancel buff the timer stops.
it never seems to reset and just keep going up.

Interesting but kind of useless at this stage lol

Id range in memory. Each ID has 0x20 designated to it.
id range is 507252 - 505205
buff1.png
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

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

Re: boss buffing (items only atm)

#7 Post by rock5 » Sun Feb 03, 2013 1:09 am

Maybe you could find an offset that indicates which group it belongs to and save you the trouble of testing every one.
  • 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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: boss buffing (items only atm)

#8 Post by lisa » Sun Feb 03, 2013 1:35 am

I suspect the items with shared cooldown would have something in the item info but the ones that over write other buffs, the info would be in the buff section of memory.

Besides in order to determine which address might be for grouping I would already need to know which ones are grouped in order to compare memory ;)
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

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

Re: boss buffing (items only atm)

#9 Post by rock5 » Sun Feb 03, 2013 1:44 am

That looks like the id table so the address you went to would be the same as GetItemAddress(id) and that counter might just be an offset of the ids address.

I got a possible value. Try 0xC0 off the buffs address.

Code: Select all

print(memoryReadInt(getProc(),GetItemAddress(buffid)+0xC0))
I just got that from a few hp and mp pots. It would need testing with other items. So far hp, mp and Creamy Seafood Pie have different values. And all 3 can be on at the same time.
  • 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: boss buffing (items only atm)

#10 Post by rock5 » Sun Feb 03, 2013 1:48 am

A possible cooldown offset is 0x1c off of the item id

Code: Select all

print(memoryReadInt(getProc(),GetItemAddress(itemid)+0x1C))
  • 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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: boss buffing (items only atm)

#11 Post by lisa » Sun Feb 03, 2013 1:50 am

using the item ID got me nowhere but using the buffId seems to be doing something.

Code: Select all

Command> print(memoryReadInt(getProc(),GetItemAddress(506686)+0xC0))
9
Command> print(memoryReadInt(getProc(),GetItemAddress(500112)+0xC0))
9
Command> print(memoryReadInt(getProc(),GetItemAddress(500311)+0xC0))
19
Command> print(memoryReadInt(getProc(),GetItemAddress(506673)+0xC0))
65
Command> print(memoryReadInt(getProc(),GetItemAddress(506674)+0xC0))
65
Command> print(memoryReadInt(getProc(),GetItemAddress(506675)+0xC0))
165
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

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

Re: boss buffing (items only atm)

#12 Post by rock5 » Sun Feb 03, 2013 1:55 am

Yeah, just noticed the cooldown id was wrong. Phirus pots and regular pots shared the same number but don't share cooldown. I didn't get any other results for that. I haven't checked the buff area for the cooldown yet.

Efit: On second thought the coldown can't be off the buff because not all items have buffs but they could have cooldowns.
  • 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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: boss buffing (items only atm)

#13 Post by lisa » Sun Feb 03, 2013 2:01 am

got this
memoryReadInt(getProc(),GetItemAddress(v.buffId)+0xC0) then name of buff

Code: Select all

-1 Name: Turn of Luck Powder Dust
-1 Name: Universal Potion
-1 Name: Potent Luck Potion
0 Name: Cheese Fishcake
0 Name: Unimaginable Salad
0 Name: Godspeed
0 Name: Pungent Vileness
0 Name: Scarlet Love
0 Name: Delicious Swamp Mix
0 Name: Spicy Meatsauce Burrito
9 Name: Ancient Spirit Water
9 Name: Clear Thought
18 Name: Life Source
19 Name: Embrace of the Muse
39 Name: Madness Potion
47 Name: Magic Attack Sigil
47 Name: Attack Sigil
65 Name: Hot Stew
65 Name: Fish Egg Sandwich
65 Name: Dinner of the Gods
65 Name: Meat Sandwich
65 Name: Roasted Ribs
65 Name: Lettuce Sandwich
65 Name: Spiced Rack of Ribs
65 Name: Loaf of Magic Hard Bread
65 Name: General's Three-color Sausage
65 Name: Delicious Swamp Mix
65 Name: Crispy Chicken Drumstick
65 Name: Roast Leg of Lamb
65 Name: Roast Wolf Leg
65 Name: Charcoal Barbequed Beef
65 Name: Deluxe Seafood
65 Name: Cheese Fishcake
65 Name: Salted Fish with Sauce
65 Name: Smoked Bacon with Herbs
65 Name: Seaworm Salad
65 Name: Fresh Fish Soup
66 Name: Grassland Mix
66 Name: Bitter Dark Chocolate
66 Name: Smoked Salmon
66 Name: Cheesecake
66 Name: Vegetable Sandwich
66 Name: Chocolate Cake
66 Name: Ordinary Chocolate
121 Name: Play Lute
121 Name: Play Guitar
122 Name: Shake Tambourine
137 Name: Unbridled Enthusiasm
138 Name: Rice Dumplings with Egg
151 Name: Extinguish Potion
151 Name: Cleansing Potion
151 Name: Strong Magic Potion
152 Name: Defense Potion
154 Name: Lizard Blood
154 Name: Rhinoceros Blood
155 Name: War Insignia
155 Name: Tiger Fury
156 Name: Secret Ritual Manual
165 Name: Moti Blended Sausage
165 Name: Caviar Sandwich

resorted list


I suspect you have something for the buffs atleast,
I know for a fact Lute and guitar share cooldown.

65 Name: Salted Fish with Sauce
65 Name: Smoked Bacon with Herbs
those over write each others buffs.
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

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

Re: boss buffing (items only atm)

#14 Post by rock5 » Sun Feb 03, 2013 2:22 am

Looks good. I've done a more extensive test for cooldowns. Used 5 items with 3 cooldowns. Checked up to 0x1000. These are the offsets that were different

Code: Select all

34      B9      F       3E8
58      1C      1       42
7C      0       2       FFFFFFFF
94      2       4       0
728     114E    B00     200
734     0       F       2
740     8       0       5
748     4B18967F        461C4000        0
778     1       2       B
77C     3       2       FFFFFFFF
A28     0       42C80000        3F800000
A44     0       42C80000        3F800000
A50     0       42C80000        3F800000
Left column is the item id offset. Second column is Food. Third column are are regular hp and mp pots. And forth column Phirus pots. Got to go to dinner now so can't test fursther
  • 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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: boss buffing (items only atm)

#15 Post by lisa » Sun Feb 03, 2013 3:29 am

Do you mean item cooldowns?

there s already an item.CoolDownTime. I am just using that and also designating the item.LastTimeUsed when the item is used. Only issue is if the item is already on cooldown the first time it goes to run the function, which shouldn't happen often.

Theory I have atm, which changes every few minutes, is to create seperate tables for each of the values for "groups" using that offset you found. Then going through each of those tables 1 at a time to decide what item to use out of that specific table, which then adds that to another table. That final table will be just the items that have been decided to use and so I will use the duration at that point to decide which order to actually use the skills in.

So quite a bit of table manipulation but it "should" make it the optimal usage of items before attacking a boss.

What I have at the moment easily uses what items I have in inventory and the code itself (without actually using the items) takes 20 milliseconds. Obviously with global cooldown the time taken to fully buff up will vary depending on how many items it uses.
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

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

Re: boss buffing (items only atm)

#16 Post by rock5 » Sun Feb 03, 2013 4:25 am

Ok, I was thinking about how items share cooldown. I don't think the item.CooldownTime takes that into account.

I noticed that item.CooldownTime is gotten from self.BaseItemAddress + addresses.realItemIdOffset which goes to an area in memory like a skill. Sort of like the skill associated with the item. 0xE0 is also the cooldowntime for skills. So we could probably get the real cooldown of items like we do with skills. Lets see

Code: Select all

			local skillItemId = memoryReadInt( getProc(), item.BaseItemAddress + addresses.realItemIdOffset );
			if ( skillItemId ~= nil and skillItemId ~= 0 ) then
				local skillItemAddress = GetItemAddress( skillItemId );
				if ( skillItemAddress ~= nil and skillItemAddress ~= 0 ) then
					local offset = memoryReadRepeat("int", getProc(), skillItemAddress + addresses.skillRemainingCooldown_offset) or 0
					if offset and offset ~= 0 then
						return (memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase + (offset+1)*4) or 0)/10
					end
				end
			end
If it works, it might be worth adding to the bot. Have a getRemainingCooldown() for items as well as skills.
  • 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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: boss buffing (items only atm)

#17 Post by lisa » Sun Feb 03, 2013 4:36 am

didn't seem to work for me.

Code: Select all

function tester(item)
	local skillItemId = memoryReadInt( getProc(), item.BaseItemAddress + addresses.realItemIdOffset );
	if ( skillItemId ~= nil and skillItemId ~= 0 ) then
		local skillItemAddress = GetItemAddress( skillItemId );
		if ( skillItemAddress ~= nil and skillItemAddress ~= 0 ) then
			local offset = memoryReadRepeat("int", getProc(), skillItemAddress + addresses.skillRemainingCooldown_offset) or 0
			if offset and offset ~= 0 then
				print("supposed to work")
				local lol = memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase + (offset+1)*4) or 0
				print("offset: "..offset.." value: "..lol)
				return lol/10
			end
		end
	end
end

Code: Select all

Command> local item = inventory.BagSlot[65] print(tester(item))
supposed to work
offset: 27 value: 0
0
I did other prints to confirm it was the correct item, item still had 70-80 seconds on cooldown.
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

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

Re: boss buffing (items only atm)

#18 Post by lisa » Sun Feb 03, 2013 4:45 am

items that don't have a cooldown printed nothing, so no valuew returned.

I did another item which shared cooldown with above item and prints were the same.

mp pot had

Code: Select all

supposed to work
offset: 3 value: 0
0
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

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

Re: boss buffing (items only atm)

#19 Post by lisa » Sun Feb 03, 2013 5:21 am

well if nothing else I can confirm that items have their cooldowns in that same section of memory.

addresses.staticCooldownsBase

So I have worked out for the item I am testing the offset of that is + 0x87C

I do the /4 and get 0x21F, if I do the -1 I get 0x21E, CE search for hex 21E didn't get any results even remotely close to the items address or baseitemaddress.

Still working on it.
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

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

Re: boss buffing (items only atm)

#20 Post by rock5 » Sun Feb 03, 2013 5:52 am

I just did the same thing. My theory is that only a few skills share cooldown so skills offset points directly to the cooldown address. But because so many items share the same cooldown then maybe the offset is a 'group' and somewhere there is a list of these groups and which cooldown they use. So maybe if we can get a couple of consecutive numbers and the actual cooldown offsets we can search for the 2 sequencial offsets in memory. Might work. Normal pots return an offset 3. The actual coldown is at staticCooldownsBase + 0x81C. /4-1 = 206. What values are you getting with other items?

A problem is that Phirius pots returned 0 which would indicate it has no cooldown but it does. I guess it could be the first cooldown group but it seems unlikely.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests