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-06-2004, 04:36 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Time saving on adding npcs

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!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #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
  #3  
Old 12-07-2004, 12:04 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by ZeroTrack
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; 
I doubt it would work with a DB NPC, but I have never tried.

For a radio, have a string that stores whether the radio is on or off.
Then, in a system npc or something, make a script (kind of like Sern's script) that checks the level names and plays a midi if the radio is off. You could do something like levels that start with house_ play house.mid or dungeon_ play dungeon.mid or something along those lines.

Last edited by Slash-P2P; 12-07-2004 at 03:23 AM..
Reply With Quote
  #4  
Old 12-07-2004, 01:00 AM
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 Slash-P2P
I doubt it would work with a DB NPC, but I have never tried.
i have it in the control npc =p
__________________

Reply With Quote
  #5  
Old 12-26-2004, 08:59 PM
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
Wouldn't it be better in a item everyplayer has like the gui or system?
__________________
Reply With Quote
  #6  
Old 12-27-2004, 05:12 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by xAndrewx
Wouldn't it be better in a item everyplayer has like the gui or system?
Thats what I do.
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 08:17 PM.


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