mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
778 B
778 B
Function: DisplayText(player, type, text)
Description:
Displays Channel Text on the Player's screen (without a Spawn attributed with a name, just a plain message). The type are based on channel types in https://github.com/emagi/eq2emu/blob/main/docs/data_types/channel_types.md and support will vary on client version.
Parameters:
player(Spawn) - Spawn object representingplayer.type(uint8) - Integer valuetype.text(string) - Stringtext.
Returns: None.
Example:
-- From Quests/Antonica/wanted_gnoll_bandit.lua
function Accepted(Quest, QuestGiver, Player)
if HasItem(Player,3213)then
DisplayText(Spawn, 34, "You roll up the wanted poster and stuff it in your quest satchle.")
RemoveItem(Player,3213,1)
end