public class 0403_Marriage_Related extends Object
=================================== |0403.- Marriage-related commands.| ===================================
| 构造器和说明 |
|---|
0403_Marriage_Related() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
adopt()
adopt("<parent_name>","<baby_name>");
adopt(<parent_id>,<baby_id>);
This function will send the client adoption request to the specified baby
character.
|
void |
divorce()
divorce({<char_id>})
This function will "un-marry" the invoking character from whoever they were
married to.
|
void |
marriage()
marriage("<spouse name>");
This function will marry two characters, the invoking character and the one
referred to by name given, together, setting them up as each other's marriage
partner.
|
void |
wedding()
wedding;
This command will call up wedding effects - the music and confetti - centered on
the invoking character.
|
marriage("<spouse name>");
This function will marry two characters, the invoking character and the one
referred to by name given, together, setting them up as each other's marriage
partner. No second function call has to be issued (in current SVN at least) to
make sure the marriage works both ways. The function returns 1 upon success, or
0 if the marriage could not be completed, either because the other character
wasn't found or because one of the two characters is already married.
This will do nothing else for the marriage except setting up the spouse ID for
both of these characters. No rings will be given and no effects will be shown.
wedding;
This command will call up wedding effects - the music and confetti - centered on
the invoking character. Example can be found in the wedding script.
divorce({<char_id>})
This function will "un-marry" the invoking character from whoever they were
married to. Both will no longer be each other's marriage partner, (at least in
current SVN, which prevents the cases of multi-spouse problems). It will return
1 upon success or 0 if the character was not married at all.
This function will also destroy both wedding rings and send a message to both
players, telling them they are now divorced.
adopt("<parent_name>","<baby_name>");
adopt(<parent_id>,<baby_id>);
This function will send the client adoption request to the specified baby
character. The parent value can be either parent. Both parents and the baby
need to be online in order for adoption to work.
Return values:
ADOPT_ALLOWED - Sent message to Baby to accept or deny.
ADOPT_ALREADY_ADOPTED - Character is already adopted.
ADOPT_MARRIED_AND_PARTY - Parents need to be married and in a party with the baby.
ADOPT_EQUIP_RINGS - Parents need wedding rings equipped.
ADOPT_NOT_NOVICE - Baby is not a Novice.
ADOPT_CHARACTER_NOT_FOUND - A parent or Baby was not found.
ADOPT_MORE_CHILDREN - You cannot adopt more than 1 child. (client message)
ADOPT_LEVEL_70 - Parents need to be at least level 70 in order to adopt someone. (client message)
ADOPT_MARRIED - You cannot adopt a married person. (client message)
Copyright © 工程的初始时间(可选)–2019. All rights reserved.