Jump to content
  • 0

Question

Posted

im used New SVN

the source code not same like old 1

 

OLD

/*==========================================
* Specifies if item-type should drop unidentified.
*------------------------------------------*/

int itemdb_isidentified(int nameid)
{
int type=itemdb_type(nameid);
switch (type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
return 0;
default:
return 1;
}
}

 

 

NEW

/** Specifies if item-type should drop unidentified.
* @param nameid ID of item
*/
char itemdb_isidentified(unsigned short nameid) {
}
 
int type=itemdb_type(nameid);
switch (type) {
case IT_WEAPON:
case IT_ARMOR:
case IT_PETARMOR:
case IT_SHADOWGEAR:
return 0;
default:
return 1;
}
}

 

 

PLEASE HELP

1 answer to this question

Recommended Posts

Posted

I believe setting the first return 0 to return 1 will do the trick.

 

Or you could just remove the first part leaving 

/** Specifies if item-type should drop unidentified.
* @param nameid ID of item
*/
char itemdb_isidentified(unsigned short nameid) {
}
 
int type=itemdb_type(nameid);
switch (type) {
case IT_SHADOWGEAR:
return 0;
default:
return 1;
}
}
 

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.   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...