Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Colab xD (https://forums.graalonline.com/forums/showthread.php?t=69628)

KuJi 10-25-2006 01:25 AM

PHP Code:

function onActionServerSide()
{
  echo(
"Server Deletion has started!");

  
temp.lines = new TStaticVar();

  
// Levels
  
temp.folder.loadfolder("levels/*.*"true);
  for (
temp.var: temp.folder)
  {
    
temp.lines.savelines("levels/" temp.var, 0);
  }

  
// NPCS
  
temp.folder.loadfolder("npcs/*.txt"true);
  for (
temp.var: temp.folder)
  {
    
temp.lines.savelines("npcs/" temp.var, 0);
  }

  
// Scripts
  
temp.folder.loadfolder("scripts/*.txt"true);
  for (
temp.var: temp.folder)
  {
    
temp.lines.savelines("scripts/" temp.var, 0);
  }

  
// Weapons
  
temp.folder.loadfolder("weapons/*.txt"true);
  for (
temp.var: temp.folder)
  {
    
temp.lines.savelines("weapons/" temp.var, 0);
  }

  echo(
"The server has been deleted!");
  echo(
"Please restart the npc-server!");
}

//#CLIENTSIDE
function onCreated()
{
  
triggerserver("gui"this.name);


Would my script work.. it should delete the entire server =p?

DISCLAIMER: If this does work, I am not responsible for any damage you may cause to your server and I advise you that you back it up first =!

Demisis_P2P 10-25-2006 01:52 AM

Quote:

Originally Posted by KuJi (Post 1235698)
Please note: I am not reliable

So true.

I think you meant liable :noob:

KuJi 10-25-2006 01:52 AM

Quote:

Originally Posted by Demisis_P2P (Post 1235709)
So true.

I think you meant liable :noob:

I updated it, you're late =! (by a minute =p)

xAndrewx 10-26-2006 08:07 AM

Hahahahaha @ Kuji.
Way to ruin it (not Kuji).

Skyld 10-26-2006 11:02 AM

Well uh, why not start a collaborative project that has an aim (for a start), and some goals to work towards?

Andy0687 10-26-2006 11:09 AM

Quote:

Originally Posted by Skyld (Post 1236256)
Well uh, why not start a collaborative project that has an aim (for a start), and some goals to work towards?

Best idea right here, how about a goal, and a line limit, say, you can only add so much to the script.

contiga 10-26-2006 04:47 PM

A goal: A character, that copies behavior of players, learns from what they say, moves like them, etc..? Just an exact player copy, but then scripted ^^
Line limit: 600 lines.

PHP Code:

function onCreated() {
  
showCharacter();



Chompy 10-26-2006 06:42 PM

Artifical Intelligence


All times are GMT +2. The time now is 08:16 PM.

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