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, 08:40 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Exclamation Script Wep Damage

how do i make this script do damage

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 );      

  }



Last edited by GULTHEX; 07-18-2008 at 08:52 PM..
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 11:14 AM.


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