Jump to content

PATULONG NAMAN PO SA COSTUME MGA DEVS!


Dr_Jackal

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/24/15
  • Last Seen:  

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;
else
sd->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;
else
sd->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;
else
sd->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, //512
EQP_HEAD_TOP = 0x0100, //256
EQP_HAND_R   = 0x0002,
EQP_HAND_L   = 0x0020, //32
EQP_ARMOR    = 0x0010, //16
EQP_SHOES    = 0x0040, //64
EQP_GARMENT  = 0x0004,
EQP_ACC_L    = 0x0008,
EQP_ACC_R    = 0x0080, //128
EQP_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

 

help please

post-31359-0-47732800-1422582554_thumb.jpg

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I don't remember NEMO supports 2010 clients.

 

And are you using the latest rAthena? or your using a different emulator?

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...