Worldchat

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • C Source Code

      1. --[[ Scripted by Batidadekill ]]--
      2. local ChatMsg = "#w" -- Command for use of chat system
      3. local Class = {
      4. ["Warrior"] = "|cff00ff00|TInterface\\icons\\INV_Sword_27.png:-1|t|r|cffff0000",
      5. ["Paladin"] = "|cff00ff00|TInterface\\icons\\INV_Hammer_01.png:-1|t|r|cffff0000",
      6. ["Hunter"] = "|cff00ff00|TInterface\\icons\\INV_Weapon_Bow_07.png:-1|t|r|cffff0000",
      7. ["Rogue"] = "|cff00ff00|TInterface\\icons\\INV_ThrowingKnife_04.png:-1|t|r|cffff0000",
      8. ["Priest"] = "|cff00ff00|TInterface\\icons\\INV_Staff_30.png:-1|t|r|cffff0000",
      9. ["Death Knight"] = "|cff00ff00|TInterface\\icons\\Spell_Deathknight_ClassIcon.png:-1|t|r|cffff0000",
      10. ["Shaman"] = "|cff00ff00|TInterface\\icons\\inv_jewelry_talisman_04.png:-1|t|r|cffff0000",
      11. ["Mage"] = "|cff00ff00|TInterface\\icons\\inv_staff_13.png:-1|t|r|cffff0000",
      12. ["Warlock"] = "|cff00ff00|TInterface\\icons\\spell_nature_drowsy.png:-1|t|r|cffff0000",
      13. ["Druid"] = "|cff00ff00|TInterface\\icons\\Ability_Druid_Maul.png:-1|t|r|cffff0000",
      14. };
      15. --Männlich
      16. local Race1 = {
      17. [1] = "|TInterface/ICONS/Achievement_Character_Human_Male:-1|t", -- Mensch
      18. [2] = "|TInterface/ICONS/Achievement_Character_Orc_Male:-1|t", -- Orc
      19. [3] = "|TInterface/ICONS/Achievement_Character_Dwarf_Male:-1|t", -- Zwerg
      20. [4] = "|TInterface/ICONS/Achievement_Character_Nightelf_Male:-1|t", -- Nachtelf
      21. [5] = "|TInterface/ICONS/Achievement_Character_Undead_Male:-1|t", -- Untoter
      22. [6] = "|TInterface/ICONS/Achievement_Character_Tauren_Male:-1|t", -- Taure
      23. [7] = "|TInterface/ICONS/Achievement_Character_Gnome_Male:-1|t", -- Gnom
      24. [8] = "|TInterface/ICONS/Achievement_Character_Troll_Male:-1|t", -- Troll
      25. [10] = "|TInterface/ICONS/Achievement_Character_Bloodelf_Male:-1|t", -- Blutelf
      26. [11] = "|TInterface/ICONS/Achievement_Character_Draenei_Male:-1|t", -- Draenei
      27. };
      28. --Weiblich
      29. local Race2 = {
      30. [1] = "|TInterface/ICONS/Achievement_Character_Human_Female:-1|t", -- Mensch
      31. [2] = "|TInterface/ICONS/Achievement_Character_Orc_Female:-1|t", -- Orc
      32. [3] = "|TInterface/ICONS/Achievement_Character_Dwarf_Female:-1|t", -- Zwerg
      33. [4] = "|TInterface/ICONS/Achievement_Character_Nightelf_Female:-1|t", -- Nachtelf
      34. [5] = "|TInterface/ICONS/Achievement_Character_Undead_Female:-1|t", -- Untoter
      35. [6] = "|TInterface/ICONS/Achievement_Character_Tauren_Female:-1|t", -- Taure
      36. [7] = "|TInterface/ICONS/Achievement_Character_Gnome_Female:-1|t", -- Gnom
      37. [8] = "|TInterface/ICONS/Achievement_Character_Troll_Female:-1|t", -- Troll
      38. [10] = "|TInterface/ICONS/Achievement_Character_Bloodelf_Female:-1|t", -- Blutelf
      39. [11] = "|TInterface/ICONS/Achievement_Character_Draenei_Female:-1|t", -- Draenei
      40. };
      41. --[[ EDIT THE BELOW SCRIPT AT YOUR OWN RISK ]]--
      42. function ChatSystem (event, player, message, type, language)
      43. if (player:GetGender() == 0) then -- Männlich
      44. if (message:find(ChatMsg.." ") == 1) then
      45. local text = message:gsub(ChatMsg.." ", "")
      46. local plrs = GetPlayersInWorld()
      47. for k, v in pairs(plrs) do
      48. if (player:GetTeam() == 0) then -- Alliance
      49. local GMrank = player:GetGmRank()
      50. if (GMrank == 'az') then
      51. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:-1|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- Admin Tag
      52. elseif (GMrank == 'a') then
      53. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:-1|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      54. elseif (GMrank == 'gm2listjpbkvwucqeon') then
      55. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:-1| |cffFF0000[t"..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      56. elseif (GMrank == '1') then
      57. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:-1|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:-1|t "..Class[Player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      58. elseif (GMrank == '1v') then
      59. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:-1|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      60. else
      61. v:SendBroadcastMessage("|cFF00FFFF[HG]-|r|cffFFFF00[Spieler] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |cffEE7621["..player:GetName().."] : |cffC0FF3E"..text.."") -- Ally Tag
      62. end
      63. elseif (player:GetTeam() == 1) then -- Horde
      64. local GMrank = player:GetGmRank()
      65. if (GMrank == 'az') then
      66. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:-1|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- Admin Tag
      67. elseif (GMrank == 'a') then
      68. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:-1|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      69. elseif (GMrank == 'gm2listjpbkvwucqeon') then
      70. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:-1|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      71. elseif (GMrank == '1') then
      72. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:-1|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      73. elseif (GMrank == '1v') then
      74. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:-1|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      75. else
      76. v:SendBroadcastMessage("|cFF00FFFF[HG]-|r|cff00FF00[Spieler] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:-1|t "..Class[player:GetPlayerClass()].." "..Race1[player:GetPlayerRace()].."|r |cffEE7621["..player:GetName().."] : |cffC0FF3E"..text.."") -- Horde Tag
      77. end
      78. end
      79. end
      80. return 0
      81. end
      82. elseif (player:GetGender() == 1) then -- Weiblich
      83. if (message:find(ChatMsg.." ") == 1) then
      84. local text = message:gsub(ChatMsg.." ", "")
      85. local plrs = GetPlayersInWorld()
      86. for k, v in pairs(plrs) do
      87. if (player:GetTeam() == 0) then -- Alliance
      88. local GMrank = player:GetGmRank()
      89. if (GMrank == 'az') then
      90. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:15|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- Admin Tag
      91. elseif (GMrank == 'a') then
      92. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:15|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      93. elseif (GMrank == 'gm2listjpbkvwucqeon') then
      94. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:15| |cffFF0000[t"..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      95. elseif (GMrank == '1') then
      96. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:15|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:15|t "..Class[Player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      97. elseif (GMrank == '1v') then
      98. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:15|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      99. else
      100. v:SendBroadcastMessage("|cFF00FFFF[HG]-|r|cffFFFF00[Spieler] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Human.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |cffEE7621["..player:GetName().."] : |cffC0FF3E"..text.."") -- Ally Tag
      101. end
      102. elseif (player:GetTeam() == 1) then -- Horde
      103. local GMrank = player:GetGmRank()
      104. if (GMrank == 'az') then
      105. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:15|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- Admin Tag
      106. elseif (GMrank == 'a') then
      107. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:15|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      108. elseif (GMrank == 'gm2listjpbkvwucqeon') then
      109. v:SendBroadcastMessage("|cFF00FFFF[HG-Team] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |TInterface\\chatframe\\UI-ChatIcon-Blizz:15|t |cffFF0000["..player:GetName().."] : |cff00FF00"..text.."") -- GM Tag
      110. elseif (GMrank == '1') then
      111. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:15|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      112. elseif (GMrank == '1v') then
      113. v:SendBroadcastMessage("|TInterface\\icons\\INV_Misc_Coin_02:15|t|cFF00FFFF [V.I.P] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |cff00FF00["..player:GetName().."] : |cffFF0000"..text.."") -- Vip Tag
      114. else
      115. v:SendBroadcastMessage("|cFF00FFFF[HG]-|r|cff00FF00[Spieler] |cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_banner_Orc.png:15|t "..Class[player:GetPlayerClass()].." "..Race2[player:GetPlayerRace()].."|r |cffEE7621["..player:GetName().."] : |cffC0FF3E"..text.."") -- Horde Tag
      116. end
      117. end
      118. end
      119. return 0
      120. end
      121. end
      122. end
      123. RegisterServerHook(16, "ChatSystem")
      Display All
      Thank you @BatidaDeKill
      Images
      • 3aa714f43b6a45d2b3d651dc2feda42c.png

        55.69 kB, 698×64, viewed 1 times
      • 129e05929b294d148dc73da312233476.png

        21.54 kB, 693×66, viewed 2 times