Overview
PostItem lets players attach an item from their inventory to a chat line. Everyone who receives the line sees the item name in color, and hovering over the name shows the item's full tooltip (including the Harmony line). Clicking the selling line opens a whisper box addressed to the seller.
There are 6 channels:
| Channel | Who receives it | Zen charged |
|---|---|---|
| SELL | All players on the current GameServer (sub) | Yes (SellZen) |
| SELL ALL | Every GameServer (via ServerLink); SellAllEnable must be enabled |
Yes (SellAllZen) |
| Whisper | The target player (same sub or another sub); if they are not online, the sender gets the same notice as a normal whisper | No |
| Party | Party members | No |
| Guild | Guild members, on every GameServer | No |
| Gens | Players of the same Gens faction on the current GameServer | No |
Requirements
- The plugin must be purchased and
[Plugin] PostItem = 1set inData\Plugin\Plugin.ini(see the page Plugin.ini and how to enable plugins). If it is not purchased or set to 0, players use Ctrl + left click with the game's original behavior; if a request is still sent to the server, they receive the message "Selling chat is disabled". - The client needs the new
Main.dlland the newChat.ozgchat interface (folderData\Interface\GFx). - The character must have unlocked the security code (the security code entry window). Otherwise, the server opens the code entry window and shows "You are not authorized for this action.".
How players use it
- Open the inventory and, while not holding an item, hold Ctrl and left-click the item. The item is not picked up but is inserted into the chat box.
- The channel is chosen as follows:
- Ctrl + left click: SELL (the whole sub).
- Ctrl + Shift + left click: SELL ALL (all subs).
- If the chat box is on the whisper channel (with a target name), party, guild or Gens, the line is sent to that channel instead of SELL.
- Type any extra advertising text (for example the price) after the item name, then press Enter.
What the server checks
In order; if any condition fails, the line is not sent (in some cases a red notice is shown):
- The plugin is enabled (otherwise: the message "Selling chat is disabled").
- For SELL ALL:
SellAllEnable = 1. - The security code has been unlocked.
- Server-wide chat is not disabled, the player is not muted, and is allowed to chat (POST action).
- For SELL / SELL ALL: total level (
GetTotalLevel) >=MinLevel. - The whisper channel needs a target name different from your own; the party channel requires being in a party; guild requires a guild; Gens requires belonging to a Gens faction.
- Enough time has passed between two posts on the same channel (
SellDelay,SellAllDelay,ChannelDelay; counted per character and per channel). - Enough zen (
SellZen/SellAllZen); zen is deducted when the line is sent successfully. - The item is in the correct inventory slot and has no expiration time.
- The advertising text length (counted in UTF-8 characters) does not exceed
MaxMessageLength(0 = unlimited). The text is filtered for banned words like normal chat.
Recipients who have blocked the seller (Block) will not see the line. Every successful post is written to the server's chat log.
Configuration
File Data\Plugin\Plugin.ini, section [PostItem]. The default value in the "Default" column is the value the server uses when the key is missing from the file; the value in the shipped file is listed next to it.
| Key | Value | Default (code / shipped file) | Meaning |
|---|---|---|---|
MinLevel |
integer | 0 / 50 | Minimum total level to use SELL and SELL ALL (other channels do not check). |
MaxMessageLength |
number of characters | 60 / 60 | Maximum advertising text length. 0 = unlimited. |
SellZen |
amount of zen | 0 / 100000 | Zen fee per post on the SELL channel. |
SellDelay |
seconds | 0 / 10 | Wait time between two posts on the SELL channel. |
SellFormat |
string | [$name] / [$name] |
Line prefix of the SELL channel. |
SellColor |
hex color code RRGGBB | FFD200 / FFD200 |
Color of the SELL line. |
SellAllEnable |
0 / 1 | 0 / 1 | 1 = allow SELL ALL (all subs). 0 = block it and show "Selling to all servers is disabled". |
SellAllZen |
amount of zen | 0 / 1000000 | Zen fee per SELL ALL post. |
SellAllDelay |
seconds | 0 / 60 | Wait time between two SELL ALL posts. |
SellAllFormat |
string | [Sub-$server] [$name] / same as default |
Line prefix of SELL ALL. |
SellAllColor |
hex RRGGBB | FF9600 / FF9600 |
Color of the SELL ALL line. |
ChannelDelay |
seconds | 1 / 1 | Wait time between two posts on the whisper, party, guild and Gens channels (these channels do not charge zen). |
WhisperFormat |
string | [$name > $target] / same as default |
Line prefix of the whisper channel. |
WhisperColor |
hex | FFB7DB / FFB7DB |
Color of the whisper line. |
PartyFormat |
string | [Party] [$name] / same as default |
Line prefix of the party channel. |
PartyColor |
hex | 66CCFF / 66CCFF |
Color of the party line. |
GuildFormat |
string | [Guild] [$name] / same as default |
Line prefix of the guild channel. |
GuildColor |
hex | 64FF64 / 64FF64 |
Color of the guild line. |
GensFormat |
string | [Gens] [$name] / same as default |
Line prefix of the Gens channel. |
GensColor |
hex | FAC832 / FAC832 |
Color of the Gens line. |
ClientLog |
0 / 1 | 0 / 0 | For diagnostics only: writes a [ SELL CLIENT ] line to the server log if the client sends diagnostic logs. The client build delivered to customers does not send this log, so this key has no practical effect; leave it at 0. |
Variables used in *Format
| Variable | Replaced with |
|---|---|
$name |
Name of the character posting |
$server |
GameServer number of the poster (server code + 1) |
$target |
Name of the recipient (only meaningful on the whisper channel) |
The line prefix is at most 79 bytes. Colors are written as 6 hex digits RRGGBB (without #).
Example
[PostItem]
MinLevel=50
MaxMessageLength=60
SellZen=100000
SellDelay=10
SellFormat=[$name]
SellColor=FFD200
SellAllEnable=1
SellAllZen=1000000
SellAllDelay=60
SellAllFormat=[Sub-$server] [$name]
SellAllColor=FF9600
ChannelDelay=1
WhisperFormat=[$name > $target]
PartyFormat=[Party] [$name]
GuildFormat=[Guild] [$name]
GensFormat=[Gens] [$name]
Messages (Lang)
Group Type="43" (Chat Sell) in the Data\Lang\*.xml files:
| ID | Content (English.xml) | When |
|---|---|---|
| 1 | [SELL] Selling chat is disabled. | The plugin is off or the server has all chat turned off |
| 2 | [SELL] Required level to use: %d. | MinLevel not reached |
| 3 | [SELL] Required zen to use: %u. | Not enough zen |
| 4 | [SELL] Need to wait %s. | Wait time has not elapsed |
| 5 | [SELL] The item has moved, select it again (Ctrl + Left click). | The item was moved / no longer exists |
| 6 | [SELL ALL] Selling to all servers is disabled. | SellAllEnable = 0 |
| 7 | [SELL] Message is too long (max %d characters). | Exceeds MaxMessageLength |
| 8 | [SELL] This item is not suitable for selling (it has an expiration time). | Item has an expiration time |
The message "You are not authorized for this action." comes from group 10, ID 3.
Reloading the configuration
Edit Plugin.ini, then click the Reload plugin button on the GameServer control panel. The [PostItem] configuration is reloaded immediately, with no need to log in again. Colors and formats apply to lines sent afterwards.