Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- whisper={"Tigrounette#0001","Hi_line_How are you?","Bye"}
- -- Script --
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.newGame('<C><P D="x_transformice/x_interface/4.jpg,0,200;" /><Z><S><S L="155" X="351" H="17" Y="-255" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="36" X="282" H="113" Y="-303" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="36" H="113" X="410" Y="-304" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="155" H="17" X="348" Y="-352" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" o="6a7495" H="41" X="400" Y="180" T="12" P="0,0,0.3,0.2,0,0,0,0" /></S><D><DS Y="141" X="398" /></D><O /></Z></C>')
- chat="\n\n<font size='12'><BL>@"..whisper[1].."</BL>\n"
- function formatPlayerId(data, doNotNormalize)
- local nickname, tag = data:gmatch('(.-)#[0-9]+$')() or data, data:gmatch('#([0-9]+)$')() or '0';
- nickname = doNotNormalize and nickname or nickname:lower():gsub('%a', string.upper, 1);
- return nickname, tag;
- end
- local destinatario, tag = formatPlayerId(whisper[1])
- if tag == "0000" then tag="<font size='10' color='#BF9999'> #"..tag else tag="<font size='10' color='#BFB899'> #"..tag end
- for i=2,#whisper do
- if i % 2 == 1 and whisper[i] ~= "" then
- whisper[i]=whisper[i]:gsub("_line_","\n¨ [br] [<a href='event:a'><CE>"..destinatario..tag.."</font></CE></a>] ")
- chat=chat..(("<CEP>¨ [br] [<CE><a href='event:a'>"..destinatario..tag.."</font></a></CE>] "..whisper[i].."</CEP>\n"):gsub("¨",">")):gsub(" "," ")
- else
- whisper[i]=whisper[i]:gsub("_line_","\n¨ [<a href='event:a'><CS>"..destinatario..tag.."</font></CS></a>] ")
- chat=chat..(("<CS>¨ [<a href='event:a'>"..destinatario..tag.."</font></a>] "..whisper[i].."</CS>\n"):gsub("¨","<")):gsub(" "," ")
- end
- end
- ui.addTextArea(1,chat,nil,100,180,0,0,1,1,0,true)
- ui.addTextArea(2,"<font size='12'><CEP><a href='event:a'>>@"..destinatario,nil,8,225,96,18,1,1,0,true)
- ui.addTextArea(3,"<a href='event:a'><font size='12'><V>#Sala</a>",nil,5,208,0,0,1,1,0,true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement