Jump to content
  • 0
PapaZola

Identify Dropped Equipment

Question

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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



×
×
  • Create New...

Important Information

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