bapereira

Cochicho fake Tigrounette (modificável)

Oct 15th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. --[[
  2. Project's author: Nettoork#0000
  3. ]]--
  4.  
  5. whisper={"Tigrounette#0001","Rai_line_Rao ari iu?","I will ban you!_line_noob"}
  6. -- Script --
  7. tfm.exec.disableAutoShaman(true)
  8. tfm.exec.disableAutoNewGame(true)
  9. tfm.exec.disableAutoTimeLeft(true)
  10. 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>')
  11. chat="\n\n<font size='12'><BL>@"..whisper[1].."</BL>\n"
  12. function formatPlayerId(data, doNotNormalize)
  13. local nickname, tag = data:gmatch('(.-)#[0-9]+$')() or data, data:gmatch('#([0-9]+)$')() or '0';
  14. nickname = doNotNormalize and nickname or nickname:lower():gsub('%a', string.upper, 1);
  15. return nickname, tag;
  16. end
  17. local destinatario, tag = formatPlayerId(whisper[1])
  18. if tag == "0000" then tag="<font size='10' color='#BF9999'> #"..tag else tag="<font size='10' color='#BFB899'> #"..tag end
  19. for i=2,#whisper do
  20. if i % 2 == 1 and whisper[i] ~= "" then
  21. whisper[i]=whisper[i]:gsub("_line_","\n¨ [br] [<a href='event:a'><CE>"..destinatario..tag.."</font></CE></a>] ")
  22. chat=chat..(("<CEP>¨ [br] [<CE><a href='event:a'>"..destinatario..tag.."</font></a></CE>] "..whisper[i].."</CEP>\n"):gsub("¨","&gt;")):gsub(" "," ")
  23. else
  24. whisper[i]=whisper[i]:gsub("_line_","\n¨ [<a href='event:a'><CS>"..destinatario..tag.."</font></CS></a>] ")
  25. chat=chat..(("<CS>¨ [<a href='event:a'>"..destinatario..tag.."</font></a>] "..whisper[i].."</CS>\n"):gsub("¨","&lt;")):gsub(" "," ")
  26. end
  27. end
  28. ui.addTextArea(1,chat,nil,100,180,0,0,1,1,0,true)
  29. ui.addTextArea(2,"<font size='12'><CEP><a href='event:a'>>@"..destinatario,nil,8,225,96,18,1,1,0,true)
  30. ui.addTextArea(3,"<a href='event:a'><font size='12'><V>#Sala</a>",nil,5,208,0,0,1,1,0,true)
  31. function eventNewGame()
  32. tfm.exec.setGameTime(0)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment