Costume Converter: Difference between revisions
From VanRO Ragnarok Online
(Created page with "== Costume Master Script == === NPC Information === **NPC Name:** Costume Master **Location:** prt_in, coordinates (95, 66) **Sprite:** `4_4job_leticia` This NPC provides a service to convert equipped top headgear into costume items or revert costume items back to their original form. The process involves specific requirements and conditions. --- ### Features 1. **Convert to Costume:** - Converts equipped top headgear into a costume item. - Requires **100...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File:Costume converter2.png|thumb|589x589px]] | |||
== | == Costume Master == | ||
'''Location:''' prt_in, coordinates (95, 66) | |||
'''NPC Sprite:''' 4_4job_leticia | |||
The Costume Master NPC allows players to: | |||
1. Convert equipped top headgear into a costume. | |||
2. Revert costume items back to their original headgear. | |||
--- | --- | ||
=== Features === | |||
* '''Convert to Costume:''' | |||
- Converts equipped top headgear into a costume. | |||
- Requires **100 TCG Cards** (`Item ID: 7227`). | |||
- Removes all stats and refinements. | |||
- Does not work on items with cards. | |||
* '''Convert Back to Headgear:''' | |||
- Reverts costume items to their original form. | |||
- Deletes the costume and provides the original headgear. | |||
* '''Cancel:''' | |||
- Exits the dialogue without making any changes. | |||
--- | --- | ||
=== Dialogue Options === | |||
1. Convert to Costume | |||
2. Convert Back to Headgear | |||
3. Cancel | |||
--- | --- | ||
=== Conversion Process === | |||
==== 1. Convert to Costume ==== | |||
* Requirements: | |||
- Top headgear must be equipped. | |||
- The headgear must have no cards or refinements. | |||
- Player must have at least **100 TCG Cards**. | |||
* NPC Process: | |||
1. | 1. Checks if the player meets all requirements. | ||
2. Deducts 100 TCG Cards from the player's inventory. | |||
3. Converts the equipped headgear into a costume. | |||
4. Displays a success or failure message. | |||
3. | |||
* Error Messages: | |||
- "You don't have enough TCG Cards." | |||
- "Your headgear contains cards. I cannot convert an item with cards." | |||
- "Your headgear is refined. I cannot convert a refined item." | |||
- "You do not have a top headgear equipped." | |||
---- | |||
==== 2. Convert Back to Headgear ==== | |||
* Requirements: | |||
- Player must have costume items in their inventory. | |||
- Player must have | |||
* NPC Process: | |||
1. Checks the player’s inventory for costume items. | |||
2. If valid items are found, a menu is displayed for the player to select the item to revert. | |||
3. Deletes the costume item. | |||
4. Adds the original headgear to the player’s inventory. | |||
5. Displays a success message. | |||
-- | * Error Messages: | ||
- "No valid costume items were found in your inventory." | |||
- "An error occurred while selecting the item. Please try again." | |||
---- | |||
- | |||
- | |||
=== Example NPC Messages === | |||
- " | * '''Success Messages:''' | ||
- "Your top headgear has been successfully converted into a costume!" | |||
- "The costume item has been successfully reverted back into a regular headgear!" | |||
- " | * '''Failure Messages:''' | ||
- "Failed to convert your top headgear. Returning it to your inventory..." | |||
- "You don't have enough TCG Cards." | |||
--- | --- | ||
=== Developer Notes === | |||
- `mes` | * Uses the following key script functions: | ||
- `mes`, `select`, `countitem`, `getitem`, `delitem`, `costume()` | |||
* Key Conditions Checked: | |||
- Equipped item is a top headgear. | |||
- No cards or refinements on the item. | |||
- Player has sufficient TCG Cards. | |||
- Equipped item is a top headgear. | |||
- No cards or refinements on the item. | |||
- |
Latest revision as of 15:10, 21 November 2024
Costume Master
Location: prt_in, coordinates (95, 66) NPC Sprite: 4_4job_leticia
The Costume Master NPC allows players to: 1. Convert equipped top headgear into a costume. 2. Revert costume items back to their original headgear.
---
Features
- Convert to Costume:
- Converts equipped top headgear into a costume. - Requires **100 TCG Cards** (`Item ID: 7227`). - Removes all stats and refinements. - Does not work on items with cards.
- Convert Back to Headgear:
- Reverts costume items to their original form. - Deletes the costume and provides the original headgear.
- Cancel:
- Exits the dialogue without making any changes.
---
Dialogue Options
1. Convert to Costume 2. Convert Back to Headgear 3. Cancel
---
Conversion Process
1. Convert to Costume
- Requirements:
- Top headgear must be equipped. - The headgear must have no cards or refinements. - Player must have at least **100 TCG Cards**.
- NPC Process:
1. Checks if the player meets all requirements. 2. Deducts 100 TCG Cards from the player's inventory. 3. Converts the equipped headgear into a costume. 4. Displays a success or failure message.
- Error Messages:
- "You don't have enough TCG Cards." - "Your headgear contains cards. I cannot convert an item with cards." - "Your headgear is refined. I cannot convert a refined item." - "You do not have a top headgear equipped."
2. Convert Back to Headgear
- Requirements:
- Player must have costume items in their inventory.
- NPC Process:
1. Checks the player’s inventory for costume items. 2. If valid items are found, a menu is displayed for the player to select the item to revert. 3. Deletes the costume item. 4. Adds the original headgear to the player’s inventory. 5. Displays a success message.
- Error Messages:
- "No valid costume items were found in your inventory." - "An error occurred while selecting the item. Please try again."
Example NPC Messages
- Success Messages:
- "Your top headgear has been successfully converted into a costume!" - "The costume item has been successfully reverted back into a regular headgear!"
- Failure Messages:
- "Failed to convert your top headgear. Returning it to your inventory..." - "You don't have enough TCG Cards."
---
Developer Notes
- Uses the following key script functions:
- `mes`, `select`, `countitem`, `getitem`, `delitem`, `costume()`
- Key Conditions Checked:
- Equipped item is a top headgear. - No cards or refinements on the item. - Player has sufficient TCG Cards.