Jump to content
  • 0

Custom Weapon won't show correctly


kimjoshua99

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   2
  • Joined:  05/27/12
  • Last Seen:  

qzmA2UX.jpg

 

 

So this is my problem, my weapon won't show correctly, what i mean is that the weapon that is showing is just a plain sword, what i want is like Naght sieger that it shows not a plain sword. I've tried another custom weapon, it shows the weapon but it is always on the floor, it is not wield by the character.

 

item_db.txt

 1191,valkyrian_broad_sword,Valkyrian Broad Sword,4,,,10,250,,,4,0x00000080,7,2,2,4,1,1,2,{ bonus2 bSkillAtk,KN_BOWLINGBASH,100; },{},{}

 

idnum2itemdesctable.txt

 


1191#
^4682B4EqRO^000000 Custom Item.
#

 

idnum2itemdisplaynametable.txt

 

1191#Valkyrian Broad Sword#

 

itemslotcounttable.txt

 

1191#4#

 

idnum2itemresnametable.txt

 

1191#valkyrie_broad_sword#

 

data\sprite\¾ÆÀÌÅÛ

 

 valkyrie_broad_sword.act
 valkyrie_broad_sword.spr

 

data\sprite\Àΰ£Á·\ÆäÄÚÆäÄÚ_±â»ç ( i think this is for knight with peco? )

 

 xZOYgIC.png

 

data\sprite\Àΰ£Á·\±â»ç ( i think this is the knight without peco peco? )

 

oU6RBB7.png

 

data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\collection

 

valkyrie_broad_sword.bmp

 

data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\item

 

valkyrie_broad_sword.bmp

 

I think that is all the information that i changed in the files, and im using 2012-04-10 client.

As you can see i've used 1191 as item id, 1190 is the last id next to dagger which starts at 1201, so i have space.

 

I've also tried to use this http://rathena.org/board/topic/79646-release-2012-04-10a-with-no-weapon-item-id-restriction/

but im getting error which is this.

 

iCBKjJp.png

 

Please help me, thanks!

 

EDIT: So i thought i've solved my own problem, i noticed that my "ÆäÄÚÆäÄÚ_±â»ç"  and "±â»ç" files are for id 13423 which is wrong so it should be 1191, that needs to correspond to other files. But here is a new problem, the custom weap was showed but it is on the ground.

 

qvV4vNL.jpg

 

As you can see from the screenshot, that the weap is on the floor, actually it disappear then appear then disappear again.

Edited by kimjoshua99
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   1
  • Joined:  06/04/13
  • Last Seen:  

you need to add your weapon view id in weapontable.lua

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   2
  • Joined:  05/27/12
  • Last Seen:  

What is the path for that? And does it need to be .lub?

Isn't that the weapontable is already configured? And my View ID is "2"

 

AZFfZ84.jpg

 

Btw, i changed the item id to 1146, since the 1191 is a two handed sword, and 1146 is a one handed, but still the problem persist.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

2012-04-10 client doesn't use weapontable.lua and iteminfo.lua which is why i made a custom client that supports using item ids outside the default hard-coded range. 

1146 should work ideally since it is within the range of default supported ids.

 

you should provide the sprite for non-mounted knight (which is also used for his successors aka lord knight & rune knight) in

/data/sprite/Àΰ£Á·/±â»ç

 

and the mounted sprite should be in

/data/sprite/Àΰ£Á·/ÆäÄÚÆäÄÚ_±â»ç
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   2
  • Joined:  05/27/12
  • Last Seen:  

yes, i already did that (as you can see from my first post), i used ra sprite generator to do that. i've double checked the paths, and it is correct. I even tried to download a sprite here in the forums and still the weapon is on the ground/floor.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

from the snapshot it looks like the drop sprite instead of the equip sprite. Are you sure you didn't get them mixed up?

 

Open the spr file in SprConview and make sure you are seeing the correct sword. Also the act file will be some KB in size not a few bytes.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   2
  • Joined:  05/27/12
  • Last Seen:  

that make sense, the size. i think that's where i go wrong, let me do it again. thanks for that information.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  37
  • Reputation:   8
  • Joined:  06/04/13
  • Last Seen:  

the sprite that you are currently using located at /data/sprite/Àΰ£Á·/±â»ç is the default sprite for LK. if you want to change it like the way you want. you should edit the sprite file or make a new sprite corresponded to your custom weapon.

Link to comment
Share on other sites

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...