Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Spinny Spinny Spinny Graal (https://forums.graalonline.com/forums/showthread.php?t=134266405)

Gunderak 05-09-2012 09:56 AM

Spinny Spinny Spinny Graal
 
Just some random functions I made, I tried to replicate the RR/ZZ on Classic iPhone.
PHP Code:

//#CLIENTSIDE
function RotateLeft(){
  
GraalControl.rotationcenter = {screenwidth/2screenheight/2};
  
GraalControl.rotation 0;
  while(
GraalControl.rotation 25.132){
  
GraalControl.rotation += 0.30;
    if(
GraalControl.rotation 25.132){
      
GraalControl.rotation 0;
      return;
    }
    
sleep(0.05);
  }
}
function 
RotateRight(){
  
GraalControl.rotationcenter = {screenwidth/2screenheight/2};
  
GraalControl.rotation 0;
  while(
GraalControl.rotation > -25.132){
  
GraalControl.rotation -= 0.30;
    if(
GraalControl.rotation < -25.132){
      
GraalControl.rotation 0;
      return;
    }
    
sleep(0.05);
  }
}
function 
UpsideDown(){
  
GraalControl.rotationcenter = {screenwidth/2screenheight/2};
  
GraalControl.rotation 0;
  while(
GraalControl.rotation 3.1415){
  
GraalControl.rotation += 0.30;
    if(
GraalControl.rotation 3.1415){
      
GraalControl.rotation 3.1415;
      return;
    }
    
sleep(0.05);
  }
}
function 
Normal(){
  while(
GraalControl.rotation 0){
  
GraalControl.rotation -= 0.30;
    if(
GraalControl.rotation 0){
      
GraalControl.rotation 0;
      return;
    }
    
sleep(0.05);
  }



Clockwork 05-09-2012 10:35 AM

Alternatively, log into any server and say:

do a barrel roll

Gunderak 05-09-2012 10:41 AM

Hm thought it was only iServers that had it lol..
Anyway I wanted to make it myself :)

cbk1994 05-09-2012 10:49 AM

Quote:

Originally Posted by Clockwork (Post 1694127)
Alternatively, log into any server and say:

do a barrel roll

or "rr" or "zz", the latter of which is very annoying because I actually say that in-game a lot. Some other repeated letters work as well.

Devil_Lord2 05-09-2012 06:13 PM

So I have a question about this, typing RR and ZZ into Graal (I'd assume one should have went clockwise but they both go counterclockwise which I can't say I like) it does a barrel roll, but it keeps your text in the chatbar... Is there a way to do this externally from the core system? Are we able to do this and how?

smirt362 05-09-2012 06:38 PM

Quote:

Originally Posted by Clockwork (Post 1694127)
Alternatively, log into any server and say:

do a barrel roll

I had no idea, this amazing.

Emera 05-09-2012 06:50 PM

The more times you say it, the faster it goes ;)

Dragon551 05-09-2012 07:08 PM

Stefan likes to have his fun :>

Hezzy002 05-10-2012 04:41 AM

dam gunderkah that script roxx.

http://i.imgur.com/K1NMJ.png

2 bad huh??

Gunderak 05-10-2012 07:52 AM

$10 sais the last rep was neg.

Tricxta 05-10-2012 07:55 AM

Quote:

Originally Posted by Gunderak (Post 1694252)
$10 sais the last rep was neg.

Why think so negatively, we scripters look out for each other you know!

Gunderak 05-10-2012 08:00 AM

When he has always been rude to myself; I can say with confidence his last rep to me was neg.
And his comment was quite sarcastic if you hadn't noticed.


All times are GMT +2. The time now is 07:49 AM.

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