Problem: cast of secundary class don't work

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Problem: cast of secundary class don't work

#1 Post by d003232 » Wed Jul 01, 2009 8:07 am

I'm playing a scout/priest. Since yesterday the char only use the scout casts. No healing from the casts of the second class anymore.

Don't know the reason. self.MP = 100 from the concentration. self.MP2 = 2xxx from the second class. I deleted the old ENERGY_STORAGE from the profile, because of the new function. Same result.

Code: Select all

    <skills>
        <skill name="PRIEST_RISING_TIDE_SCOUT" hotkey="VK_Q" priority="100" level="" />
        <skill name="PRIEST_REGENERATE" hotkey="VK_4" priority="90" level="" />
        <skill name="SCOUT_VAMPIRE_ARROWS" hotkey="VK_E" priority="80" level="" />
        <skill name="SCOUT_AUTOSHOT" hotkey="VK_5" priority="70" level="" />
        <skill name="SCOUT_SHOT" hotkey="VK_3" priority="60" level="" />
	<skill name="SCOUT_WIND_ARROWS" hotkey="VK_6" priority="50" level="" />
        <skill name="PRIEST_SOUL_BOND" hotkey="VK_8" priority="30" level="" />
    </skills>
Any hints? Later I will check whats happen if I try priest/scout.
The RoM Bot Online Wiki needs your help!

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Problem: cast of secundary class don't work

#2 Post by d003232 » Wed Jul 01, 2009 8:46 am

If found something. In 'function CSkill:canUse()' there is a check for

Code: Select all

	if( player.Mana < math.ceil(self.Mana + (self.Level-1)*self.ManaInc) ) then
		return false;
	end
and the field player.Mana = 0.
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problem: cast of secundary class don't work

#3 Post by Administrator » Wed Jul 01, 2009 8:57 am

I'm not able to reproduce your problem. First thing you should do is go to classes/skill.lua, and look at function CSkill:canUse(). You will see a lot of if statements that return false. Above each return false, add a printf statement to let you know why that function is returning false. Reply here when you've got that.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Problem: cast of secundary class don't work

#4 Post by d003232 » Wed Jul 01, 2009 8:58 am

And more debugging:

self.Class2 = 37. Means the char don't get energy type mana from:

Code: Select all

	energyStorage2 = classEnergyMap[self.Class2];
I suppose there has something changed in

Code: Select all

	self.Class1 = debugAssert(memoryReadInt(proc, self.Address + charClass1_offset), memerrmsg);
	self.Class2 = debugAssert(memoryReadInt(proc, self.Address + charClass2_offset), memerrmsg);
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problem: cast of secundary class don't work

#5 Post by Administrator » Wed Jul 01, 2009 9:06 am

Think I found the problem. You'll need to edit addresses.lua.

Code: Select all

charClass2_offset = 0x2CC;

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Problem: cast of secundary class don't work

#6 Post by d003232 » Wed Jul 01, 2009 9:14 am

Administrator wrote:Think I found the problem. You'll need to edit addresses.lua.

Code: Select all

charClass2_offset = 0x2CC;
That's it now it is working again. I hope I don't had a old addresses.lua?
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problem: cast of secundary class don't work

#7 Post by Administrator » Wed Jul 01, 2009 10:12 am

No, it was my mistake. I've committed the change to SVN and re-uploaded the zip package so others don't experience the same problem.

Post Reply

Who is online

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