Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   A few new features.... (https://forums.graalonline.com/forums/showthread.php?t=46863)

KainDaMan 08-07-2003 07:11 AM

A few new features....
 
Here is a list of features I would like to see Incorperated into the scripting system.

~~commands~~
NPC Code:

redownload file; /* this would make good for if there is an update for say a gani or an image and you don't want to flood the player's webgifs folder with the same crap, just edited. I know I have made mistakes with things and wanted to replace them, but at the same time didn't want to go into my levels directory and remove the files in question then re-start graal, not to mention the fact most newbies wouldn't know where to start x.x */



~~strings/variables~~
NPC Code:

imgscount
imgs[index].x
imgs[index].y
imgs[index].vis
#f2(index) // for images from showimg/showpoly/showani/showtext



Just a few that came to mind...
---Kain

voicedcow6666 08-07-2003 07:18 AM

Re: A few new features....
 
NPC Code:

redownload file



All they have to do is close graal and restart and whenever they come back it'll automatically redownload.

Python523 08-07-2003 10:58 AM

imgscount wouldn't work, since you can have an index of 20, 500, and 600, there is no order you have to go in, so the indexes for them wouldnt work in a for loop

faenix 08-07-2003 03:27 PM

i can just imagine a hacker signing on and forcing everybody in the server to redownload pics1.png 5 million times and crash their computer

KainDaMan 08-07-2003 05:31 PM

't would be impossible for a hacker to do so because you can't just magically put an npc somewhere x.x
Not to mention that redownload file would most likely have to be serverside seeing as how the server is what handles download distribution...

I also just remembered somthing else I would like added...
It would be nice to be able to specify a folder for savelog2 's...

[edit]
It would also be nice if the "style" button in the graal level editor were incorperated into the NC. I have having to open the level editor every time I want to format my scripts....
[/edit]

Tseng 08-07-2003 07:36 PM

Quote:

Originally posted by KainDaMan
I also just remembered somthing else I would like added...
It would be nice to be able to specify a folder for savelog2 's...

Why?

Quote:

[edit]
It would also be nice if the "style" button in the graal level editor were incorperated into the NC. I have having to open the level editor every time I want to format my scripts....
[/edit]
Or, you could just format it as you go, and not rely on the level editor to do such basic work for you.

KainDaMan 08-18-2003 04:41 PM

but formatting as you go is tedious and time consuming :\

and choosing folders for savelog2 would be nice for things like bugreports that you would want in a different folder or certain things for GPs that you don't want added to the logs folder not to mention things you would want in your personal staff folder...

SaijinGohan 08-18-2003 05:28 PM

The style thing I think is just pure laziness. But a folder for savelog2 would be nice.. like an extra in the command to specify which folder or when left blank it goes to the default.

TribulationStaff 08-18-2003 06:44 PM

Quote:

't would be impossible for a hacker to do so because you can't just magically put an npc somewhere x.x
It is very possible. I still remember the days of gnpc.

SaijinGohan 08-18-2003 07:56 PM

Everything is always possible. Hard as it may be, it is possible.

marcoR 08-18-2003 07:56 PM

it would be really hard ot do that... not the getting the NPC... but using a command like that with the npc abilities you have...

adam 08-18-2003 08:53 PM

Quote:

Originally posted by Python523
imgscount wouldn't work, since you can have an index of 20, 500, and 600, there is no order you have to go in, so the indexes for them wouldnt work in a for loop
Could make it an array? ... nah too much work.

draygin 08-19-2003 12:47 AM

Quote:

Originally posted by KainDaMan
choosing folders for savelog2 would be nice for things like bugreports that you would want in a different folder or certain things for GPs that you don't want added to the logs folder not to mention things you would want in your personal staff folder...
That's really a waste of time with the new -rw feature. If there is something in the logs you dont want them to see example a level you didnt want some one to see you would make it -rw levels/levelname.nw then they couldnt see that level. It works the same for images and txt's etc..

KainDaMan 08-21-2003 03:25 AM

Though I didn't know of that feature, you still don't seem to know what exactly I'm talking about =/
I'm saying like with copylevel you can specify an output folder
That would be good for savelog2 as well....
example
NPC Code:

if (actionserverside) {
tokenize #p(0);
if (strequals(#t(0),jail)) {
savelog2 gplogs/jail-log_#t(1).txt,~Jailed by #a for #t(2) seconds;
} else if (strequals(#t(0),unjail)) {
savelog2 gplogs/jail-log_#t(1).txt,~Unjailed by #a;
}
}



see what I mean now?

draygin 08-21-2003 08:29 PM

Yes, I understand and it is really a waste of time when if there is an item you dont want a specific person you can just block them from having access to it. So it doesnt matter if they all save to the log folder.

Goboom 08-24-2003 12:14 AM

Quote:

Originally posted by draygin
Yes, I understand and it is really a waste of time when if there is an item you dont want a specific person you can just block them from having access to it. So it doesnt matter if they all save to the log folder.
I think he is aiming to organize it a bit better, rather than hide it.

Admins 09-13-2003 08:15 PM

Images are automatically downloaded and redownloaded when it has been changed. The only thing that is annoying about it is that players need to restart their Graal client if you upload a new image, could add something to let clients check again if they are up-to-date.

-Ramirez- 09-13-2003 08:37 PM

Quote:

Originally posted by Stefan
Images are automatically downloaded and redownloaded when it has been changed. The only thing that is annoying about it is that players need to restart their Graal client if you upload a new image, could add something to let clients check again if they are up-to-date.
Please do, Stefan! :)

Btw, I've always had to delete the images from levels\webgifs\ and restart Graal for it to redownload. Simply restarting Graal never worked for me.


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

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