Jump to content
Mhalicot

Costume System v1

Recommended Posts

~ Originally script by Rebel, Zephyrus [rAthena].
~ Hindi ko pag aari ang script na ito, ginawa ko lang itong tugma sa Hercules.
   Kung sakaling magustuhan nyo, pindutin lamang ang rep_up.png bilang pasasalamat.
~ [Original Topic] http://goo.gl/YU1Z7o
~ 100% compatible in (revision 12624)
~ Requested by karazu
 

 

//= Pwede nang ma convert ang headgear
// (on Top, Mid or Low) na maging costume item. 
//   Mawawala ang refine(+) or card kung meron man.
//= Ibabalik ang ginawang custume headgear
// (on Top, Mid or Low) sa orihinal na gamit. 
//   hindi nito ibabalik ang refine(+) or card kung meron man.

 

 
~ Maraming salamat sa pag suporta. Bigyan ng rate ang download kung gumana.
 
Note: Inilagay ko sya sa Download para makita rin ng iba kung sakaling matabunan ang topic na to.
         Salamat sa pang unawa.
Edited by sevenzz23

Share this post


Link to post
Share on other sites

No prob. I really appreciate it if you click rep_up.png  :P​ 

 

wala ka bang tortoise.. gamitin mo tortoise sa pat apply ng patch xD

Share this post


Link to post
Share on other sites

No prob. I really appreciate it if you click rep_up.png  :P​ 

 

wala ka bang tortoise.. gamitin mo tortoise sa pat apply ng patch xD

Bro its not working with the latest revision.

 

theirs and error.

SCRIPT.C

 

 

--- script.c+++ script.c@@ -17297,6 +17297,52 @@		  return true; }++/*==========================================+ * Costume Items+ *------------------------------------------*/+BUILDIN(costume)+{+	int i = -1, num, ep;+	TBL_PC *sd;++	num = script_getnum(st,2); // Equip Slot+	sd = script->rid2sd(st);++	if( sd == NULL )+		return 0;+	if( num > 0 && num <= ARRAYLENGTH(script->equip) )+		i = pc->checkequip(sd, script->equip[num - 1]);+	if( i < 0 )+		return 0;+	ep = sd->status.inventory[i].equip;+	if( !(ep&EQP_HEAD_LOW) && !(ep&EQP_HEAD_MID) && !(ep&EQP_HEAD_TOP) )+		return 0;++	logs->pick_pc(sd, LOG_TYPE_SCRIPT, -1, &sd->status.inventory[i],sd->inventory_data[i]);+	pc->unequipitem(sd,i,2);+	clif->delitem(sd,i,1,3);+	// --------------------------------------------------------------------+	sd->status.inventory[i].refine = 0;+	sd->status.inventory[i].attribute = 0;+	sd->status.inventory[i].card[0] = CARD0_CREATE;+	sd->status.inventory[i].card[1] = 0;+	sd->status.inventory[i].card[2] = GetWord(battle_config.reserved_costume_id, 0);+	sd->status.inventory[i].card[3] = GetWord(battle_config.reserved_costume_id, 1);++	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; }+	// --------------------------------------------------------------------+	logs->pick_pc(sd, LOG_TYPE_SCRIPT, 1, &sd->status.inventory[i],sd->inventory_data[i]);++	clif->additem(sd,i,1,0);+	pc->equipitem(sd,i,ep);+	clif->misceffect(&sd->bl,3);++	return 0;+}+ // declarations that were supposed to be exported from npc_chat.c #ifdef PCRE_SUPPORT	 BUILDIN(defpattern); 

 

Share this post


Link to post
Share on other sites

-	unsigned short equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT,EQP_AMMO};+//	unsigned short equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT,EQP_AMMO};+	unsigned short equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_AMMO,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT};+  

it says remove

 

 

-	unsigned short equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT,EQP_AMMO}; 

but but in the latest revision it you cannot find it any more because this is the new one

 

 

	unsigned int equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT,EQP_AMMO, EQP_SHADOW_ARMOR, EQP_SHADOW_WEAPON, EQP_SHADOW_SHIELD, EQP_SHADOW_SHOES, EQP_SHADOW_ACC_R, EQP_SHADOW_ACC_L }; 

 

How to edit it? since its not same anymore?

 

 

 

EDIT: Its in the LATEST revision.

 

 

 

Edited by karazu

Share this post


Link to post
Share on other sites

please edit it on Notepad++ 

 

thnx

Yes i did, since I am editing it manuall., but what will happen to the Shadow system if I will remove it?

 

 

EDIT  

 

 unsigned int equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT,EQP_AMMO, EQP_SHADOW_ARMOR, EQP_SHADOW_WEAPON, EQP_SHADOW_SHIELD, EQP_SHADOW_SHOES, EQP_SHADOW_ACC_R, EQP_SHADOW_ACC_L }; 

 

EDIT: I will add them also manually?

Edited by karazu

Share this post


Link to post
Share on other sites

 

+//	unsigned short equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT,EQP_AMMO};+	unsigned short equip_pos[EQI_MAX]={EQP_ACC_L,EQP_ACC_R,EQP_SHOES,EQP_GARMENT,EQP_HEAD_LOW,EQP_HEAD_MID,EQP_HEAD_TOP,EQP_ARMOR,EQP_HAND_L,EQP_HAND_R,EQP_AMMO,EQP_COSTUME_HEAD_TOP,EQP_COSTUME_HEAD_MID,EQP_COSTUME_HEAD_LOW,EQP_COSTUME_GARMENT,EQP_SHADOW_ARMOR, EQP_SHADOW_WEAPON, EQP_SHADOW_SHIELD, EQP_SHADOW_SHOES, EQP_SHADOW_ACC_R, EQP_SHADOW_ACC_L };}; 

 




is this the correct one?

Share this post


Link to post
Share on other sites

 

~ Originally script by Rebel, Zephyrus [rAthena].
~ Hindi ko pag aari ang script na ito, ginawa ko lang itong tugma sa Hercules.
   Kung sakaling magustuhan nyo, pindutin lamang ang rep_up.png bilang pasasalamat.
~ [Original Topic] http://goo.gl/YU1Z7o
~ 100% compatible in (revision 12624)
~ Requested by karazu
 

 

//= Pwede nang ma convert ang headgear
// (on Top, Mid or Low) na maging costume item. 
// Mawawala ang refine(+) or card kung meron man.
//= Ibabalik ang ginawang custume headgear
// (on Top, Mid or Low) sa orihinal na gamit. 
// hindi nito ibabalik ang refine(+) or card kung meron man.

 

 
~ Maraming salamat sa pag suporta. Bigyan ng rate ang download kung gumana.
 
Note: Inilagay ko sya sa Download para makita rin ng iba kung sakaling matabunan ang topic na to.
         Salamat sa pang unawa.
Boss Mhalicot .. Working pa po ba to .. san ko pala ilalagay ung costume system 2.1 ?? thankyou ..

 

Share this post


Link to post
Share on other sites

 

 

~ Originally script by Rebel, Zephyrus [rAthena].
~ Hindi ko pag aari ang script na ito, ginawa ko lang itong tugma sa Hercules.
   Kung sakaling magustuhan nyo, pindutin lamang ang rep_up.png bilang pasasalamat.
~ [Original Topic] http://goo.gl/YU1Z7o
~ 100% compatible in (revision 12624)
~ Requested by karazu
 

 

//= Pwede nang ma convert ang headgear
// (on Top, Mid or Low) na maging costume item. 
// Mawawala ang refine(+) or card kung meron man.
//= Ibabalik ang ginawang custume headgear
// (on Top, Mid or Low) sa orihinal na gamit. 
// hindi nito ibabalik ang refine(+) or card kung meron man.

 

 
~ Maraming salamat sa pag suporta. Bigyan ng rate ang download kung gumana.
 
Note: Inilagay ko sya sa Download para makita rin ng iba kung sakaling matabunan ang topic na to.
         Salamat sa pang unawa.
Boss Mhalicot .. Working pa po ba to .. san ko pala ilalagay ung costume system 2.1 ?? thankyou ..

 

Working pa naman to.. pero may available na tayo na Plugins para di mo na galawin ung source file.. check mo dito Custom Item Plugins

Share this post


Link to post
Share on other sites

thankyou sir Mhalicot .. i will try it now .. 

 

Walang anuman, report mo lang kung may problem.. di ko na kasi nabibisita yan dahil masyadong Busy. Full load ang sched ko :D

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.