[Sale] Megaphone ( Comp_Megaphone )
| ID 23340 |
|
|||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Buy Price: zeny | Sell Price: 0 zeny | Weight: 1 | Slots: Not specified | ||||||||||||||||||||||||||||||||||||||||
| Type: Usable item. | Sub Type: Not specified | Gender: Both | Locations: Not specified | |||||||||||||||||||||||||||||||||||||||||
| Attack: Not specified | Magic Attack: Not specified | Range: Not specified | Defense: Not specified | |||||||||||||||||||||||||||||||||||||||||
| Weapon Level: Not specified | Armor Level: Not specified | Min. Equip Level: Not specified | Max. Equip Level: Not specified | |||||||||||||||||||||||||||||||||||||||||
| Refineable: Not specified | Gradable: Not specified | Element: Neutral | Classes: Not specified | |||||||||||||||||||||||||||||||||||||||||
|
Intransferível. Weight: 0 Account Bound. All Not specified
Flags
Stacking
Not specified
Usage
Trade
Delay
Not specified
input .@megaphone$; announce strcharinfo(0) + ": " + .@megaphone$,bc_all,0xFF0000; Script References
input
Command
input
Signature:
Description:
invoking character, to allow entering of a number or a string. This has many
uses, one example would be a guessing game, also making use of the 'rand'
function:
If you give the input command a string variable to put the input in, it will
allow the player to enter text. Otherwise, only numbers will be allowed.
Normally you may not input a negative number with this command.
This is done to prevent exploits in badly written scripts, which would
let people, for example, put negative amounts of Zeny into a bank script and
receive free Zeny as a result.
Since trunk r12192 the command has two optional arguments and a return value.
The default value of 'min' and 'max' can be set with 'input_min_value' and
'input_max_valuemax', -1 if lower than 'min' and 0 otherwise.
For string inputs it returns 1 if the string was longer than 'max', -1 is
shorter than 'min' and 0 otherwise.
Example:
announce
Command
announce
Signature:
Description:
This command will broadcast a message to all or most players, similar to
@kami/@kamib GM commands.
The region the broadcast is heard in (target), source of the broadcast
and the color the message will come up as is determined by the flags.
The flag values are coded as constants in '' to make them easier to use.
Target flags:
- bc_all: Broadcast message is sent server-wide (default).
- bc_map: Message is sent to everyone in the same map as the source of the broadcast (see below).
- bc_area: Message is sent to players in the vicinity of the source.
- bc_self: Message is sent only to current player , if the source flag is bc_pc it also can
You cannot use more than one target flag.
Source flags:
- bc_pc: Broadcast source is the attached player or the character id if itWoE Information' that can be disabled client-side.
Due to the way client handles broadcasts, it is impossible to set both bc_blue and bc_woe.
The optional parameters allow usage of broadcasts in custom colors, font-weights, sizes etc.
If any of the optional parameters is used, special flag is ignored.
Optional parameters may not work well (or at all) depending on a game client used.
The color parameter is a single number which can be in hexadecimal notation.
For example:
Will display a global announce in green. The color format is in RGB (0xRRGGBB).
In official scripts only two font-weights (types) are used:
- normal (FW_NORMAL = 400, default),
- bold (FW_BOLD = 700).
Default font size is 12.
Using this for private messages to players is probably not that good an idea,
but it can be used instead in NPCs to "preview" an announce.
Example:
strcharinfo
Command
strcharinfo
Signature:
Description:
This function will return either the name, party name or guild name for the
invoking character. Whatever it returns is determined by type.
0 - Character's name.
1 - The name of the party they're in if any.
2 - The name of the guild they're in if any.
3 - The name of the map the character is in.
If a character is not a member of any party or guild, an empty string will be
returned when requesting that information.
Not specified Script ReferencesNo documented script references were detected. Not specified Script ReferencesNo documented script references were detected. Not specified Not specified Not specified Not specified Not specified Not specified Not specified Not specified |
||||||||||||||||||||||||||||||||||||||||||||