Fix admin commands for items to use .sitem by default

ryzomclassic-develop
kaetemi 5 years ago
parent 669237dbae
commit a7933bc818

@ -1511,7 +1511,7 @@ NLMISC_COMMAND (createItemInTmpInv, "Create an item and put it in the player tem
else else
{ {
if (sheetName.find(".") == string::npos) if (sheetName.find(".") == string::npos)
sheetName += ".item"; sheetName += ".sitem";
sheet = CSheetId(sheetName.c_str()); sheet = CSheetId(sheetName.c_str());
} }

@ -3723,7 +3723,7 @@ NLMISC_COMMAND( createItemInBagTest," create_item_in_bag", "player id(id:type:cr
{ {
string sheetName = args[1]; string sheetName = args[1];
if (sheetName.find(".") == string::npos) if (sheetName.find(".") == string::npos)
sheetName += string(".item"); sheetName += string(".sitem");
sheet = CSheetId(sheetName.c_str()); sheet = CSheetId(sheetName.c_str());
} }
uint quantity, quality; uint quantity, quality;

Loading…
Cancel
Save