Jump to content
  • 0

Error in duplicating skill


CyricRO

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  12/02/12
  • Last Seen:  

Hello, I'm sorry if this seems like a duplicate topic in any terms (no pun intended).  I've searched for a couple hours and haven't found any resolution to my problem.  

I've been trying to add an exact copy of the skill: "ASC_BREAKER" by following this guide: http://rathena.org/wiki/Adding_new_skills

 

I've been adjusting little snippets accordingly, as I am not adding an earth bolt, but rather I'd like to add "Soul Destroyer" to my game.  My idea is to juxtaposition two skills ASC_BREAKER and ASC_DESTROYER which are virtually the same.

After this is set up, I'd like to discretely replace the assassin cross skill ASC_BREAKER with ASC_DESTROYER either by means of an item script or by transition into third class.  By this, I can add statuses to one over the other, or enable one upon soul link, or whatever needs to be done.

 

I haven't touched on most of this code yet, however, I have run into a snag which has kept me from moving forward.

I'll place all my modifications below.  The error and my observations are:

When I am in game, I can type @useskill 8443 10 "Player name" and my GM character will appear to cast soul breaker.  Above my characters head displays "!!" - instead of "Soul Breaker!!" - which is likely client sided so I'm not too concerned about that.

As soon as the command is issued, my mapserv-sql.bat displays the following error:

[Error]: pc_skill: Skill with id 8443 does not exist in the skill database

Here are my database modifications (note that pre-re and re folders have been modified the same way as a precautionary measure):

  • \db\re\skill_db.txt (starting at line 541)
379,7,6,1,-1,0x68,0,10,1,yes,0,0,0,misc,0,0x0, ASC_BREAKER,Soul Breaker
8443,8,6,1,-1,0x68,0,10,1,yes,0,0,0,misc,0,0x0, ASC_DESTROYER,Soul Destroyer
  • \db\re\skill_tree.txt (starting at line 1016)
4013,379,10,48,5,135,3,138,6,52,5,0,0 //ASC_BREAKER#Soul Breaker#
4013,8443,10,48,5,135,3,138,6,52,5,0,0 //ASC_DESTROYER#Soul Destroyer#
  • \db\re\skill_require_db.txt (starting at line 353)
379,0,0,20:20:20:20:20:30:30:30:30:30,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
//ASC_BREAKER#ƒ\ƒEƒ‹ƒuƒŒ?ƒJ?#
8443,0,0,20:20:20:20:20:30:30:30:30:30,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
//ASC_DESTROYER#ƒ\ƒEƒ‹ƒuƒŒ?ƒJ?#
  • \db\re\skill_cast_db.txt (starting at line 589)
//-- ASC_BREAKER
379,250,1000:1200:1400:1600:1800:2000:2200:2400:2600:2800,0,0,0,0,250
//-- ASC_DESTROYER
8443,250,1000:1200:1400:1600:1800:2000:2200:2400:2600:2800,0,0,0,0,250
 
Under skill.h my entry was ASC_DESTROYER = 8443, - however, this is not necessary as the skill count for this value is already 8443. - changing this did not have any implication.
Modifications in the source:

  • \src\map\skill.h (starting at line 1788)
EL_ROCK_CRUSHER,
EL_ROCK_CRUSHER_ATK,
EL_STONE_RAIN,
ASC_DESTROYER,
  • \src\map\skill.c (starting at line 4384)
case NJ_HYOUSENSOU:
case NJ_HUUJIN:
case ASC_DESTROYER:
  • \src\map\battle.c (starting at line 5064)
case NPC_EARTHQUAKE:
skillratio += 100 +100*skill_lv +100*(skill_lv/2);
break;
case ASC_DESTROYER:
skillratio += 1500;
break;

------------------------------------------------------------
I have not yet made any client modifications, any and all help is highly appreciated.  I look forward to future responses, thank you.
 
Edit: I've just discovered that this error is only displayed in the mapsql.bat when the item giving the skill is equipped.
 The script the item has is:

 skill "ASC_DESTROYER",10;

I'm not sure why this is happening, as the skill name "ASC_DESTROYER" is persistent through all the scripts, and the skill ID displayed in the error matches that name (8443).
As well, the battle animation is NOT the same as soul breaker, it looks like he's using hide....  Why am I able to use this skill as a command identified as 8443, but I can't add it to my skill list using an item?  

PLEASE help!!
could this have something to do with the SQL database?
Edited by CyricRO
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...