Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Hello everyone!

In this post, I’m excited to share a straightforward guide on how to implement permanent skills in your game environment. By following these steps, you can customize skills to last indefinitely for your players.

Required Files for Modification

To set up a permanent skill, you will need to adjust the following files:

  1. skill_proto (SQL)
  2. skilldesc.txt (client/locale)
  3. skilltable.txt (client/locale)
  4. uitooltip.py (client/root)

Modifying skill_proto

You will start by selecting the VNUM of the skill you want to modify. Make the following adjustments in the specified columns:

  • szDurationPoly: Change from 30+50*k to 9999999
  • szCooldownPoly: Change from 30+50*k to 0
  • setFlag: Update from SELFONLY to SELFONLY,TOGGLE

Example:

Example Skill Proto Modification

Updating skilldesc.txt

In the skilldesc.txt file, it’s essential to add "TOGGLE" after "STANDING_SKILL."

Don’t forget to include the vertical bar (|) to ensure proper format.

Example:

Example Skill Description Update

Editing skilltable.txt

In this file, repeat the modifications applied in the skill_proto:

  • Change 30+50*k to 9999999
  • Change 30+50*k to 0
  • Update SELFONLY to SELFONLY,TOGGLE

Example:

Example Skill Table Update

Modifying uitooltip.py

Open uitooltip.py and look for the following code:

 
if duration > 0:
    self.AppendTextLine(localeInfo.TOOLTIP_SKILL_DURATION % (duration), color)
    

Replace it with:

 
if duration == 9999999:
    self.AppendTextLine("Duration: Permanent")
elif duration > 0 and duration < 999999:
    self.AppendTextLine(localeInfo.TOOLTIP_SKILL_DURATION % (duration), color)
    

This change ensures that the tooltip reflects the skill's permanent status in the interface.

Final Thoughts

Feel free to share any enhancements or corrections to this guide. Your feedback helps create a better experience for the community!

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...