Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hat Viewer (https://forums.graalonline.com/forums/showthread.php?t=68563)

killerogue 09-05-2006 05:41 AM

Hat Viewer
 
Hat Viewing Script. Have Fun. :]

PHP Code:

//#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.
PHP Code:

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

Quote:

Originally Posted by Skyld
Not to mention that you haven't got your code blocks correct.
PHP Code:

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

Quote:

Originally Posted by KuJi
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.

PHP Code:

xXziroXx probNo write rights for CLASSES

And trust me, I do have access.

KuJi 09-05-2006 05:33 PM

Quote:

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

EDIT: Just checked, and I can confirm it.

PHP Code:

xXziroXx probNo write rights for CLASSES

And trust me, I do have access.

Yeah, theres an error with classes.

Weapons + NPCS work fine though.


All times are GMT +2. The time now is 03:37 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.