Reply
 
Thread Tools Display Modes
Old 2011-03-23, 11:44 AM   #1
Lavi
Full Member
 
Lavi's Avatar
 
Join Date: 2011-03-10
Posts: 265
Lavi Ordinary Player -- showing a lot of promise
Default [VIP]Random Discussion

So, I wanted to randomly post thoughts here. Like spam right? But please no advertising, flaming or arguing here.

Mostly I just wanted to write that Kaichii broke my heart today </3 when I tried to stalk him on Unicorn
__________________
Blasphemy

Quote:
Me : What do you mean there's no Loner on unicorn?
Some top fire tao : There isn't, we're a big family. Nobody is a loner.

...I mean the player *Loner*
Lavi is offline   Reply With Quote
Old 2011-03-23, 02:00 PM   #2
~Fang~
Full Member
 
~Fang~'s Avatar
 
Join Date: 2011-03-15
Location: California, USA
Posts: 224
~Fang~ Ordinary Player -- showing a lot of promise
Default

Mk. Here's a thought:
I code in C#. I coded this and it confused my friend so much to the use of it.
Can anyone tell me if they understand why I use this?

Code:
byte Job = 55;  
byte Job2 = (Job /10) * 10;
What does Job2 equal?
PS: It's not 55.
~Fang~ is offline   Reply With Quote
Old 2011-03-23, 02:01 PM   #3
Lavi
Full Member
 
Lavi's Avatar
 
Join Date: 2011-03-10
Posts: 265
Lavi Ordinary Player -- showing a lot of promise
Default

o_o holy sh- thats confusing looking.

I only code in html or BB code so that makes no sense
__________________
Blasphemy

Quote:
Me : What do you mean there's no Loner on unicorn?
Some top fire tao : There isn't, we're a big family. Nobody is a loner.

...I mean the player *Loner*
Lavi is offline   Reply With Quote
Old 2011-03-23, 02:03 PM   #4
~Fang~
Full Member
 
~Fang~'s Avatar
 
Join Date: 2011-03-15
Location: California, USA
Posts: 224
~Fang~ Ordinary Player -- showing a lot of promise
Default

Quote:
Originally Posted by Lavi View Post
o_o holy sh- thats confusing looking.

I only code in html or BB code so that makes no sense
=p look up what a byte is. You might learn something.
~Fang~ is offline   Reply With Quote
Old 2011-03-23, 02:05 PM   #5
Lavi
Full Member
 
Lavi's Avatar
 
Join Date: 2011-03-10
Posts: 265
Lavi Ordinary Player -- showing a lot of promise
Default

Quote:
Originally Posted by ~Fang~ View Post
=p look up what a byte is. You might learn something.
The byte (pronounced /ˈbaɪt/), is a unit of digital information in computing and telecommunications, that most commonly consists of eight bits. Historically, a byte was the number of bits used to encode a single character of text in a computer and it is for this reason the basic addressable element in many computer architectures.

My brain just died
__________________
Blasphemy

Quote:
Me : What do you mean there's no Loner on unicorn?
Some top fire tao : There isn't, we're a big family. Nobody is a loner.

...I mean the player *Loner*
Lavi is offline   Reply With Quote
Old 2011-03-23, 05:33 PM   #6
jackpotsvr
Full Member
 
jackpotsvr's Avatar
 
Join Date: 2011-03-10
Posts: 111
jackpotsvr Ordinary Player -- showing a lot of promise
Default

Quote:
Originally Posted by ~Fang~ View Post
Mk. Here's a thought:
I code in C#. I coded this and it confused my friend so much to the use of it.
Can anyone tell me if they understand why I use this?

Code:
byte Job = 55;  
byte Job2 = (Job /10) * 10;
What does Job2 equal?
PS: It's not 55.
Ok, i don't understand that one :/
BTW try doing like its PHP code instead of normal code
It will have the colors looking quite the same as in visual studio
jackpotsvr is offline   Reply With Quote
Old 2011-03-23, 05:49 PM   #7
~Fang~
Full Member
 
~Fang~'s Avatar
 
Join Date: 2011-03-15
Location: California, USA
Posts: 224
~Fang~ Ordinary Player -- showing a lot of promise
Default

Would you like me to explain it?
It did set me aback the first time I saw it. Took me a few seconds.
~Fang~ is offline   Reply With Quote
Old 2011-03-23, 06:32 PM   #8
Mephisto
All Hell!
 
Mephisto's Avatar
 
Join Date: 2011-03-09
Posts: 1,558
Mephisto King/Queen -- damn goodMephisto King/Queen -- damn goodMephisto King/Queen -- damn goodMephisto King/Queen -- damn goodMephisto King/Queen -- damn goodMephisto King/Queen -- damn goodMephisto King/Queen -- damn goodMephisto King/Queen -- damn good
Default

Quote:
Originally Posted by ~Fang~ View Post
Would you like me to explain it?
It did set me aback the first time I saw it. Took me a few seconds.
I have interest in this =D

explain it
Mephisto is offline   Reply With Quote
Old 2011-03-23, 06:45 PM   #9
~Fang~
Full Member
 
~Fang~'s Avatar
 
Join Date: 2011-03-15
Location: California, USA
Posts: 224
~Fang~ Ordinary Player -- showing a lot of promise
Default

Quote:
Originally Posted by Mephisto View Post
I have interest in this =D

explain it
mk

Well, a byte is only capable of storing integers between 0 and 255. It doesn't hold decimals. Let's say that TQ is coding an NPC that reads the character's class. Well, Ninjas are 50-55. Instead of making multiple cases, i'd use something like:
Code:
if ((Character.Class / 10) * 10 == 50)
Now let's say that you're a NinjaMaster (55). Well, it would go something like this... let's break it down.
Code:
byte Test = (Character.Class / 10) * 10;
Character.Class divided by 10 is 5.5... but bytes cannot hold decimals nor can
they round, so it equals 5. Then, it's multiplied by 10 to give 50.
The formula returns the base class.
~Fang~ is offline   Reply With Quote
Old 2011-03-23, 07:02 PM   #10
Kaiichi
Full Member
 
Kaiichi's Avatar
 
Join Date: 2011-03-10
Location: In pre-med school, WV
Posts: 443
Kaiichi Ordinary Player -- showing a lot of promise
Default

Quote:
Originally Posted by Lavi View Post
So, I wanted to randomly post thoughts here. Like spam right? But please no advertising, flaming or arguing here.

Mostly I just wanted to write that Kaichii broke my heart today </3 when I tried to stalk him on Unicorn
Aye, but you found me after I got home lol And random top fire being Labby? lol
__________________
©~Kaiichi

124-130-138 Pure Warrior
Currently #1 Warrior on Titan/Unicorn

Sup +12 -3 SDG/SDG Headband
Sup +7 -3 SDG/SDG Neck
Sup +12 -3 SDG/SDG Poleaxe
Sup +8 -3 SDG/SDG Armor
Sup +9 -3 SDG/SDG Shield
Sup +7 -3 SDG/SDG Ring
Sup +7 -3 SDG/SDG Boots
Sup +7 -1 STG/STG Fan
Sup +7 -1 SGG/SGG Tower
+7 Steed
Thunder Tiger
-1 Tae Kwon Do
-1 Miraculous Gourd

~Kai~ - 132 Pure Archer
~Kaiichi~ - 134 Monk-War-Tro
Ichigo - 130 Pure Ninja
Kaiichi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:10 AM.