Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GS1-be gone? (https://forums.graalonline.com/forums/showthread.php?t=75262)

theHAWKER 07-12-2007 07:42 AM

GS1-be gone?
 
a weak back i noticed that a bunch of invisable blocks just started re-apering x.x

i think it has something to do with gs1... or graal 5
heres the script that wont work anymore

note: this worked for over a year!

PHP Code:

if (created){
setshape 1,3232;
}
//#CLIENTSIDE
if (playerenters) {
  
setcoloreffect 1,1,1,0.01;



xXziroXx 07-12-2007 08:01 AM

... you're not setting the image anywhere in the script.


PHP Code:

if (created){
setimg block.png;
setshape 1,3232;
}
//#CLIENTSIDE
if (playerenters) {
  
setcoloreffect 1,1,1,0.01;



theHAWKER 07-12-2007 08:04 PM

Quote:

Originally Posted by xXziroXx (Post 1328494)
... you're not setting the image anywhere in the script.


PHP Code:

if (created){
setimg block.png;
setshape 1,3232;
}
//#CLIENTSIDE
if (playerenters) {
  
setcoloreffect 1,1,1,0.01;



yeah, but the thing is, it worked before, and it worked for a long time!

Twinny 07-12-2007 08:15 PM

Quote:

Originally Posted by theHAWKER (Post 1328591)
yeah, but the thing is, it worked before, and it worked for a long time!

You or somebody else must have removed that line at some point. It will always be invisible unless you set its image (assuming that this is a class btw).

theHAWKER 07-12-2007 09:27 PM

no one could have removed a line in all the npc's there are tones of invisable blocks in levels!

Darlene159 07-12-2007 09:38 PM

Quote:

Originally Posted by theHAWKER (Post 1328653)
no one could have removed a line in all the npc's there are tones of invisable blocks in levels!

That's why Twinny said "assuming it is in a class"

xXziroXx 07-12-2007 09:43 PM

Quote:

Originally Posted by Darlene159 (Post 1328656)
That's why Twinny said "assuming it is in a class"

That's really the only likely scenario.. I mean.. It's IMPOSSIBLE for a whole lot of "invisible blocks" to just appear in a level. Someone must have used a block spawner of some sort, and spammed the levels with invisible blocks (probably since they forgott to set the image in the script).

theHAWKER 07-12-2007 10:16 PM

:O, u guys aren't getting to mean of this thread! is that scripts are just malfunctioning randomly!

Twinny 07-12-2007 10:20 PM

Quote:

Originally Posted by theHAWKER (Post 1328683)
:O, u guys aren't getting to mean of this thread! is that scripts are just malfunctioning randomly!

I think I get the gist of what you said...

do a /clearnpcs levelnamehere in each affected level (/clearnpcs blah.gmap works). Then go through and make sure all your classes have an image set (if they are blocks).

If this doesn't solve your problem, someone may have created alot of invisible blocks directly into a level. Punt that staff member off a cliff then remove them manually :D

Scripts don't 'randomly malfunction' : a scripter edited them.

theHAWKER 07-12-2007 10:39 PM

Quote:

Originally Posted by Twinny (Post 1328687)
I think I get the gist of what you said...

do a /clearnpcs levelnamehere in each affected level (/clearnpcs blah.gmap works). Then go through and make sure all your classes have an image set (if they are blocks).

If this doesn't solve your problem, someone may have created alot of invisible blocks directly into a level. Punt that staff member off a cliff then remove them manually :D

Scripts don't 'randomly malfunction' : a scripter edited them.

the blocks aren't in a class, it happend with barrels, trees and other stuff.
for example in a tree effect:
PHP Code:

// NPC made by theHAWKER
//#CLIENTSIDE
if (created) {
  
setcoloreffect 0.5,1,0.5,0.30;
  
drawaslight;
dontblock;
drawoverplayer;
x-=.5;


it just shows the tree, but this npc was working for at least a year...

Twinny 07-12-2007 10:41 PM

Quote:

Originally Posted by theHAWKER (Post 1328693)
the blocks aren't in a class, it happend with barrels, trees and other stuff.
for example in a tree effect:
PHP Code:

// NPC made by theHAWKER
//#CLIENTSIDE
if (created) {
  
setcoloreffect 0.5,1,0.5,0.30;
  
drawaslight;
dontblock;
drawoverplayer;
x-=.5;


it just shows the tree, but this npc was working for at least a year...

That also has a lack of setimg. Go through and add setimg to all these npcs and they might just start working. Also, are the images still in the server?

theHAWKER 07-12-2007 10:47 PM

Quote:

Originally Posted by Twinny (Post 1328694)
That also has a lack of setimg. Go through and add setimg to all these npcs and they might just start working. Also, are the images still in the server?

yeah they are using default images like treetop and block.png

but the set img part isn't helping :(

zokemon 07-13-2007 06:08 AM

I think theHAWKER has failed to mention what type of NPCs these are. I have a feeling he is talking about level npcs for some reason. Is this true?

theHAWKER 07-13-2007 06:49 AM

Quote:

Originally Posted by zokemon (Post 1328877)
I think theHAWKER has failed to mention what type of NPCs these are. I have a feeling he is talking about level npcs for some reason. Is this true?

oh sry, yeah if it matters the npc's are in levels lol

zokemon 07-13-2007 09:02 AM

Quote:

Originally Posted by theHAWKER (Post 1328891)
oh sry, yeah if it matters the npc's are in levels lol

It does! I have no idea why this would happen. Does anyone else see this error too? I would help you fix it but my VIP is dead and gone.

Angel_Light 07-13-2007 09:36 AM

is this just on a GMAP?

theHAWKER 07-14-2007 02:46 AM

there are some on the gmap and others in normal levels x.x


All times are GMT +2. The time now is 08:18 AM.

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