Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-09-2012, 09:56 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
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);
  }

__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 05-09-2012 at 10:41 AM..
Reply With Quote
  #2  
Old 05-09-2012, 10:35 AM
Clockwork Clockwork is offline
ᶘ ᵒᴥᵒᶅ...ᶘ ಠᴥಠᶅ❤...ℳℴℯ
Clockwork's Avatar
Join Date: Feb 2007
Location: Pennsylvania
Posts: 2,071
Clockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant future
Alternatively, log into any server and say:

do a barrel roll
__________________
Reply With Quote
  #3  
Old 05-09-2012, 10:41 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Hm thought it was only iServers that had it lol..
Anyway I wanted to make it myself
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #4  
Old 05-09-2012, 10:49 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Clockwork View Post
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.
__________________
Reply With Quote
  #5  
Old 05-09-2012, 06:13 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
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?
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote
  #6  
Old 05-09-2012, 06:38 PM
smirt362 smirt362 is offline
Tee Hee
smirt362's Avatar
Join Date: Feb 2005
Location: Texas
Posts: 2,101
smirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant future
Send a message via AIM to smirt362 Send a message via MSN to smirt362
Quote:
Originally Posted by Clockwork View Post
Alternatively, log into any server and say:

do a barrel roll
I had no idea, this amazing.
__________________

Don Hertzfeldt <3
Reply With Quote
  #7  
Old 05-09-2012, 06:50 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
The more times you say it, the faster it goes
Reply With Quote
  #8  
Old 05-09-2012, 07:08 PM
Dragon551 Dragon551 is offline
Alfonso :3
Dragon551's Avatar
Join Date: Mar 2006
Location: In a pocket.
Posts: 712
Dragon551 is a splendid one to beholdDragon551 is a splendid one to beholdDragon551 is a splendid one to beholdDragon551 is a splendid one to beholdDragon551 is a splendid one to behold
Send a message via AIM to Dragon551 Send a message via MSN to Dragon551
Stefan likes to have his fun :>
__________________
-Alfonso (AGT)


---------------------
---------------------
#AGT
Reply With Quote
  #9  
Old 05-10-2012, 04:41 AM
Hezzy002 Hezzy002 is offline
Registered User
Join Date: Jul 2011
Posts: 247
Hezzy002 is a jewel in the roughHezzy002 is a jewel in the rough
dam gunderkah that script roxx.



2 bad huh??
Reply With Quote
  #10  
Old 05-10-2012, 07:52 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
$10 sais the last rep was neg.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #11  
Old 05-10-2012, 07:55 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Quote:
Originally Posted by Gunderak View Post
$10 sais the last rep was neg.
Why think so negatively, we scripters look out for each other you know!
Reply With Quote
  #12  
Old 05-10-2012, 08:00 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
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.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
Reply


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:57 PM.


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