Dezzie

Member
I hope this is the right forum for this question. I have imbuing for jewelry on my shard, and right now a person can add the same skill 5 times to a piece of jewelry with a max each time of 15. ie: Animal Taming 15, Animal Taming 15, Animal Taming 15, Animal Taming 15, Animal Taming 15. It shows five lines for the item. I want them to only be able to add each skill ONLY one time? I have attached the three files I found and I'm afraid this is way above my scripting capability. Can anyone help with this?
 

Attachments

  • Imbuing.cs
    60.9 KB · Views: 9
  • ImbuingB.cs
    43.7 KB · Views: 6
  • ImbuingC.cs
    259.6 KB · Views: 6
In ImbuingC, around line 1340, you might want to do a check to see if the skills already on the item match the one they are trying to get. The method exists to do that. Cast the item to a BaseJewel, and then call SkillBonuses.GetSkill(i) in a for loop where i is between 1 and 5, and compare the result to the skillname they are trying to imbue. If you want to let them waste their resources you can do the check later around like 1928 instead.
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 133 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 89 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 85 Online
    • 105 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 81 Online
    • 190 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 34 Online
    • 85 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 22 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 21 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 20 Online
    • 34 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 17 Online
    • 32 Peak
  • Heritage
    New Legacy
    • Players
    • 13 Online
    • 41 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back