Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Windows Servers

Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-12-2004, 02:10 PM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default Perl Script to pull out Command.cpp

Don't suppose anyone has the time to write a small Perl script that would look in command.cpp and pull out every avaliable command from there, then export the list to addon.ini using the default values specified (in command.cpp)?

I notice addon.ini hasn't been updated for a while, yet a few new commands have been added.

Hmmm, don't think this is the right forum (not sure where really) but shucks it can be moved

Monrezz
__________________

kRPG Profile
Reply With Quote
  #2  
Old 02-12-2004, 02:55 PM
smogo
Discordant
 
Join Date: Jan 2004
Location: 47
Posts: 339
Default

Code:
 perl  -e 'while(<>){m/command_add\("(\w+)",.*,(\d+),.*$/ && print "!$1=$2\n"} ' command.cpp
should do it for most, while it does not handle #defines or variables, and some multi-line decls.

for the last command.cpp, got :
Quote:
!sendop=200
!setstat=200
!help=0
!version=0
!eitem=200
!setfaction=170
!serversidename=0
!testspawn=200
!testspawnkill=200
!wc=200
!numauths=200
!setanim=200
...
!ban=150
!oocmute=200
!revoke=200
!checklos=10
!los=0
186 lines
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 -4. The time now is 09:33 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3