mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Quest API] Add Silent Saylink Methods to Perl/Lua (#4177)
# Perl - Add `quest::silent_saylink(text)`. - Add `quest::silent_saylink(text, link_name)`. # Lua - Add `eq.silent_say_link(text)`. - Add `eq.silent_say_link(text, link_name)`. # Notes - Allows operators to more easily use silent saylinks without an optional silent parameter in the traditional saylink methods. - Sets `silent` parameter default to `false` so we do not need to pass `false` when we are not using a a silent saylink. - Changes all places that used `EQ::SayLinkEngine::GenerateQuestSaylink` to `Saylink::Create` where possible. - Removed `questmgr` method that is no longer necessary. - Cleaned up Lua methods to use the strings directly instead of building one out.
This commit is contained in:
@@ -82,7 +82,7 @@ void command_logs(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
gmsay.emplace_back(
|
||||
EQ::SayLinkEngine::GenerateQuestSaylink(
|
||||
Saylink::Create(
|
||||
fmt::format("#logs set gmsay {} {}", index, i), false, std::to_string(i)
|
||||
)
|
||||
);
|
||||
@@ -96,7 +96,7 @@ void command_logs(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
file.emplace_back(
|
||||
EQ::SayLinkEngine::GenerateQuestSaylink(
|
||||
Saylink::Create(
|
||||
fmt::format("#logs set file {} {}", index, i), false, std::to_string(i)
|
||||
)
|
||||
);
|
||||
@@ -110,7 +110,7 @@ void command_logs(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
console.emplace_back(
|
||||
EQ::SayLinkEngine::GenerateQuestSaylink(
|
||||
Saylink::Create(
|
||||
fmt::format("#logs set console {} {}", index, i), false, std::to_string(i)
|
||||
)
|
||||
);
|
||||
@@ -124,7 +124,7 @@ void command_logs(Client *c, const Seperator *sep)
|
||||
}
|
||||
|
||||
discord.emplace_back(
|
||||
EQ::SayLinkEngine::GenerateQuestSaylink(
|
||||
Saylink::Create(
|
||||
fmt::format("#logs set discord {} {}", index, i), false, std::to_string(i)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user