Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-04-2006, 08:19 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
RC: Built-In Search Function

It would be extremely beneficial if RC contained a search function that would cycle through all files and return all files that contain the data you wish to search for.

This would aid you in finding problems across the server in which you can't trace them back to the source of the problem, and thus, you're forced to manually cycle through tons of NPCs before you find your culprit and are able to fix the problem.

It would be less of a hassle and a lot less time consuming, and can also end up with less problems arising if a corrupt staff member implements a script on the server that would cause harm to the players attributes, because then you could quickly search for any files that contain script that would do those things to the players and then you could remove it before any massive damage is caused.
Reply With Quote
  #2  
Old 12-04-2006, 08:31 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
/find *usestars*

or

/find *usestar

or

/find usestar*
__________________
Reply With Quote
  #3  
Old 12-04-2006, 08:43 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Gerami View Post
/find *usestars*

or

/find *usestar

or

/find usestar*



No, that only looks for files.

I'm talking about looking for content within files :/
Reply With Quote
  #4  
Old 12-04-2006, 08:50 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
I've suggested this before
Reply With Quote
  #5  
Old 12-04-2006, 09:04 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Gambet View Post
No, that only looks for files.

I'm talking about looking for content within files :/
Huh? You mean like words in .txt documents and so on?
__________________
Reply With Quote
  #6  
Old 12-04-2006, 09:05 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Gerami View Post
Huh? You mean like words in .txt documents and so on?

Content inside files would have to be words x-x
Reply With Quote
  #7  
Old 12-04-2006, 09:07 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Or being able to search for a phrase in a script without opening some text editor
Reply With Quote
  #8  
Old 12-04-2006, 09:22 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Gambet View Post
Content inside files would have to be words x-x
it could be leet megahertz you never know :{
__________________
Reply With Quote
  #9  
Old 12-04-2006, 09:34 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
When I suggested something similar to Stefan he was all look I can do that easily and entered a bunch of arcane commands in some sort of arcane console of doom and
Reply With Quote
  #10  
Old 12-04-2006, 09:49 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Yeah, I have a script to do this on Zodiac.
Reply With Quote
  #11  
Old 12-04-2006, 09:55 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Yen View Post
Yeah, I have a script to do this on Zodiac.
Eagerly awaiting link.
Reply With Quote
  #12  
Old 12-04-2006, 10:43 PM
Chris Chris is offline
:pluffy:
Chris's Avatar
Join Date: Jan 2005
Location: im n ur comp, takn up pixelz
Posts: 1,867
Chris is on a distinguished road
Quote:
Originally Posted by Loriel View Post
When I suggested something similar to Stefan he was all look I can do that easily and entered a bunch of arcane commands in some sort of arcane console of doom and
Yea he used that on Era not that long ago.
__________________
Reply With Quote
  #13  
Old 12-04-2006, 11:25 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Something like this would work. You'd just need to change the folder/strings.

PHP Code:
function onCreated() {
  
this.searchlist.loadfolder("weapons/*.txt",0);
  
this.searchid 0;
  
this.searchstrings = {"serverwarp","rupees","AddItem"};
  
scheduleevent(.25,"SearchFiles",NULL,NULL);
}

function 
onSearchFiles() {
  if ((
this.searchid*50) >= this.searchlist.size()) {
    echo(
"Search completed.");
    return;
  }
  for (
temp.this.searchid*50temp.< (this.searchid+1)*50temp.s++) {
    
temp.line.loadstring("weapons/" this.searchlist[temp.s]);
    for (
temp.nthis.searchstrings) {
      if (
temp.line.pos(temp.n) >= 0) {
        echo(
"Found" SPC temp.n SPC "in file" SPC this.searchlist[temp.s]);
      }
    }
  }
  
this.searchid++;
  
scheduleevent(.25,"SearchFiles",NULL,NULL);

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 09:44 AM.


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