Jump to content
AnnieRuru

Change Equipment Skin

Recommended Posts

https://rathena.org/board/topic/117831-showcase-weapon-skin/.
https://github.com/rathena/rathena/issues/1779

got people ask how to do that ...
so I write a plugin for it

Download: 1.1
plugin
 

also need to add a file in conf/import/change_equipment_skin.conf

change_equipment_skin: (
{
	Type: "LOOK_WEAPON"
	ItemID: 24001
	SkinID: 1238
},
//{
//	Type: "LOOK_SHIELD"
//	ItemID: 24002
//	SkinID: 2101
//},
)

When player equip a shadow weapon ID 24001, will show the weapon look 1238, which is Zeny_Knife

"@reloadequipmentskin" will reload this file ...

 


Note: yes, the clif->sendlook is extremely messy, I attempt to make this support change shield skin
but for dunno what reason, equip a shield telling the client changing LOOK_WEAPON ... WTF !!
if anybody knows how to make it support shield, I'm open to suggestion

Spoiler

0.1
- initial draft

0.2
- apply the libconfig format

0.3
- apply vector

0.4 - plugin
- shield are send as LOOK_WEAPON .... bullshit

1.0 - plugin
- release with just the weapon look

1.1 - plugin
- display a message for file not found
- fix memory leak on VECTOR_ENSURE

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

1.1 - plugin
- display a message for file not found
- fix memory leak on VECTOR_ENSURE

Share this post


Link to post
Share on other sites

This is really cool addition the only problem is that Assassin does not have sprite for this. Katar always shows as dagger sprite. Not sure if this issue exists on all the latest clients.

Share this post


Link to post
Share on other sites
1 hour ago, ProjectX said:

This is really cool addition the only problem is that Assassin does not have sprite for this. Katar always shows as dagger sprite. Not sure if this issue exists on all the latest clients.

are you wearing katar but it shows dagger? maybe you need to equip same weapon class for this?

Share this post


Link to post
Share on other sites
7 minutes ago, chojuro said:

are you wearing katar but it shows dagger? maybe you need to equip same weapon class for this?

Sorry mixed it up. The real problem is when you're wearing a DAGGER sprite it won't show up for both hands and will use the default dagger so the only solution to this right now is to use a katar costume weapon that looks like a dagger hehehe...

Share this post


Link to post
Share on other sites
24 minutes ago, ProjectX said:

Sorry mixed it up. The real problem is when you're wearing a DAGGER sprite it won't show up for both hands and will use the default dagger so the only solution to this right now is to use a katar costume weapon that looks like a dagger hehehe...

is it working can i see?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.