[Quest API] Add HTML color tag method to Perl and Lua. (#1324)

* Add HTML color tag method to Perl and Lua.
- Add quest::gethexcolorcode(color_name) to Perl.
- Add eq.get_hex_color_code(color_name) to Lua.

Full color list here: https://pastebin.com/rUYKr1ye

* Convert to static and use strcasecmp over strcmp.

Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
Alex
2021-04-23 00:52:00 -04:00
committed by GitHub
parent c18562b150
commit 13a50f7806
4 changed files with 347 additions and 0 deletions
+1
View File
@@ -373,6 +373,7 @@ public:
void ClearNPCTypeCache(int npctype_id);
void ReloadZoneStaticData();
std::string secondstotime(int duration);
std::string gethexcolorcode(std::string color_name);
Client *GetInitiator() const;
NPC *GetNPC() const;