View Single Post
  #2  
Old 12-06-2004, 04:48 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by prozac424242
Let's say you want to have noplayerkilling on your whole overworld map,
or you have a radio npc that plays user selected midi when the radio is on
but the game theme midi when the radio is off depending on what level you are in..

Or any kind of npc that you want to have in nearly every level of your server.

Instead of copy and pasting the npc a hundred times, how about a small, simple application:

-Put the text of the npc you want to add into a file

-Put the .nw files into the folder that the text of the npc is in

-assign a destination folder

program: read the .nw file
for each .nw file : read .nw file
append the .txt file to .nw file
save .nw file with the npc text together, in destination folder

Should not be too hard to program into a small standalone app ...and would save a bunch of time!
just add a script in a dbnpc or system weapon npc such as if your pw OW levels start with argos_
PHP Code:
//#CLIENTSIDE
if(startswith(argos_,#L)) noplayerkilling; 
__________________

Reply With Quote