Advertisement
KananGamer

Cochicho Fake

Jan 1st, 2018
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.95 KB | None | 0 0
  1. whisper={"Tigrounette#0001","Hi_line_How are you?","Bye"}
  2. -- Script --
  3. tfm.exec.disableAutoShaman(true)
  4. tfm.exec.disableAutoNewGame(true)
  5. tfm.exec.disableAutoTimeLeft(true)
  6. 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>')
  7. chat="\n\n<font size='12'><BL>@"..whisper[1].."</BL>\n"
  8. function formatPlayerId(data, doNotNormalize)
  9.     local nickname, tag = data:gmatch('(.-)#[0-9]+$')() or data, data:gmatch('#([0-9]+)$')() or '0';
  10.     nickname = doNotNormalize and nickname or nickname:lower():gsub('%a', string.upper, 1);
  11.     return nickname, tag;
  12. end
  13. local destinatario, tag = formatPlayerId(whisper[1])
  14. if tag == "0000" then tag="<font size='10' color='#BF9999'> #"..tag else tag="<font size='10' color='#BFB899'> #"..tag end
  15. for i=2,#whisper do
  16.     if i % 2 == 1 and whisper[i] ~= "" then
  17.         whisper[i]=whisper[i]:gsub("_line_","\n¨ [br] [<a href='event:a'><CE>"..destinatario..tag.."</font></CE></a>] ")
  18.         chat=chat..(("<CEP>¨ [br] [<CE><a href='event:a'>"..destinatario..tag.."</font></a></CE>] "..whisper[i].."</CEP>\n"):gsub("¨","&gt;")):gsub("  "," ")
  19.     else
  20.         whisper[i]=whisper[i]:gsub("_line_","\n¨ [<a href='event:a'><CS>"..destinatario..tag.."</font></CS></a>] ")
  21.         chat=chat..(("<CS>¨ [<a href='event:a'>"..destinatario..tag.."</font></a>] "..whisper[i].."</CS>\n"):gsub("¨","&lt;")):gsub("  "," ")
  22.     end
  23. end
  24. ui.addTextArea(1,chat,nil,100,180,0,0,1,1,0,true)
  25. ui.addTextArea(2,"<font size='12'><CEP><a href='event:a'>>@"..destinatario,nil,8,225,96,18,1,1,0,true)
  26. 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