Page 1 of 1
request to make default skills overridable
Posted: Sat Sep 10, 2011 12:43 pm
by botje
Would it be possible to make the skills database overridable with a user file?
now, everytime we have a update, we have to re-edit the file again, so i thought, maybe you could do a small check in the bot to see if for e.g. user_skills.xml exists, and use that instead?
that way bot is still updated, and we keep our modifications.
just a thought ^^
Botje
Re: request to make default skills overridable
Posted: Sat Sep 10, 2011 3:48 pm
by Administrator
You should be able to. Here's an example of something that should work for modifying a skill:
Code: Select all
settings.profile.skills.SKILL_SKILLNAME.AutoUse = false;
If a skill doesn't exist (that is, you want to add, not modify), you would do this:
Code: Select all
local skill = CSkill();
skill.Id = 12345;
skill.Mana = 25;
skill.Range = 150;
skill.hotkey = VK_6;
-- You get the point. Set all of the important attributes.
settings.profile.skills.SKILL_SKILLNAME = skill;
Re: request to make default skills overridable
Posted: Sat Sep 10, 2011 8:19 pm
by botje
its actually more for modifying the warrior skills, they have no casttime, which makes my character walk while casting it, i want to make it have 1 sec casttime, so it stops.
how would i do that then?
Botje
Re: request to make default skills overridable
Posted: Sat Sep 10, 2011 9:58 pm
by lisa
changeProfileSkill(_skill, _option, _value)
Code: Select all
changeProfileSkill("WARRIOR_OPEN_FLANK", "cooldown", "1")
I had a quick look in skills database, only 1 non elite skill doesnt have a cooldown, 9 elite skills don't have a cooldown.
--=== edit ===--
Missread your post, you want to add a casttime?
not sure what that would do exactly.
you can always just try having casttime instead of cooldown in the code i posted. Not sure if bot will look for a casting bar though.
Re: request to make default skills overridable
Posted: Sun Sep 11, 2011 5:00 am
by botje
but i know exactly what it will do
it will stop my character from running into stuff, which gets me stuck everytime ^^
Botje
Re: request to make default skills overridable
Posted: Sun Sep 11, 2011 5:32 am
by lisa
you could always just do a yrest onpreskillcast in your profile.
Yeah I just meant not sure how the bot will react to you telling it there is a cast time when there isn't.
Re: request to make default skills overridable
Posted: Sun Sep 11, 2011 5:41 am
by botje
just added it, seems to work just fine.
ill let ya know if something is up ^^
Botje
Re: request to make default skills overridable
Posted: Mon Sep 12, 2011 6:01 pm
by kanta
I have to do the same thing with my S/K elite Healing Shot. Without adding a cast time my character continues to run while casting the skill. This always results in my character running in a straight line regardless of the waypoints in my file which usually gets me stuck or falling off cliffs.