Jump to content
  • 0
Sign in to follow this  
Dr_Jackal

HELP ME IN COSTUME :D

Question

PC.C

 

if(pos & EQP_HEAD_LOW|EQP_HEAD_LOW_C) {if(id && !(pos&(EQP_HEAD_TOP|EQP_HEAD_MID|EQP_HEAD_TOP_C|EQP_HEAD_MID_C)))sd->status.head_bottom = id->look;elsesd->status.head_bottom = 0;clif_changelook(&sd->bl,LOOK_HEAD_BOTTOM,sd->status.head_bottom);}if(pos & EQP_HEAD_TOP|EQP_HEAD_TOP_C) {if(id)sd->status.head_top = id->look;elsesd->status.head_top = 0;clif_changelook(&sd->bl,LOOK_HEAD_TOP,sd->status.head_top);}if(pos & EQP_HEAD_MID|EQP_HEAD_MID_C) {if(id && !(pos&EQP_HEAD_TOP|EQP_HEAD_TOP_C))sd->status.head_mid = id->look;elsesd->status.head_mid = 0;clif_changelook(&sd->bl,LOOK_HEAD_MID,sd->status.head_mid);}if( i == EQI_HAND_R && sd->equip_index[EQI_HAND_L] == index ) continue;if( i == EQI_HEAD_MID && sd->equip_index[EQI_HEAD_LOW] == index ) continue;if( i == EQI_HEAD_TOP && (sd->equip_index[EQI_HEAD_MID] == index || sd->equip_index[EQI_HEAD_LOW] == index) ) continue;static 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_HEAD_TOP_C,     EQP_HEAD_MID_C, EQP_HEAD_LOW_C, EQP_GARMENT_C}; 

 

 

 

pc.h
 

 

enum equip_pos {EQP_HEAD_LOW = 0x0001, EQP_HEAD_MID = 0x0200, //512EQP_HEAD_TOP = 0x0100, //256EQP_HAND_R   = 0x0002,EQP_HAND_L   = 0x0020, //32EQP_ARMOR    = 0x0010, //16EQP_SHOES    = 0x0040, //64EQP_GARMENT  = 0x0004,EQP_ACC_L    = 0x0008,EQP_ACC_R    = 0x0080, //128EQP_HEAD_TOP_C = 0x0400,     EQP_HEAD_MID_C = 0x0800,     EQP_HEAD_LOW_C = 0x1000,EQP_GARMENT_C = 0x2000,EQP_AMMO     = 0x8000 //32768#define EQP_WEAPON EQP_HAND_R#define EQP_SHIELD EQP_HAND_L#define EQP_ARMS (EQP_HAND_R|EQP_HAND_L)#define EQP_HELM (EQP_HEAD_LOW|EQP_HEAD_MID|EQP_HEAD_TOP|EQP_HEAD_TOP_C|EQP_HEAD_MID_C|EQP_HEAD_LOW_C)#define EQP_ACC (EQP_ACC_L|EQP_ACC_R)#define EQP_GARMENT (EQP_GARMENT|EQP_GARMENT_C)//Equip indexes constants. (eg: sd->equip_index[EQI_AMMO] returns the index//where the arrows are equipped)enum equip_index {EQI_ACC_L = 0,EQI_ACC_R,EQI_SHOES,EQI_GARMENT,EQI_HEAD_LOW,EQI_HEAD_MID,EQI_HEAD_TOP,EQI_ARMOR,EQI_HAND_L,EQI_HAND_R,    EQI_HEAD_TOP_C,     EQI_HEAD_MID_C,     EQI_HEAD_LOW_C, EQI_GARMENT_C,EQI_AMMO,EQI_MAX}; 

 

 

example item as in the thumbnail 

5574,Well-Chewed_Pencil,Well Chewed Pencil,5,,,100,,0,,0,0xFFFFFFFF,7,2,4096,,10,1,555,{ bonus bHit,3; if(isequipped(5073)) { bonus bDex,2; bonus bDef,2; } },{},{}

 

I downloaded a ready made server named Ragnarok Super Saiyan and im using this server because its too hard for me to make one :3... the client is 20100707 (checked using NEMO-master)  also data files are in .lub. but  i already converted it into lua

*This problem about costumes is what, server sided or client? or both?:3
*Is it possible to add custom items w/o editting acce files?
*Im using notepad ++ to edit src files, is it enough to use it for pc.h and pc.c
*Can i still add custom items even if i dont put them on iteminfo.lub/lua?

post-8519-0-70673300-1422518035_thumb.jpg

Edited by Dastgir
use codebox

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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