ID:162037
 
mob
Stat()
stat("Jump Level","[jexp]/[maxjexp]")
..()
mob
proc
jumplevelup()
if(src.jexp>=src.maxjexp)//If your exp var equals, or passes your maxexp var
src.level++//Add to your level
src.jexp=0//resets your exp to 0
src.maxjexp*=1.5//makes your maxexp double
src<<"\red You are now a better jumper!!"
src.Statup()
else
..()//defaults if the if() doesn't return it's arguments

mob
verb
Jump()
set category="Tricks"
set name = "jump"
if(!src.jumping)
src.density = 0
src.jumping = 1
sleep(2)//this is the delay between jumps(air time)
src.jumping=0
src.density=1
src.jexp+=3
src.jumplevelup()

/*
mob
verb
Jump()
set category="Tricks"
set name = "jump"
src.density = 0
src.jumping = 1
while(src.jumping)
src.jexp +=3
*/
mob
var
jumping = 0
jexp = 0
maxjexp = 9





eep help me please!
This belongs in Code Problems, and what loop?
In response to Garthor
mob
Stat()
stat("Jump Level","[jexp]/[maxjexp]")
..()
mob
proc
jumplevelup()
if(src.jexp>=src.maxjexp)//If your exp var equals, or passes your maxexp var
src.level++//Add to your level
src.jexp=0//resets your exp to 0
src.maxjexp*=1.5//makes your maxexp double
src<<"\red You are now a better jumper!!"
src.Statup()
else
..()//defaults if the if() doesn't return it's arguments

mob
verb
Jump()
set category="Tricks"
set name = "jump"
if(!src.jumping)
src.density = 0
src.jumping = 1
sleep(2)//this is the delay between jumps(air time)
src.jumping=0
src.density=1
src.jexp+=3
src.jumplevelup()

/*
mob
verb
Jump()
set category="Tricks"
set name = "jump"
src.density = 0
src.jumping = 1
while(src.jumping)
src.jexp +=3
*/
mob
var
jumping = 0
jexp = 0
maxjexp = 9






freezes the game
and i have it in there too >_> lol
In response to RanEsu
You need to be more specific. I assume you mean:

            while(src.jumping)


and the answer is, "duh." jumping is never set to 0, so that loop continues forever, and because it has no sleep() in it, it hogs all the resources it can get.