![]() |
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! |
Quote:
PHP Code:
|
Quote:
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. |
Quote:
|
Wouldn't it be better in a item everyplayer has like the gui or system?
|
Quote:
|
| All times are GMT +2. The time now is 11:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.