Owellow

Member
Hey guys, how would I go about making items like Pickaxes, Sewing Kits, Pens, etc. have infinite charges?

Would it be possible to make a Runebook have infinite charges aka not require recalls just always be full?

Thanks in advance for your response.
 
an idea i use for runebooks is to set it so the button that normally uses charges does recall instead
( i also set recall to not require any skill or mana so it works for me )

anyway in runebook.cs

Code:
[CommandProperty(AccessLevel.GameMaster)]
        public int CurCharges
        {
            get
            {
                return this.m_CurCharges;
            }
            set
            {
                this.m_CurCharges = value;
            }
        }

before this.m_CurCharges = value;
add if( value != m_MaxCharges) { value = MaxCharges; }

that will set it so charges are always maxed
 
You could do this dynamically too, have a MaxCharges value of -1 to represent that the item should not consume charges, then check if MaxCharges is greater than or equal to zero before consuming or deleting the item when used.
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 155 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 106 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 78 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 75 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 25 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 21 Online
    • 30 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 20 Online
    • 32 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 18 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 18 Online
    • 34 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back