ID:261259
 
hey can someone plz hook me up with an kick a$$ SJJ code ? plz mine dont work...
Newbie mAn wrote:
hey can someone plz hook me up with an kick a$$ SJJ code ? plz mine dont work...



No, read the FAQ and some tutorials, learn to code, then write your own.
Sure... Here's mine...

SS_Trans(mob/M as mob in oview(3), msg as message|null)
set category = "Actions"
var
SSL
if (TSwitch == 1)
alert("It is not your turn...")
else
src.TSwitch = 1
M.TSwitch = 0
if (KCL > 0)
alert("Your concentration is broken... Your Finishing Attack disipates...")
KCL = 0
if (PU2 < 3)
alert("You need to power up first...")
else
SSTransSet(SSL)
if (SSTransSet(SSL) == 4)
if (SS1 == 0)
SS1Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 1!)</I>"
alert("You'll need to power up again and transform again to go to level 2...")
else
if (SS2 == 0)
SS2Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 2!)</I>"
alert("You'll have to power up again and transform again to go to level 3...")
else
if (SS3 == 0)
SS3Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 3!)</I>"
alert("You'll have to power up again and transform again to go to level 4...")
else
SS4Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 4!)</I>"
if (SSTransSet(SSL) == 3)
if (SS1 == 0)
SS1Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 1!)</I>"
alert("You'll need to power up again and transform again to go to level 2...")
else
if (SS2 == 0)
SS2Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 2!)</I>"
alert("You'll have to power up again and transform again to go to level 3...")
else
SS3Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 3!)</I>"
if (SSTransSet(SSL) == 2)
if (SS1 == 0)
SS1Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 1!)</I>"
alert("You'll need to power up again and transform again to go to level 2...")
else
SS2Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 2!)</I>"
if (SSTransSet(SSL) == 1)
SS1Trans()
view(1) << "<B>[usr]:</B> [msg]<BR><I>(Fighter transformed into Super Saiyan level 1!)</I>"
if (SSTransSet(SSL) == 0)
alert("You do not have a high enough PL to transform...")
Bump(M)


I leave it up to you to figure out how to put it into your code...lol It works in mine... But only because *I* made it that way... You have to do the actual work on your own in order to make it work... We can't just GIVE you pieces of code and expect tham to all work when you slap them together...

(And to the more experienced coders here... I realize that this may seem a bit inefficient and/or sloppy... But it works...so I could care less...lol)
In response to SuperSaiyanGokuX
(And to the more experienced coders here... I realize that this may seem a bit inefficient and/or sloppy... But it works...so I could care less...lol)

In my case, I see there's a lot of code that does absolutely nothing. For example, SSTransSet(SSL) on a line by itself doesn't do a single thing.

I'd like to clarify that what I pointed out was not inefficient... it was useless. =P
In response to Spuzzum
Hmmm... I had a feeling that it would work without that (as the same proc is called again in the if statement...lol)... But I seem to have gotten under the impression that it was necessary for some reason...

And it's like that in a lot of my code...lol I could have sworn that at some point during the process I ran across a situation in which it just wouldn't work the way I wanted it to without calling the proc ahead of time like that... So maybe I just got into the habit of calling it before I actually needed it...

Oh well... I plan to go through everything prior to release to clean it up a bit...
h00k

first off, why do people do that? it sounds like an idiot speaking

second off i prefer this Kick A$$ SSJ code

mob/verb/ssj()
world << "[usr] thinks he can go SSJ, Everyone laugh at him!"

mob/verb/SSJ()
world << "[usr] transfroms with the power of ultra refreshing molded zuchinni and into a Super Sonnofa Joe"

Replace the spaces behind the world part and into a tab. should work juuuuuust fine....
In response to Geo
mob/verb/SSJ()
world << "[usr] tries with all his might...lighting is striking the sky is blazing...BANG! A lighting bolt his [usr] taking him down in one"
del src


hehehe, aint that sweeeeeeeeeet lol.

Lee
In response to Pillsverry
Hehe, it's funny that your code won't work.
In response to Nadrew
yah
del src
lmao
In response to Bonzi
That's not why.. del src will work fine, it's the indentation that's wrong.
ok since these people aren't ANY help :P

heres a VERY simple code:

mob/var
namest = "null"
ssj = 0
pl = 100

mob/Stat()
stat("PL:",pl)

mob/verb/SSJ()
if(usr.pl >= 200 && usr.ssj = 0)
usr.namest = usr.name
usr.name = "SSJ [usr.name]"
usr.pl *= 2
else
usr << "...ummm no"



this is VERY simple, if you cant understand it, then you need to learn more :D
In response to Nadrew
Nadrew wrote:
Hehe, it's funny that your code won't work.

My indentation is correct, I used "DM" and "/DM" (both in the < > form, if I actually did put < and > around the DM and /DM it would make this post look rather stupid lol) to make it look correctly, also I did the code in Dream Maker and copy pasted it into here, correctly tabbed.

So :P

hehe

Lee
In response to Mellifluous
I wasn't talking about your code, and what does <DM> </DM> have to do with proper code?
In response to Nadrew
Nadrew wrote:
I wasn't talking about your code, and what does <DM> </DM> have to do with proper code?

Oh sorry.

Also I used <DM> and </DM> because I wanted the layout properly

Lee