Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-05-2006, 05:41 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
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);

__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #2  
Old 09-05-2006, 11:24 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
So....what actually changes the image?
Reply With Quote
  #3  
Old 09-05-2006, 11:48 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to 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.
Reply With Quote
  #4  
Old 09-05-2006, 11:55 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Well he tried at least =). Some people put no effort in whatsoever (is that right?) =(
Reply With Quote
  #5  
Old 09-05-2006, 03:59 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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
Reply With Quote
  #6  
Old 09-05-2006, 04:54 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 09-05-2006, 05:33 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:41 PM.


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