daily pastebin goal
27%
SHARE
TWEET

houdini glows

a guest Feb 13th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def setNameGlow(self, ng):
  2.         #self.user.nameglow = ng
  3.         ng = '0x'+ng
  4.         self.nameglow = ng
  5.         self.session.commit()
  6.         self.user.nameglow = ng
  7.         self.sendXt("up", self.playerString)
  8.  
  9.     def setNameColour(self,nc):
  10.         nc = '0x'+nc
  11.         #self.user.namecolor = nc
  12.         self.user.namecolor = nc
  13.         self.session.commit()
  14.         self.user.namecolor = nc
  15.         self.sendXt("up", self.playerString)
  16.  
  17.     def setBubbleColour(self,bc):
  18.         bc = '0x'+bc
  19.         #self.user.namecolor = nc
  20.         self.user.bubblecolor = bc
  21.         self.session.commit()
  22.         self.user.bubblecolor = bc
  23.         self.sendXt("up", self.playerString)
  24.  
  25.     def setBubbleText(self,bt):
  26.         bt = '0x'+bt
  27.         #self.user.namecolor = nc
  28.         self.user.bubbletext = bt
  29.         self.session.commit()
  30.         self.user.bubbletext = bt
  31.         self.sendXt("up", self.playerString)
  32.  
  33.     def setRingColour(self,rc):
  34.         rc = '0x'+rc
  35.         #self.user.namecolor = nc
  36.         self.user.ringcolor = rc
  37.         self.session.commit()
  38.         self.user.ringcolor = rc
  39.         self.sendXt("up", self.playerString)
  40.    
  41.     def setSpeed(self,s):
  42.         #is all integers INT, no need for 0x nOT A HEXCODE
  43.         #self.user.namecolor = nc
  44.         self.user.speed = s
  45.         self.session.commit()
  46.         self.user.speed = s
  47.         self.sendXt("up", self.playerString)
  48.  
  49.     def setTitle(self,t):
  50.         #is all string, not a hexcode
  51.         #self.user.namecolor = nc
  52.         self.user.title = t
  53.         self.session.commit()
  54.         self.user.title = t
  55.         self.sendXt("up", self.playerString)
  56.  
  57.     def setMood(self,m):
  58.         #is all string, not a hexcode
  59.         #self.user.namecolor = nc
  60.         self.user.mood = m
  61.         self.session.commit()
  62.         self.user.mood = m
  63.         self.sendXt("up", self.playerString)
  64.  
  65.     def setChatGlow(self,cg):
  66.         cg = '0x'+cg
  67.         #self.user.namecolor = nc
  68.         self.user.chatglow = cg
  69.         self.session.commit()
  70.         self.user.chatglow = cg
  71.         self.sendXt("up", self.playerString)
  72.  
  73.     def setPenguinGlow(self,pg):
  74.         pg = '0x'+pg
  75.         #self.user.namecolor = nc
  76.         self.user.penguinglow = pg
  77.         self.session.commit()
  78.         self.user.penguinglow = pg
  79.         self.sendXt("up", self.playerString)
  80.  
  81.     def setBubbleGlow(self,bg):
  82.         bg = '0x'+bg
  83.         #self.user.namecolor = nc
  84.         self.user.bubbleglow = bg
  85.         self.session.commit()
  86.         self.user.bubbleglow = bg
  87.         self.sendXt("up", self.playerString)
  88.  
  89.     def setMoodGlow(self,mg):
  90.         mg = '0x'+mg
  91.         #self.user.namecolor = nc
  92.         self.user.moodglow = mg
  93.         self.session.commit()
  94.         self.user.moodglow = mg
  95.         self.sendXt("up", self.playerString)
  96.  
  97.     def setMoodColour(self,mc):
  98.         mc = '0x'+mc
  99.         #self.user.namecolor = nc
  100.         self.user.moodcolor = mc
  101.         self.session.commit()
  102.         self.user.moodcolor = mc
  103.         self.sendXt("up", self.playerString)
  104.    
  105.     def setSnowballGlow(self,sg):
  106.         sg = '0x'+sg
  107.         #self.user.namecolor = nc
  108.         self.user.snowballglow = sg
  109.         self.session.commit()
  110.         self.user.snowballglow = sg
  111.         self.sendXt("up", self.playerString)
  112.  
  113.     def setWalls(self,w):
  114.         #self.user.namecolor = nc
  115.         self.user.walls = w
  116.         self.session.commit()
  117.         self.user.walls = w
  118.         self.sendXt("up", self.playerString)
  119.  
  120.     def setTransformation(self,t):
  121.         #self.user.namecolor = nc
  122.         self.user.transformation = t
  123.         self.session.commit()
  124.         self.user.transformation = t
  125.         self.sendXt("up", self.playerString)
  126.    
  127.     def setTitleGlow(self,tg):
  128.         tg = '0x'+tg
  129.         self.user.titleglow = tg
  130.         self.session.commit()
  131.         self.user.titleglow = tg
  132.         self.sendXt("up", self.playerString)
  133.  
  134.     def setTitleColor(self,tc):
  135.         tc = '0x'+tc
  136.         self.user.titlecolor = tc
  137.         self.session.commit()
  138.         self.user.titlecolor= tc
  139.         self.sendXt("up", self.playerString)
  140.  
  141.  
  142.  
  143. PLAYERSTRING:
  144.  
  145. def getPlayerString(self):
  146.         if self.membershipDays is None:
  147.             self.membershipDays = math.floor((time.time() - self.user.RegistrationDate) / 86400)
  148.  
  149.         playerArray = (
  150.             self.user.ID,
  151.             self.user.Username,
  152.             1,
  153.             self.user.Color,
  154.             self.user.Head,
  155.             self.user.Face,
  156.             self.user.Neck,
  157.             self.user.Body,
  158.             self.user.Hand,
  159.             self.user.Feet,
  160.             self.user.Flag,
  161.             self.user.Photo,
  162.             self.x,
  163.             self.y,
  164.             self.frame,
  165.             1,
  166.             self.membershipDays,
  167.             self.user.nameglow,
  168.             self.user.namecolor,
  169.             self.user.bubblecolor,
  170.             self.user.bubbletext,
  171.             self.user.ringcolor,
  172.             self.user.speed,
  173.             self.user.title,
  174.             self.user.mood,
  175.             self.user.chatglow,
  176.             self.user.penguinglow,
  177.             self.user.bubbleglow,
  178.             self.user.moodglow,
  179.             self.user.moodcolor,
  180.             self.user.snowballglow,
  181.             self.user.walls= {}
  182.             self.user.transformation,
  183.             self.user.titleglow,
  184.             self.user.titlecolor,
  185.         )
  186.  
  187.         playerStringArray = map(str, playerArray)
  188.         self.playerString = "|".join(playerStringArray)
  189.  
  190.         return self.playerString
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top