Advertisement
Guest User

a

a guest
May 24th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. def bienvenidaP(tfm):
  2. id = int(2);x = int(0);y = int(0)
  3. msj = "0"
  4. mypointsCount = tfm.server.getPointsCount(tfm.username)
  5. mensaje = "<br><br><B><font size='13'><R><a href='event:kapat'>[CERRAR]</a><font face='Soopafresh'><p align='center'><font color='#f272f2' size='35'><BR>¡Bienvenidos</b> a <font color='#1b36e7'>MouseCity<font color='#f1b900'>Server!</p><BR><font face='Verdana'><font color='#ISKK' size='15'>¡Bienvenido <b>"+tfm.username+"</b> a MouseCity2014SERVER!<BR>Te invitamos a jugar, charlar y Divertirte con nosotros y nuestros jugadores!.<BR> <VP>Recuerda que hay un equipo de Programadores de Minijuegos! <J> Si quieres ser parte, Contacta a un Administrador! <br><font color='#CEFF00' size='20'>Ahora cuentas con </font><BR><N><B><font size='15'><font color='#e0e028'><BR>"+str(tfm.shopcheese)+"</font> quesos <BR> <font color='#FD007C'>"+str(tfm.shopfraises)+"</font> fresas.<BR><font color='#16f7ca'>"+str(tfm.mypointsCount)+"</font> <VP>Cyteweb<VI>Coins <BR><font color='#FFA700' size='20'></B><BR>Eventos:<BR><font size='12'> Nuevo año2014</font><br><font size='20'><VP><b></p>"#</a></b></p></font>"
  6. t = 40
  7. t = t
  8. l = 0
  9. data = struct.pack("!l", id)
  10. data = data + struct.pack("!h", len(mensaje))
  11. data = data + mensaje + struct.pack("!hhhhhhhhb", int(x), int(y), 800, 400, 0, 1, 8585, 25, t)
  12. tfm.sendData("\x1d\x14", data, True)
  13. def addTextArea(tfm, ide, mensaje, xo, yo, iw, ih, bc, cb, t):
  14. #xo = xposition, yi = yposition wi = int width ih = Int height
  15. id = int(ide);x = int(yo);y = int(xo)
  16. msj = "0"
  17. mensaje = mensaje
  18. t = t
  19. t = t
  20. l = 0
  21. data = struct.pack("!l", id)
  22. data = data + struct.pack("!h", len(mensaje))
  23. data = data + mensaje + struct.pack("!hhhhhhhhb", int(x), int(y), iw, ih, 0, bc, cb, 0, t)
  24. tfm.sendData("\x1d\x14", data, True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement