Costume System

use TortoiseSVN to patch this or apply it manually
default_smile.png


 
use TortoiseSVN to patch this or apply it manually
default_smile.png
hello, how about this one..

 
pc.c: In function 'pc_equippoint':
pc.c:10832: error: expected declaration or statement at end of input
make[1]: *** [obj_sql/pc.o] Error 1
 
 
 
Sorry now solve
 
Last edited by a moderator:
Please Edit this for the latest Rev.

Thank you!
Karasu, last update is still working on latest revision. Are you sure you download costume system 2.0 patch?
Hello bro, No error in compiling the server but in the game it will not convert the headgears in to costume 

___________________________________________________________________________________________________________________

I cannot find this line

 
Hello bro, Costume Item v2 is  not working with the current revision.. please update.



 if( ep == EQP_SHADOW_SHIELD )/* are there conditions for those? */  return EQP_SHADOW_WEAPON|EQP_SHADOW_SHIELD;

 }

+ if( battle_config.reserved_costume_id &&

+ sd->status.inventory[n].card[0] == CARD0_CREATE &&

+ (char_id = MakeDWord(sd->status.inventory[n].card[2],sd->status.inventory[n].card[3])) == battle_config.reserved_costume_id )

+ { // Costume Item - Converted

+ if( ep&EQP_HEAD_TOP ) { ep &= ~EQP_HEAD_TOP; ep |= EQP_COSTUME_HEAD_TOP; }

+ if( ep&EQP_HEAD_LOW ) { ep &= ~EQP_HEAD_LOW; ep |= EQP_COSTUME_HEAD_LOW; }

+ if( ep&EQP_HEAD_MID ) { ep &= ~EQP_HEAD_MID; ep |= EQP_COSTUME_HEAD_MID; }

+ }

 return ep;

 }

Current look

sd->inventory_data[n]->look == W_1HAXE) { if(  (pc->checkskill(sd,AS_LEFT) > 0 ||

(sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN ||

(sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO) ) { //Kagerou and Oboro can dual wield daggers. [Rytech]

if( ep == EQP_HAND_R )

return EQP_ARMS;

if( ep == EQP_SHADOW_WEAPON )

return EQP_SHADOW_ARMS;

}

 
 
===================================================================--- src/map/pc.c (revision 13749)+++ src/map/pc.c (working copy)@@ -631,8 +631,8 @@ int pc_equippoint(struct map_session_data *sd,int n) {- int ep = 0;-+ int ep = 0, char_id = 0;+  nullpo_ret(sd);  if(!sd->inventory_data[n])@@ -651,6 +651,14 @@  if( ep == EQP_SHADOW_SHIELD )/* are there conditions for those? */  return EQP_SHADOW_WEAPON|EQP_SHADOW_SHIELD;  }+ if( battle_config.reserved_costume_id &&+ sd->status.inventory[n].card[0] == CARD0_CREATE &&+ (char_id = MakeDWord(sd->status.inventory[n].card[2],sd->status.inventory[n].card[3])) == battle_config.reserved_costume_id )+ { // Costume Item - Converted+ if( ep&EQP_HEAD_TOP ) { ep &= ~EQP_HEAD_TOP; ep |= EQP_COSTUME_HEAD_TOP; }+ if( ep&EQP_HEAD_LOW ) { ep &= ~EQP_HEAD_LOW; ep |= EQP_COSTUME_HEAD_LOW; }+ if( ep&EQP_HEAD_MID ) { ep &= ~EQP_HEAD_MID; ep |= EQP_COSTUME_HEAD_MID; }+ }  return ep; } 
The Main Problem is in the pc.c other than that other diff are still can be place in the right place.
 
it should be merge like this

Code:
int pc_equippoint(struct map_session_data *sd,int n){	int ep = 0, char_id = 0;		nullpo_ret(sd);	if(!sd->inventory_data[n])		return 0;	if (!itemdb->isequip2(sd->inventory_data[n]))		return 0; //Not equippable by players.	ep = sd->inventory_data[n]->equip;	if(sd->inventory_data[n]->look == W_DAGGER	||		sd->inventory_data[n]->look == W_1HSWORD ||		sd->inventory_data[n]->look == W_1HAXE) {		if(  (pc->checkskill(sd,AS_LEFT) > 0 ||			 (sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN ||			 (sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO) ) { //Kagerou and Oboro can dual wield daggers. [Rytech]			if( ep == EQP_HAND_R )				return EQP_ARMS;			if( ep == EQP_SHADOW_WEAPON )				return EQP_SHADOW_ARMS;		}	}	if( battle_config.reserved_costume_id &&		sd->status.inventory[n].card[0] == CARD0_CREATE &&		(char_id = MakeDWord(sd->status.inventory[n].card[2],sd->status.inventory[n].card[3])) == battle_config.reserved_costume_id )	{ // Costume Item - Converted		if( ep&EQP_HEAD_TOP ) { ep &= ~EQP_HEAD_TOP; ep |= EQP_COSTUME_HEAD_TOP; }		if( ep&EQP_HEAD_LOW ) { ep &= ~EQP_HEAD_LOW; ep |= EQP_COSTUME_HEAD_LOW; }		if( ep&EQP_HEAD_MID ) { ep &= ~EQP_HEAD_MID; ep |= EQP_COSTUME_HEAD_MID; }	}	return ep;}
 
Edit sorry. ok pc.c



EDIT:


ITS NOW WORKING WOHOOOOOOOOOOO


Thank you very much bro..


Please also the @afk..
 
Last edited by a moderator:
yeaa im 100% sure.. im always checking it and as i see.. there's no error appear.. i clearly followed all the details in the Costume v2 ... what should i do now to fix that error?..

 
It seems this script still has many issues. Will wait for update. Is it alright to use now?

 
Update: 

  • 2.1 Item converted to costume using this command will ignore item combos. Compatible in rev. 141**

 
thumb-66fe9688be307b0325c8e3742dec6cf7-screenhercules019.jpg


File Name: Costume SystemFile 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
HI, what the matter if i used costume plugins and now change to use this costume system?

 
Last edited by a moderator:
thumb-66fe9688be307b0325c8e3742dec6cf7-screenhercules019.jpg


File Name: Costume SystemFile 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
HI, what the matter if i used costume plugins and now change to use this costume system?
You must remove your modification in your source if you want to use costume plugins. you cannot use Costume Plugins and System at once.

 
Hello! I am just wondering, is this the only way to allow costumes on Hercules? I simply tried making an existing headgears "loc: 1024" and then I cannot wear it. LOL.

 
Back
Top