Jump to content
Mhalicot

Costume Item Plugins

Recommended Posts

Hmmm.... Costume not working,

http://imageshack.com/a/img197/8745/clor.jpg

I converted item into costume, but still its been equipped at Normal Position.

 

And a correction in plugin

clif->message(fd, "Please enter an item name or ID (usage: @ci <item name/ID>).");

should be 

clif->message(fd, "Please enter an item name or ID (usage: @costumeitem <item name/ID>).");

 

Share this post


Link to post
Share on other sites

^ Did you add "HPMHooking", in plugins.conf? costumeitem.c is using Hook so you must enable HPMHooking in plugins.conf

 

Aside from that, I cant reproduce your problem.

post-1582-0-52304300-1392018847_thumb.jpg

Edited by Mhalicot
Update 1.0a

Share this post


Link to post
Share on other sites

Hi,

 

Tried this plugin and found this error:

       CC      costumeitem.cIn file included from costumeitem.c:20:../common/HPMDataCheck.h:10: error: array type has incomplete element type../common/HPMDataCheck.h:127: error: empty scalar initializer../common/HPMDataCheck.h:127: error: (near initialization for ‘HPMDataCheck’)make[1]: *** [../../plugins/costumeitem.so] Error 1

How to fix this?

Share this post


Link to post
Share on other sites

Is your server updated? the source of error is not in costumeitem.c. I cant reproduce your problem, This plugins is working and tested in both Linux and Windows.

Share this post


Link to post
Share on other sites

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;		} 

 

Edited by karazu

Share this post


Link to post
Share on other sites

Any update about this one? 


There are to many updates about  HPM, I hope the status problem after converting using this plugins  will be solve already... 

Share this post


Link to post
Share on other sites

Thank you for sharing this, not only its a good plugin, it'll help me learn HPM too xD I was trying to learn how to edit some pc functions and this was a very good example.

Btw do you have a git hub this script?

 

Edit*

I just installed, and it works great. Just need to know how I can turn the stats off when the costume is equipped, also is it possible to change the generated name to "costume" instead of player name? eg. costume's baphomet horn . Cause player name is kind of scam prone xD

Edited by Happy

Share this post


Link to post
Share on other sites

Got an error here

 

If your assassin cross class and this plugin is activated. you cannot use double dagger. but if the plugin is not activated you can use double dagger please fix 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.