Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 08-13-2009, 08:22 AM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
no, no not at all!
thanks for the help! Im only trying to improve and get my scripts good and clean looking, so any C&C is appreciated!
And i really want to stay away from GS1 so im glad you mentioned that.
PHP Code:
//#CLIENTSIDE
function getCoordinates(xOffsetyOffset
{
  if (
player.dir == 0)
  {
    
this.player.0.5;
    
this.player.yOffset;
  }
  elseif (
player.dir == 1)
  {
    
this.playerx xOffset;
    
this.player.0.5;
  }
  elseif (
player.dir == 2)
  {
    
this.player.0.5;
    
this.player.yOffset;
  }
  elseif (
player.dir == 3)
  {
    
this.player.xOffset;
    
this.player.0.5;
  }
}
function 
onWeaponFired()
{
  
setani("lift"Null);
  
getCoordinates(77)
  
putexplosion2(1,2,this.x,this.y);
  
freezeplayer(0.5);
  
player.chat "Kaboom!"

i just edited the previous script on the forum, so nothing on the RC or something. I hope this is okay? Or did i do too much by also putting spaced around the = between this.x and player.x?

And can/should getcoordinates be serverside?
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.

Last edited by Liberated; 08-13-2009 at 08:32 AM..
Reply With Quote
 


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 03:31 PM.


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