Register for your free account! | Forgot your password?

Go Back   elitepvpers > World of Warcraft > WoW Private Server
You last visited: Today at 22:47

  • Please register to post and access all features, it's quick, easy and FREE!

 

Lua World Chat fehler

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 27
Received Thanks: 0
Exclamation Lua World Chat fehler

Hey
hab hier einen World Chat:


local ChatMsg = "/o"
-- local Space = " "


function ChatSystem (event, player, message, type, language)
if (message:find(ChatMsg.." ") == 1) then
local text = message:gsub(ChatMsg.." ", "")
local plrs = GetPlayersInWorld()
for k, v in pairs(plrs) do
if (player:GetTeam() == 0) then -- Alliance
local GMrank = player:GetGmRank()
if (GMrank == 'az') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffE70000"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip6 Tag

elseif (GMrank == 'a') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffE700B1"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- REGULAR GM Tag

elseif (GMrank == 'y') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFFFF00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip4 Tag
elseif (GMrank == 'x') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFFAE00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip3 Tag
elseif (GMrank == '2') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFF2A00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip2 Tag
elseif (GMrank == '1') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFF6B3E"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip1 Tag
else
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cff7DFF00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Player Tag
end
elseif (player:GetTeam() == 1) then -- Horde
local GMrank = player:GetGmRank()
if (GMrank == 'az') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffE700B1"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip6 Tag

elseif (GMrank == 'a') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffE700B1"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- REGULAR GM Tag

elseif (GMrank == 'y') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFFFF00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip4 Tag
elseif (GMrank == 'x') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFFAE00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip3 Tag
elseif (GMrank == '2') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFF2A00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip2 Tag
elseif (GMrank == '1') then
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cffFF6B3E"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Vip1 Tag
else
v:SendBroadcastMessage("|cff7DFF00[World Channel] [|cff7DFF00"..player:GetName().."|cff7DFF00]: |cff7DFF00"..text.."") -- Player Tag
end end
end
return 0
end

end

RegisterServerHook(16, "ChatSystem")



Aber ich hab arcemu und RegisterServerHook nimmt der net an.
es kommt immer ein fehler:

failed. <could not run>
scripts/chat.lua:54: attempt to call global 'RegisterServerHook'
<a nil value>


hoffe es kann mir jemand helfen..
schonmal danke für die antworten
mfg mike11995



mike11995 is offline  
Old   #2
 
elite*gold: 0
Join Date: Mar 2011
Posts: 75
Received Thanks: 3
kleiner tipp: arcemu is der mit abstand schlechteste emu von allen. derzeit ist bei wrath of the lichking trinitycore der absolute anführer der top emus, die haben die icc fast fertig und bauen jezz schon an ulduar rum


Dreadii is offline  
Old   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 27
Received Thanks: 0
Ja hab schon alles probiert aber leider net gefunkt..
(und ich hab 2.4.3)
aber weiß jemand was ich da machen könnte?
mike11995 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
World CHAT BUG EXPLOIT IT NOW
if you type in \n it creates a new line if u constantly do \n \n \n \n \n \n \n \n \n \n \n \n \n like that (without spaces in between the \n)...
24 Replies - CO2 Main - Discussions / Questions
WRLDSpam - Spam world chat
#Removed
5 Replies - CO2 Main - Discussions / Questions
Spam World chat?
is there any hacks/edits so i can spam World chat with?
8 Replies - CO2 Main - Discussions / Questions
WoW World of Warcraft Voice Chat Contest
Blizzard announced the following contest on the EU WoW site today: What's useful for generals to give orders to their troops in the heat of...
10 Replies - WoW Main - Discussions / Questions



All times are GMT +1. The time now is 22:47.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.