Custom skill does not work.

Black Box

New member
Messages
42
Points
0
Location
In a distant land.
Emulator
I followed this tutorial of detailed manner:

http://herc.ws/wiki/Adding_new_skills

See below, everything is correct, but the custom skill does not work. It's like she had disabled. The luasfiles are updated and are all correct, as the tutorial. What can I do to fix?

PS: The custom skill is working in my clone. (Using @clone), but how is possible? because for me it happens the error where in my record video up. I tested too one sound in this skill custom, and now its working too i think the problem would in the .lua files, but for now all my files ( lua and data ), are up to date. @@Ind

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Last edited by a moderator:
*** You review these Steps***

1.- SKILL  RANGES


  • Player Skills
    Slots available: 5020 skills (mmo.h::MAX_SKILL)
  • From: 0
  • To: 5019 (max. to 5019)



Note: mmo.h::MAX_SKILL is 5020, if using ID more than 5019, ID will be invalid for player's skill, or can use the values more than 5019 but need to add the src/common/mmo.h #define MAX_SKILL value. (the current MAX_SKILL is kind of waste space! Even in Renewal, skill is less than 200)

2.- EDIT SRC.

yourserver/src/map/skill.h =          YOU_SKILL = 5020,

yourserver/src/map/skill.c =        Case YOU_SKILL;

yourserver/src/map/battle.c   = Case YOU_SKILL: skillratio += 10*(skill_lv-1); break;

3.- LUA FILES.

a) skillinfolist.lub

[sKID.YOU_SKILL] = {
"YOU_SKILL";
SkillName = "Custom skill",
MaxLv = 10,
SpAmount = {8, 8, 8, 8, 8, 15, 15, 15, 15, 15},
bSeperateLv = true,
AttackRange = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
},
 
b )  skillid.lub

 YOU_SKILL = 5020,

c) skilldescript.lub

  [sKID.YOU_SKILL] = {
    "Custom skill",

"Max Level: 10",
"Skill Form: ^FF0000Offensive^000000",
"Target: ^777777Enemy^000000",
"Description: ^777777Hit an enemy with crushing force.",
"If the Fatal Blow skill is learned, Bash will have",
"an added ^702180Stun^777777 effect at level 6 and higher.^000000",
"[Lv 1]: ^777777130% ATK^000000",
"[Lv 2]: ^777777160% ATK^000000",
"[Lv 3]: ^777777190% ATK^000000",
"[Lv 4]: ^777777220% ATK^000000",
"[Lv 5]: ^777777250% ATK^000000",
"[Lv 6]: ^777777280% ATK^000000",
"[Lv 7]: ^777777310% ATK^000000",
"[Lv 8]: ^777777340% ATK^000000",
"[Lv 9]: ^777777370% ATK^000000",
"[Lv 10]: ^777777400% ATK^000000"

  },
4.- TEXTURE

 a) data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/item/YOU_SKILL.bmp

 
Last edited by a moderator:
*** You review these Steps***

1.- SKILL  RANGES





  • Player Skills
    Slots available: 5020 skills (mmo.h::MAX_SKILL)
  •  
  • From: 0
  •  
  • To: 5019 (max. to 5019)
  •  

[*]



Note: mmo.h::MAX_SKILL is 5020, if using ID more than 5019, ID will be invalid for player's skill, or can use the values more than 5019 but need to add the src/common/mmo.h #define MAX_SKILL value. (the current MAX_SKILL is kind of waste space! Even in Renewal, skill is less than 200)

2.- EDIT SRC.

yourserver/src/map/skill.h =          YOU_SKILL = 5020,

yourserver/src/map/skill.c =        Case YOU_SKILL;

yourserver/src/map/battle.c   = Case YOU_SKILL: skillratio += 10*(skill_lv-1); break;

3.- LUA FILES.

a) skillinfolist.lub

[sKID.YOU_SKILL] = {
"YOU_SKILL";
SkillName = "Custom skill",
MaxLv = 10,
SpAmount = {8, 8, 8, 8, 8, 15, 15, 15, 15, 15},
bSeperateLv = true,
AttackRange = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
},
 
b )  skillid.lub

 YOU_SKILL = 5020,

c) skilldescript.lub

  [sKID.YOU_SKILL] = {
    "Custom skill",
"Max Level: 10",
"Skill Form: ^FF0000Offensive^000000",
"Target: ^777777Enemy^000000",
"Description: ^777777Hit an enemy with crushing force.",
"If the Fatal Blow skill is learned, Bash will have",
"an added ^702180Stun^777777 effect at level 6 and higher.^000000",
"[Lv 1]: ^777777130% ATK^000000",
"[Lv 2]: ^777777160% ATK^000000",
"[Lv 3]: ^777777190% ATK^000000",
"[Lv 4]: ^777777220% ATK^000000",
"[Lv 5]: ^777777250% ATK^000000",
"[Lv 6]: ^777777280% ATK^000000",
"[Lv 7]: ^777777310% ATK^000000",
"[Lv 8]: ^777777340% ATK^000000",
"[Lv 9]: ^777777370% ATK^000000",
"[Lv 10]: ^777777400% ATK^000000"

  },
4.- TEXTURE

 a) data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/item/YOU_SKILL.bmp
I checked the processes and everything was correct, i managed to solve with the topic below. Thank you.

http://herc.ws/board/topic/512-skill-id-processing-overhaul/

 
Back
Top