mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Add give item saylinks to #fi #itemsearch
This commit is contained in:
parent
6127baf12a
commit
e9b361445f
@ -7274,6 +7274,13 @@ void command_itemsearch(Client *c, const Seperator *sep)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> amounts = {
|
||||||
|
"1",
|
||||||
|
"10",
|
||||||
|
"100",
|
||||||
|
"1000"
|
||||||
|
};
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
char sName[64];
|
char sName[64];
|
||||||
char sCriteria[255];
|
char sCriteria[255];
|
||||||
@ -7288,7 +7295,24 @@ void command_itemsearch(Client *c, const Seperator *sep)
|
|||||||
if (pdest != nullptr) {
|
if (pdest != nullptr) {
|
||||||
linker.SetItemData(item);
|
linker.SetItemData(item);
|
||||||
|
|
||||||
c->Message(Chat::White, "%u: %s", item->ID, linker.GenerateLink().c_str());
|
std::string saylink_commands;
|
||||||
|
for (auto &amount : amounts) {
|
||||||
|
saylink_commands += EQEmu::SayLinkEngine::GenerateQuestSaylink(
|
||||||
|
"#gi " + std::to_string(item->ID) + " " + amount,
|
||||||
|
false,
|
||||||
|
"[" + amount + "] "
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
c->Message(
|
||||||
|
Chat::White,
|
||||||
|
fmt::format(
|
||||||
|
" Summon {} [{}] [{}]",
|
||||||
|
saylink_commands,
|
||||||
|
item->ID,
|
||||||
|
linker.GenerateLink()
|
||||||
|
).c_str()
|
||||||
|
);
|
||||||
|
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user