Custom Item Shows Wrong

04/24/2022 17:51 pepeton#1
Hello,

I have trouble with these items that I leeched from guru files. It is working and showing the right stats but when you wear it is showing a vagrant cap. I am surely did not miss anything here because other items are showing correctly but these below nah. Any idea what went wrong?

spec_Item
[Only registered and activated users can see links. Click Here To Register...]

defineItem.h
PHP Code:
#define II_RID_MSK_WIN_METEONYK1    25905
#define II_RID_MSK_WIN_HELLSING        25906
#define II_RID_MSK_WIN_REDSAKURA    25907
#define II_RID_MSK_WIN_PURESILVER    25908
#define II_RID_MSK_WIN_PUREGOLD        25909
#define II_RID_MSK_WIN_PINKHEAVEN    25910
#define II_RID_MSK_WIN_KINESSA        25911
#define II_RID_MSK_WIN_GREATFUL        25912
#define II_RID_MSK_WIN_GODDESS        25913
#define II_RID_MSK_WIN_FWCSIL        25914
#define II_RID_MSK_WIN_FWCGOL        25915
#define II_RID_MSK_WIN_FWCBRO        25916
#define II_RID_MSK_WIN_DIABOLIC        25917
#define II_RID_MSK_WIN_CRYSTALEN    25918
#define II_RID_MSK_WIN_CHIMERA        25919
#define II_RID_MSK_WIN_CHIMERAX        25920
#define II_RID_MSK_WIN_CALYPSO        25921 
mdlDyna.inc
PHP Code:
// WIngmask
        
"RidRidMetonyker01"        II_RID_MSK_WIN_METEONYK1    MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 2.0f 0 1 ATEX_NONE 1
        
"HellsingWings"       II_RID_MSK_WIN_HELLSING        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
        
"RedSakuraWings"        II_RID_MSK_WIN_REDSAKURA    MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"PureSilverWings"        II_RID_MSK_WIN_PURESILVER    MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"PureGoldWings"            II_RID_MSK_WIN_PUREGOLD        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"PinkHeavenWings"        II_RID_MSK_WIN_PINKHEAVEN    MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"KinessaWings"            II_RID_MSK_WIN_KINESSA        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"GreatfulWings"            II_RID_MSK_WIN_GREATFUL        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"GoddessWings"            II_RID_MSK_WIN_GODDESS        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"FWCVictorySilWing"        II_RID_MSK_WIN_FWCSIL        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"FWCVictoryGolWing"        II_RID_MSK_WIN_FWCGOL        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"FWCVictoryBroWing"        II_RID_MSK_WIN_FWCBRO        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"DiaboloWings"            II_RID_MSK_WIN_DIABOLIC        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"CrystaleenWings"        II_RID_MSK_WIN_CRYSTALEN    MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"ChimeraWings"            II_RID_MSK_WIN_CHIMERA        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"ChimeratechXWings"        II_RID_MSK_WIN_CHIMERAX        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1
        
"CalypsoWings"            II_RID_MSK_WIN_CALYPSO        MODELTYPE_ANIMATED_MESH "" 0 MD_FAR 0 1.0f 0 1 ATEX_NONE 1 
Model Files (e.g HellSingWings) same with the others.
[Only registered and activated users can see links. Click Here To Register...]

Note: This is a working code and I have tested it in its official server file.
04/24/2022 18:16 Icetea#2
I also believe it would be beneficial to the community, to post a preview of these custom items. In general, I would say that it is not a must, but I can only recommend this.
04/25/2022 02:36 dpkidz#3
i'm guessing you did add the source part too?
#define __WINGSFX //| Item mask with SFX
#define __ANI_WING //| Animations wings

also, do you get any error logs at all when equipping the item?

check in defineitem.h so that item's don't have duplicated numbers.
04/25/2022 11:21 pepeton#4
Quote:
Originally Posted by dpkidz View Post
i'm guessing you did add the source part too?
#define __WINGSFX //| Item mask with SFX
#define __ANI_WING //| Animations wings

also, do you get any error logs at all when equipping the item?

check in defineitem.h so that item's don't have duplicated numbers.
I have now solved the problem because of this, thank you! The server I am leeching from doesn't have ANI_WING but uses FLOATING_WING instead. It's kind of different but it's also the same at the same time lol but I managed to make it work by modifying every ANI_WING lines.
[Only registered and activated users can see links. Click Here To Register...]

Now my problem is I can't hide those problematic items from inventory.
[Only registered and activated users can see links. Click Here To Register...]

UPDATE2:
Now the Ani Wings are bug, it was working fine until I solved the problematic items above xD
[Only registered and activated users can see links. Click Here To Register...]

UPDATE3:
SOLVED THE PROBLEM by changing the 8th line in Spec_Item

From: IK3_WING
To: IK3_ANI_WING

Now it is completely working such as you can preview it now and hide without affecting the other mask lolol silly me :heh:

But still, big thanks for giving me the idea!
04/25/2022 13:04 dpkidz#5
Quote:
Originally Posted by pepeton View Post
I have now solved the problem because of this, thank you! The server I am leeching from doesn't have ANI_WING but uses FLOATING_WING instead. It's kind of different but it's also the same at the same time lol but I managed to make it work by modifying every ANI_WING lines.
[Only registered and activated users can see links. Click Here To Register...]

Now my problem is I can't hide those problematic items from inventory.
[Only registered and activated users can see links. Click Here To Register...]

UPDATE2:
Now the Ani Wings are bug, it was working fine until I solved the problematic items above xD
[Only registered and activated users can see links. Click Here To Register...]

UPDATE3:
SOLVED THE PROBLEM by changing the 8th line in Spec_Item

From: IK3_WING
To: IK3_ANI_WING

Now it is completely working such as you can preview it now and hide without affecting the other mask lolol silly me :heh:

But still, big thanks for giving me the idea!
haha awesome!