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
  #3  
Old 12-24-2012, 11:08 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Trakan View Post
I remaked my script but anyone can gs2 it?

PHP Code:
if(weaponfired) {
  if(
playerdir == 3){
    
setani gh_gani_roulade,;
    
playerx += 0.6;
    
sleep .1;
    
playerx += 0.6;
    
sleep .1;
    
playerx += 0.6;
    
sleep .1;
    
playerx += 0.6;
    
freezeplayer .5;
  }
  if (
playerdir == 1){
    
setani gh_gani_roulade,;
    
playerx -= 0.6;
    
sleep .1;
    
playerx -= 0.6;
    
sleep .1;
    
playerx -= 0.6;
    
sleep .1;
    
playerx -= 0.6;
    
freezeplayer .5;
  }
  if (
playerdir == 0){
    
setani gh_gani_roulade,;
    
playery -= 0.6;
    
sleep .1;
    
playery -= 0.6;
    
sleep .1;
    
playery -= 0.6;
    
sleep .1;
    
playery -= 0.6;
    
freezeplayer .5;
  }
  if (
playerdir == 2){
    
setani gh_gani_roulade,;
    
playery += 0.6;
    
sleep .1;
    
playery += 0.6;
    
sleep .1;
    
playery += 0.6;
    
sleep .1;
    
playery += 0.6;
    
freezeplayer .5;
  }

Change
PHP Code:
if (weaponfired) { 
to

PHP Code:
function onWeaponFired() { 
Then change anything with

PHP Code:
playerx
playery
playerdir 
to

PHP Code:
player.x
player
.y
player
.dir 
Then with
PHP Code:
setani
freezeplayer
sleep 
us

PHP Code:
setani()
freezeplayer()
sleep() 
That's pretty much all you gotta do to convert it from GS1 to GS2.
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 08:25 AM.


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