Add message(color, message) and whisper(message) to Perl/Lua.

- Add quest::message(color, message) to Perl.
- Add eq.message(color, message) to Lua.
- Add quest::whisper(message) to Perl.
- Add eq.whisper(message) to Lua.

These methods allow you to use implied client references. The whisper method also converts a widely used plugin in Perl to a Perl and Lua method that works on both Clients and NPCs.
This commit is contained in:
Kinglykrab
2021-01-23 10:46:36 -05:00
parent 0f5a7e1317
commit 19ae461e36
4 changed files with 55 additions and 0 deletions
+2
View File
@@ -223,6 +223,8 @@ public:
void clearspawntimers();
void ze(int type, const char *str);
void we(int type, const char *str);
void message(int color, const char *message);
void whisper(const char *message);
int getlevel(uint8 type);
int collectitems(uint32 item_id, bool remove);
int collectitems_processSlot(int16 slot_id, uint32 item_id, bool remove);