
09-10-2002, 07:25 AM
|
Registered User
|
Join Date: Oct 2001
Posts: 605
|
|
Attention personalhouse owners and architects!
Attached is a default NPC, the Dynamic Statue, for you to put in your graal\levels\npcs directory.
If you intend to include a likeness of any renter within your house, or of yourself, please drag one of these in instead of scripting a likeness of said person.
When the person with whom it is associated enters the room, it updates itself to conform to their current appearance, and can survive level updates et cetera as it stores its data serverside. It will not induce latency as there are no timeouts and whatnot invloved, everything is done rather swiftly when a player enters the level.
The variables are this:
Housenumber is the number of your house. For instance, the number of the house with the level personalhouse5.nw is 5.
Keynumber is the number of the key of the person whose appearance you wish the Dynamic Statue to take.
Shownick must be either 0 or 1. It determines whether the statue displays the person's name below it.
Showalignment, a binary flag variable set in the same way as shownick, determines if the nick is colored to reflect the player's alignment points. Showalignment does nothing if shownick is not enabled.
Animation determines the gani used by the Dynamic Statue. Do NOT include the racial prefix or the underscore. The correct format is:
idle
NOT
human_idle or bomy_idle
This can be any gani, but if the person mimicked morphs between human and bomy regularly you will want it to be a gani that exists for both races, such as idle, sit, swim, or dead.
The string declaration for this.housecontrol may be used by the staff for specialized applications in the future, however, any alterations such that change the value of the string to anything other than House System will completely inhibit the functioning of the script.
You can add other code to the NPC if, for example, you want to put it on a half coordinate or whatnot.
Enjoy, and please reply with any comments and/or suggestions that you may have.
--Jeff (Developer) |
__________________
Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.
-Kaimetsu
|
|
|
|