Bonaccorso

Member
Is it possible to create a mobile's cs file where it's equipped not with just some, say, longsword or plate chest, but by magical armor or weapon? I tried to find examples of code but I didn't yet.
 
Sure. Just pick the item you want them to be equipped with and put it into the script. For example, instead of adding a simple sword to a mobile:

Code:
AddItem(new Katana());

you replace it with the name of the sword you want them to have.

Code:
AddItem(new BladeOfInsanity());

If you want magical items with varying strengths, script one with ranges for each property you want to be different and call that in the script instead.

Code:
AddItem(new NewNiftyWeaponHere());
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 135 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 88 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 81 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 80 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 28 Online
    • 85 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 22 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 22 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 19 Online
    • 34 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 18 Online
    • 30 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 17 Online
    • 32 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back