MegasXLR Posted December 2, 2015 Posted December 2, 2015 (edited) Hey guys, so recently I made an IRC channel for my server and now I (finally) got +v on the server echobot so that's done. I have a few questions which I need answered though. Here goes :1. How to remove "xxx player has died" messages from IRC channel? (and others similar if there are any)2. How to make IRC display a text line in chat in-game when somebody enters the IRC channel? (...has joined IRC), same for quitting it.3. How can I remove color codes from IRC? (Now it displays #FEFE22Megaz, I need/want it to display just Megaz, with no color codes) Edited December 7, 2015 by MegasXLR Quote
Guest AleksCore Posted December 5, 2015 Posted December 5, 2015 (edited) 1. If you use original IRC resource, try to remove lines 135-160 from echo.lua (onPlayerWasted handler and function)2. I am lazy cunt3. I am lazy cunt Or use mr green irc resource, I guess it have all that you want Edited December 5, 2015 by AleksCore Quote
MegasXLR Posted December 5, 2015 Author Posted December 5, 2015 1. If you use original IRC resource, try to remove lines 135-160 from echo.lua (onPlayerWasted handler and function)2. I am lazy cunt3. I am lazy cunt Or use mr green irc resource, I guess it have all that you wantThanks, will try in a few days. I didn't use Green's one cuz SDK kinda said it won't work..., but I'll try it! Quad_Tube 1 Quote
MegasXLR Posted December 7, 2015 Author Posted December 7, 2015 Help with #3 please #2 was super ez tho.. Quad_Tube 1 Quote
AfuSensi Posted December 8, 2015 Posted December 8, 2015 I think it's handled in lua, then send to irc.lua: getPlayerName(player):gsub("#%x%x%x%x%x%x","") Quote
MegasXLR Posted December 8, 2015 Author Posted December 8, 2015 (edited) function getNameNoColor(player) return string.gsub (isElement(player) and getPlayerName(player) or '^', '#%x%x%x%x%x%x', '' ) end^this is in beginning of echo.luaSo I just gotta delete the following and save file? or '^', '#%x%x%x%x%x%x', '' Edited December 8, 2015 by MegasXLR Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.