Hi rathenians anyone knows how to fix this? Im using the latest SVN.
Help with costume system diff.
Im having errors.
offline\svn\src\map\atcommand.c(1172): error C2223: left of '->equip' must point to struct/union
offline\svn\src\map\atcommand.c(1173): error C2223: left of '->equip' must point to struct/union
offline\svn\src\map\atcommand.c(1174): error C2223: left of '->equip' must point to struct/union
offline\svn\src\map\atcommand.c(1175): error C2223: left of '->equip' must point to struct/union
offline\svn\src\map\atcommand.c(1176): error C2223: left of '->equip' must point to struct/union
offline\svn\src\map\atcommand.c(1177): error C2223: left of '->equip' must point to struct/union
if( !strcmpi(command+1,"costumeitem") )
{
if( !battle_config.reserved_costume_id )
{
clif_displaymessage(fd, "Costume convertion is disable. Set a value for reserved_cosutme_id on your battle.conf file.");
return -1;
}
if( !(item_data->equip&EQP_HEAD_LOW) &&
!(item_data->equip&EQP_HEAD_MID) &&
!(item_data->equip&EQP_HEAD_TOP) &&
!(item_data->equip&EQP_COSTUME_HEAD_LOW) &&
!(item_data->equip&EQP_COSTUME_HEAD_MID) &&
!(item_data->equip&EQP_COSTUME_HEAD_TOP) )
{
clif_displaymessage(fd, "You cannot costume this item. Costume only work for headgears.");
return -1;
}
costume = 1;
}
Bump solved it my self, this is the fix, actually idk what im doing but magically i fix the source without having problem, wild guess sure do work sometimes.
C2223: left of '->equip' must point to struct/union
SOLVED!
Hi rathenians anyone knows how to fix this? Im using the latest SVN.Help with costume system diff.Im having errors.if( !strcmpi(command+1,"costumeitem") ) { if( !battle_config.reserved_costume_id ) { clif_displaymessage(fd, "Costume convertion is disable. Set a value for reserved_cosutme_id on your battle.conf file."); return -1; } if( !(item_data->equip&EQP_HEAD_LOW) && !(item_data->equip&EQP_HEAD_MID) && !(item_data->equip&EQP_HEAD_TOP) && !(item_data->equip&EQP_COSTUME_HEAD_LOW) && !(item_data->equip&EQP_COSTUME_HEAD_MID) && !(item_data->equip&EQP_COSTUME_HEAD_TOP) ) { clif_displaymessage(fd, "You cannot costume this item. Costume only work for headgears."); return -1; } costume = 1; }Bump solved it my self, this is the fix, actually idk what im doing but magically i fix the source without having problem, wild guess sure do work sometimes.
I get this error from.
itemlist = strtok(item_name, ":"); while (itemlist != NULL && j<10) { if ((item_data[j] = itemdb_searchname(itemlist)) == NULL && (item_data[j] = itemdb_exists(atoi(itemlist))) == NULL){ clif_displaymessage(fd, msg_txt(sd,19)); // Invalid item ID or name. return -1; } itemlist = strtok(NULL, ":"); //next itemline j++; }The old format of this is:
if ((item_data = itemdb_searchname(item_name)) == NULL && (item_data = itemdb_exists(atoi(item_name))) == NULL) { clif_displaymessage(fd, msg_txt(sd,19)); // Invalid item ID or name. return -1; }Manage to fix the Error by changing these:
to these:
Now if someone want to use costume system in the latest svn like am using([r17516]). This is the fix..
Edited by Lil TrollLink to comment
Share on other sites