Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   adapt gs1 to gs2 (https://forums.graalonline.com/forums/showthread.php?t=134261639)

Diablo1 01-11-2011 06:13 PM

adapt gs1 to gs2
 
why is this not working?:cry:

function onPlayerTouchsMe(){
setcoloreffect 0,0,1,0.4;
sleep 1;
setcoloreffect 1,1,1,1;
}

cbk1994 01-11-2011 06:18 PM

It needs to be clientside. You should also not mix old GScript with new GScript.

PHP Code:

//#CLIENTSIDE
function onPlayerTouchsMe(){
  
setcoloreffect(0,0,1,0.4);
  
sleep(1);
  
setcoloreffect(1,1,1,1);


Keep in mind that this will only work online.

Twilikari 01-11-2011 08:31 PM

Quote:

Originally Posted by Diablo1 (Post 1621953)
why is this not working?:cry:

function onPlayerTouchsMe(){
setcoloreffect 0,0,1,0.4;
sleep 1;
setcoloreffect 1,1,1,1;
}

If you want it to work offline. use GS1 though:
PHP Code:

//#CLIENTSIDE
if (playertouchsme) {
  
setcoloreffect 0,0,1,0.4;
  
sleep 1;
  
setcoloreffect 1,1,1,1;



fowlplay4 01-11-2011 09:35 PM

Quote:

Originally Posted by Twilikari (Post 1621969)
If you want it to work offline. use GS1 though.

Judging by his post title he already had it working offline/GS1.

Diablo1 01-11-2011 11:41 PM

well thx and its she* no he :3 but thx lol


All times are GMT +2. The time now is 06:35 AM.

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