PDA

View Full Version : Hat Viewer


killerogue
09-05-2006, 05:41 AM
Hat Viewing Script. Have Fun. :]

//#CLIENTSIDE
function onWeaponFired()
{
showimg(300,"hat0.png",player.x,player.y+15);
}
function onKeyPressed()
{
if(keydown == 1)
{
for(this.HatNumber=60;this.HatNumber>0;this.HatNumber--);
sleep(0.05);
}
}
if(keydown == 3)
{
for(this.HatNumber=0;this.Hatnumber<60;this.HatNumber++);
sleep(0.05);
}

Twinny
09-05-2006, 11:24 AM
So....what actually changes the image?

Skyld
09-05-2006, 11:48 AM
Not to mention that you haven't got your code blocks correct.
function onKeyPressed()
{
if (foo)
{
//
}
else
if (bar)
{
//
}
}
Style. Your. Scripts.

It really does make it easier to spot errors.

Twinny
09-05-2006, 11:55 AM
Well he tried at least =). Some people put no effort in whatsoever (is that right?) =(

KuJi
09-05-2006, 03:59 PM
Not to mention that you haven't got your code blocks correct.
function onKeyPressed()
{
if (foo)
{
//
}
else
if (bar)
{
//
}
}
Style. Your. Scripts.

It really does make it easier to spot errors.

And if you can't even do that...

/style weapon/npc/class name: formats the script

xXziroXx
09-05-2006, 04:54 PM
And if you can't even do that...

/style weapon/npc/class name: formats the script

Last time I checked, it returned an error when trying to style a class.

EDIT: Just checked, and I can confirm it.

xXziroXx prob: No write rights for CLASSES/

And trust me, I do have access.

KuJi
09-05-2006, 05:33 PM
Last time I checked, it returned an error when trying to style a class.

EDIT: Just checked, and I can confirm it.

xXziroXx prob: No write rights for CLASSES/

And trust me, I do have access.

Yeah, theres an error with classes.

Weapons + NPCS work fine though.