Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #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 );      

  }


  #2  
Old 07-18-2008, 09:16 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
::sigh:: Try hiring a scripter.

Quote:
1. Be clear on your ability level. In other words, do not post asking for scripts, or asking people to fix scripts that are above your ability level. If you are writing a script to aid learning, then try writing a simpler script. If you are looking for a script for a server, then the best solution is probably to hire a scripter.

2. Similarly, do not just post whole scripts for people as a response to their difficulties. If you wish to post a wordy solution, then please feel free; however, please do not post things that people can just copy and paste. It isn't helping people to learn just by doing so. If you'd like to show off your scripts to others, post them in the Code Gallery subforum.
http://forums.graalonline.com/forums...cement.php?f=8
Closed Thread


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 05:36 PM.


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