Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Could anyone possibly give me a script template. (https://forums.graalonline.com/forums/showthread.php?t=80401)

kodster200 07-08-2008 03:46 AM

Could anyone possibly give me a script template.
 
i need a script template at the least for clones which follow you/you can also control or something along those lines also so if you take damage its your clones which actually take the damage and they have a fixed hp which goes up each lvl (the ammount of hp for the clones that goes up i could prob do) sorry if this is to complicated i never have been able to learn gs2 (ive tried quite a few times just to complicated for me lol) :( :confused::confused:

Stryke 07-08-2008 06:40 AM

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
setTimer0.05 );
}
function 
onTimeOut() {
  
this.clonedir = ((player.dir 2) % 4);
  
this.clonedx player.vecx(this.clonedir) * 2;
  
this.clonedy player.vecy(this.clonedir) * 2;
  
with (findimg(200)) {
    
layer 0;
    
thiso.clonedx;
    
thiso.clonedy;
    
player.z;
    
ani player.ani "[" player.anistep "]";
    
dir player.dir;
    
playerlook true;
    
actor.mode 1;
    
zoom 1;
  }
  
setTimer(.05);
}

function 
onActionHit() {
  
//damage code


Something like this I guess

TSAdmin 07-08-2008 06:47 AM

Hmm, for future reference:

Quote:

Originally Posted by Skyld
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. Find this post, here


kodster200 07-08-2008 04:59 PM

Thx Stryke and i know TSA but every time i find a nat to work for me an my friend they just do what they want so yeah... and scripters these days are always taken on the classic servers :(

xXziroXx 07-08-2008 05:07 PM

Quote:

Originally Posted by kodster200 (Post 1401500)
and scripters these days are always taken on the classic servers :(

I don't work on a Classic server.

kodster200 07-08-2008 05:23 PM

Quote:

Originally Posted by xXziroXx (Post 1401506)
I don't work on a Classic server.

you used to and i thought u woulda been to busy with the current server ur workin on which btw is lookin awsome :D i was on it not that long ago and lovd it xD

cbk1994 07-08-2008 07:30 PM

Quote:

Originally Posted by kodster200 (Post 1401500)
Thx Stryke and i know TSA but every time i find a nat to work for me an my friend they just do what they want so yeah... and scripters these days are always taken on the classic servers :(

Where are you looking? x_x

Most scripters work on UC servers.

Of course Classic servers need scripters ... just because they have them does not mean they take all of the scripters up.

Try learning to script.

DarkReaper0 07-19-2008 02:48 AM

Quote:

Originally Posted by kodster200 (Post 1401443)
i need a script template at the least for clones which follow you/you can also control or something along those lines also so if you take damage its your clones which actually take the damage and they have a fixed hp which goes up each lvl (the ammount of hp for the clones that goes up i could prob do) sorry if this is to complicated i never have been able to learn gs2 (ive tried quite a few times just to complicated for me lol) :( :confused::confused:


1) True, hire a scripter

2) Would it kill you to use punctuation or hit your return key every once in a while? My eyes are bleeding :cry:


All times are GMT +2. The time now is 05:37 PM.

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