• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

World Chat Script

Foereaper

Founder
Ported my old world chat script over to Eluna, thanks to Laurea for improving it and optimizing it even more :)



Z5yLxv8.jpg
 
Last edited:

Ican

Enthusiast
thanks but somehow iam getting this on admin char
Code:
scripts/CHAT.lua:44: invalid value (nil) at index 4 in table for 'concat'
 

Foereaper

Founder
You could also add a default value :p
Code:
(Rank[player:GetGMRank()] or "7DFF00")

Yeah.. I was thinking about it right after I posted my reply, just haven't had the time to get to it :p could also get the ranks on server start with a query
 

ZeuS

Respected Member
Tnx for sharing , but I changed #w in first line to ".o" , still not works :( Shoudl I put "#" before .o ? Like this ~~> "#.o" ? or What ?
 

Tommy

Founder
Tnx for sharing , but I changed #w in first line to ".o" , still not works :( Shoudl I put "#" before .o ? Like this ~~> "#.o" ? or What ?

If the command didn't work, are you sure you added it in the scripts folder and that it loaded correctly in the console?
 

ZeuS

Respected Member
If the command didn't work, are you sure you added it in the scripts folder and that it loaded correctly in the console?

I created "scripts" folder in my bin/release folder and put the WorldChat.lua in it , Then restarted server ... idk if i should do something else !
 

Rochet2

Moderator / Eluna Dev
I created "scripts" folder in my bin/release folder and put the WorldChat.lua in it , Then restarted server ... idk if i should do something else !
write reload eluna
on world console. If it reloads Eluna. The engine is there and running.
if so, then check that the scripts folder is in the same folder as worldserver.exe

Make a script that only prints something :
print("test")

and do the reload command and see if the message prints.
 

ZeuS

Respected Member
Thanks , It worked ... I have a small problem ... I put .o command for world chat but GMs can't use it , when I try to write .o text , it says there is no such a command ! any idea ?
 

Rochet2

Moderator / Eluna Dev
You can't make commands with dot in Eluna. The core parses the message for commands before the chat hook activates.

.. And there is no on command hook.. Yet
 

ZeuS

Respected Member
So what you suggest to use as "world chat" command ?
If I put "o" as world chat command , then players should use it like this ? ~~ > o text ? wouldn't it make problems ?
 

maikel233

Enthusiast
Hello,


I've followed the steps what Rochet2 explained.


I've placed the script inside the script folder then restarted server and logged in. Then i'll type in: /world channel .world channel and it keeps says Incorrect command?

What am i doing wrong?

- maikel233.
 

Foereaper

Founder
You cannot use . or /, those prefixes are reserved by the client (/ specifically for emotes and client commands) or the server (. prefix for all server commands)
 

Ghostcrawler336

Epic Member
I think the timer isn't working correctly, since when I send a message and I try to send one right after. It will say "You must wait, etc" but the timer will stay there until I send 4 more messages. If that makes any sense.
 

dsy86

Enthusiast
hi
thank you for this script.
but the player name can't click in world channel just like other channels. can you make the player name clickable?
 
Top