Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Text graal movie script but having problems (https://forums.graalonline.com/forums/showthread.php?t=78554)

Rave_J 02-01-2008 01:59 AM

Text graal movie script but having problems
 
Having Problems it works on offline but it dont work online its a video with just text that goes in unstick me level when u enter the server well someone help me idk whats wrong

//#CLIENTSIDE
// NPC made by Rave Platinum
if (created) { showtext 900,screenwidth/2,screenheight/2,,cb,Welcome To Scarlet Sky;
changeimgvis 900,8;
showtext 901,screenwidth/2+1,screenheight/2+1,,cb,Welcome To Scarlet Sky;
hideplayer 23.2;
disabledefmovement;
changeimgcolors 900,1,1,1,0.99;
sleep3;
changeimgcolors 900,0.90,0.90,0.90,0.90;
sleep0.2;
changeimgcolors 900,0.80,0.80,0.80,0.80;
sleep0.2;
changeimgcolors 900,0.70,0.70,0.70,0.70;
sleep0.2;
changeimgcolors 900,0.60,0.60,0.60,0.60;
sleep0.2;
changeimgcolors 900,0.50,0.50,0.50,0.50;
sleep0.2;
changeimgcolors 900,0.40,0.40,0.40,0.40;
sleep0.2;
changeimgcolors 900,0.30,0.30,0.30,0.30;
sleep0.2;
changeimgcolors 900,0.20,0.20,0.20,0.20;
sleep0.2;
changeimgcolors 900,0.10,0.10,0.10,0.10;
sleep0.2;
changeimgcolors 900,0,0,0,0;
sleep3;
showtext 900,screenwidth/2,screenheight/2,,cb,Coming soon To Hosted Tab;
changeimgvis 900,8;
showtext 901,screenwidth/2+1,screenheight/2+1,,cb,Welcome;
changeimgcolors 900,1,1,1,0.99;
changeimgcolors 900,0.10,0.10,0.10,0.10;
sleep0.2;
changeimgcolors 900,0.20,0.20,0.20,0.20;
sleep0.2;
changeimgcolors 900,0.30,0.30,0.30,0.30;
sleep0.2;
changeimgcolors 900,0.40,0.40,0.40,0.40;
sleep0.2;
changeimgcolors 900,0.50,0.50,0.50,0.50;
sleep0.2;
changeimgcolors 900,0.60,0.60,0.60,0.60;
sleep0.2;
changeimgcolors 900,0.70,0.70,0.70,0.70;
sleep0.2;
changeimgcolors 900,0.80,0.80,0.80,0.80;
sleep0.2;
changeimgcolors 900,0.90,0.90,0.90,0.90;
sleep3;
changeimgcolors 900,0.90,0.90,0.90,0.90;
sleep0.2;
changeimgcolors 900,0.80,0.80,0.80,0.80;
sleep0.2;
changeimgcolors 900,0.70,0.70,0.70,0.70;
sleep0.2;
changeimgcolors 900,0.60,0.60,0.60,0.60;
sleep0.2;
changeimgcolors 900,0.50,0.50,0.50,0.50;
sleep0.2;
changeimgcolors 900,0.40,0.40,0.40,0.40;
sleep0.2;
changeimgcolors 900,0.30,0.30,0.30,0.30;
sleep0.2;
changeimgcolors 900,0.20,0.20,0.20,0.20;
sleep0.2;
changeimgcolors 900,0.10,0.10,0.10,0.10;
changeimgcolors 900,0,0,0,0;
sleep2;
showtext 900,screenwidth/2,screenheight/2,,cb,Hiring Best Developers on Graal :D;
changeimgvis 900,8;
showtext 901,screenwidth/2+1,screenheight/2+1,,cb,Hiring Best Developers on Graal:D;
changeimgcolors 900,1,1,1,0.99;
changeimgcolors 900,0.10,0.10,0.10,0.10;
sleep0.2;
changeimgcolors 900,0.20,0.20,0.20,0.20;
sleep0.2;
changeimgcolors 900,0.30,0.30,0.30,0.30;
sleep0.2;
changeimgcolors 900,0.40,0.40,0.40,0.40;
sleep0.2;
changeimgcolors 900,0.50,0.50,0.50,0.50;
sleep0.2;
changeimgcolors 900,0.60,0.60,0.60,0.60;
sleep0.2;
changeimgcolors 900,0.70,0.70,0.70,0.70;
sleep0.2;
changeimgcolors 900,0.80,0.80,0.80,0.80;
sleep0.2;
changeimgcolors 900,0.90,0.90,0.90,0.90;
sleep3;
changeimgcolors 900,0.90,0.90,0.90,0.90;
sleep0.2;
changeimgcolors 900,0.80,0.80,0.80,0.80;
sleep0.2;
changeimgcolors 900,0.70,0.70,0.70,0.70;
sleep0.2;
changeimgcolors 900,0.60,0.60,0.60,0.60;
sleep0.2;
changeimgcolors 900,0.50,0.50,0.50,0.50;
sleep0.2;
changeimgcolors 900,0.40,0.40,0.40,0.40;
sleep0.2;
changeimgcolors 900,0.30,0.30,0.30,0.30;
sleep0.2;
changeimgcolors 900,0.20,0.20,0.20,0.20;
sleep0.2;
changeimgcolors 900,0.10,0.10,0.10,0.10;
sleep0.2;
changeimgcolors 900,0,0,0,0;
sleep0.2;
setlevel2 bionic_start.nw,31.5,32;
}

Tigairius 02-01-2008 02:20 AM

PHP Code:

// NPC made by Rave Platinum
function onCreated() {
  
setshape(13232);
}
function 
onActionwarp() {
  
setlevel2("bionic_start.nw",31.5,32);
}
//#CLIENTSIDE
function onCreated() {
  
showtext(900,screenwidth/2,screenheight/2,"","cb","Welcome To Scarlet Sky");
  
changeimgvis(9008);
  
showtext(901,screenwidth/2+1,screenheight/2+1,"","cb","Welcome To Scarlet Sky");
  
hideplayer(23.2);
  
disabledefmovement();
  
changeimgcolors(900,1,1,1,0.99);
  
sleep(3);
  for(
temp.1temp.>= 0temp.-= 0.1) {
    
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
    
sleep(0.2);
  }
  
sleep(3);
  
showtext(900,screenwidth/2,screenheight/2,"","cb","Coming soon To Hosted Tab");
  
changeimgvis(9008);
  
showtext(901,screenwidth/2+1,screenheight/2+1,"","cb","Welcome");
  for(
temp.0temp.<= 1temp.+= 0.1) {
    
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
    
sleep(0.2);
  }
  
sleep(3);
  for(
temp.1temp.>= 0temp.-= 0.1) {
    
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
    
sleep(0.2);
  }
  
changeimgcolors(900,0,0,0,0);
  
sleep(2);
  
showtext(900,screenwidth/2,screenheight/2,"","cb","Hiring Best Developers on Graal");
  
changeimgvis(900,8);
  
showtext(901,screenwidth/2+1,screenheight/2+1,"","cb","Hiring Best Developers on Graal");
  for(
temp.0temp.<= 1temp.+= 0.1) {
    
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
    
sleep(0.2);
  }
  
sleep(3);
  for(
temp.1temp.>= 0temp.-= 0.1) {
    
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
    
sleep(0.2);
  }
  
changeimgcolors(900,0,0,0,0);
  
triggeraction(x+1y+1"warp"null);


setlevel2 is serverside only. I also took the liberty of converting it to Gscript2 format. Now, this script will only work online.

Rave_J 02-01-2008 02:29 AM

thank u so much tig ur the best u should just ocme work for my server

Rave_J 02-01-2008 02:35 AM

eww tig it didnt work just in a level so i add it into a weapon list an it works but everytime u log on it keeps doing it i just one it do it just one time in one level an never again u know what i mean

cbk1994 02-01-2008 02:50 AM

Make a variable ...

PHP Code:

//#CLIENTSIDE
function onCreated()
{
  if ( ! 
client.hasSeen )
  {
    
showMovie();
    
client.hasSeen true;
  }



Rave_J 02-01-2008 02:52 AM

kk i added that to the script it still dont work also
when its done u cant walk either hmmmm

Tigairius 02-01-2008 04:55 AM

Quote:

Originally Posted by Rave_J (Post 1373015)
kk i added that to the script it still dont work also
when its done u cant walk either hmmmm

PHP Code:

// NPC made by Rave Platinum
function onCreated() {
  
setshape(13232);
}
function 
onActionwarp() {
  
setlevel2("bionic_start.nw",31.5,32);
}
//#CLIENTSIDE
function onCreated() {
  if (!
client.seenmovie) {
    
showtext(900,screenwidth/2,screenheight/2,"","cb","Welcome To Scarlet Sky");
    
changeimgvis(9008);
    
showtext(901,screenwidth/2+1,screenheight/2+1,"","cb","Welcome To Scarlet Sky");
    
hideplayer(23.2);
    
disabledefmovement();
    
changeimgcolors(900,1,1,1,0.99);
    
sleep(3);
    for(
temp.1temp.>= 0temp.-= 0.1) {
      
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
      
sleep(0.2);
    }
    
sleep(3);
    
showtext(900,screenwidth/2,screenheight/2,"","cb","Coming soon To Hosted Tab");
    
changeimgvis(9008);
    
showtext(901,screenwidth/2+1,screenheight/2+1,"","cb","Welcome");
    for(
temp.0temp.<= 1temp.+= 0.1) {
      
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
      
sleep(0.2);
    }
    
sleep(3);
    for(
temp.1temp.>= 0temp.-= 0.1) {
      
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
      
sleep(0.2);
    }
    
changeimgcolors(900,0,0,0,0);
    
sleep(2);
    
showtext(900,screenwidth/2,screenheight/2,"","cb","Hiring Best Developers on Graal");
    
changeimgvis(900,8);
    
showtext(901,screenwidth/2+1,screenheight/2+1,"","cb","Hiring Best Developers on Graal");
    for(
temp.0temp.<= 1temp.+= 0.1) {
      
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
      
sleep(0.2);
    }
    
sleep(3);
    for(
temp.1temp.>= 0temp.-= 0.1) {
      
changeimgcolors(900,temp.i,temp.i,temp.i,temp.i);
      
sleep(0.2);
    }
    
changeimgcolors(900,0,0,0,0);
    
triggeraction(x+1y+1"warp"null);
    
enabledefmovement();
    
client.seenmovie 1;
  }



cbk1994 02-01-2008 05:59 AM

Generally it's not a good idea to give whole pieces of code.

It's nice that you are helping, but it is better to explain what to do.

Also, the forum rules say that you shouldn't ask for whole scripts, or for things above your ability level.

Tigairius 02-01-2008 08:33 AM

Quote:

Originally Posted by cbkbud (Post 1373070)
Generally it's not a good idea to give whole pieces of code.

It's nice that you are helping, but it is better to explain what to do.

Also, the forum rules say that you shouldn't ask for whole scripts, or for things above your ability level.

Thanks, that's definitely a good idea, however I always learned from example.

I know it's nice, it's apparent that he doesn't understand even during an explanation and quite frankly it's a lot easier for me to just rescript it than to sit and explain it if it's not my job.

He's not asking for whole scripts, he's asking what's wrong, and it's obviously not above his ability level since it works in editor.

Kristi 02-02-2008 04:26 PM

Quote:

Originally Posted by cbkbud (Post 1373070)
Generally it's not a good idea to give whole pieces of code.

It's nice that you are helping, but it is better to explain what to do.

Also, the forum rules say that you shouldn't ask for whole scripts, or for things above your ability level.

It's best to not repeatedly give whole pieces of code because that is an unwillingness to learn. One or two can't hurt because they can see what you do and incorporate it into their style (which is beneficial).

Generally it's not a good idea to attack the actions of others, but what do I know :confused:

You must also consider the average graalian doesn't have access to a gs2 compiler and the offline compiler works in different ways.

cbk1994 02-02-2008 06:01 PM

Quote:

Originally Posted by Kristi (Post 1373284)
You must also consider the average graalian doesn't have access to a gs2 compiler and the offline compiler works in different ways.

Why don't we fix this then, instead of working on projects that won't happen (flying technology, Graal 3D, etc).


Also, Tig, I wasn't attacking you. I'm sorry if it sounded like that; *hands a cookie*


All times are GMT +2. The time now is 04:33 PM.

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