Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-18-2008, 09:14 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Exclamation [request] custom hp system suggested by excalibur7388

i need a custom health sys so this script does damage when i hit people

PHP Code:
//#CLIENTSIDE

function onCreated()

{

  
setTimer0.05 );

}

function 
onTimeOut()

{

  
replaceani"sword" );

}

setTimer0.05 );



function 
onKeyPressedcodekey )

{  

  if ( 
key == "s" && player.freezetime <= )

  {

    
setAni"dg_katana_attack"NULL );

    
freezeplayer.30 );

    
temp.txtemp.ty;

    
tx player.1.5 vecxplayer.dir )*2;

    
ty player.2   vecyplayer.dir )*2;

    
triggeractiontxty"projectile""punch"player.account );      

  }


 


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 08:12 AM.


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