i've got my jumpscript to were i like it.
For the jumping part that is, but i haven't been able to add it so that i can jump over/on things, i can't seem to get the thing used for nthe staffboots in there working. i understand how it works, but i can't get it right.
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code,key)
{
if( key == "f")
{
if(player.z = 0)
{
replaceAni("walk", "idle");
temp.i = 0;
while(temp.i < 4)
{
temp.i += 0.5;
player.z += 0.2/temp.i;
sleep(0.05);
if(player.z < 1)
{
settimer(0.05);
}
else if(temp.i == 4)
{
temp.i = 0;
while(temp.i < 4)
{
temp.i += 0.5;
if(player.z < 0.5)
{
replaceAni("walk", "walk");
player.z = 0;
}
else
{
player.z -= 0.2*temp.i;
sleep(0.05);
}
}
}
}
}
}
}