Page 1 of 1
Adding new skills in skill.xml
Posted: Tue May 07, 2013 12:41 am
by Romplayer
My champion has some elite skills not in the skills.xml database.
How do I go about adding my skills to the database?
whats the way to find out the ID of the skill?
I have 2 I want to add: Dark energy strike and Rune siphon
Oh and Dark energy punishment.
So 3 total
Oh wait maybe Remodeled body also which is a shield form when about to die restores full HP
Do all I need to do is find the ID and follow the format in skills.xml to add to database?
Whats the easiest way to find the skill ID? can I do it by writing an ingame macro?
Re: Adding new skills in skill.xml
Posted: Tue May 07, 2013 1:05 am
by kenzu38
You can go to runesdatabase.com and search for the skill you want to add. And then take note of the url, the number in the URL is usually the skill Id.
For example this is for the elite skill of Champion/Rogue
Shadow Pulse. So the skill Id is 498726.
And then you just have to add this line to the Champion Elite skills section of the skills.xml:
Code: Select all
<skill name="CHAMPION_SHADOW_PULSE" id="498726" range="225" cooldown="6" type="damage" target="enemy" />
Re: Adding new skills in skill.xml
Posted: Tue May 07, 2013 1:24 am
by rock5
Romplayer wrote:Do all I need to do is find the ID and follow the format in skills.xml to add to database?
Yes, pretty much.
Romplayer wrote:Whats the easiest way to find the skill ID? can I do it by writing an ingame macro?
You can usually look them up on
http://www.runesdatabase.com, the Ids are in the address bar, but it's out of date so new skills might not be found there. I like to use the ItemPreview addon. It's an easy way to get the Id of items, quests, skills, buffs, etc. The only thing it can't give Ids for are in world objects such as harvest nodes, npcs and mobs.
For buff Ids we usually use a macro to be sure we get the right Id.
Code: Select all
/script local i=1 while UnitBuff( "player", i) ~= nil do local name, __, __, ID = UnitBuff( "player", i) SendSystemChat(name.." "..ID) i = i + 1 end
This just list all current buffs.
Re: Adding new skills in skill.xml
Posted: Sat May 25, 2013 12:15 am
by chesterfield
runesdatabase.com <---- it lacks skills
--- Scout / Rogue ---
i can`t find all skills
sorry my english

, translate from google

Re: Adding new skills in skill.xml
Posted: Sat May 25, 2013 12:41 am
by rock5
Yeah I know. It hasn't been updated since 5.0.0 which is disappointing. The only database I can find that is up to date is the rom wiki
http://runesofmagic.gamepedia.com but it doesn't provide Ids, so I still wish runesdatabase would update.
Re: Adding new skills in skill.xml
Posted: Sun May 26, 2013 8:28 am
by lisa
this is my current version of ID to skill names.
- skills.xml
- 26/5/2013
Not to be confused with skills.xml in database folder, very different - (228.8 KiB) Downloaded 239 times
You can either just open it in notepad++ and then do a search for the name or you can do more complicated stuff.
I keep it in the logs folder
Code: Select all
local ll = include("logs/skills.xml")
for k,v in pairs(ll) do
if string.find(v,"Berserk") then
print(k.." "..v) end
end
492999 Berserk
497152 Berserk Excuse
499484 Berserk
491305 Berserk
497601 Berserker's Fury
497603 Heavy Berserker Attack
497604 Heavy Berserker Attack
497605 Heavy Berserker Attack
497998 Berserker Elixir
498284 Berserker's Fury
490095 Berserk
490526 Berserk
498778 Berserk
494939 Berserk
492942 Berserk
If you have a different language version than english you can use this userfunction to make your own language file, it takes anywhere from 10 to 30 mins to finish.
Code: Select all
function lisa_logskills()
filename = getExecutionPath() .. "/logs/skills.xml";
file, err = io.open(filename, "a+");
if( not file ) then
error(err, 0);
end
file:write("return {\n")
for i = 490000,499999,1 do
local nam = GetIdName(i)
if nam and nam ~= "" and nam ~= " " then
file:write(" ["..i.."] = \""..nam.."\",\n")
end
end
file:write("}")
file:close();
end
That code doesn't deal with any weird characters that might be in the name like ", you'll have to work that out for yourself if you intend to use it as a table.