Talk about anything in Runes of Magic. This does not need to pertain to botting.
-
hangman04
- Posts: 6
- Joined: Tue Dec 17, 2013 6:19 pm
#1
Post
by hangman04 » Tue Dec 17, 2013 6:33 pm
i have a fan made SR addon that should have support for ch 5 and the 2 new classes: HARPSYN (warlock) and PSYRON (Champion). For some reason, for the new classes the add on doesn't add the modifiers from raw stats like str/int into composed ones like def / phys att etc. Basically if an item has 100 str and 1000 phys attack the stats table will only show 100 str and 1000 phys instead of 100 str and 1200 phys.
From what i saw the author modified statsDB with this :
Code: Select all
elseif (firstClass == C_HARPSYN) then
db[SR.constants.DEX_TO_DPS.effect] = 0;
db[SR.constants.DEX_TO_PHYDEF.effect] = 0;
db[SR.constants.DEX_TO_PHYATT.effect] = 0;
db[SR.constants.DEX_TO_PHYACC.effect] = 0.15;
db[SR.constants.DEX_TO_PHYDOD.effect] = 0.13;
db[SR.constants.INT_TO_MAGATT.effect] = 2;
db[SR.constants.INT_TO_MP.effect] = 1;
db[SR.constants.INT_TO_PHYATT.effect] = 0.5;
db[SR.constants.PHYDEF_TO_MAGDEF.effect] = 0;
db[SR.constants.STA_TO_HP5.effect] = 0.05;
db[SR.constants.STA_TO_LIFE.effect] = 5.0;
db[SR.constants.STA_TO_PHYDEF.effect] = 1.5;
db[SR.constants.STR_TO_DPS.effect] = 0;
db[SR.constants.STR_TO_HP.effect] = 0.2;
db[SR.constants.STR_TO_PHYATT.effect] = 0.8;
db[SR.constants.WIS_TO_MP.effect] = 5;
db[SR.constants.WIS_TO_MP5.effect] = 0.1;
db[SR.constants.WIS_TO_MAGDEF.effect] = 3;
db[SR.constants.WIS_TO_PHYDEF.effect] = 0;
elseif (firstClass == C_PSYRON) then
db[SR.constants.DEX_TO_DPS.effect] = 0;
db[SR.constants.DEX_TO_PHYDEF.effect] = 0;
db[SR.constants.DEX_TO_PHYATT.effect] = 0;
db[SR.constants.DEX_TO_PHYACC.effect] = 0.15;
db[SR.constants.DEX_TO_PHYDOD.effect] = 0.13;
db[SR.constants.INT_TO_MAGATT.effect] = 2;
db[SR.constants.INT_TO_MP.effect] = 1;
db[SR.constants.INT_TO_PHYATT.effect] = 0;
db[SR.constants.PHYDEF_TO_MAGDEF.effect] = 1;
db[SR.constants.STA_TO_HP5.effect] = 0.05;
db[SR.constants.STA_TO_LIFE.effect] = 5;
db[SR.constants.STA_TO_PHYDEF.effect] = 2.3;
db[SR.constants.STR_TO_DPS.effect] = 0;
db[SR.constants.STR_TO_HP.effect] = 0.5;
db[SR.constants.STR_TO_PHYATT.effect] = 2;
db[SR.constants.WIS_TO_MP.effect] = 5;
db[SR.constants.WIS_TO_MP5.effect] = 0.1;
db[SR.constants.WIS_TO_MAGDEF.effect] = 2.2;
db[SR.constants.WIS_TO_PHYDEF.effect] = 0;
Any thoughts on this ? :/
-
Attachments
-
- statrating(2).zip
- stat rating
- (57.23 KiB) Downloaded 110 times
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#2
Post
by lisa » Tue Dec 17, 2013 7:19 pm
If you do this in game
it will print Mage
If you do this in game
it won't print anything, so the additional code won't work as intended.
For yourself just change the
Code: Select all
elseif (firstClass == C_HARPSYN) then
to
Code: Select all
elseif (firstClass == "Warlock") then
Assuming you use english client.
The C_ is a global in the game to get the local language for classes, which is why C_MAGE will work. Although they did add the new classes as PSYRON and HARPSYN in the globals they don't seem to actually work, just another failure of the developers of the game.
If you don't use english client log onto your warlock and champion and do.
Code: Select all
/script SendSystemChat(UnitClass("player"))
What ever it prints on screen is what you will need to use.
-
hangman04
- Posts: 6
- Joined: Tue Dec 17, 2013 6:19 pm
#3
Post
by hangman04 » Wed Dec 18, 2013 3:59 pm
Thank you Lisa, made the changes and seems to work properly. this is how i changed the code:
Code: Select all
elseif (firstClass == C_HARPSYN) or (firstClass == "Warlock") then
db[SR.constants.DEX_TO_DPS.effect] = 0;
db[SR.constants.DEX_TO_PHYDEF.effect] = 0;
db[SR.constants.DEX_TO_PHYATT.effect] = 0;
db[SR.constants.DEX_TO_PHYACC.effect] = 0.15;
db[SR.constants.DEX_TO_PHYDOD.effect] = 0.13;
db[SR.constants.INT_TO_MAGATT.effect] = 2;
db[SR.constants.INT_TO_MP.effect] = 1;
db[SR.constants.INT_TO_PHYATT.effect] = 0.5;
db[SR.constants.PHYDEF_TO_MAGDEF.effect] = 0;
db[SR.constants.STA_TO_HP5.effect] = 0.05;
db[SR.constants.STA_TO_LIFE.effect] = 5.0;
db[SR.constants.STA_TO_PHYDEF.effect] = 1.5;
db[SR.constants.STR_TO_DPS.effect] = 0;
db[SR.constants.STR_TO_HP.effect] = 0.2;
db[SR.constants.STR_TO_PHYATT.effect] = 3/4;-- or 0.8 ?
db[SR.constants.WIS_TO_MP.effect] = 5;
db[SR.constants.WIS_TO_MP5.effect] = 0.1;
db[SR.constants.WIS_TO_MAGDEF.effect] = 3;
db[SR.constants.WIS_TO_PHYDEF.effect] = 0;
elseif (firstClass == C_PSYRON) or (firstClass == "Champion") then
db[SR.constants.DEX_TO_DPS.effect] = 0;
db[SR.constants.DEX_TO_PHYDEF.effect] = 0;
db[SR.constants.DEX_TO_PHYATT.effect] = 0;
db[SR.constants.DEX_TO_PHYACC.effect] = 0.15;
db[SR.constants.DEX_TO_PHYDOD.effect] = 0.13;
db[SR.constants.INT_TO_MAGATT.effect] = 2;
db[SR.constants.INT_TO_MP.effect] = 1;
db[SR.constants.INT_TO_PHYATT.effect] = 0;
db[SR.constants.PHYDEF_TO_MAGDEF.effect] = 1;
db[SR.constants.STA_TO_HP5.effect] = 0.05;
db[SR.constants.STA_TO_LIFE.effect] = 5;
db[SR.constants.STA_TO_PHYDEF.effect] = 2.3;
db[SR.constants.STR_TO_DPS.effect] = 0;
db[SR.constants.STR_TO_HP.effect] = 0.5;
db[SR.constants.STR_TO_PHYATT.effect] = 2;
db[SR.constants.WIS_TO_MP.effect] = 5;
db[SR.constants.WIS_TO_MP5.effect] = 0.1;
db[SR.constants.WIS_TO_MAGDEF.effect] = 2.2;
db[SR.constants.WIS_TO_PHYDEF.effect] = 0;
-
Attachments
-
- StatRating.rar
- working version
- (55.03 KiB) Downloaded 128 times
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#4
Post
by rock5 » Wed Dec 18, 2013 10:44 pm
- 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.”
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#5
Post
by lisa » Wed Dec 18, 2013 11:48 pm
rock5 wrote:How about using
and
Tested and both should work for any language, the addon developer should probably look at using that code instead of the current code for warlock and champion, the other classes should work fine as is.
-
hangman04
- Posts: 6
- Joined: Tue Dec 17, 2013 6:19 pm
#6
Post
by hangman04 » Thu Dec 19, 2013 2:20 am
Yes, Noguai also proposed the same thing on the forum. I'll make that change also and ty for the tip. I'm not a developer and my understanding of LUA coding language is very limited to none. I just wanted to make it work with my class. The add on has other problems and probably it may need a lot of clean up to be fully functional.
From what i see it has problems hooking up items and sometimes after i scroll after some items it enters in a loop going through different equip items and splashing tooltip windows, till i hover on a skill or smth else.
Who is online
Users browsing this forum: No registered users and 1 guest