Exp Charms

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Exp Charms

#1 Post by Guest1234 » Mon Dec 19, 2011 8:45 am

Is there anyway to check is an Experience / talent charm is full, and if so un-equip and equip a new one if one is available?
I can do the check if available, but the first part I have no clue...

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

Re: Exp Charms

#2 Post by rock5 » Mon Dec 19, 2011 10:00 am

I couldn't find a command or anything but I found a memory address. Try this

Code: Select all

charmlevel = memoryReadInt(getProc(),0x9CF1BC)
I only tested this with 1 character so I can't guarantee it works in all cases. Try it out and let me know. Of course if the game addresses change this would have to be updated.

Hm.. maybe if you use this instead, it will survice an update.

Code: Select all

charmlevel = memoryReadInt(getProc(),addresses.staticEquipBase + 0x4E0)
And by "survive an update" I mean when staticEquipBase gets updated then this should work again.
  • 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

Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Exp Charms

#3 Post by Guest1234 » Mon Dec 19, 2011 10:17 am

My Charm is alomst full, will try it in a bit.
Thx Rock

Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Exp Charms

#4 Post by Guest1234 » Mon Dec 19, 2011 10:52 am

Code: Select all

Fight #1 
Charm not full (  997680 ), keep going.
Fight # 2
Exp Charm Swapped.
Thing is, it didn't swap it.

Here's my onleavecombat event:

Code: Select all

	local charmlevel = memoryReadInt(getProc(),addresses.staticEquipBase + 0x4E0)
	if inventory:itemTotalCount("Superior Experience Charm") >= 1 then
		if ( charmlevel > 999999 ) then
			inventory:useItem("Superior Experience Charm");
			printf("Exp Charm Swapped.\n");
		else
			printf("Charm not full (  %s ), keep going.\n", charmlevel);
		end
	else
		printf("No charms in inventory... Can't swap !\n");
	end

Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Exp Charms

#5 Post by Guest1234 » Mon Dec 19, 2011 10:54 am

RoM gives warning:

Canot quip 2 amulets of same type.

How do I unequip first charm so I can equip a new one?

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

Re: Exp Charms

#6 Post by rock5 » Mon Dec 19, 2011 10:57 am

Don't you have to take the old one out first? From memory you have to right click it right? So "UseEquipmentItem(19)" should work. I think 19 is correct.
  • 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

Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Exp Charms

#7 Post by Guest1234 » Mon Dec 19, 2011 11:10 am

Item spot was 18.

Code: Select all

RoMScript("UseEquipmentItem(18)")
Thx. Works now !

:)

cokebot
Posts: 54
Joined: Wed Oct 19, 2011 7:47 am

Re: Exp Charms

#8 Post by cokebot » Wed Apr 20, 2016 8:56 am

addresses.staticEquipBase + 0x4E0

this looks like the first slot for charms, anyone who can tell me which code i need for the second slot?
Thy

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests