|
Post by iPedoBearz on Sept 11, 2010 5:34:27 GMT -5
so i have this color chat lua for admins. It's gonna be used on Tibia mod. So what happens? - When i use a command it can be read by anyone on the server. - when i talk i still see normal chat say on tibia.
So anyone can help me? I'll pm you the lua if you'd like or i can just post it ;P
|
|
|
Post by Beckerchen on Sept 11, 2010 6:00:23 GMT -5
oyu mean, that the players only can read the messages from nearby players, but you can read everything? maybe i can help you
|
|
|
Post by iPedoBearz on Sept 11, 2010 6:09:19 GMT -5
Nope i mean:
In tibia only players around you can read you.
But with that lua players who have colors can be read by anyone. but, i still talk 2 times. 1 time with color and the other time only people around me can read it I dunno how to explain myself more detailed D:
|
|
|
Post by Beckerchen on Sept 11, 2010 7:01:33 GMT -5
what do you mean with "players with colors"
you mean that if you want to say something public, a second message is enabled for near players?
sry for beeing a bit stupid in trying to understand you (Iam from Germany xD)
|
|
|
Post by Debt on Sept 11, 2010 8:26:35 GMT -5
I think I know what your problem is, Weiwen designed his script to be super easy to add anything and everything, so, he initialized the command system to override basic chat. You have to use the admin.lua or the commands.lua(which will be public). And follow his basic guidelines he set in place.
|
|
|
Post by RedFrix on Sept 11, 2010 10:41:47 GMT -5
Just edit the tibia message. I mean the 10:00:00 PLAYER: Says.
|
|
|
Post by iPedoBearz on Sept 11, 2010 11:16:24 GMT -5
Beck@; Yep that's what i mean xD
Debt@; I understand that but im still too noobish on lua like for even be able to try it D:
Red@; But that would remove the ability to see who is saying what o3o like: if i disable that it would be - :: says : asdasdanuhbasda or am i wrong? D: D:
|
|
|
Post by Debt on Sept 11, 2010 14:42:17 GMT -5
Um, okay, but isn't there already one on Tibia anyways?
And, all you would have to do, is go to the hooks.lua, and add a if statement before the it creates all the text, and just say, if not isAdmin(id) then and have a else statement at the end. And just copy and paste and just change the color text.
|
|
|
Post by Beckerchen on Sept 11, 2010 14:45:37 GMT -5
ahhhhhhh now I know what you mean ;D
if you send me the part of script with the say-functions I could make it. And jes its really easy, like dept already said
|
|
|
Post by Debt on Sept 12, 2010 13:32:29 GMT -5
It might create some lag problems(I don't know why) but I did it and it lagged(More than usual) xD
|
|