Advertisement
Guest User

Untitled

a guest
May 28th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.19 KB | None | 0 0
  1. // LOVE
  2. if (responseLine.contains(":x")) {
  3. int x = responseLine.indexOf(":x");
  4. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/8.gif\">" + responseLine.substring(x+2, responseLine.length());
  5. responseLine = responseLine.replace("\\", "/");
  6. }
  7. if (responseLine.contains(":X")) {
  8. int x = responseLine.indexOf(":X");
  9. responseLine = responseLine.substring(0,x) + "<img src=\"http://aica.org.ro/images/FTP/love_struck.gif\">" + responseLine.substring(x+2, responseLine.length());
  10. responseLine = responseLine.replace("\\", "/");
  11. }
  12.  
  13. // HEART
  14. if (responseLine.contains("&lt;3")) {
  15. int x = responseLine.indexOf("&lt;3");
  16. responseLine = responseLine.substring(0,x) + "<img src=\"http://aica.org.ro/images/FTP/heart.gif\">" + responseLine.substring(x+5, responseLine.length());
  17. responseLine = responseLine.replace("\\", "/");
  18. }
  19.  
  20. // LAUGHING
  21. if (responseLine.contains(":))")) {
  22. int x = responseLine.indexOf(":))");
  23. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/21.gif\">" + responseLine.substring(x+3, responseLine.length());
  24. responseLine = responseLine.replace("\\", "/");
  25. }
  26.  
  27. // HAPPY
  28. if (responseLine.contains(":)")) {
  29. int x = responseLine.indexOf(":)");
  30. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/1.gif\">" + responseLine.substring(x+2, responseLine.length());
  31. responseLine = responseLine.replace("\\", "/");
  32. }
  33.  
  34. // ANGRY
  35. if (responseLine.contains("x(")) {
  36. int x = responseLine.indexOf("x(");
  37. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/14.gif\">" + responseLine.substring(x+2, responseLine.length());
  38. responseLine = responseLine.replace("\\", "/");
  39. }
  40. if (responseLine.contains("X(")) {
  41. int x = responseLine.indexOf("X(");
  42. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/14.gif\">" + responseLine.substring(x+2, responseLine.length());
  43. responseLine = responseLine.replace("\\", "/");
  44. }
  45.  
  46. // BIG HUG
  47. if (responseLine.contains("&gt;:D&lt;")) {
  48. int x = responseLine.indexOf("&gt;:D&lt;");
  49. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/6.gif\">" + responseLine.substring(x+10, responseLine.length());
  50. responseLine = responseLine.replace("\\", "/");
  51. }
  52.  
  53. // BIG GRIN
  54. if (responseLine.contains(":D")) {
  55. int x = responseLine.indexOf(":D");
  56. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/pu/emoticon/v2/4.gif\">" + responseLine.substring(x+2, responseLine.length());
  57. responseLine = responseLine.replace("\\", "/");
  58. }
  59.  
  60. // KISS
  61. if (responseLine.contains(":*")) {
  62. int x = responseLine.indexOf(":*");
  63. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/11.gif\">" + responseLine.substring(x+2, responseLine.length());
  64. responseLine = responseLine.replace("\\", "/");
  65. }
  66.  
  67. // ROFL
  68. if (responseLine.contains("=))")) {
  69. int x = responseLine.indexOf("=))");
  70. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/24.gif\">" + responseLine.substring(x+3, responseLine.length());
  71. responseLine = responseLine.replace("\\", "/");
  72. }
  73.  
  74. // CRY
  75. if (responseLine.contains(":((")) {
  76. int x = responseLine.indexOf(":((");
  77. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/20.gif\">" + responseLine.substring(x+3, responseLine.length());
  78. responseLine = responseLine.replace("\\", "/");
  79. }
  80.  
  81. // SAD
  82. if (responseLine.contains(":(")) {
  83. int x = responseLine.indexOf(":(");
  84. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/2.gif\">" + responseLine.substring(x+2, responseLine.length());
  85. responseLine = responseLine.replace("\\", "/");
  86. }
  87.  
  88. // TONGUE
  89. if (responseLine.contains(":p")) {
  90. int x = responseLine.indexOf(":p");
  91. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/10.gif\">" + responseLine.substring(x+2, responseLine.length());
  92. responseLine = responseLine.replace("\\", "/");
  93. }
  94. if (responseLine.contains(":P")) {
  95. int x = responseLine.indexOf(":P");
  96. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/10.gif\">" + responseLine.substring(x+2, responseLine.length());
  97. responseLine = responseLine.replace("\\", "/");
  98. }
  99.  
  100. // WINKING
  101. if (responseLine.contains(";)")) {
  102. int x = responseLine.indexOf(";)");
  103. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/3.gif\">" + responseLine.substring(x+2, responseLine.length());
  104. responseLine = responseLine.replace("\\", "/");
  105. }
  106.  
  107. // STRAIGHT FACE
  108. if (responseLine.contains(":|")) {
  109. int x = responseLine.indexOf(":|");
  110. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/22.gif\">" + responseLine.substring(x+2, responseLine.length());
  111. responseLine = responseLine.replace("\\", "/");
  112. }
  113.  
  114. // WORRIED
  115. if (responseLine.contains(":-s")) {
  116. int x = responseLine.indexOf(":-s");
  117. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/17.gif\">" + responseLine.substring(x+3, responseLine.length());
  118. responseLine = responseLine.replace("\\", "/");
  119. }
  120. if (responseLine.contains(":-S")) {
  121. int x = responseLine.indexOf(":-S");
  122. responseLine = responseLine.substring(0,x) + "<img src=\"https://s.yimg.com/lq/i/mesg/emoticons7/17.gif\">" + responseLine.substring(x+3, responseLine.length());
  123. responseLine = responseLine.replace("\\", "/");
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement