Top

Comments

  (55)  RSS
criminal's
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 20, 2008 12:11 pm
LMFAO!
Fark owns you tbh ._.

--
About the snippet: Added a flood protection ( A small, very small one )
jonesy44
Comments: 644
 
mIRC Snippet:  Deathmatch
Posted on May 20, 2008 11:23 am
;-)

F U C K :P
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 20, 2008 9:53 am
Lmao @ SnoooP, I didn't know xD
Napa182 I don't know what $floor is, i'll read in /help $floor. Thank yuuu :)
I'll update the snippet too
SnoooP
Comments: 348
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 3:06 pm
nope you cant say the f word :P lol
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 2:23 pm
Omg thanks Jonesy <3 I found it.
I now use:

Code:

var %maxhp = 99, %myhp = %Deathmatch.HPplayer1, %hpremaining = $calc(%maxhp - %myhp)
msg $chan 04• 1D14m 4[3 %Deathmatch.Player1 $+ : 3,3 $str(.,$calc(%myhp / 3)) 4,4 $str(.,$calc(%hpremaining / 3))  7(1 %myhp $+ % 7) 4]


Fark, thanks man, you saved like 200 lines! ^_^
^ Wth you can't say the f word O.o

---

Oeyeah <3 100th comment
napa182
Comments: 742
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 2:05 pm
you could use somthing like this
Code:
$+($str($+(09,$chr(44),09,$chr(46)),$floor($calc(%Deathmatch.HPplayer1 / 1))),$str($+(04,$chr(44),04,$chr(46)),$floor($calc(99 - %Deathmatch.HPplayer1 / 1))))


or w/e ur var is just add it to where %Deathmatch.HPplayer1 is
jonesy44
Comments: 644
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 2:00 pm
oh shait, sorry the 40 should have been 4.
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 1:58 pm
Huh wth Jonesy, I really don't get it O.O

Quote:

Code:
var %maxhp = 10, %myhp = 40, myhpremain = %myhprem = $calc(%maxhp - %myhp)
msg $chan <color> $+ $str(|,%myhp) $+ %myhp $+ <color> $+ $str(|,%myhprem)


In your code the %myhprem ends up negative but okai you say It'd work if you apply it correctly so forget that.

But in my code there are Only 20 |'s, else it ends up WAAAY to big.
Maybe i'm wrong but I think your code can give 99 |'s.
Wtf I really don't get it anymore.
jonesy44
Comments: 644
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 12:19 pm
You need to calculate it of course.

5 * 20 = 100, there's a starter equation :-)
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 10:50 am
and if you use $calc((%maxhp - %myhp) / 5) it can't be correct? unless you change the max hp to 100?
Or am I totally wrong?
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 19, 2008 10:49 am
I hardly get it but the max hp a player can get is 99, and the hpbar contains only 20 |'s. So how can you use $str with %maxhp, it could form to 99 |'s right?
jonesy44
Comments: 644
 
mIRC Snippet:  Deathmatch
Posted on May 18, 2008 4:07 pm
okay, here's an example, translate it into your code.

Code:
var %maxhp = 10, %myhp = 40, myhpremain = %myhprem = $calc(%maxhp - %myhp)
msg $chan <color> $+ $str(|,%myhp) $+ %myhp $+ <color> $+ $str(|,%myhprem)


.. It will work if you apply it correctly >.>
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 18, 2008 2:29 pm
Okai i've read it.
But this doesn't solve the problem right? you'll still get all those If statements, I think. This only replaces |||||||||| with $str(|,9) %deathmatch.HPplayer1 $str(|,9)
That's not the problem, but I need the color combinations with them too ( that's what forms the hpbar )
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 18, 2008 2:22 pm
Hmm, thanks :D
I'll read /help $str
jonesy44
Comments: 644
 
mIRC Snippet:  Deathmatch
Posted on May 18, 2008 11:55 am
okay, use $str.

ex:
Code:
$str(character,no_of_times_to_repeat) 100% $str(character,no..)


btw, check out an old script of mine called "Status Imgs" or something, that used a system a little like this..
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 18, 2008 11:52 am
@ Jonesy44
I don't think so, in code-style it's hard to see but if you test it, you'll see those ||||||||| things is a hpbar.


^ That's how it looks.
If someone got an idea to reduce all those if's, tell me :)
jonesy44
Comments: 644
 
mIRC Snippet:  Deathmatch
Posted on May 18, 2008 11:25 am
There must be a way to reduce those if statements..

instead of all this crap,

if (%Deathmatch.HPplayer2 = 1) { msg $chan 4•1 D14m 4[3 %Deathmatch.Player2 $+ : 4,4|4,4|||||||||9,4 1% 4,4|||||||||| 4] }

just do,
msg $chan 4•1 D14m 4[3 %Deathmatch.Player2 $+ : 4,4|4,4|||||||||9,4 %Deathmatch.HPplayer2 $+ % 4,4|||||||||| 4]
criminal
Comments: 126
 
mIRC Snippet:  Deathmatch
Posted on May 18, 2008 7:07 am
No comments? :o
Hawkee
Comments: 398
 
mIRC Snippet:  [RS] dm script (With godswords)
Posted on Apr 15, 2008 11:52 am
Xpl0reR, in the world of open source it's perfectly fine to modify an existing work as long as the original work is cited.
criminal
Comments: 126
 
mIRC Snippet:  [RS] dm script (With godswords)
Posted on Apr 14, 2008 10:30 am
Quote:

Stealing Others Scripts is lame, you stole someone's code to redo it.. soo

Your Lame..

http://www.hawkee.com/snippet/4274/ ( mine )
http://www.hawkee.com/snippet/3052/ ( Blknbluyoshi's )
Compare.

1 2 3 Next
Bottom