Jump to content

Recommended Posts

thumb-66fe9688be307b0325c8e3742dec6cf7-screenhercules019.jpg

File Name: Costume System

File Submitter: Mhalicot

File Submitted: 12 Oct 2013

File Category: Utility

 

~ Originally script by Rebel, Zephyrus [rAthena],

~ I don't own this script I'd revised it to make it compatible with Hercules.

~ [Original Topic] http://goo.gl/YU1Z7o

~ 100% compatible in (revision 137*)

//===== Hercules Script ======================================

//= Headgear to Costume converter >> Costume to Headgear converter

//===== By: ==================================================

//= Rebel, Zephyrus [rAthena]

//= Mhalicot [Hercules]

//===== Current Version: =====================================

//= 1.0

//===== Compatible With: =====================================

//= Hercules Revision 137*

//===== Description: =========================================

//= Allows a user to convert the equipped headgear

// (on Top, Mid or Low) into a costume item.

// It will remove any card and refine of the Item.

//= Allows a user to restore the equipped costume headgear

// (on Top, Mid or Low) into its original form.

// It will not return any card or refine of the item.

//===== Additional Comments: =================================

//= 1.0 Initial script [All of this script are credit to

// Rebel, Zephyrus of [rAthena] and revised by Mhalicot

// to make it compatible in Hercules.]

// Note: You must apply the patch in order to use this script

//============================================================

Download contains: Costume System.diff and costume.txt

 

Click here to download this file

Share this post


Link to post
Share on other sites

I manually patched the src with the data of your diff and it worked! Thanks for the conversion to hercules :)

On other point, i don't know if this is intended or not, but whenever I equip a Costume item like a headgear, the functional headgear will unequip, and when i equip back the functional headgear, the costume headgear unequips too...

How do I keep both items equipped, so I can equip both the functional (stats, refined, etc) item and the costume item (wich hides functional item)?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

I manually patched the src with the data of your diff and it worked! Thanks for the conversion to hercules :)

 

On other point, i don't know if this is intended or not, but whenever I equip a Costume item like a headgear, the functional headgear will unequip, and when i equip back the functional headgear, the costume headgear unequips too...

 

How do I keep both items equipped, so I can equip both the functional (stats, refined, etc) item and the costume item (wich hides functional item)?

 

Thanks in advance.

its working as intended see attachment.

 

what client you use? did you client have a costume tab in equipment window?

 

is it possible to you to provide screenshot if any?

 

Note: Costume headgears will only hide your Headgear sprite like for example in attachment, Hat sprite is replaced with Cap sprite, but the Hat attributes/functionality remains. 

post-1582-0-85567500-1386214438_thumb.jpg

post-1582-0-17273400-1386214449_thumb.jpg

Share this post


Link to post
Share on other sites

Thanks for the quick answer.


I think it's a server-side bug (or I just missed something), because Im not having any client issues. My client date is 2012-04-10.

 

 

As shown in the first screenshot, everytime I equip a same-position item, it replaces (unequips) the previous one, even if its a costume item.

 

post-3700-0-85452700-1386215809_thumb.pngpost-3700-0-06271300-1386215816_thumb.png

Edited by darkxxcrow

Share this post


Link to post
Share on other sites

Did you try to equip a regular/default costume? can you try to do that?

 

and is there any error in your map-server console?

Share this post


Link to post
Share on other sites

^ before that, can you try to use different client like 20130807?

 

and what Revision of hercules you use?

 

take note of this 100% compatible in (revision 12624)

Share this post


Link to post
Share on other sites

I had a lot of trouble making a client for newer versions of the exe (mainly lua files), that's why i got a 2012 version...

 

I use hercules 13434

 

--
I'll try making a 2013 client anyways...

Thanks for the help

Edited by darkxxcrow

Share this post


Link to post
Share on other sites

^ So its on your server side problem, is there any modification on your source code? can you check this line in your script.c?

	// aegis->athena slot position conversion table	unsigned int equip[SCRIPT_EQUIP_TABLE_SIZE] = {EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_GARMENT,EQP_SHOES,EQP_ACC_L,EQP_ACC_R,EQP_HEAD_MID,EQP_HEAD_LOW,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_GARMENT,EQP_SHADOW_ARMOR, EQP_SHADOW_WEAPON, EQP_SHADOW_SHIELD, EQP_SHADOW_SHOES, EQP_SHADOW_ACC_R, EQP_SHADOW_ACC_L};

and this in in your pc.h

//Equip position constantsenum equip_pos {	EQP_HEAD_LOW           = 0x000001,	EQP_HEAD_MID           = 0x000200, //512	EQP_HEAD_TOP           = 0x000100, //256	EQP_HAND_R             = 0x000002, //2	EQP_HAND_L             = 0x000020, //32	EQP_ARMOR              = 0x000010, //16	EQP_SHOES              = 0x000040, //64	EQP_GARMENT            = 0x000004, //4	EQP_ACC_L              = 0x000008, //8	EQP_ACC_R              = 0x000080, //128	EQP_COSTUME_HEAD_TOP   = 0x000400, //1024	EQP_COSTUME_HEAD_MID   = 0x000800, //2048	EQP_COSTUME_HEAD_LOW   = 0x001000, //4096	EQP_COSTUME_GARMENT    = 0x002000, //8192	//UNUSED_COSTUME_FLOOR = 0x004000, //16384	EQP_AMMO               = 0x008000, //32768	EQP_SHADOW_ARMOR       = 0x010000, //65536	EQP_SHADOW_WEAPON      = 0x020000, //131072	EQP_SHADOW_SHIELD      = 0x040000, //262144	EQP_SHADOW_SHOES       = 0x080000, //524288	EQP_SHADOW_ACC_R       = 0x100000, //1048576	EQP_SHADOW_ACC_L       = 0x200000, //2097152

 

if available?

Share this post


Link to post
Share on other sites

I can't reproduce your case, did you diff your client "Increase Headgear ViewID to 5000"? btw can you share your client 20130807 I want to try it.

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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