Advertisement
blackwolfsden

Eluna World Chat

Jan 4th, 2014
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.90 KB | None | 0 0
  1. -- I think these links came from psykko and others I found over time . just kewl little tweeks to customize your world
  2. local WorldChannelName = "[|cff3399ffWolf Den|r]";
  3. local Team =  {
  4.                 [0] = "[|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:13|t]",
  5.                 [1] = "[|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:13|t]"
  6.                 };
  7. local Class = {
  8.                 [1] = "[|TInterface\\icons\\INV_Sword_27.png:13|t]",
  9.                 [2] = "[|TInterface\\icons\\INV_Hammer_01.png:13|t]",
  10.                 [3] = "[|TInterface\\icons\\INV_Weapon_Bow_07.png:13|t]",
  11.                 [4] = "[|TInterface\\icons\\INV_ThrowingKnife_04.png:13|t]",
  12.                 [5] = "[|TInterface\\icons\\INV_Staff_30.png:13|t",
  13.                 [6] = "[|TInterface\\icons\\Spell_Deathknight_ClassIcon.png:13|t]",
  14.                 [7] = "[|TInterface\\icons\\inv_jewelry_talisman_04.png:13|t]",
  15.                 [8] = "[|TInterface\\icons\\INV_Staff_30.png:13|t]",
  16.                 [9] = "[|TInterface\\icons\\INV_Staff_30.png:13|t]",
  17.                 [11] = "[|TInterface\\icons\\Ability_Druid_Maul.png:13|t]",
  18.                 };
  19. local Gmrank = {
  20.                 [0] = "|cff00ffff[Player]|r",
  21.                 [1] = "[|TINTERFACE/CHATFRAME/UI-CHATICON-BLIZZ:13:13:0:-1|t]|cffff0000[GM1]|r",
  22.                 [2] = "|TINTERFACE/CHATFRAME/UI-CHATICON-BLIZZ:13:13:0:-1|t|cffff0000[GM2]|r",
  23.                 [3] = "|TINTERFACE/CHATFRAME/UI-CHATICON-BLIZZ:13:13:0:-1|t|cffff0000[GM3]|r",
  24.                 [4] = "|TINTERFACE/CHATFRAME/UI-CHATICON-BLIZZ:13:13:0:-1|t|cff7f00ff[LEAD GM]|r",
  25.                 [5] = "[|TINTERFACE/CHATFRAME/UI-CHATICON-BLIZZ:13:13:0:-1|t][|cff999999ADMIN|r]"
  26.                 };
  27. function ChatSystem(event, player, msg, type, lang, channel)
  28.     if(channel==0)then
  29.         local t = table.concat{Team[player:GetTeam()], Class[player:GetClass()], Gmrank[player:GetGMRank()], WorldChannelName, "[|cff3399ff","|Hplayer:", player:GetName(),  "|h", player:GetName(), "|h", "|r]:|cff00cc00",  msg};
  30.         SendWorldMessage(t)
  31.     return false;
  32.     end
  33. end
  34. RegisterPlayerEvent(22, ChatSystem)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement