|
@@ -4007,7 +4007,7 @@ ACMD_FUNC(idsearch)
|
|
|
for(const auto &result : item_array) {
|
|
|
std::shared_ptr<item_data> id = result.second;
|
|
|
|
|
|
- sprintf(atcmd_output, msg_txt(sd,78), id->ename.c_str(), id->nameid); // %s: %u
|
|
|
+ sprintf(atcmd_output, msg_txt(sd,78), item_db.create_item_link( id->nameid ).c_str(), id->nameid); // %s: %u
|
|
|
clif_displaymessage(fd, atcmd_output);
|
|
|
}
|
|
|
sprintf(atcmd_output, msg_txt(sd,79), match); // It is %d affair above.
|
|
@@ -6678,7 +6678,7 @@ ACMD_FUNC(autolootitem)
|
|
|
return -1;
|
|
|
}
|
|
|
sd->state.autolootid[i] = item_data->nameid; // Autoloot Activated
|
|
|
- sprintf(atcmd_output, msg_txt(sd,1192), item_data->name.c_str(), item_data->ename.c_str(), item_data->nameid); // Autolooting item: '%s'/'%s' {%u}
|
|
|
+ sprintf(atcmd_output, msg_txt(sd,1192), item_data->name.c_str(), item_db.create_item_link( item_data->nameid ).c_str(), item_data->nameid); // Autolooting item: '%s'/'%s' {%u}
|
|
|
clif_displaymessage(fd, atcmd_output);
|
|
|
sd->state.autolooting = 1;
|
|
|
break;
|
|
@@ -6689,7 +6689,7 @@ ACMD_FUNC(autolootitem)
|
|
|
return -1;
|
|
|
}
|
|
|
sd->state.autolootid[i] = 0;
|
|
|
- sprintf(atcmd_output, msg_txt(sd,1194), item_data->name.c_str(), item_data->ename.c_str(), item_data->nameid); // Removed item: '%s'/'%s' {%u} from your autolootitem list.
|
|
|
+ sprintf(atcmd_output, msg_txt(sd,1194), item_data->name.c_str(), item_db.create_item_link( item_data->nameid ).c_str(), item_data->nameid); // Removed item: '%s'/'%s' {%u} from your autolootitem list.
|
|
|
clif_displaymessage(fd, atcmd_output);
|
|
|
ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] != 0);
|
|
|
if (i == AUTOLOOTITEM_SIZE) {
|
|
@@ -6717,7 +6717,7 @@ ACMD_FUNC(autolootitem)
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- sprintf(atcmd_output, "'%s'/'%s' {%u}", item_data->name.c_str(), item_data->ename.c_str(), item_data->nameid);
|
|
|
+ sprintf(atcmd_output, "'%s'/'%s' {%u}", item_data->name.c_str(), item_db.create_item_link( item_data->nameid ).c_str(), item_data->nameid);
|
|
|
clif_displaymessage(fd, atcmd_output);
|
|
|
}
|
|
|
}
|
|
@@ -7784,9 +7784,9 @@ ACMD_FUNC(mobinfo)
|
|
|
int droprate = mob_getdroprate( &sd->bl, mob, mob->dropitem[i].rate, drop_modifier );
|
|
|
|
|
|
if (id->slots)
|
|
|
- sprintf(atcmd_output2, " - %s[%d] %02.02f%%", id->ename.c_str(), id->slots, (float)droprate / 100);
|
|
|
+ sprintf(atcmd_output2, " - %s[%d] %02.02f%%", item_db.create_item_link( id->nameid ).c_str(), id->slots, (float)droprate / 100);
|
|
|
else
|
|
|
- sprintf(atcmd_output2, " - %s %02.02f%%", id->ename.c_str(), (float)droprate / 100);
|
|
|
+ sprintf(atcmd_output2, " - %s %02.02f%%", item_db.create_item_link( id->nameid ).c_str(), (float)droprate / 100);
|
|
|
strcat(atcmd_output, atcmd_output2);
|
|
|
if (++j % 3 == 0) {
|
|
|
clif_displaymessage(fd, atcmd_output);
|
|
@@ -7824,14 +7824,14 @@ ACMD_FUNC(mobinfo)
|
|
|
j++;
|
|
|
if (j == 1) {
|
|
|
if (id->slots)
|
|
|
- sprintf(atcmd_output2, " %s[%d] %02.02f%%", id->ename.c_str(), id->slots, mvppercent);
|
|
|
+ sprintf(atcmd_output2, " %s[%d] %02.02f%%", item_db.create_item_link( id->nameid ).c_str(), id->slots, mvppercent);
|
|
|
else
|
|
|
- sprintf(atcmd_output2, " %s %02.02f%%", id->ename.c_str(), mvppercent);
|
|
|
+ sprintf(atcmd_output2, " %s %02.02f%%", item_db.create_item_link( id->nameid ).c_str(), mvppercent);
|
|
|
} else {
|
|
|
if (id->slots)
|
|
|
- sprintf(atcmd_output2, " - %s[%d] %02.02f%%", id->ename.c_str(), id->slots, mvppercent);
|
|
|
+ sprintf(atcmd_output2, " - %s[%d] %02.02f%%", item_db.create_item_link( id->nameid ).c_str(), id->slots, mvppercent);
|
|
|
else
|
|
|
- sprintf(atcmd_output2, " - %s %02.02f%%", id->ename.c_str(), mvppercent);
|
|
|
+ sprintf(atcmd_output2, " - %s %02.02f%%", item_db.create_item_link( id->nameid ).c_str(), mvppercent);
|
|
|
}
|
|
|
strcat(atcmd_output, atcmd_output2);
|
|
|
}
|
|
@@ -8266,7 +8266,7 @@ ACMD_FUNC(iteminfo)
|
|
|
std::shared_ptr<item_data> item_data = result.second;
|
|
|
|
|
|
sprintf(atcmd_output, msg_txt(sd,1277), // Item: '%s'/'%s'[%d] (%u) Type: %s | Extra Effect: %s
|
|
|
- item_data->name.c_str(),item_data->ename.c_str(),item_data->slots,item_data->nameid,
|
|
|
+ item_data->name.c_str(), item_db.create_item_link( item_data->nameid ).c_str(),item_data->slots,item_data->nameid,
|
|
|
(item_data->type != IT_AMMO) ? itemdb_typename((enum item_types)item_data->type) : itemdb_typename_ammo((e_ammo_type)item_data->subtype),
|
|
|
(item_data->script==NULL)? msg_txt(sd,1278) : msg_txt(sd,1279) // None / With script
|
|
|
);
|
|
@@ -8323,7 +8323,7 @@ ACMD_FUNC(whodrops)
|
|
|
for (const auto &result : item_array) {
|
|
|
std::shared_ptr<item_data> id = result.second;
|
|
|
|
|
|
- sprintf(atcmd_output, msg_txt(sd,1285), id->ename.c_str(), id->slots, id->nameid); // Item: '%s'[%d] (ID:%u)
|
|
|
+ sprintf(atcmd_output, msg_txt(sd,1285), item_db.create_item_link( id->nameid ).c_str(), id->slots, id->nameid); // Item: '%s'[%d] (ID:%u)
|
|
|
clif_displaymessage(fd, atcmd_output);
|
|
|
|
|
|
if (id->mob[0].chance == 0) {
|
|
@@ -9319,9 +9319,9 @@ ACMD_FUNC(itemlist)
|
|
|
}
|
|
|
|
|
|
if( it->refine )
|
|
|
- StringBuf_Printf(&buf, "%d %s %+d (%s, id: %u)", it->amount, itd->ename.c_str(), it->refine, itd->name.c_str(), it->nameid);
|
|
|
+ StringBuf_Printf(&buf, "%d %s %+d (%s, id: %u)", it->amount, item_db.create_item_link( it->nameid ).c_str(), it->refine, itd->name.c_str(), it->nameid);
|
|
|
else
|
|
|
- StringBuf_Printf(&buf, "%d %s (%s, id: %u)", it->amount, itd->ename.c_str(), itd->name.c_str(), it->nameid);
|
|
|
+ StringBuf_Printf(&buf, "%d %s (%s, id: %u)", it->amount, item_db.create_item_link( it->nameid ).c_str(), itd->name.c_str(), it->nameid);
|
|
|
|
|
|
if( it->equip ) {
|
|
|
char equipstr[CHAT_SIZE_MAX];
|
|
@@ -9424,7 +9424,7 @@ ACMD_FUNC(itemlist)
|
|
|
if( counter2 != 1 )
|
|
|
StringBuf_AppendStr(&buf, ", ");
|
|
|
|
|
|
- StringBuf_Printf(&buf, "#%d %s (id: %u)", counter2, card->ename.c_str(), card->nameid);
|
|
|
+ StringBuf_Printf(&buf, "#%d %s (id: %u)", counter2, item_db.create_item_link( card->nameid ).c_str(), card->nameid);
|
|
|
}
|
|
|
|
|
|
if( counter2 > 0 )
|