Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 10-25-2006, 01:25 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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 =!

Last edited by KuJi; 10-25-2006 at 01:51 AM..
Reply With Quote
  #17  
Old 10-25-2006, 01:52 AM
Demisis_P2P Demisis_P2P is offline
Kanto League Champion
Demisis_P2P's Avatar
Join Date: Jan 2005
Posts: 2,357
Demisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud of
Quote:
Originally Posted by KuJi View Post
Please note: I am not reliable
So true.

I think you meant liable
Reply With Quote
  #18  
Old 10-25-2006, 01:52 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Demisis_P2P View Post
So true.

I think you meant liable
I updated it, you're late =! (by a minute =p)
Reply With Quote
  #19  
Old 10-26-2006, 08:07 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Hahahahaha @ Kuji.
Way to ruin it (not Kuji).
__________________
Reply With Quote
  #20  
Old 10-26-2006, 11:02 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Well uh, why not start a collaborative project that has an aim (for a start), and some goals to work towards?
Reply With Quote
  #21  
Old 10-26-2006, 11:09 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by Skyld View Post
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.
Reply With Quote
  #22  
Old 10-26-2006, 04:47 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
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();

__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #23  
Old 10-26-2006, 06:42 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Artifical Intelligence
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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