From 22ffccfec41064efa2b7758f1a5de1390c6a56ce Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Sun, 1 Nov 2026 12:52:57 -0500 Subject: [PATCH] #W# Added: OzThoth Static Gump. --- .../CategoryGumpBase.cs | 87 +++++ .../Gumps/Oz'Thoth's Static Gump/README.md | 49 +++ .../Side Gumps/Commands/AddAnimations.cs | 45 +++ .../Side Gumps/Commands/AddCustomStatics.cs | 40 +++ .../Side Gumps/Commands/AddFloor.cs | 49 +++ .../Side Gumps/Commands/AddFurniture.cs | 44 +++ .../Side Gumps/Commands/AddGearStaticPt.cs | 45 +++ .../Side Gumps/Commands/AddGroundSt.cs | 45 +++ .../Side Gumps/Commands/AddMisc1.cs | 60 ++++ .../Side Gumps/Commands/AddMisc2.cs | 60 ++++ .../Side Gumps/Commands/AddPlant.cs | 44 +++ .../Side Gumps/Commands/AddRoof.cs | 44 +++ .../Side Gumps/Commands/AddWall.cs | 46 +++ .../Side Gumps/Non Tiled/AddArch.cs | 63 ++++ .../Side Gumps/Non Tiled/AddFood.cs | 76 ++++ .../Side Gumps/Non Tiled/AddLight.cs | 55 +++ .../Side Gumps/Non Tiled/AddRock.cs | 53 +++ .../Side Gumps/Non Tiled/AddStair.cs | 83 +++++ .../Non Tiled/Animations/Animation 1.cs | 60 ++++ .../Non Tiled/Animations/Animation 2.cs | 60 ++++ .../Non Tiled/Animations/Animation 3.cs | 60 ++++ .../Non Tiled/Animations/Animation 4.cs | 60 ++++ .../Non Tiled/Animations/Animation 5.cs | 46 +++ .../Animations/Customs/Animation 6.cs | 47 +++ .../Non Tiled/Customs/CustomsPt1.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt10.cs | 66 ++++ .../Non Tiled/Customs/CustomsPt11.cs | 70 ++++ .../Non Tiled/Customs/CustomsPt12.cs | 65 ++++ .../Non Tiled/Customs/CustomsPt13.cs | 65 ++++ .../Non Tiled/Customs/CustomsPt14.cs | 65 ++++ .../Non Tiled/Customs/CustomsPt15.cs | 65 ++++ .../Non Tiled/Customs/CustomsPt16.cs | 65 ++++ .../Non Tiled/Customs/CustomsPt17.cs | 65 ++++ .../Non Tiled/Customs/CustomsPt18.cs | 65 ++++ .../Non Tiled/Customs/CustomsPt19.cs | 63 ++++ .../Non Tiled/Customs/CustomsPt2.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt20.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt3.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt4.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt5.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt6.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt7.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt8.cs | 60 ++++ .../Non Tiled/Customs/CustomsPt9.cs | 60 ++++ .../Furniture/Custom/Furniture Pt5.cs | 151 ++++++++ .../Furniture/Custom/Furniture Pt6.cs | 158 +++++++++ .../Non Tiled/Furniture/Furniture Pt1.cs | 151 ++++++++ .../Non Tiled/Furniture/Furniture Pt2.cs | 152 ++++++++ .../Non Tiled/Furniture/Furniture Pt3.cs | 153 ++++++++ .../Non Tiled/Furniture/Furniture Pt4.cs | 151 ++++++++ .../Side Gumps/Non Tiled/Gear/GearPt1.cs | 154 ++++++++ .../Side Gumps/Non Tiled/Gear/GearPt2.cs | 154 ++++++++ .../Side Gumps/Non Tiled/Gear/GearPt3.cs | 154 ++++++++ .../Side Gumps/Non Tiled/Gear/GearPt4.cs | 154 ++++++++ .../Side Gumps/Non Tiled/Gear/GearPt5.cs | 162 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 1.cs | 65 ++++ .../Side Gumps/Non Tiled/Misc/Misc 10.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 11.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 12.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 13.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 14.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 15.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 16.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 17.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 18.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 19.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 2.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 20.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 3.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 4.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 5.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 6.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 7.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 8.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc/Misc 9.cs | 158 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 1.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 10.cs | 172 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 11.cs | 172 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 12.cs | 172 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 13.cs | 173 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 14.cs | 172 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 15.cs | 172 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 16.cs | 173 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 17.cs | 172 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 18.cs | 173 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 19.cs | 172 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 2.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 20.cs | 171 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 3.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 4.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 5.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 6.cs | 157 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 7.cs | 162 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 8.cs | 167 +++++++++ .../Side Gumps/Non Tiled/Misc2/Misc2 9.cs | 172 +++++++++ .../Non Tiled/Plants/Custom/PlantPt5.cs | 154 ++++++++ .../Non Tiled/Plants/Custom/PlantPt6.cs | 154 ++++++++ .../Non Tiled/Plants/Custom/PlantPt7.cs | 145 ++++++++ .../Side Gumps/Non Tiled/Plants/PlantPt1.cs | 154 ++++++++ .../Side Gumps/Non Tiled/Plants/PlantPt3.cs | 155 ++++++++ .../Side Gumps/Non Tiled/Plants/PlantPt4.cs | 157 +++++++++ .../Side Gumps/Tiled/AddFence.cs | 58 +++ .../Side Gumps/Tiled/AddSign.cs | 52 +++ .../Side Gumps/Tiled/AddSignPost.cs | 42 +++ .../Tiled/Floors/Custom/FloorPt10.cs | 62 ++++ .../Tiled/Floors/Custom/FloorPt11.cs | 62 ++++ .../Tiled/Floors/Custom/FloorPt12.cs | 62 ++++ .../Tiled/Floors/Custom/FloorPt13.cs | 57 +++ .../Tiled/Floors/Custom/FloorPt9.cs | 155 ++++++++ .../Side Gumps/Tiled/Floors/FloorPt1.cs | 61 ++++ .../Side Gumps/Tiled/Floors/FloorPt2.cs | 156 ++++++++ .../Side Gumps/Tiled/Floors/FloorPt3.cs | 155 ++++++++ .../Side Gumps/Tiled/Floors/FloorPt4.cs | 154 ++++++++ .../Side Gumps/Tiled/Floors/FloorPt5.cs | 154 ++++++++ .../Side Gumps/Tiled/Floors/FloorPt6.cs | 153 ++++++++ .../Side Gumps/Tiled/Floors/FloorPt7.cs | 154 ++++++++ .../Side Gumps/Tiled/Floors/FloorPt8.cs | 157 +++++++++ .../Side Gumps/Tiled/Ground/GroundPt1.cs | 154 ++++++++ .../Side Gumps/Tiled/Ground/GroundPt2.cs | 154 ++++++++ .../Side Gumps/Tiled/Ground/GroundPt3.cs | 154 ++++++++ .../Side Gumps/Tiled/Ground/GroundPt4.cs | 155 ++++++++ .../Side Gumps/Tiled/Ground/GroundPt5.cs | 157 +++++++++ .../Tiled/Roofs/Customs/RoofsPt5.cs | 142 ++++++++ .../Side Gumps/Tiled/Roofs/RoofsPt1.cs | 154 ++++++++ .../Side Gumps/Tiled/Roofs/RoofsPt2.cs | 154 ++++++++ .../Side Gumps/Tiled/Roofs/RoofsPt3.cs | 157 +++++++++ .../Side Gumps/Tiled/Roofs/RoofsPt4.cs | 176 +++++++++ .../Side Gumps/Tiled/Walls/Custom/WallPt7.cs | 177 ++++++++++ .../Side Gumps/Tiled/Walls/Custom/WallPt8.cs | 174 +++++++++ .../Side Gumps/Tiled/Walls/WallPt1.cs | 84 +++++ .../Side Gumps/Tiled/Walls/WallPt2.cs | 67 ++++ .../Side Gumps/Tiled/Walls/WallPt3.cs | 183 ++++++++++ .../Side Gumps/Tiled/Walls/WallPt4.cs | 188 ++++++++++ .../Side Gumps/Tiled/Walls/WallPt5.cs | 165 +++++++++ .../Side Gumps/Tiled/Walls/WallPt6.cs | 165 +++++++++ .../Oz'Thoth's Static Gump/StaticGump.cs | 333 ++++++++++++++++++ .../StaticItemGumpBase.cs | 121 +++++++ 137 files changed, 16482 insertions(+) create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/CategoryGumpBase.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/README.md create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddAnimations.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddCustomStatics.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFloor.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFurniture.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGearStaticPt.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGroundSt.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddPlant.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddRoof.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddWall.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddArch.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddFood.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddLight.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddRock.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddStair.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Customs/Animation 6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt10.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt11.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt12.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt13.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt14.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt15.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt16.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt17.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt18.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt19.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt20.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt7.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt8.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt9.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 10.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 11.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 12.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 13.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 14.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 15.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 16.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 17.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 18.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 19.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 20.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 7.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 8.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 9.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 10.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 11.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 12.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 13.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 14.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 15.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 16.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 17.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 18.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 19.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 20.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 7.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 8.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 9.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt7.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddFence.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSign.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSignPost.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt10.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt11.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt12.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt13.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt9.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt7.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt8.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/Customs/RoofsPt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt7.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt8.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt1.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt2.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt3.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt4.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt5.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt6.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticGump.cs create mode 100644 Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticItemGumpBase.cs diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/CategoryGumpBase.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/CategoryGumpBase.cs new file mode 100644 index 000000000..097183ecb --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/CategoryGumpBase.cs @@ -0,0 +1,87 @@ +/* + * Base class for Oz'Thoth's Static Tool category menu gumps. + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; +using Server.Network; + +namespace Server.Gumps.OzThoth; + +/// +/// Represents a category button entry with display name and command. +/// +/// The display name shown on the button. +/// The command to execute (without prefix). +public readonly record struct CategoryEntry(string Name, string Command); + +/// +/// Base class for category menu gumps that display buttons to open sub-gumps. +/// +public abstract class CategoryGumpBase : Gump +{ + /// + /// Gets the title displayed at the top of the gump. + /// + protected abstract string Title { get; } + + /// + /// Gets the category entries to display. + /// + protected abstract ReadOnlySpan Categories { get; } + + /// + /// Creates a new instance of this gump type. + /// + protected abstract CategoryGumpBase CreateInstance(); + + protected CategoryGumpBase() : base(0, 0) + { + Draggable = true; + Closable = true; + Resizable = false; + Disposable = false; + + var categories = Categories; + + AddPage(0); + AddBackground(268, 135, 345, 479, 3500); + AddHtml(330, 160, 211, 31, $"
{Title}", false, false); + + int leftX = 290; + int rightX = 450; + int startY = 200; + int rowHeight = 40; + + for (int i = 0; i < categories.Length; i++) + { + int x = i % 2 == 0 ? leftX : rightX; + int y = startY + (i / 2 * rowHeight); + int buttonId = i + 1; + + AddButton(x, y, 1154, 1155, buttonId, GumpButtonType.Reply, 0); + AddHtml(x + 30, y, 113, 25, $"
{categories[i].Name}", false, false); + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + var from = sender.Mobile; + int buttonId = info.ButtonID; + + if (buttonId <= 0) + { + return; + } + + var categories = Categories; + int index = buttonId - 1; + + if (index >= 0 && index < categories.Length) + { + CommandSystem.Handle(from, $"{CommandSystem.Prefix}{categories[index].Command}"); + from.SendGump(CreateInstance()); + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/README.md b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/README.md new file mode 100644 index 000000000..1da192ba0 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/README.md @@ -0,0 +1,49 @@ +# Oz'Thoth's Static Gump + +Staff tool for placing static decoration. ~135 `[Add*` commands open +category gumps; each gump shows a paginated grid of static tile thumbnails; +clicking one drops that static at the caller. Used by GMs to dress towns, +dungeons, custom regions, and event scenes without leaving the client. + +Heavy file count — this is the menu/page surface, not new gameplay logic. + +## Command families (all GameMaster) + +The commands are partitioned into category pages so each gump fits a +practical number of entries. + +| Family | Examples | +|---|---| +| Walls / Roofs / Floors | `[AddWallPt*`, `[AddRoofPt*`, `[AddFloorPt1`..`[AddFloorPt12` | +| Stairs / Fences / Arches / Signposts | `[AddStair`, `[AddFence*`, `[AddArch*`, `[AddSignpost*` | +| Lights / Plants / Food | `[AddLight*`, `[AddPlant*`, `[AddFood*` | +| Furniture / Gear / Misc | `[AddFurnPt1`..`[AddFurnPt6`, `[AddGearPt1`..`[AddGearPt5`, `[AddMiscPt1`..`[AddMiscPt12+` | +| Animation statics | `[AddAnimStPt1`..`[AddAnimStPt6` | +| Custom packs | `[AddCustomPt1`..`[AddCustomPt20` | + +For the authoritative list, run `[help Add` in-game or grep the folder for +`CommandSystem.Register`. + +## Usage + +1. Run the category command, e.g. `[AddWallPt1`. +2. Pick a tile from the paginated gump. +3. The static drops at your feet (or last targeted tile, depending on the + page's mode). +4. Use the regular `[Move` / `[Remove` commands to fine-tune placement. + +## Production notes + +- Static placement is permanent across world saves (standard `Static` + items). Use the standard admin tools (`[Remove`, `[Delete`) to undo. +- For bulk world dressing, prefer the [MapEditor](../../MapEditor/README.md) + system — it writes to the `.mul` files directly and is the correct path + for production map changes. +- This UI is best for *event setup*, *one-off decoration*, and *custom + region polish*, not for canonical map edits. + +## Credits + +Original "Static Gump" UI by Oz'Thoth (RunUO era); ported and extended for +EvoRealm. Adds the per-category `Pt*` pages so the menu doesn't outgrow a +single gump page. diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddAnimations.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddAnimations.cs new file mode 100644 index 000000000..3f36e1cea --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddAnimations.cs @@ -0,0 +1,45 @@ +/* + * Oz'Thoth's Static Tool - Animations Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting animation sub-gumps. +/// +public sealed class AddAnimationStaticGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] AnimationCategories = + [ + new("Part 1", "AddAnimStPt1"), + new("Part 2", "AddAnimStPt2"), + new("Part 3", "AddAnimStPt3"), + new("Part 4", "AddAnimStPt4"), + new("Part 5", "AddAnimStPt5") + ]; + + protected override string Title => "Animations"; + protected override ReadOnlySpan Categories => AnimationCategories; + protected override CategoryGumpBase CreateInstance() => new AddAnimationStaticGump(); + + public static void Initialize() + { + CommandSystem.Register("AddAnimationStatic", AccessLevel.GameMaster, AddAnimationStatic_OnCommand); + } + + [Usage("AddAnimationStatic")] + [Description("Displays a menu from which you can interactively add animated statics.")] + private static void AddAnimationStatic_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddAnimationStaticGump()); + } + + public AddAnimationStaticGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddCustomStatics.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddCustomStatics.cs new file mode 100644 index 000000000..9635f0d43 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddCustomStatics.cs @@ -0,0 +1,40 @@ +/* + * Oz'Thoth's Static Tool - Customs Category Gump + * Modernized for .NET 10 / ModernUO + * Note: This gump is a placeholder for custom static entries to be added. + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting custom static sub-gumps. +/// +public sealed class AddCustomGump : CategoryGumpBase +{ + // No categories defined by default - add custom entries as needed + private static readonly CategoryEntry[] CustomCategories = []; + + protected override string Title => "Customs"; + protected override ReadOnlySpan Categories => CustomCategories; + protected override CategoryGumpBase CreateInstance() => new AddCustomGump(); + + public static void Initialize() + { + CommandSystem.Register("AddCustomsStatic", AccessLevel.GameMaster, AddCustomsStatic_OnCommand); + } + + [Usage("AddCustomsStatic")] + [Description("Displays a menu from which you can interactively add custom statics.")] + private static void AddCustomsStatic_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomGump()); + } + + public AddCustomGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFloor.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFloor.cs new file mode 100644 index 000000000..392d9c9eb --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFloor.cs @@ -0,0 +1,49 @@ +/* + * Oz'Thoth's Static Tool - Floor Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// + +/// Category menu for selecting floor sub-gumps. +/// +public sealed class AddFloorGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] FloorCategories = + [ + new("Part 1", "AddFloorPt1"), + new("Part 2", "AddFloorPt2"), + new("Part 3", "AddFloorPt3"), + new("Part 4", "AddFloorPt4"), + new("Part 5", "AddFloorPt5"), + new("Part 6", "AddFloorPt6"), + new("Part 7", "AddFloorPt7"), + new("Part 8", "AddFloorPt8") + ]; + + protected override string Title => "Floor"; + protected override ReadOnlySpan Categories => FloorCategories; + protected override CategoryGumpBase CreateInstance() => new AddFloorGump(); + + public static void Initialize() + { + CommandSystem.Register("AddFloor", AccessLevel.GameMaster, AddFloor_OnCommand); + } + + [Usage("AddFloor")] + [Description("Displays a menu from which you can interactively add floors.")] + private static void AddFloor_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorGump()); + } + + public AddFloorGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFurniture.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFurniture.cs new file mode 100644 index 000000000..2c2f0c5ab --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddFurniture.cs @@ -0,0 +1,44 @@ +/* + * Oz'Thoth's Static Tool - Furniture Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting furniture sub-gumps. +/// +public sealed class AddFurnitureGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] FurnitureCategories = + [ + new("Part 1", "AddFurnPt1"), + new("Part 2", "AddFurnPt2"), + new("Part 3", "AddFurnPt3"), + new("Part 4", "AddFurnPt4") + ]; + + protected override string Title => "Furniture"; + protected override ReadOnlySpan Categories => FurnitureCategories; + protected override CategoryGumpBase CreateInstance() => new AddFurnitureGump(); + + public static void Initialize() + { + CommandSystem.Register("AddFurniture", AccessLevel.GameMaster, AddFurniture_OnCommand); + } + + [Usage("AddFurniture")] + [Description("Displays a menu from which you can interactively add furniture.")] + private static void AddFurniture_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFurnitureGump()); + } + + public AddFurnitureGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGearStaticPt.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGearStaticPt.cs new file mode 100644 index 000000000..a974c4dd2 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGearStaticPt.cs @@ -0,0 +1,45 @@ +/* + * Oz'Thoth's Static Tool - Gear Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting gear sub-gumps. +/// +public sealed class AddGearGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] GearCategories = + [ + new("Part 1", "AddGearPt1"), + new("Part 2", "AddGearPt2"), + new("Part 3", "AddGearPt3"), + new("Part 4", "AddGearPt4"), + new("Part 5", "AddGearPt5") + ]; + + protected override string Title => "Gear"; + protected override ReadOnlySpan Categories => GearCategories; + protected override CategoryGumpBase CreateInstance() => new AddGearGump(); + + public static void Initialize() + { + CommandSystem.Register("AddGearStatic", AccessLevel.GameMaster, AddGearStatic_OnCommand); + } + + [Usage("AddGearStatic")] + [Description("Displays a menu from which you can interactively add gear.")] + private static void AddGearStatic_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGearGump()); + } + + public AddGearGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGroundSt.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGroundSt.cs new file mode 100644 index 000000000..094ffdb63 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddGroundSt.cs @@ -0,0 +1,45 @@ +/* + * Oz'Thoth's Static Tool - Ground Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting ground sub-gumps. +/// +public sealed class AddGroundStGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] GroundCategories = + [ + new("Part 1", "AddGroundStPt1"), + new("Part 2", "AddGroundStPt2"), + new("Part 3", "AddGroundStPt3"), + new("Part 4", "AddGroundStPt4"), + new("Part 5", "AddGroundStPt5") + ]; + + protected override string Title => "Ground"; + protected override ReadOnlySpan Categories => GroundCategories; + protected override CategoryGumpBase CreateInstance() => new AddGroundStGump(); + + public static void Initialize() + { + CommandSystem.Register("AddGroundSt", AccessLevel.GameMaster, AddGroundSt_OnCommand); + } + + [Usage("AddGroundSt")] + [Description("Displays a menu from which you can interactively add ground statics.")] + private static void AddGroundSt_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGroundStGump()); + } + + public AddGroundStGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc1.cs new file mode 100644 index 000000000..0fa225176 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc1.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Misc 1 Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting miscellaneous sub-gumps (Part 1). +/// +public sealed class AddMiscStatic1Gump : CategoryGumpBase +{ + private static readonly CategoryEntry[] MiscCategories = + [ + new("Part 1", "AddMiscPt1"), + new("Part 2", "AddMiscPt2"), + new("Part 3", "AddMiscPt3"), + new("Part 4", "AddMiscPt4"), + new("Part 5", "AddMiscPt5"), + new("Part 6", "AddMiscPt6"), + new("Part 7", "AddMiscPt7"), + new("Part 8", "AddMiscPt8"), + new("Part 9", "AddMiscPt9"), + new("Part 10", "AddMiscPt10"), + new("Part 11", "AddMiscPt11"), + new("Part 12", "AddMiscPt12"), + new("Part 13", "AddMiscPt13"), + new("Part 14", "AddMiscPt14"), + new("Part 15", "AddMiscPt15"), + new("Part 16", "AddMiscPt16"), + new("Part 17", "AddMiscPt17"), + new("Part 18", "AddMiscPt18"), + new("Part 19", "AddMiscPt19"), + new("Part 20", "AddMiscPt20") + ]; + + protected override string Title => "Misc. 1"; + protected override ReadOnlySpan Categories => MiscCategories; + protected override CategoryGumpBase CreateInstance() => new AddMiscStatic1Gump(); + + public static void Initialize() + { + CommandSystem.Register("AddMiscStatic1", AccessLevel.GameMaster, AddMiscStatic1_OnCommand); + } + + [Usage("AddMiscStatic1")] + [Description("Displays a menu from which you can interactively add miscellaneous statics.")] + private static void AddMiscStatic1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscStatic1Gump()); + } + + public AddMiscStatic1Gump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc2.cs new file mode 100644 index 000000000..5fb01f635 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddMisc2.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Misc 2 Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting miscellaneous sub-gumps (Part 2). +/// +public sealed class AddMiscStatic2Gump : CategoryGumpBase +{ + private static readonly CategoryEntry[] MiscCategories = + [ + new("Part 1", "AddMisc2Pt1"), + new("Part 2", "AddMisc2Pt2"), + new("Part 3", "AddMisc2Pt3"), + new("Part 4", "AddMisc2Pt4"), + new("Part 5", "AddMisc2Pt5"), + new("Part 6", "AddMisc2Pt6"), + new("Part 7", "AddMisc2Pt7"), + new("Part 8", "AddMisc2Pt8"), + new("Part 9", "AddMisc2Pt9"), + new("Part 10", "AddMisc2Pt10"), + new("Part 11", "AddMisc2Pt11"), + new("Part 12", "AddMisc2Pt12"), + new("Part 13", "AddMisc2Pt13"), + new("Part 14", "AddMisc2Pt14"), + new("Part 15", "AddMisc2Pt15"), + new("Part 16", "AddMisc2Pt16"), + new("Part 17", "AddMisc2Pt17"), + new("Part 18", "AddMisc2Pt18"), + new("Part 19", "AddMisc2Pt19"), + new("Part 20", "AddMisc2Pt20") + ]; + + protected override string Title => "Misc. 2"; + protected override ReadOnlySpan Categories => MiscCategories; + protected override CategoryGumpBase CreateInstance() => new AddMiscStatic2Gump(); + + public static void Initialize() + { + CommandSystem.Register("AddMiscStatic2", AccessLevel.GameMaster, AddMiscStatic2_OnCommand); + } + + [Usage("AddMiscStatic2")] + [Description("Displays a menu from which you can interactively add miscellaneous statics (Part 2).")] + private static void AddMiscStatic2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscStatic2Gump()); + } + + public AddMiscStatic2Gump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddPlant.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddPlant.cs new file mode 100644 index 000000000..447dc6736 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddPlant.cs @@ -0,0 +1,44 @@ +/* + * Oz'Thoth's Static Tool - Plants Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting plant sub-gumps. +/// +public sealed class AddPlantGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] PlantCategories = + [ + new("Part 1", "AddPlantPt1"), + new("Part 2", "AddPlantPt2"), + new("Part 3", "AddPlantPt3"), + new("Part 4", "AddPlantPt4") + ]; + + protected override string Title => "Plants"; + protected override ReadOnlySpan Categories => PlantCategories; + protected override CategoryGumpBase CreateInstance() => new AddPlantGump(); + + public static void Initialize() + { + CommandSystem.Register("AddPlants", AccessLevel.GameMaster, AddPlants_OnCommand); + } + + [Usage("AddPlants")] + [Description("Displays a menu from which you can interactively add plants.")] + private static void AddPlants_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddPlantGump()); + } + + public AddPlantGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddRoof.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddRoof.cs new file mode 100644 index 000000000..4983e5b9d --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddRoof.cs @@ -0,0 +1,44 @@ +/* + * Oz'Thoth's Static Tool - Roof Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting roof sub-gumps. +/// +public sealed class AddRoofGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] RoofCategories = + [ + new("Part 1", "AddRoofPt1"), + new("Part 2", "AddRoofPt2"), + new("Part 3", "AddRoofPt3"), + new("Part 4", "AddRoofPt4") + ]; + + protected override string Title => "Roofs"; + protected override ReadOnlySpan Categories => RoofCategories; + protected override CategoryGumpBase CreateInstance() => new AddRoofGump(); + + public static void Initialize() + { + CommandSystem.Register("AddRoof", AccessLevel.GameMaster, AddRoof_OnCommand); + } + + [Usage("AddRoof")] + [Description("Displays a menu from which you can interactively add roofs.")] + private static void AddRoof_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddRoofGump()); + } + + public AddRoofGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddWall.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddWall.cs new file mode 100644 index 000000000..4ee8dd472 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Commands/AddWall.cs @@ -0,0 +1,46 @@ +/* + * Oz'Thoth's Static Tool - Wall Category Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Category menu for selecting wall sub-gumps. +/// +public sealed class AddWallGump : CategoryGumpBase +{ + private static readonly CategoryEntry[] WallCategories = + [ + new("Part 1", "AddWallPt1"), + new("Part 2", "AddWallPt2"), + new("Part 3", "AddWallPt3"), + new("Part 4", "AddWallPt4"), + new("Part 5", "AddWallPt5"), + new("Part 6", "AddWallPt6") + ]; + + protected override string Title => "Walls"; + protected override ReadOnlySpan Categories => WallCategories; + protected override CategoryGumpBase CreateInstance() => new AddWallGump(); + + public static void Initialize() + { + CommandSystem.Register("AddWall", AccessLevel.GameMaster, AddWall_OnCommand); + } + + [Usage("AddWall")] + [Description("Displays a menu from which you can interactively add walls.")] + private static void AddWall_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallGump()); + } + + public AddWallGump() : base() + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddArch.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddArch.cs new file mode 100644 index 000000000..cb7d3a46a --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddArch.cs @@ -0,0 +1,63 @@ +/* + * Oz'Thoth's Static Tool - Arch Item Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting arch static items. +/// +public sealed class AddArchGump : StaticItemGumpBase +{ + private static readonly int[] ArchItemIds = + [ + 40, 41, 42, 43, 44, + 69, 70, 71, 72, 73, 109, 110, 111, 112, 113, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, 125, 126, 127, 134, 135, 136, 137, 138, 139, + 198, 205, 206, 207, 208, 209, 210, 211, 212, 213, + 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, + 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, + 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, + 244, 245, 246, 247, 274, 275, 276, 277, 278, 279, + 280, 281, 282, 316, 317, 318, 319, 320, 321, 322, + 323, 324, 325, 326, 327, 328, 329, 330, 331, 364, + 365, 366, 367, 368, 469, 470, 471, 472, 473, 474, + 475, 476, 477, 478, 479, 549, 581, 582, 583, 584, 585, + 586, 688, 689, 690, 691, 692, 919, 920, 921, 922, + 923, 924, 925, 926, 927, 928, 1080, 1081, 1082, 1083, + 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, + 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, + 1104, 1105, 1106, 1107, 10716, 10717, 10718, 10719, 10720, 10721, + 10722, 10723, 10724, 10725, 11177, 11178, 11179, 11180, 11181, 11203, + 11204, 11205, 11206, 11711, 11712, 11713, 11714, 12059, 12060, 12061, + 12062, 13838, 13839, 13840, 13841, 13842, 16726, 16727, 16728, 16729, + 16740, 16741, 16748, 16749, 16750, 16751, 16752, 16753, 16754, 16755, + 16783, 16800, 16803, 16804, 30705, 30706, 30707, 30708, 30709 + ]; + + protected override ReadOnlySpan ItemIds => ArchItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddArchGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddArch", AccessLevel.GameMaster, AddArch_OnCommand); + } + + [Usage("AddArch")] + [Description("Displays a menu for adding arch statics.")] + private static void AddArch_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddArchGump()); + } + + public AddArchGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddFood.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddFood.cs new file mode 100644 index 000000000..631fba616 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddFood.cs @@ -0,0 +1,76 @@ +/* + * Oz'Thoth's Static Tool - Cooking/Food Item Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting cooking/food static items. +/// +public sealed class AddCookingStaticGump : StaticItemGumpBase +{ + private static readonly int[] CookingItemIds = + [ + 539, 2416, 2417, 2418, 2419, 2420, 2421, 2422, + 2423, 2424, 2425, 2426, 2427, 2428, 2429, 2430, + 2431, 2444, 2445, 2446, 2448, 2449, 2450, 2451, + 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, + 2460, 2461, 2462, 2463, 2464, 2465, 2466, 2467, + 2468, 2469, 2470, 2471, 2476, 2477, 2478, 2479, + 2480, 2481, 2482, 2483, 2484, 2485, 2486, 2487, + 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, + 2496, 2497, 2498, 2499, 2500, 2501, 2502, 2503, + 2504, 2505, 2506, 2507, 2508, 2509, 2510, 2511, + 2512, 2513, 2514, 2515, 2516, 2517, 2518, 2519, + 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, + 2528, 2529, 2530, 2531, 2532, 2533, 2534, 2535, + 2536, 2537, 2538, 2539, 2540, 2541, 2542, 2543, + 2544, 2545, 2546, 2547, 2548, 2549, 2550, 2551, + 2552, 2553, 2554, 3164, 3165, 3172, 3173, 3174, + 3175, 3178, 3179, 3180, 3181, 3182, 3184, 3185, + 3186, 3187, 3188, 3189, 3191, 3192, 3193, 3194, + 3195, 3196, 3199, 3200, 3201, 3202, 3354, 3542, + 3543, 3544, 3545, 4086, 4087, 4088, 4089, 4090, + 4091, 4092, 4093, 4094, 4095, 4096, 4097, 4098, + 4099, 4100, 4101, 4102, 4103, 4104, 4105, 4153, + 4154, 4155, 4156, 4157, 4158, 4159, 4160, 4161, + 4162, 4163, 4164, 4165, 4166, 4227, 5628, 5629, + 5630, 5631, 5632, 5633, 5634, 5635, 5636, 5637, + 5638, 5639, 5640, 5641, 5642, 5643, 5644, 5917, + 5918, 5919, 5920, 5921, 5922, 5923, 5924, 5925, + 5926, 5927, 5928, 5929, 5930, 5931, 5932, 5933, + 7701, 7702, 7703, 7704, 7705, 7706, 7707, 7708, + 7709, 7710, 7711, 7811, 7812, 7813, 7814, 7815, + 7816, 7817, 7818, 7819, 7820, 7821, 7822, 7823, + 7824, 7825, 7826, 7827, 7828, 7829, 7830, 7831, + 7832, 7833, 9448, 9449, 10302, 10303, 10304, 10305, + 10315, 10316, 10317, 10318, 10319, 10320, 12247, 12248, + 15641, 15642, 15643, 15644, 18060, 18061, 18062, 18063, + 18064, 18077, 18078, 18079, 18080, 18081 + ]; + + protected override ReadOnlySpan ItemIds => CookingItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCookingStaticGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCookingStatic", AccessLevel.GameMaster, AddCookingStatic_OnCommand); + } + + [Usage("AddCookingStatic")] + [Description("Displays a menu for adding cooking/food statics.")] + private static void AddCookingStatic_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCookingStaticGump()); + } + + public AddCookingStaticGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddLight.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddLight.cs new file mode 100644 index 000000000..96bc9003a --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddLight.cs @@ -0,0 +1,55 @@ +/* + * Oz'Thoth's Static Tool - Lights Item Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting light static items. +/// +public sealed class AddLightsStaticGump : StaticItemGumpBase +{ + private static readonly int[] LightItemIds = + [ + 2555, 2556, 2557, 2558, 2559, 2560, 2561, + 2562, 2563, 2564, 2565, 2566, 2567, 2568, + 2569, 2570, 2571, 2572, 2573, 2574, 2575, + 2576, 2577, 2578, 2579, 2580, 2581, 2582, + 2583, 2584, 2585, 2586, 2587, 2588, 2589, + 2594, 2595, 2596, 2597, 2598, 2599, 2600, + 2601, 2842, 2843, 2844, 2845, 2846, 2847, + 2848, 2849, 2850, 2851, 2852, 2853, 2854, + 2855, 2856, 3553, 3554, 3555, 3556, 3557, + 3558, 3559, 3560, 3561, 3562, 5164, 5165, + 5166, 5167, 5168, 5169, 5170, 5171, 5172, + 5173, 5174, 5175, 6227, 6228, 6229, 6230, + 6231, 6232, 6233, 6234, 6570, 6587, 7288, + 7289, 7290, 15764, 15765, 15766, 15767, 15768, + 15769, 15770, 15771 + ]; + + protected override ReadOnlySpan ItemIds => LightItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddLightsStaticGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddLightsStatic", AccessLevel.GameMaster, AddLightsStatic_OnCommand); + } + + [Usage("AddLightsStatic")] + [Description("Displays a menu for adding light statics.")] + private static void AddLightsStatic_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddLightsStaticGump()); + } + + public AddLightsStaticGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddRock.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddRock.cs new file mode 100644 index 000000000..cae83c69f --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddRock.cs @@ -0,0 +1,53 @@ +/* + * Oz'Thoth's Static Tool - Rock Item Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting rock static items. +/// +public sealed class AddRockGump : StaticItemGumpBase +{ + private static readonly int[] RockItemIds = + [ + 2272, 2273, 2274, 2275, 2276, 2277, 2278, 2279, 2280, + 2281, 2282, 4943, 4944, 4945, 4946, 4947, 4948, 4949, + 4950, 4951, 4952, 4953, 4954, 4955, 4956, 4957, 4958, + 4959, 4960, 4961, 4962, 4963, 4964, 4965, 4966, 4967, + 4968, 4969, 4970, 4971, 4972, 4973, 6001, 6002, 6003, + 6004, 6005, 6006, 6007, 6008, 6009, 6010, 6011, 6012, + 13345, 13346, 13347, 13348, 13350, 13351, 13352, 13353, + 13356, 13357, 13358, 13359, 13360, 13446, + 13447, 13448, 13449, 13450, 13451, 13452, 13453, 13454, 13455, + 13484, 13485, 13486, 13487, 13488, 13489, 13490, 13491, 13492, + 22024, 22025, 22026, 22027, 22028, 22029, 22030, 22031, 22032, + 22033, 22062, 22063, 22064, 22065, 22066, 22067, 22068, 22069, + 22070 + ]; + + protected override ReadOnlySpan ItemIds => RockItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddRockGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddRock", AccessLevel.GameMaster, AddRock_OnCommand); + } + + [Usage("AddRock")] + [Description("Displays a menu for adding rock statics.")] + private static void AddRock_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddRockGump()); + } + + public AddRockGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddStair.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddStair.cs new file mode 100644 index 000000000..c6f01c0bc --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/AddStair.cs @@ -0,0 +1,83 @@ +/* + * Oz'Thoth's Static Tool - Stair Item Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting stair static items. +/// +public sealed class AddStairGump : StaticItemGumpBase +{ + private static readonly int[] StairItemIds = + [ + 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, + 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, + 1022, 1023, 1024, 1025, 1026, 1801, 1802, 1803, + 1804, 1805, 1806, 1807, 1808, 1809, 1810, 1811, + 1812, 1813, 1814, 1815, 1816, 1817, 1818, 1819, + 1820, 1821, 1822, 1823, 1824, 1825, 1826, 1827, + 1828, 1829, 1830, 1831, 1832, 1833, 1834, 1835, + 1836, 1837, 1838, 1839, 1840, 1841, 1842, 1843, + 1844, 1845, 1846, 1847, 1848, 1849, 1850, 1851, + 1852, 1853, 1854, 1855, 1856, 1857, 1858, 1859, + 1860, 1861, 1862, 1863, 1864, 1865, 1866, 1867, + 1868, 1869, 1870, 1871, 1872, 1873, 1874, 1875, + 1876, 1877, 1878, 1879, 1880, 1881, 1882, 1883, + 1884, 1885, 1886, 1887, 1888, 1889, 1890, 1891, + 1892, 1893, 1894, 1895, 1896, 1897, 1898, 1899, + 1900, 1901, 1902, 1903, 1904, 1905, 1906, 1907, + 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1915, + 1916, 1917, 1918, 1919, 1920, 1921, 1922, 1923, + 1924, 1925, 1926, 1927, 1928, 1929, 1930, 1931, + 1932, 1933, 1934, 1935, 1936, 1937, 1938, 1939, + 1940, 1941, 1942, 1943, 1944, 1945, 1946, 1947, + 1948, 1949, 1950, 1951, 1952, 1953, 1954, 1955, + 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, + 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1975, + 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, + 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, + 1992, 2010, 2015, 2016, 2100, 2166, 2325, 2326, + 2327, 2328, 4540, 4541, 4542, 4543, 16946, 16947, + 16948, 16949, 16950, 16951, 16952, 16953, 17120, 17121, + 17122, 17123, 17124, 17125, 17126, 17127, 17128, 17129, + 17130, 17131, 17132, 17133, 17134, 17135, 17136, 17137, + 17138, 17139, 17140, 17141, 17142, 17143, 17144, 17145, + 17146, 17147, 17148, 17149, 17150, 17151, 17152, 17153, + 17242, 17243, 17244, 17245, 17246, 17247, 17248, 17249, + 17250, 17251, 17252, 17253, 17254, 17255, 17256, 17257, + 17258, 17259, 17260, 17261, 17328, 17329, 17330, 17331, + 17332, 17333, 17334, 17335, 18096, 18097, 18180, 18181, + 19201, 19202, 19203, 19204, 19205, 19250, 19251, 19252, + 19262, 19263, 19264, 19265, 19754, 19933, 19938, 19939, + 19940, 19941, 20322, 20323, 20324, 20325, 30715, 30716, + 30717, 30718, 30719, 30720, 30721, 30722, 30727, 30728, + 30729, 30730, 30731, 30732, 30733, 30734, 30735, 30738, + 30739, 30740, 30741 + ]; + + protected override ReadOnlySpan ItemIds => StairItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddStairGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddStair", AccessLevel.GameMaster, AddStair_OnCommand); + } + + [Usage("AddStair")] + [Description("Displays a menu for adding stair statics.")] + private static void AddStair_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddStairGump()); + } + + public AddStairGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 1.cs new file mode 100644 index 000000000..d9bafd6a0 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 1.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Animation Part 1 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting animated static items (Part 1). +/// +public sealed class AddAnimStPt1Gump : StaticItemGumpBase +{ + private static readonly int[] AnimationItemIds = + [ + 0x6D, 0x6E, 0x6F, 0xB1, 0xB2, 0xB3, 0xB4, 0x3AE, 0x3AF, + 0x3B0, 0x3C3, 0x462, 0x46C, 0x475, 0x47B, 0x47C, 0x482, 0x489, + 0x48B, 0x48D, 0x48F, 0x491, 0x493, 0x90D, 0x91B, 0x91C, 0x91D, + 0x91F, 0x920, 0x921, 0x922, 0x923, 0x92C, 0x931, 0x937, 0x93D, + 0x945, 0x94B, 0x953, 0x959, 0x961, 0x967, 0x970, 0x9D7, 0x9D8, + 0x9FD, 0x9FE, 0x9FF, 0xA02, 0xA03, 0xA04, 0xA07, 0xA08, 0xA09, + 0xA0C, 0xA0D, 0xA0E, 0xA0F, 0xA10, 0xA11, 0xA12, 0xA13, 0xA14, + 0xA15, 0xA16, 0xA17, 0xA1A, 0xA1B, 0xA1C, 0xB1A, 0xB1B, 0xB1C, + 0xB1D, 0xB1F, 0xB26, 0xB27, 0xB28, 0xB2A, 0xDDA, 0xDDB, 0xDDC, + 0xDDD, 0xDDE, 0xDE3, 0xE2E, 0xE31, 0xE5C, 0xE5F, 0xE62, 0xE65, + 0xE68, 0xF6C, 0x1016, 0x101A, 0x101D, 0x1071, 0x1072, 0x1074, 0x1075, + 0x1076, 0x1077, 0x10A5, 0x10DA, 0x10DB, 0x10DC, 0x10F6, 0x10F7, 0x10FC, + 0x10FE, 0x1104, 0x1107, 0x1109, 0x110D, 0x110F, 0x1111, 0x1117, 0x111A, + 0x111C, 0x1120, 0x1126, 0x112C, 0x1130, 0x1133, 0x113A, 0x113B, 0x1140, + 0x1143, 0x1145, 0x114C, 0x1153, 0x1158, 0x1193, 0x1194, 0x119A, 0x119B, + 0x119E, 0x11A1, 0x11A4, 0x11A6, 0x11AD, 0x11B0, 0x11B2, 0x11B5, 0x11B6, + 0x11C1, 0x1245, 0x1249, 0x12DA, 0x12DE, 0x12E5, 0x12E9, 0x12EE, 0x12F4, + 0x12FA, 0x1300, 0x1305, 0x1306, 0x130C, 0x1311, 0x1312, 0x1318, 0x131E, + 0x1321, 0x1324, 0x1327, 0x132A, 0x132D, 0x1330, 0x1333, 0x1336, 0x1339, + 0x133C, 0x133F, 0x1342, 0x1345, 0x1348, 0x134B, 0x136E, 0x137A, 0x1384 + ]; + + protected override ReadOnlySpan ItemIds => AnimationItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddAnimStPt1Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddAnimStPt1", AccessLevel.GameMaster, AddAnimStPt1_OnCommand); + } + + [Usage("AddAnimStPt1")] + [Description("Displays a menu for adding animated statics (Part 1).")] + private static void AddAnimStPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddAnimStPt1Gump()); + } + + public AddAnimStPt1Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 2.cs new file mode 100644 index 000000000..f8f0a5e34 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 2.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Animation Part 2 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting animated static items (Part 2). +/// +public sealed class AddAnimStPt2Gump : StaticItemGumpBase +{ + private static readonly int[] AnimationItemIds = + [ + 0x1390, 0x140C, 0x142C, 0x142E, 0x1430, 0x1434, 0x1508, 0x1512, 0x151A, + 0x151C, 0x1541, 0x1545, 0x154D, 0x1551, 0x163D, 0x1541, 0x168E, 0x1739, + 0x173D, 0x173F, 0x1741, 0x1811, 0x183E, 0x183F, 0x1840, 0x1841, 0x1842, + 0x1843, 0x1844, 0x1845, 0x1846, 0x184A, 0x184E, 0x1854, 0x1858, 0x18A3, + 0x18A4, 0x18A5, 0x18A6, 0x18A7, 0x18A8, 0x18A9, 0x18AA, 0x18AB, 0x18AC, + 0x18AD, 0x18B2, 0x18F4, 0x18F5, 0x18F6, 0x18F7, 0x18F8, 0x18F9, 0x18FA, + 0x18FB, 0x1905, 0x190A, 0x1926, 0x1928, 0x1932, 0x1934, 0x1951, 0x1954, + 0x197A, 0x197E, 0x1982, 0x1986, 0x198A, 0x199E, 0x1992, 0x1996, 0x19AB, + 0x19AC, 0x19AD, 0x19AE, 0x19AF, 0x19B0, 0x19B1, 0x19B2, 0x19B3, 0x19B4, + 0x19B5, 0x19B6, 0x19D3, 0x1A19, 0x1A1E, 0x1A23, 0x1A28, 0x1A2D, 0x1A32, + 0x1A37, 0x1A3B, 0x1A3F, 0x1A43, 0x1A47, 0x1A4C, 0x1A51, 0x1A56, 0x1A5B, + 0x1A60, 0x1A65, 0x1A69, 0x1A6D, 0x1A71, 0x1A75, 0x1AAD, 0x1AB0, 0x1AB3, + 0x1AB6, 0x1ABE, 0x1AC1, 0x1AC4, 0x1AC7, 0x1AD0, 0x1AF3, 0x1B7C, 0x1B7F, + 0x1C14, 0x1C19, 0x1D99, 0x1EA8, 0x1EA9, 0x1EAB, 0x1EAD, 0x1EC1, 0x1EC2, + 0x1EC3, 0x1EC4, 0x1EC5, 0x1EC6, 0x1ECD, 0x1ED0, 0x1ED3, 0x1ED9, 0x1EE1, + 0x1EE2, 0x1EEC, 0x1EF3, 0x1EF4, 0x1F19, 0x1F1C, 0x1F1F, 0x1FA3, 0x1FA4, + 0x1FA5, 0x1FA6, 0x1FA7, 0x1FA8, 0x1FA9, 0x1FAA, 0x1FAB, 0x1FAC, 0x1FAD, + 0x1FAE, 0x1FAF, 0x1FB0, 0x1FB2, 0x1FB3, 0x1FB4, 0x1FB5, 0x1FB6, 0x1FB7, + 0x1FB8, 0x1FB9, 0x1FBA, 0x1FBC, 0x1FBD, 0x1FBE, 0x1FBF, 0x1FC0, 0x1FC1, + 0x1FC2, 0x1FC3, 0x1FC4, 0x1FC5, 0x1FC6, 0x1FC7, 0x1FC8, 0x1FC9, 0x1FCA + ]; + + protected override ReadOnlySpan ItemIds => AnimationItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddAnimStPt2Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddAnimStPt2", AccessLevel.GameMaster, AddAnimStPt2_OnCommand); + } + + [Usage("AddAnimStPt2")] + [Description("Displays a menu for adding animated statics (Part 2).")] + private static void AddAnimStPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddAnimStPt2Gump()); + } + + public AddAnimStPt2Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 3.cs new file mode 100644 index 000000000..9b92886ae --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 3.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Animation Part 3 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting animated static items (Part 3). +/// +public sealed class AddAnimStPt3Gump : StaticItemGumpBase +{ + private static readonly int[] AnimationItemIds = + [ + 0x1FD4, 0x1FEB, 0x204B, 0x22C6, 0x2332, 0x2336, 0x2352, 0x2358, 0x235C, + 0x2360, 0x2364, 0x2366, 0x236E, 0x2371, 0x29FD, 0x2A94, 0x2AA3, 0x2AA5, + 0x2AA7, 0x2AA9, 0x2AAA, 0x2AAB, 0x2AB6, 0x2AB7, 0x2ABB, 0x2ABC, 0x2ABD, + 0x2ABE, 0x2AC0, 0x2AC3, 0x2AC6, 0x2AC9, 0x2ACA, 0x2ACB, 0x2ACC, 0x2ACD, + 0x2ACE, 0x2ACF, 0x2AD0, 0x2AD1, 0x2AD2, 0x2AD3, 0x2AD4, 0x2AD5, 0x2AD6, + 0x2AD7, 0x2AD8, 0x2AD9, 0x2ADB, 0x2ADD, 0x2ADE, 0x2ADF, 0x2AE1, 0x2AE4, + 0x2AE5, 0x2AE6, 0x2AE8, 0x2AE9, 0x2AEA, 0x2AED, 0x2AEE, 0x2AEF, 0x2AF3, + 0x2AF5, 0x2AFA, 0x2AFB, 0x2AFE, 0x2B01, 0x2B02, 0x2B06, 0x2B07, 0x2B0A, + 0x2B0D, 0x2B0E, 0x2E3C, 0x2E3E, 0x320D, 0x3213, 0x321A, 0x3220, 0x3226, + 0x322C, 0x3236, 0x3241, 0x32F4, 0x3421, 0x3422, 0x3423, 0x3424, 0x3426, + 0x3427, 0x3428, 0x3429, 0x342C, 0x342D, 0x342E, 0x342F, 0x3430, 0x3431, + 0x3432, 0x3433, 0x3434, 0x3435, 0x343B, 0x3447, 0x344E, 0x3459, 0x3462, + 0x3468, 0x346E, 0x346F, 0x3470, 0x3471, 0x3472, 0x3473, 0x3474, 0x3475, + 0x3476, 0x3477, 0x3478, 0x3479, 0x347A, 0x347B, 0x347C, 0x347D, 0x347E, + 0x347F, 0x3480, 0x3481, 0x3482, 0x3483, 0x3484, 0x3485, 0x3486, 0x3487, + 0x3488, 0x3489, 0x348A, 0x348B, 0x348C, 0x348D, 0x348E, 0x348F, 0x3490, + 0x3492, 0x3494, 0x349A, 0x349D, 0x34A0, 0x34A6, 0x34A8, 0x34AC, 0x34AD, + 0x34AE, 0x34AF, 0x34B0, 0x34B1, 0x34B2, 0x34B3, 0x34B4, 0x34B5, 0x34B6, + 0x34B8, 0x34B9, 0x34BA, 0x34BD, 0x34BE, 0x34C2, 0x34C3, 0x34C7, 0x34D1, + 0x34ED, 0x34F3, 0x34F9, 0x34FF, 0x3505, 0x350B, 0x350C, 0x3511, 0x3517 + ]; + + protected override ReadOnlySpan ItemIds => AnimationItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddAnimStPt3Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddAnimStPt3", AccessLevel.GameMaster, AddAnimStPt3_OnCommand); + } + + [Usage("AddAnimStPt3")] + [Description("Displays a menu for adding animated statics (Part 3).")] + private static void AddAnimStPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddAnimStPt3Gump()); + } + + public AddAnimStPt3Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 4.cs new file mode 100644 index 000000000..7e393ef8b --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 4.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Animation Part 4 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting animated static items (Part 4). +/// +public sealed class AddAnimStPt4Gump : StaticItemGumpBase +{ + private static readonly int[] AnimationItemIds = + [ + 0x351D, 0x3523, 0x352D, 0x35EF, 0x3660, 0x3661, 0x3662, 0x366D, 0x366E, + 0x36B0, 0x36BD, 0x36BF, 0x36CC, 0x36D4, 0x36DA, 0x36E4, 0x36E5, 0x36E6, + 0x36F4, 0x36FE, 0x3704, 0x3705, 0x3709, 0x3715, 0x371A, 0x3723, 0x3725, + 0x3728, 0x372A, 0x3735, 0x373A, 0x3740, 0x3749, 0x374A, 0x3753, 0x3754, + 0x375A, 0x3763, 0x376A, 0x3772, 0x3773, 0x3779, 0x377A, 0x3789, 0x3798, + 0x37A0, 0x37B9, 0x37BE, 0x37CA, 0x37CC, 0x3818, 0x3914, 0x3915, 0x3916, + 0x3917, 0x3918, 0x3920, 0x3921, 0x3922, 0x3923, 0x3924, 0x3946, 0x3947, + 0x3948, 0x3949, 0x394A, 0x3955, 0x3956, 0x3957, 0x3958, 0x3959, 0x395A, + 0x3967, 0x3973, 0x3979, 0x398C, 0x398D, 0x398E, 0x39EF, 0x3990, 0x3996, + 0x3997, 0x3998, 0x3999, 0x399A, 0x399F, 0x3A5F, 0x3A7D, 0x3A7E, 0x3A84, + 0x3A87, 0x3A88, 0x3A8D, 0x3A8E, 0x3E01, 0x3E02, 0x3E27, 0x3E31, 0x3F42, + 0x3F47, 0x3F51, 0x3F53, 0x3F55, 0x3F57, 0x3F59, 0x3F5B, 0x3F5D, 0x3F5F, + 0x3F69, 0x3F6E, 0x3F78, 0x3F7A, 0x3F7C, 0x3F7E, 0x3F80, 0x3F82, 0x3F84, + 0x3F86, 0x3F91, 0x3F93, 0x3F98, 0x3F9D, 0x3FA5, 0x3FA7, 0x3FA8, 0x3FA9, + 0x3FAB, 0x3FAD, 0x3FAF, 0x3FB0, 0x3FB1, 0x3FB2, 0x3FB3, 0x3FB5, 0x3FB6, + 0x3FBE, 0x3FC2, 0x3FC3, 0x3FC8, 0x3FCA, 0x3FCD, 0x3FCF, 0x3FD0, 0x3FD1, + 0x3FD2, 0x3FD4, 0x3FD5, 0x3FD6, 0x3FD8, 0x3FDA, 0x3FDC, 0x3FDE, 0x3FE0, + 0x40BE, 0x42CF, 0x437E, 0x4382, 0x4386, 0x438A, 0x438E, 0x4392, 0x4396, + 0x439A, 0x439E, 0x43A2, 0x44C7, 0x44CB, 0x44D5, 0x44D9, 0x44DD, 0x44E1, + 0x4691, 0x4695, 0x46E6, 0x46E9, 0x46EC, 0x46EF, 0x46F2, 0x46F5, 0x483B + ]; + + protected override ReadOnlySpan ItemIds => AnimationItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddAnimStPt4Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddAnimStPt4", AccessLevel.GameMaster, AddAnimStPt4_OnCommand); + } + + [Usage("AddAnimStPt4")] + [Description("Displays a menu for adding animated statics (Part 4).")] + private static void AddAnimStPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddAnimStPt4Gump()); + } + + public AddAnimStPt4Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 5.cs new file mode 100644 index 000000000..e9f290def --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Animation 5.cs @@ -0,0 +1,46 @@ +/* + * Oz'Thoth's Static Tool - Animation Part 5 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting animated static items (Part 5). +/// +public sealed class AddAnimStPt5Gump : StaticItemGumpBase +{ + private static readonly int[] AnimationItemIds = + [ + 0x483E, 0x4841, 0x4844, 0x4847, 0x484A, 0x484D, 0x4850, 0x4853, 0x4856, + 0x4859, 0x485C, 0x485F, 0x4862, 0x4865, 0x4868, 0x486B, 0x486E, 0x4871, + 0x4874, 0x4877, 0x487A, 0x487D, 0x4880, 0x4883, 0x48D4, 0x48D8, 0x49CC, + 0x49D0, 0x5675, 0x5683, 0x571C, 0x5722, 0x5728, 0x572D, 0x5732, 0x573E, + 0x981D, 0x9822, 0x9DBD, 0x9DC9, 0x9DCD, 0x9DDA, 0x9DE5, 0x9DE9, 0x9FA1, + 0x9FA4 + ]; + + protected override ReadOnlySpan ItemIds => AnimationItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddAnimStPt5Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddAnimStPt5", AccessLevel.GameMaster, AddAnimStPt5_OnCommand); + } + + [Usage("AddAnimStPt5")] + [Description("Displays a menu for adding animated statics (Part 5).")] + private static void AddAnimStPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddAnimStPt5Gump()); + } + + public AddAnimStPt5Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Customs/Animation 6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Customs/Animation 6.cs new file mode 100644 index 000000000..f7af49faf --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Animations/Customs/Animation 6.cs @@ -0,0 +1,47 @@ +/* + * Oz'Thoth's Static Tool - Animation Part 6 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting animation statics (Part 6). +/// +public sealed class AddAnimStPt6Gump : StaticItemGumpBase +{ + private static readonly int[] AnimationItemIds = + [ + 0xA112, 0xA136, 0xA14B, 0xA157, 0xA15D, 0xA164, 0xA16B, 0xA17B, 0xA193, + 0xA197, 0xA19A, 0xA1A0, 0xA1B4, 0xA1B7, 0xA1BC, 0xA1C1, 0xA1CA, 0xA1DF, + 0xA1E2, 0xA1E5, 0xA1F4, 0xA205, 0xA20D, 0xA210, 0xA213, 0xA222, 0xA226, + 0xA22F, 0xA23A, 0xA243, 0xA25E, 0xA266, 0xA27E, 0xA285, 0xA28D, 0xA292, + 0xA298, 0xA2A3, 0xA2A7, 0xA2AB, 0xA2B9, 0xA2BE, 0xA574, 0xA592, 0xA595, + 0xA598, 0xA59B, 0xA944, 0xA948, 0xA94D, 0xA952, 0xA956, 0xA95A, 0xA95E, + 0xA962 + ]; + + protected override ReadOnlySpan ItemIds => AnimationItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddAnimStPt6Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddAnimStPt6", AccessLevel.GameMaster, AddAnimStPt6_OnCommand); + } + + [Usage("AddAnimStPt6")] + [Description("Displays a menu for adding animation statics (Part 6).")] + private static void AddAnimStPt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddAnimStPt6Gump()); + } + + public AddAnimStPt6Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt1.cs new file mode 100644 index 000000000..9419f95cd --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt1.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 1 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 1). +/// +public sealed class AddCustomPt1Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 39214, 39215, 39216, 39217, 39218, 39219, 39220, 39221, 39222, + 39223, 39224, 39225, 39226, 39227, 39228, 39229, 39230, 39231, + 39232, 39233, 39234, 39235, 39236, 39237, 39238, 39239, 39240, + 39241, 39242, 39243, 39244, 39245, 39246, 39247, 39248, 39249, + 39250, 39251, 39252, 39253, 39254, 39255, 39256, 39257, 39258, + 39259, 39260, 39261, 39262, 39263, 39264, 39265, 39266, 39267, + 39268, 39269, 39270, 39271, 39272, 39273, 39274, 39275, 39276, + 39277, 39278, 39279, 39280, 39281, 39282, 39283, 39284, 39285, + 39286, 39287, 39288, 39289, 39290, 39291, 39292, 39293, 39294, + 39295, 39296, 39297, 39298, 39299, 39300, 39301, 39302, 39303, + 39304, 39305, 39306, 39307, 39308, 39309, 39310, 39311, 39312, + 39313, 39314, 39315, 39316, 39317, 39318, 39319, 39320, 39321, + 39322, 39323, 39324, 39325, 39326, 39327, 39328, 39329, 39330, + 39331, 39332, 39333, 39334, 39335, 39336, 39337, 39338, 39339, + 39340, 39341, 39342, 39343, 39344, 39345, 39346, 39347, 39348, + 39349, 39350, 39351, 39352, 39353, 39354, 39355, 39356, 39357, + 39358, 39359, 39360, 39361, 39362, 39363, 39364, 39365, 39366, + 39367, 39368, 39369, 39370, 39371, 39372, 39373, 39374, 39375, + 39376, 39377, 39378, 39379, 39380, 39381, 39382, 39383, 39384, + 39385, 39386, 39387, 39388, 39389, 39390, 39391, 39392, 39393 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt1Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt1", AccessLevel.GameMaster, AddCustomPt1_OnCommand); + } + + [Usage("AddCustomPt1")] + [Description("Displays a menu for adding custom statics (Part 1).")] + private static void AddCustomPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt1Gump()); + } + + public AddCustomPt1Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt10.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt10.cs new file mode 100644 index 000000000..b2a7fda79 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt10.cs @@ -0,0 +1,66 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 10 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 10). +/// +public sealed class AddCustomPt10Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 40851, 40852, 40853, 40854, 40855, 40856, 40857, 40858, 40859, + 40860, 40861, 40862, 40863, 40864, 40865, 40866, 40867, 40868, + 40869, 40870, 40871, 40872, 40873, 40874, 40875, 40876, 40877, + 40878, 40879, 40880, 40881, 40882, 40883, 40884, 40885, 40886, + 40887, 40888, 40889, 40890, 40891, 40892, 40893, 40894, 40895, + 40896, 40897, 40898, 40899, 40900, 40901, 40902, 40903, 40904, + 40905, 40906, 40907, 40908, 40909, 40910, 40911, 40912, 40913, + 40914, 40915, 40916, 40917, 40918, 40919, 40920, 40921, 40922, + 40923, 40924, 40925, 40926, 40927, 40928, 40929, 40930, 40931, + 40932, 40933, 40934, 40935, 40936, 40937, 40938, 40939, 40940, + 40941, 40942, 40943, 40944, 40945, 40946, 40947, 40948, 40949, + 40950, 40951, 40952, 40953, 40954, 40955, 40956, 40957, 40959, + 40960, 40961, 40962, 40963, 40964, 40965, 40966, 40967, 40968, + 40969, 40970, 40971, 40972, 40973, 40974, 40975, 40976, 40977, + 40978, 40979, 40980, 40981, 40982, 40983, 40984, 40985, 40986, + 40987, 40988, 40989, 40990, 40991, 40992, 40993, 40994, 40995, + 40996, 40997, 40998, 40999, 41000, 41001, 41002, 41003, 41004, + 41005, 41006, 41007, 41008, 41009, 41010, 41011, 41012, 41013, + 41014, 41015, 41016, 41017, 41018, 41019, 41020, 41021, 41022, + 41023, 41024, 41025, 41026, 41027, 41028, 41029, 41030, 41031, + 41032, 41033, 41034, 41035, 41036, 41037, 41038, 41039, 41040, + 41041, 41042, 41043, 41044, 41045, 41046, 41047, 41048, 41049, + 41050, 41051, 41052, 41053, 41054, 41055, 41056, 41057, 41058, + 41059, 41060, 41061, 41062, 41063, 41064, 41065, 41066, 41067, + 41068, 41069, 41070, 41071, 41072, 41073, 41074, 41075, 41076, + 41077, 41078, 41079, 41080, 41081, 41082, 41083, 41092, 41093 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt10Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt10", AccessLevel.GameMaster, AddCustomPt10_OnCommand); + } + + [Usage("AddCustomPt10")] + [Description("Displays a menu for adding custom statics (Part 10).")] + private static void AddCustomPt10_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt10Gump()); + } + + public AddCustomPt10Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt11.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt11.cs new file mode 100644 index 000000000..716503f8c --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt11.cs @@ -0,0 +1,70 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 11 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 11). +/// +public sealed class AddCustomPt11Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 41094, 41095, 41096, 41097, 41098, 41099, 41100, 41101, 41102, + 41103, 41104, 41105, 41106, 41107, 41108, 41109, 41110, 41111, + 41112, 41113, 41114, 41115, 41116, 41117, 41118, 41119, 41120, + 41121, 41122, 41123, 41124, 41125, 41126, 41127, 41128, 41129, + 41130, 41131, 41132, 41133, 41134, 41135, 41136, 41137, 41138, + 41139, 41140, 41141, 41142, 41143, 41144, 41145, 41146, 41147, + 41148, 41149, 41150, 41151, 41152, 41153, 41154, 41155, 41156, + 41157, 41158, 41159, 41160, 41161, 41162, 41163, 41164, 41165, + 41166, 41167, 41168, 41169, 41170, 41171, 41172, 41173, 41174, + 41175, 41176, 41177, 41178, 41179, 41180, 41181, 41182, 41183, + 41184, 41185, 41186, 41187, 41188, 41189, 41190, 41191, 41192, + 41193, 41194, 41195, 41196, 41197, 41198, 41199, 41200, 41201, + 41202, 41203, 41204, 41205, 41206, 41207, 41208, 41209, 41210, + 41211, 41212, 41213, 41214, 41215, 41216, 41217, 41218, 41219, + 41220, 41221, 41222, 41223, 41224, 41225, 41226, 41227, 41228, + 41229, 41230, 41231, 41232, 41233, 41234, 41235, 41236, 41237, + 41238, 41239, 41240, 41241, 41242, 41243, 41244, 41245, 41246, + 41247, 41248, 41249, 41250, 41251, 41252, 41253, 41254, 41255, + 41256, 41257, 41258, 41259, 41270, 41271, 41272, 41273, 41274, + 41275, 41276, 41277, 41278, 41279, 41280, 41281, 41282, 41283, + 41284, 41285, 41286, 41287, 41288, 41289, 41290, 41291, 41292, + 41293, 41294, 41295, 41296, 41297, 41298, 41299, 41300, 41301, + 41302, 41303, 41304, 41305, 41306, 41307, 41308, 41309, 41310, + 41311, 41312, 41313, 41314, 41315, 41316, 41317, 41318, 41319, + 41320, 41321, 41322, 41323, 41324, 41325, 41326, 41327, 41328, + 41329, 41330, 41331, 41332, 41333, 41334, 41335, 41336, 41337, + 41338, 41339, 41340, 41341, 41342, 41343, 41344, 41345, 41346, + 41347, 41348, 41349, 41353, 41354, 41355, 41356, 41357, 41358, + 41359, 41360, 41361, 41362, 41363, 41364, 41365, 41366, 41367, + 41368, 41369, 41370, 41371, 41372, 41373, 41374, 41375, 41376 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt11Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt11", AccessLevel.GameMaster, AddCustomPt11_OnCommand); + } + + [Usage("AddCustomPt11")] + [Description("Displays a menu for adding custom statics (Part 11).")] + private static void AddCustomPt11_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt11Gump()); + } + + public AddCustomPt11Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt12.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt12.cs new file mode 100644 index 000000000..a4891c3ed --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt12.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 12 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 12). +/// +public sealed class AddCustomPt12Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 41377, 41378, 41379, 41380, 41381, 41382, 41383, 41384, 41385, + 41386, 41387, 41388, 41389, 41390, 41391, 41392, 41393, 41394, + 41395, 41396, 41397, 41398, 41399, 41400, 41401, 41402, 41403, + 41404, 41405, 41406, 41407, 41408, 41409, 41410, 41411, 41412, + 41413, 41414, 41415, 41416, 41417, 41418, 41419, 41420, 41421, + 41422, 41423, 41424, 41425, 41426, 41427, 41428, 41429, 41430, + 41431, 41432, 41433, 41434, 41435, 41436, 41437, 41438, 41439, + 41440, 41441, 41442, 41443, 41444, 41445, 41446, 41447, 41448, + 41449, 41450, 41451, 41452, 41453, 41454, 41455, 41456, 41457, + 41458, 41459, 41460, 41461, 41462, 41463, 41464, 41465, 41466, + 41467, 41468, 41469, 41470, 41471, 41472, 41473, 41474, 41475, + 41476, 41477, 41478, 41479, 41480, 41481, 41482, 41483, 41484, + 41485, 41486, 41487, 41488, 41489, 41490, 41491, 41492, 41493, + 41494, 41495, 41496, 41497, 41498, 41499, 41500, 41501, 41502, + 41503, 41504, 41505, 41506, 41507, 41508, 41509, 41510, 41511, + 41512, 41513, 41514, 41515, 41516, 41517, 41518, 41519, 41520, + 41521, 41522, 41523, 41524, 41525, 41526, 41527, 41528, 41529, + 41530, 41531, 41532, 41533, 41534, 41535, 41536, 41537, 41538, + 41539, 41540, 41541, 41542, 41543, 41544, 41545, 41546, 41547, + 41548, 41549, 41550, 41551, 41552, 41553, 41554, 41555, 41556, + 41557, 41558, 41559, 41560, 41561, 41562, 41563, 41564, 41565, + 41566, 41567, 41568, 41569, 41570, 41571, 41572, 41573, 41574, + 41575, 41576, 41577, 41578, 41579, 41580, 41581, 41582, 41583, + 41584, 41585, 41586, 41587, 41588, 41589, 41590, 41591, 41592, + 41593, 41594, 41595, 41596, 41597, 41598, 41599, 41600, 41601 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt12Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt12", AccessLevel.GameMaster, AddCustomPt12_OnCommand); + } + + [Usage("AddCustomPt12")] + [Description("Displays a menu for adding custom statics (Part 12).")] + private static void AddCustomPt12_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt12Gump()); + } + + public AddCustomPt12Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt13.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt13.cs new file mode 100644 index 000000000..dffcacde4 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt13.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 13 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 13). +/// +public sealed class AddCustomPt13Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 41602, 41603, 41604, 41605, 41606, 41607, 41608, 41609, 41610, + 41611, 41612, 41613, 41614, 41615, 41616, 41617, 41618, 41619, + 41620, 41621, 41622, 41623, 41624, 41625, 41626, 41627, 41628, + 41629, 41630, 41631, 41632, 41633, 41634, 41635, 41636, 41637, + 41638, 41639, 41640, 41641, 41642, 41643, 41644, 41645, 41646, + 41647, 41648, 41649, 41650, 41651, 41652, 41653, 41654, 41655, + 41656, 41657, 41658, 41659, 41660, 41661, 41662, 41663, 41664, + 41665, 41666, 41667, 41668, 41669, 41670, 41671, 41672, 41673, + 41674, 41675, 41676, 41677, 41678, 41679, 41680, 41681, 41682, + 41683, 41684, 41685, 41686, 41687, 41688, 41689, 41690, 41691, + 41692, 41693, 41694, 41695, 41696, 41697, 41698, 41699, 41700, + 41701, 41702, 41703, 41704, 41705, 41706, 41707, 41708, 41709, + 41710, 41711, 41712, 41713, 41714, 41715, 41716, 41717, 41718, + 41719, 41720, 41721, 41722, 41723, 41724, 41725, 41726, 41727, + 41728, 41729, 41730, 41731, 41732, 41733, 41734, 41735, 41736, + 41737, 41738, 41739, 41740, 41741, 41742, 41743, 41744, 41745, + 41746, 41747, 41748, 41749, 41750, 41751, 41752, 41753, 41754, + 41755, 41756, 41757, 41758, 41759, 41760, 41761, 41762, 41763, + 41764, 41765, 41766, 41767, 41768, 41769, 41770, 41771, 41772, + 41773, 41774, 41775, 41776, 41777, 41778, 41779, 41780, 41781, + 41782, 41783, 41784, 41785, 41786, 41787, 41788, 41789, 41790, + 41791, 41792, 41793, 41794, 41795, 41796, 41797, 41798, 41799, + 41800, 41801, 41802, 41803, 41804, 41805, 41806, 41807, 41808, + 41809, 41810, 41811, 41812, 41813, 41814, 41815, 41816, 41817, + 41818, 41819, 41820, 41821, 41822, 41823, 41824, 41825, 41826 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt13Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt13", AccessLevel.GameMaster, AddCustomPt13_OnCommand); + } + + [Usage("AddCustomPt13")] + [Description("Displays a menu for adding custom statics (Part 13).")] + private static void AddCustomPt13_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt13Gump()); + } + + public AddCustomPt13Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt14.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt14.cs new file mode 100644 index 000000000..9ac726903 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt14.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 14 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 14). +/// +public sealed class AddCustomPt14Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 41827, 41828, 41829, 41830, 41831, 41832, 41833, 41834, 41835, + 41836, 41837, 41838, 41839, 41840, 41841, 41842, 41843, 41844, + 41845, 41846, 41847, 41848, 41849, 41850, 41851, 41852, 41853, + 41854, 41855, 41856, 41857, 41858, 41859, 41860, 41861, 41862, + 41863, 41864, 41865, 41866, 41867, 41868, 41869, 41870, 41871, + 41872, 41873, 41874, 41875, 41876, 41877, 41878, 41879, 41880, + 41881, 41882, 41883, 41884, 41885, 41886, 41887, 41888, 41889, + 41890, 41891, 41892, 41893, 41894, 41895, 41896, 41897, 41898, + 41899, 41900, 41901, 41902, 41903, 41904, 41905, 41906, 41907, + 41908, 41909, 41910, 41911, 41912, 41913, 41914, 41915, 41916, + 41917, 41918, 41919, 41920, 41921, 41922, 41923, 41924, 41925, + 41926, 41927, 41928, 41929, 41930, 41931, 41932, 41933, 41934, + 41935, 41936, 41937, 41938, 41939, 41940, 41941, 41942, 41943, + 41944, 41945, 41946, 41947, 41948, 41949, 41950, 41951, 41952, + 41953, 41954, 41955, 41956, 41957, 41958, 41959, 41960, 41961, + 41962, 41963, 41964, 41965, 41966, 41967, 41968, 41969, 41970, + 41971, 41972, 41973, 41974, 41975, 41976, 41977, 41978, 41979, + 41980, 41981, 41982, 41983, 41984, 41985, 41986, 41987, 41988, + 41989, 41990, 41991, 41992, 41993, 41994, 41995, 41996, 41997, + 41998, 41999, 42000, 42001, 42002, 42003, 42004, 42005, 42006, + 42007, 42008, 42009, 42010, 42011, 42012, 42013, 42014, 42015, + 42016, 42017, 42018, 42019, 42020, 42021, 42022, 42023, 42024, + 42025, 42026, 42027, 42028, 42029, 42030, 42031, 42032, 42033, + 42034, 42035, 42036, 42037, 42038, 42039, 42040, 42041, 42042, + 42043, 42044, 42045, 42046, 42047, 42048, 42049, 42050, 42051 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt14Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt14", AccessLevel.GameMaster, AddCustomPt14_OnCommand); + } + + [Usage("AddCustomPt14")] + [Description("Displays a menu for adding custom statics (Part 14).")] + private static void AddCustomPt14_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt14Gump()); + } + + public AddCustomPt14Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt15.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt15.cs new file mode 100644 index 000000000..5d8a114db --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt15.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 15 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 15). +/// +public sealed class AddCustomPt15Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 42052, 42053, 42054, 42055, 42056, 42057, 42058, 42059, 42060, + 42061, 42062, 42063, 42064, 42065, 42066, 42067, 42068, 42069, + 42070, 42071, 42072, 42073, 42074, 42075, 42076, 42077, 42078, + 42079, 42080, 42081, 42082, 42083, 42084, 42085, 42086, 42087, + 42088, 42089, 42090, 42091, 42092, 42093, 42094, 42095, 42096, + 42097, 42098, 42099, 42100, 42101, 42102, 42103, 42104, 42105, + 42106, 42107, 42108, 42109, 42110, 42111, 42112, 42113, 42114, + 42115, 42116, 42117, 42118, 42119, 42120, 42121, 42122, 42123, + 42124, 42125, 42126, 42127, 42128, 42129, 42130, 42131, 42132, + 42133, 42134, 42135, 42136, 42137, 42138, 42139, 42140, 42141, + 42142, 42143, 42144, 42145, 42146, 42147, 42148, 42149, 42150, + 42151, 42152, 42153, 42154, 42155, 42156, 42157, 42158, 42159, + 42160, 42161, 42162, 42163, 42164, 42165, 42166, 42167, 42168, + 42169, 42170, 42171, 42172, 42173, 42174, 42175, 42176, 42177, + 42178, 42179, 42180, 42181, 42182, 42183, 42184, 42185, 42186, + 42187, 42188, 42189, 42190, 42191, 42192, 42193, 42194, 42195, + 42196, 42197, 42198, 42199, 42200, 42201, 42202, 42203, 42204, + 42205, 42206, 42207, 42208, 42209, 42210, 42211, 42212, 42213, + 42214, 42215, 42216, 42217, 42218, 42219, 42220, 42221, 42222, + 42223, 42224, 42225, 42226, 42227, 42228, 42229, 42230, 42231, + 42232, 42233, 42234, 42235, 42236, 42237, 42238, 42239, 42240, + 42241, 42242, 42243, 42244, 42245, 42246, 42247, 42248, 42249, + 42250, 42251, 42252, 42253, 42254, 42255, 42256, 42257, 42258, + 42259, 42260, 42261, 42262, 42263, 42264, 42265, 42266, 42267, + 42268, 42269, 42270, 42271, 42272, 42273, 42274, 42275, 42276 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt15Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt15", AccessLevel.GameMaster, AddCustomPt15_OnCommand); + } + + [Usage("AddCustomPt15")] + [Description("Displays a menu for adding custom statics (Part 15).")] + private static void AddCustomPt15_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt15Gump()); + } + + public AddCustomPt15Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt16.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt16.cs new file mode 100644 index 000000000..58de3aca0 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt16.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 16 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 16). +/// +public sealed class AddCustomPt16Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 42277, 42278, 42279, 42280, 42281, 42282, 42283, 42284, 42285, + 42286, 42287, 42288, 42289, 42290, 42291, 42292, 42293, 42294, + 42295, 42296, 42297, 42298, 42299, 42300, 42301, 42302, 42303, + 42304, 42305, 42306, 42307, 42308, 42309, 42310, 42311, 42312, + 42313, 42314, 42315, 42316, 42317, 42318, 42319, 42320, 42321, + 42322, 42323, 42324, 42325, 42326, 42327, 42328, 42329, 42330, + 42331, 42332, 42333, 42334, 42335, 42336, 42337, 42338, 42339, + 42340, 42341, 42342, 42343, 42344, 42345, 42346, 42347, 42348, + 42349, 42350, 42351, 42352, 42353, 42354, 42355, 42356, 42357, + 42358, 42359, 42360, 42361, 42362, 42363, 42364, 42365, 42366, + 42367, 42368, 42370, 42371, 42372, 42373, 42374, 42375, 42376, + 42377, 42378, 42379, 42380, 42381, 42382, 42383, 42384, 42385, + 42386, 42387, 42388, 42389, 42390, 42391, 42392, 42393, 42394, + 42395, 42396, 42397, 42398, 42399, 42400, 42401, 42402, 42403, + 42404, 42405, 42406, 42407, 42408, 42409, 42410, 42411, 42412, + 42413, 42414, 42415, 42416, 42417, 42418, 42419, 42420, 42421, + 42422, 42423, 42424, 42425, 42426, 42427, 42428, 42429, 42430, + 42431, 42432, 42433, 42434, 42435, 42436, 42437, 42438, 42439, + 42440, 42441, 42442, 42443, 42444, 42445, 42446, 42447, 42448, + 42449, 42450, 42451, 42452, 42453, 42454, 42455, 42456, 42457, + 42458, 42459, 42460, 42461, 42462, 42463, 42464, 42465, 42466, + 42467, 42468, 42469, 42470, 42471, 42473, 42474, 42475, 42476, + 42477, 42478, 42479, 42480, 42481, 42482, 42483, 42484, 42485, + 42486, 42487, 42488, 42489, 42490, 42491, 42492, 42493, 42494, + 42495, 42496, 42497, 42498, 42499, 42500, 42501, 42502, 42503 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt16Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt16", AccessLevel.GameMaster, AddCustomPt16_OnCommand); + } + + [Usage("AddCustomPt16")] + [Description("Displays a menu for adding custom statics (Part 16).")] + private static void AddCustomPt16_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt16Gump()); + } + + public AddCustomPt16Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt17.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt17.cs new file mode 100644 index 000000000..a5df35df9 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt17.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 17 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 17). +/// +public sealed class AddCustomPt17Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 42504, 42505, 42506, 42507, 42508, 42509, 42510, 42511, 42512, + 42513, 42514, 42515, 42516, 42517, 42518, 42519, 42520, 42521, + 42522, 42523, 42524, 42525, 42526, 42527, 42528, 42529, 42530, + 42531, 42532, 42533, 42534, 42535, 42536, 42537, 42538, 42539, + 42540, 42541, 42542, 42543, 42544, 42545, 42546, 42547, 42548, + 42549, 42550, 42551, 42552, 42553, 42554, 42555, 42556, 42557, + 42558, 42559, 42560, 42561, 42562, 42563, 42564, 42565, 42573, + 42574, 42575, 42576, 42577, 42578, 42579, 42580, 42582, 42583, + 42584, 42585, 42586, 42587, 42588, 42589, 42590, 42591, 42592, + 42593, 42594, 42595, 42596, 42597, 42598, 42599, 42600, 42601, + 42602, 42603, 42604, 42605, 42606, 42607, 42608, 42609, 42610, + 42611, 42612, 42613, 42614, 42615, 42616, 42617, 42618, 42619, + 42620, 42621, 42622, 42623, 42624, 42625, 42626, 42627, 42628, + 42629, 42630, 42631, 42632, 42633, 42634, 42635, 42636, 42637, + 42638, 42639, 42640, 42641, 42642, 42643, 42644, 42645, 42646, + 42647, 42648, 42649, 42650, 42651, 42652, 42653, 42656, 42657, + 42658, 42659, 42660, 42661, 42662, 42663, 42664, 42665, 42666, + 42667, 42668, 42669, 42670, 42671, 42672, 42673, 42674, 42675, + 42676, 42677, 42678, 42679, 42680, 42681, 42682, 42683, 42684, + 42685, 42686, 42687, 42688, 42689, 42690, 42691, 42692, 42693, + 42694, 42695, 42696, 42697, 42698, 42699, 42700, 42703, 42704, + 42705, 42706, 42707, 42708, 42709, 42710, 42711, 42712, 42713, + 42714, 42715, 42716, 42717, 42719, 42720, 42721, 42722, 42723, + 42724, 42725, 42726, 42727, 42728, 42729, 42730, 42731, 42732, + 42733, 42734, 42735, 42736, 42738, 42739, 42740, 42741, 42742 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt17Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt17", AccessLevel.GameMaster, AddCustomPt17_OnCommand); + } + + [Usage("AddCustomPt17")] + [Description("Displays a menu for adding custom statics (Part 17).")] + private static void AddCustomPt17_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt17Gump()); + } + + public AddCustomPt17Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt18.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt18.cs new file mode 100644 index 000000000..9111bc1b3 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt18.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 18 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 18). +/// +public sealed class AddCustomPt18Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 42743, 42744, 42745, 42746, 42747, 42748, 42749, 42750, 42751, + 42752, 42753, 42754, 42755, 42757, 42758, 42759, 42760, 42761, + 42762, 42763, 42764, 42765, 42766, 42767, 42768, 42769, 42770, + 42771, 42772, 42773, 42774, 42775, 42776, 42777, 42778, 42779, + 42780, 42781, 42782, 42783, 42784, 42785, 42786, 42787, 42788, + 42789, 42790, 42791, 42792, 42793, 42794, 42795, 42796, 42798, + 42799, 42800, 42801, 42802, 42803, 42804, 42805, 42806, 42807, + 42808, 42809, 42810, 42811, 42812, 42813, 42814, 42815, 42816, + 42817, 42818, 42819, 42820, 42821, 42822, 42823, 42824, 42825, + 42826, 42827, 42828, 42829, 42830, 42831, 42832, 42833, 42834, + 42835, 42836, 42837, 42839, 42840, 42841, 42842, 42843, 42844, + 42845, 42846, 42847, 42848, 42849, 42850, 42851, 42852, 42853, + 42854, 42855, 42856, 42857, 42858, 42859, 42860, 42861, 42862, + 42863, 42864, 42865, 42866, 42867, 42868, 42869, 42870, 42871, + 42872, 42873, 42874, 42875, 42876, 42877, 42878, 42880, 42881, + 42882, 42883, 42884, 42885, 42886, 42887, 42888, 42889, 42890, + 42891, 42892, 42893, 42894, 42895, 42896, 42897, 42898, 42899, + 42900, 42901, 42902, 42903, 42904, 42905, 42906, 42907, 42908, + 42909, 42910, 42911, 42912, 42913, 42914, 42915, 42916, 42917, + 42918, 42919, 42920, 42921, 42922, 42923, 42924, 42925, 42926, + 42927, 42928, 42929, 42930, 42931, 42932, 42933, 42934, 42935, + 42936, 42937, 42938, 42939, 42940, 42941, 42942, 42943, 42944, + 42945, 42946, 42947, 42948, 42949, 42950, 42951, 42952, 42953, + 42954, 42955, 42956, 42957, 42958, 42959, 42961, 42962, 42963, + 42964, 42965, 42966, 42967, 42968, 42969, 42970, 42971, 42972 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt18Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt18", AccessLevel.GameMaster, AddCustomPt18_OnCommand); + } + + [Usage("AddCustomPt18")] + [Description("Displays a menu for adding custom statics (Part 18).")] + private static void AddCustomPt18_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt18Gump()); + } + + public AddCustomPt18Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt19.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt19.cs new file mode 100644 index 000000000..502b9be49 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt19.cs @@ -0,0 +1,63 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 19 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 19). +/// +public sealed class AddCustomPt19Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 42973, 42974, 42975, 42976, 42977, 42978, 42979, 42980, 42981, + 42982, 42983, 42984, 42985, 42986, 42987, 42988, 42989, 42990, + 42991, 42992, 42993, 42994, 42995, 42996, 42997, 42998, 42999, + 43000, 43002, 43003, 43004, 43005, 43006, 43007, 43008, 43009, + 43010, 43011, 43012, 43013, 43014, 43015, 43016, 43017, 43019, + 43020, 43021, 43022, 43023, 43024, 43025, 43026, 43027, 43028, + 43029, 43030, 43031, 43032, 43033, 43034, 43036, 43037, 43038, + 43039, 43040, 43041, 43042, 43043, 43044, 43045, 43046, 43047, + 43048, 43049, 43050, 43051, 43052, 43053, 43054, 43055, 43056, + 43057, 43058, 43059, 43060, 43061, 43062, 43063, 43064, 43065, + 43066, 43067, 43068, 43069, 43070, 43071, 43072, 43073, 43074, + 43075, 43077, 43078, 43079, 43080, 43081, 43082, 43083, 43084, + 43085, 43086, 43087, 43088, 43089, 43090, 43091, 43092, 43094, + 43095, 43096, 43097, 43098, 43099, 43100, 43101, 43102, 43103, + 43104, 43105, 43106, 43107, 43108, 43109, 43111, 43112, 43113, + 43114, 43115, 43116, 43117, 43118, 43119, 43120, 43121, 43122, + 43123, 43124, 43125, 43126, 43128, 43129, 43130, 43131, 43132, + 43133, 43134, 43135, 43136, 43137, 43138, 43139, 43140, 43141, + 43142, 43143, 43145, 43146, 43147, 43148, 43149, 43150, 43151, + 43152, 43153, 43154, 43155, 43156, 43157, 43158, 43159, 43160, + 43162, 43163, 43164, 43165, 43166, 43167, 43168, 43169, 43170, + 43171, 43172, 43173, 43174, 43175, 43176, 43177, 43178, 43179, + 43180, 43181, 43182, 43183, 43184, 43185, 43186, 43187, 43188 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt19Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt19", AccessLevel.GameMaster, AddCustomPt19_OnCommand); + } + + [Usage("AddCustomPt19")] + [Description("Displays a menu for adding custom statics (Part 19).")] + private static void AddCustomPt19_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt19Gump()); + } + + public AddCustomPt19Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt2.cs new file mode 100644 index 000000000..61dc83914 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt2.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 2 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 2). +/// +public sealed class AddCustomPt2Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 39394, 39395, 39396, 39397, 39398, 39399, 39400, 39401, 39402, + 39403, 39404, 39405, 39406, 39407, 39408, 39409, 39410, 39411, + 39412, 39413, 39414, 39415, 39416, 39417, 39418, 39419, 39420, + 39421, 39422, 39423, 39424, 39425, 39426, 39427, 39428, 39429, + 39430, 39431, 39432, 39433, 39434, 39435, 39436, 39437, 39438, + 39439, 39440, 39441, 39442, 39443, 39444, 39445, 39446, 39447, + 39448, 39449, 39450, 39451, 39452, 39453, 39454, 39455, 39456, + 39457, 39458, 39459, 39460, 39461, 39462, 39463, 39464, 39465, + 39466, 39467, 39468, 39469, 39470, 39471, 39472, 39473, 39474, + 39475, 39476, 39477, 39478, 39479, 39480, 39481, 39482, 39483, + 39484, 39485, 39486, 39487, 39488, 39489, 39490, 39491, 39492, + 39493, 39494, 39495, 39496, 39497, 39498, 39499, 39500, 39501, + 39502, 39503, 39504, 39505, 39506, 39507, 39508, 39509, 39510, + 39511, 39512, 39513, 39514, 39515, 39517, 39518, 39519, 39520, + 39521, 39522, 39523, 39524, 39525, 39526, 39527, 39528, 39529, + 39530, 39531, 39532, 39533, 39534, 39535, 39536, 39537, 39538, + 39539, 39540, 39541, 39542, 39543, 39544, 39545, 39546, 39547, + 39548, 39549, 39550, 39551, 39552, 39553, 39554, 39555, 39556, + 39557, 39558, 39559, 39560, 39561, 39562, 39563, 39564, 39565, + 39566, 39567, 39568, 39569, 39570, 39571, 39572, 39573, 39574 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt2Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt2", AccessLevel.GameMaster, AddCustomPt2_OnCommand); + } + + [Usage("AddCustomPt2")] + [Description("Displays a menu for adding custom statics (Part 2).")] + private static void AddCustomPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt2Gump()); + } + + public AddCustomPt2Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt20.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt20.cs new file mode 100644 index 000000000..a03d18f3b --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt20.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 20 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 20). +/// +public sealed class AddCustomPt20Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 43189, 43190, 43191, 43192, 43193, 43194, 43195, 43196, 43197, + 43198, 43199, 43200, 43201, 43202, 43203, 43204, 43205, 43206, + 43207, 43208, 43209, 43210, 43211, 43212, 43213, 43214, 43215, + 43216, 43217, 43218, 43219, 43220, 43221, 43222, 43223, 43224, + 43225, 43226, 43227, 43228, 43229, 43230, 43231, 43232, 43233, + 43234, 43235, 43236, 43237, 43238, 43239, 43240, 43241, 43242, + 43243, 43244, 43245, 43246, 43247, 43248, 43249, 43250, 43251, + 43252, 43253, 43254, 43255, 43256, 43257, 43258, 43259, 43260, + 43261, 43262, 43263, 43264, 43265, 43267, 43268, 43269, 43270, + 43271, 43272, 43273, 43274, 43275, 43276, 43277, 43278, 43279, + 43280, 43281, 43282, 43283, 43284, 43285, 43286, 43287, 43288, + 43289, 43290, 43291, 43292, 43293, 43294, 43295, 43296, 43297, + 43298, 43300, 43301, 43302, 43303, 43304, 43305, 43306, 43307, + 43308, 43309, 43310, 43311, 43312, 43313, 43314, 43315, 43316, + 43317, 43318, 43319, 43320, 43321, 43322, 43323, 43324, 43325, + 43326, 43327, 43328, 43329, 43330, 43331, 43332, 43333, 43334, + 43335, 43336, 43337, 43338, 43339, 43340, 43341, 43342, 43343, + 43344, 43345, 43346, 43347, 43348, 43349, 43350, 43351, 43352, + 43353, 43354, 43355, 43356, 43357, 43358, 43359, 43360, 43361, + 43362, 43363, 43364, 43365, 43366, 43367 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt20Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt20", AccessLevel.GameMaster, AddCustomPt20_OnCommand); + } + + [Usage("AddCustomPt20")] + [Description("Displays a menu for adding custom statics (Part 20).")] + private static void AddCustomPt20_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt20Gump()); + } + + public AddCustomPt20Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt3.cs new file mode 100644 index 000000000..df34a671a --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt3.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 3 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 3). +/// +public sealed class AddCustomPt3Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 39575, 39576, 39577, 39578, 39579, 39580, 39581, 39582, 39583, + 39584, 39585, 39586, 39587, 39588, 39589, 39590, 39591, 39592, + 39593, 39594, 39595, 39596, 39597, 39598, 39599, 39600, 39601, + 39602, 39603, 39604, 39605, 39606, 39607, 39608, 39609, 39610, + 39611, 39612, 39613, 39614, 39615, 39616, 39617, 39618, 39619, + 39620, 39621, 39622, 39623, 39624, 39625, 39626, 39627, 39628, + 39629, 39630, 39631, 39632, 39633, 39634, 39635, 39636, 39637, + 39638, 39639, 39640, 39641, 39642, 39643, 39644, 39645, 39646, + 39647, 39648, 39649, 39650, 39651, 39652, 39653, 39654, 39655, + 39656, 39657, 39658, 39659, 39660, 39661, 39662, 39663, 39664, + 39665, 39666, 39667, 39668, 39669, 39670, 39671, 39672, 39673, + 39674, 39675, 39676, 39677, 39678, 39679, 39680, 39681, 39682, + 39683, 39684, 39685, 39686, 39687, 39688, 39689, 39690, 39691, + 39692, 39693, 39694, 39695, 39696, 39697, 39698, 39699, 39700, + 39701, 39702, 39703, 39704, 39705, 39706, 39707, 39708, 39709, + 39710, 39711, 39712, 39713, 39714, 39715, 39716, 39717, 39718, + 39719, 39720, 39721, 39722, 39723, 39724, 39725, 39726, 39727, + 39728, 39729, 39730, 39731, 39732, 39733, 39734, 39735, 39736, + 39737, 39738, 39739, 39740, 39741, 39742, 39743, 39744, 39745, + 39746, 39747, 39748, 39749, 39750, 39751, 39752, 39753, 39754 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt3Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt3", AccessLevel.GameMaster, AddCustomPt3_OnCommand); + } + + [Usage("AddCustomPt3")] + [Description("Displays a menu for adding custom statics (Part 3).")] + private static void AddCustomPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt3Gump()); + } + + public AddCustomPt3Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt4.cs new file mode 100644 index 000000000..be54b1a61 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt4.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 4 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 4). +/// +public sealed class AddCustomPt4Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 39755, 39756, 39757, 39758, 39759, 39760, 39761, 39762, 39763, + 39764, 39765, 39766, 39767, 39768, 39769, 39770, 39771, 39772, + 39773, 39774, 39775, 39776, 39777, 39778, 39779, 39780, 39781, + 39782, 39783, 39784, 39785, 39786, 39787, 39788, 39789, 39790, + 39791, 39792, 39793, 39794, 39795, 39796, 39797, 39798, 39799, + 39800, 39801, 39802, 39803, 39804, 39805, 39806, 39807, 39808, + 39809, 39810, 39811, 39812, 39813, 39814, 39815, 39816, 39817, + 39818, 39819, 39820, 39821, 39822, 39823, 39824, 39825, 39826, + 39827, 39828, 39829, 39830, 39831, 39832, 39833, 39834, 39835, + 39836, 39837, 39838, 39839, 39840, 39841, 39842, 39843, 39844, + 39845, 39846, 39847, 39848, 39849, 39850, 39851, 39852, 39853, + 39854, 39855, 39856, 39857, 39858, 39859, 39860, 39861, 39862, + 39863, 39864, 39865, 39866, 39867, 39868, 39869, 39870, 39871, + 39872, 39873, 39874, 39875, 39876, 39877, 39878, 39879, 39880, + 39881, 39882, 39883, 39884, 39885, 39886, 39887, 39888, 39889, + 39890, 39891, 39892, 39893, 39894, 39895, 39896, 39897, 39898, + 39899, 39900, 39901, 39902, 39903, 39904, 39905, 39906, 39907, + 39908, 39909, 39910, 39911, 39912, 39913, 39914, 39915, 39916, + 39917, 39918, 39919, 39920, 39921, 39922, 39923, 39924, 39925, + 39926, 39927, 39928, 39929, 39930, 39931, 39932, 39933, 39934 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt4Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt4", AccessLevel.GameMaster, AddCustomPt4_OnCommand); + } + + [Usage("AddCustomPt4")] + [Description("Displays a menu for adding custom statics (Part 4).")] + private static void AddCustomPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt4Gump()); + } + + public AddCustomPt4Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt5.cs new file mode 100644 index 000000000..0fbd2bef6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt5.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 5 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 5). +/// +public sealed class AddCustomPt5Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 39935, 39936, 39937, 39938, 39939, 39940, 39941, 39942, 39943, + 39944, 39945, 39946, 39947, 39948, 39949, 39950, 39951, 39952, + 39953, 39954, 39955, 39956, 39957, 39958, 39959, 39960, 39961, + 39962, 39963, 39964, 39965, 39966, 39967, 39968, 39969, 39970, + 39971, 39972, 39973, 39974, 39975, 39976, 39977, 39978, 39979, + 39980, 39981, 39982, 39983, 39984, 39985, 39986, 39987, 39988, + 39989, 39990, 39991, 39992, 39993, 39994, 39995, 39996, 39997, + 39998, 39999, 40000, 40001, 40002, 40003, 40004, 40005, 40006, + 40007, 40008, 40009, 40010, 40011, 40012, 40013, 40014, 40015, + 40016, 40017, 40018, 40019, 40020, 40021, 40022, 40023, 40024, + 40025, 40026, 40027, 40028, 40029, 40030, 40031, 40032, 40033, + 40034, 40035, 40036, 40037, 40038, 40039, 40040, 40041, 40042, + 40043, 40044, 40045, 40046, 40047, 40048, 40049, 40050, 40051, + 40052, 40053, 40054, 40055, 40056, 40057, 40058, 40059, 40060, + 40061, 40062, 40063, 40064, 40065, 40066, 40067, 40068, 40069, + 40070, 40071, 40072, 40073, 40074, 40075, 40076, 40077, 40078, + 40079, 40080, 40081, 40082, 40083, 40084, 40085, 40086, 40087, + 40088, 40089, 40090, 40091, 40092, 40093, 40094, 40095, 40096, + 40097, 40098, 40099, 40100, 40101, 40102, 40103, 40104, 40105, + 40106, 40107, 40108, 40109, 40110, 40111, 40112, 40113, 40114 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt5Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt5", AccessLevel.GameMaster, AddCustomPt5_OnCommand); + } + + [Usage("AddCustomPt5")] + [Description("Displays a menu for adding custom statics (Part 5).")] + private static void AddCustomPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt5Gump()); + } + + public AddCustomPt5Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt6.cs new file mode 100644 index 000000000..b15cd051e --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt6.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 6 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 6). +/// +public sealed class AddCustomPt6Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 40115, 40116, 40117, 40118, 40119, 40120, 40121, 40122, 40123, + 40124, 40125, 40126, 40127, 40128, 40129, 40130, 40131, 40132, + 40133, 40134, 40135, 40136, 40137, 40138, 40139, 40140, 40141, + 40142, 40143, 40144, 40145, 40146, 40147, 40148, 40149, 40150, + 40151, 40152, 40153, 40154, 40155, 40156, 40157, 40158, 40159, + 40160, 40161, 40162, 40163, 40164, 40165, 40166, 40167, 40168, + 40169, 40170, 40171, 40172, 40173, 40174, 40175, 40176, 40177, + 40178, 40179, 40180, 40181, 40182, 40183, 40184, 40185, 40188, + 40189, 40190, 40191, 40192, 40193, 40194, 40195, 40196, 40197, + 40198, 40199, 40200, 40201, 40202, 40203, 40204, 40205, 40206, + 40207, 40208, 40209, 40210, 40211, 40212, 40213, 40214, 40215, + 40216, 40217, 40218, 40219, 40220, 40221, 40222, 40223, 40224, + 40225, 40226, 40227, 40228, 40229, 40230, 40231, 40232, 40233, + 40234, 40235, 40236, 40237, 40238, 40239, 40240, 40241, 40242, + 40243, 40244, 40245, 40246, 40247, 40248, 40249, 40250, 40251, + 40252, 40253, 40254, 40255, 40256, 40257, 40258, 40259, 40260, + 40261, 40262, 40263, 40265, 40266, 40267, 40268, 40269, 40270, + 40271, 40272, 40273, 40274, 40275, 40276, 40277, 40278, 40280, + 40281, 40282, 40283, 40284, 40285, 40286, 40287, 40288, 40289, + 40290, 40291, 40292, 40294, 40295, 40297, 40298, 40299, 40300 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt6Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt6", AccessLevel.GameMaster, AddCustomPt6_OnCommand); + } + + [Usage("AddCustomPt6")] + [Description("Displays a menu for adding custom statics (Part 6).")] + private static void AddCustomPt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt6Gump()); + } + + public AddCustomPt6Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt7.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt7.cs new file mode 100644 index 000000000..4e610be9a --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt7.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 7 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 7). +/// +public sealed class AddCustomPt7Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 40301, 40302, 40303, 40304, 40305, 40306, 40307, 40308, 40309, + 40310, 40311, 40312, 40313, 40314, 40315, 40316, 40317, 40318, + 40319, 40320, 40321, 40322, 40323, 40324, 40325, 40326, 40327, + 40328, 40329, 40330, 40331, 40332, 40333, 40334, 40335, 40336, + 40337, 40338, 40339, 40340, 40341, 40342, 40343, 40344, 40345, + 40346, 40347, 40348, 40349, 40350, 40351, 40352, 40353, 40354, + 40355, 40356, 40358, 40359, 40360, 40361, 40362, 40363, 40364, + 40365, 40366, 40367, 40368, 40369, 40370, 40371, 40372, 40373, + 40374, 40375, 40376, 40378, 40379, 40381, 40382, 40383, 40384, + 40385, 40386, 40387, 40388, 40389, 40390, 40391, 40392, 40393, + 40394, 40395, 40396, 40397, 40398, 40399, 40400, 40401, 40402, + 40403, 40404, 40405, 40406, 40407, 40408, 40410, 40411, 40412, + 40413, 40414, 40415, 40416, 40417, 40418, 40419, 40420, 40421, + 40422, 40423, 40424, 40425, 40426, 40427, 40428, 40429, 40430, + 40431, 40432, 40433, 40434, 40435, 40436, 40438, 40439, 40440, + 40441, 40442, 40443, 40444, 40445, 40447, 40448, 40449, 40450, + 40451, 40452, 40453, 40454, 40455, 40456, 40457, 40458, 40459, + 40460, 40461, 40462, 40463, 40464, 40465, 40466, 40467, 40468, + 40469, 40470, 40471, 40472, 40473, 40474, 40475, 40476, 40477, + 40478, 40479, 40480, 40481, 40482, 40483, 40484, 40485, 40486 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt7Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt7", AccessLevel.GameMaster, AddCustomPt7_OnCommand); + } + + [Usage("AddCustomPt7")] + [Description("Displays a menu for adding custom statics (Part 7).")] + private static void AddCustomPt7_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt7Gump()); + } + + public AddCustomPt7Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt8.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt8.cs new file mode 100644 index 000000000..caf358fae --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt8.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 8 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 8). +/// +public sealed class AddCustomPt8Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 40487, 40488, 40489, 40490, 40491, 40492, 40493, 40494, 40495, + 40496, 40497, 40498, 40499, 40500, 40501, 40502, 40503, 40504, + 40505, 40506, 40507, 40508, 40509, 40510, 40511, 40512, 40513, + 40514, 40515, 40516, 40517, 40518, 40519, 40520, 40521, 40522, + 40523, 40524, 40525, 40526, 40527, 40528, 40529, 40530, 40531, + 40532, 40533, 40534, 40535, 40536, 40537, 40538, 40539, 40540, + 40541, 40542, 40543, 40544, 40545, 40546, 40547, 40548, 40549, + 40550, 40551, 40552, 40553, 40554, 40555, 40556, 40557, 40558, + 40559, 40560, 40561, 40562, 40563, 40564, 40565, 40566, 40567, + 40568, 40569, 40570, 40571, 40572, 40573, 40574, 40575, 40576, + 40577, 40578, 40579, 40580, 40581, 40582, 40583, 40584, 40585, + 40586, 40587, 40588, 40589, 40590, 40591, 40592, 40593, 40594, + 40595, 40596, 40597, 40598, 40599, 40600, 40601, 40602, 40603, + 40604, 40605, 40606, 40607, 40608, 40609, 40610, 40611, 40612, + 40613, 40614, 40615, 40616, 40617, 40618, 40619, 40620, 40621, + 40622, 40623, 40624, 40625, 40626, 40627, 40628, 40629, 40630, + 40631, 40632, 40633, 40634, 40635, 40636, 40637, 40638, 40639, + 40640, 40641, 40642, 40643, 40644, 40645, 40646, 40647, 40648, + 40649, 40650, 40651, 40652, 40653, 40654, 40655, 40656, 40657, + 40658, 40659, 40660, 40661, 40662, 40663, 40664, 40665, 40666 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt8Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt8", AccessLevel.GameMaster, AddCustomPt8_OnCommand); + } + + [Usage("AddCustomPt8")] + [Description("Displays a menu for adding custom statics (Part 8).")] + private static void AddCustomPt8_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt8Gump()); + } + + public AddCustomPt8Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt9.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt9.cs new file mode 100644 index 000000000..1da48b52a --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Customs/CustomsPt9.cs @@ -0,0 +1,60 @@ +/* + * Oz'Thoth's Static Tool - Custom Items Part 9 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting custom static items (Part 9). +/// +public sealed class AddCustomPt9Gump : StaticItemGumpBase +{ + private static readonly int[] CustomItemIds = + [ + 40667, 40668, 40669, 40670, 40671, 40672, 40673, 40674, 40675, + 40676, 40677, 40678, 40679, 40680, 40681, 40682, 40683, 40684, + 40685, 40686, 40687, 40688, 40689, 40690, 40691, 40692, 40693, + 40694, 40695, 40696, 40697, 40698, 40699, 40700, 40701, 40702, + 40703, 40704, 40705, 40706, 40707, 40708, 40709, 40710, 40711, + 40712, 40713, 40714, 40715, 40716, 40717, 40718, 40719, 40720, + 40721, 40722, 40723, 40724, 40725, 40726, 40727, 40728, 40729, + 40730, 40731, 40732, 40733, 40734, 40735, 40736, 40737, 40738, + 40739, 40740, 40741, 40742, 40743, 40744, 40745, 40746, 40747, + 40748, 40749, 40750, 40751, 40752, 40753, 40754, 40755, 40756, + 40757, 40758, 40759, 40760, 40761, 40762, 40763, 40764, 40765, + 40766, 40767, 40768, 40769, 40770, 40771, 40772, 40773, 40774, + 40775, 40776, 40777, 40778, 40779, 40780, 40781, 40782, 40783, + 40784, 40787, 40790, 40791, 40792, 40793, 40794, 40795, 40796, + 40797, 40798, 40799, 40800, 40801, 40802, 40803, 40804, 40805, + 40806, 40807, 40808, 40809, 40810, 40811, 40812, 40813, 40814, + 40815, 40816, 40817, 40818, 40819, 40820, 40821, 40822, 40823, + 40824, 40825, 40826, 40827, 40828, 40829, 40830, 40831, 40832, + 40833, 40834, 40835, 40836, 40837, 40838, 40839, 40840, 40841, + 40842, 40843, 40844, 40845, 40846, 40847, 40848, 40849, 40850 + ]; + + protected override ReadOnlySpan ItemIds => CustomItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddCustomPt9Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddCustomPt9", AccessLevel.GameMaster, AddCustomPt9_OnCommand); + } + + [Usage("AddCustomPt9")] + [Description("Displays a menu for adding custom statics (Part 9).")] + private static void AddCustomPt9_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddCustomPt9Gump()); + } + + public AddCustomPt9Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt5.cs new file mode 100644 index 000000000..3e7afc380 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt5.cs @@ -0,0 +1,151 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFurnPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFurnPt5", AccessLevel.GameMaster, new CommandEventHandler(AddFurnPt5_OnCommand)); + } + + [Usage("AddFurnPt5")] + public static void AddFurnPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFurnPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(40447), new ItemInfo(40448), new ItemInfo(40449), new ItemInfo(40450), new ItemInfo(40451), new ItemInfo(40452), new ItemInfo(40453), + new ItemInfo(40454), new ItemInfo(40455), new ItemInfo(40456), new ItemInfo(40457), new ItemInfo(40458), new ItemInfo(40459), new ItemInfo(40460), + new ItemInfo(40461), new ItemInfo(40462), new ItemInfo(40463), new ItemInfo(40464), new ItemInfo(40465), new ItemInfo(40466), new ItemInfo(40467), + new ItemInfo(40468), new ItemInfo(40469), new ItemInfo(40470), new ItemInfo(40471), new ItemInfo(40472), new ItemInfo(40473), new ItemInfo(40474), + new ItemInfo(40475), new ItemInfo(40476), new ItemInfo(40477), new ItemInfo(40478), new ItemInfo(40479), new ItemInfo(40480), new ItemInfo(40481), + new ItemInfo(40482), new ItemInfo(40483), new ItemInfo(40484), new ItemInfo(40485), new ItemInfo(40486), new ItemInfo(40487), new ItemInfo(40488), + new ItemInfo(40489), new ItemInfo(40490), new ItemInfo(40491), new ItemInfo(40492), new ItemInfo(40493), new ItemInfo(40494), new ItemInfo(40495), + new ItemInfo(40496), new ItemInfo(40497), new ItemInfo(40498), new ItemInfo(40499), new ItemInfo(40500), new ItemInfo(40501), new ItemInfo(40502), + new ItemInfo(40503), new ItemInfo(40504), new ItemInfo(40505), new ItemInfo(40506), new ItemInfo(40507), new ItemInfo(40508), new ItemInfo(40509), + new ItemInfo(40510), new ItemInfo(40511), new ItemInfo(40512), new ItemInfo(40513), new ItemInfo(40514), new ItemInfo(40515), new ItemInfo(40516), + new ItemInfo(40517), new ItemInfo(40518), new ItemInfo(40519), new ItemInfo(40520), new ItemInfo(40521), new ItemInfo(40522), new ItemInfo(40523), + new ItemInfo(40524), new ItemInfo(40525), new ItemInfo(40526), new ItemInfo(40527), new ItemInfo(40528), new ItemInfo(40529), new ItemInfo(40530), + new ItemInfo(40531), new ItemInfo(40532), new ItemInfo(40533), new ItemInfo(40534), new ItemInfo(40535), new ItemInfo(40536), new ItemInfo(40537), + new ItemInfo(40538), new ItemInfo(40539), new ItemInfo(40540), new ItemInfo(40541), new ItemInfo(40542), new ItemInfo(40543), new ItemInfo(40544), + new ItemInfo(40545), new ItemInfo(40546), new ItemInfo(40547), new ItemInfo(40548), new ItemInfo(40549), new ItemInfo(40550), new ItemInfo(40551), + new ItemInfo(40552), new ItemInfo(40553), new ItemInfo(40554), new ItemInfo(40555), new ItemInfo(40556), new ItemInfo(40557), new ItemInfo(40558), + new ItemInfo(40559), new ItemInfo(40560), new ItemInfo(40561), new ItemInfo(40562), new ItemInfo(40563), new ItemInfo(40564), new ItemInfo(40565), + new ItemInfo(40566), new ItemInfo(40567), new ItemInfo(40568), new ItemInfo(40569), new ItemInfo(40570), new ItemInfo(40571), new ItemInfo(40572), + new ItemInfo(40616), new ItemInfo(40617), new ItemInfo(40618), new ItemInfo(40619), new ItemInfo(40620), new ItemInfo(40621), new ItemInfo(40622), + new ItemInfo(40623), new ItemInfo(40624), new ItemInfo(40625), new ItemInfo(40626), new ItemInfo(40627), new ItemInfo(40628), new ItemInfo(40629) + #endregion + }; + + private int m_Page; + + + + public AddFurnPt5Gump() + : this(0) + { } + + public AddFurnPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFurnPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt6.cs new file mode 100644 index 000000000..c4a9bb132 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Custom/Furniture Pt6.cs @@ -0,0 +1,158 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFurnPt6Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFurnPt6", AccessLevel.GameMaster, new CommandEventHandler(AddFurnPt6_OnCommand)); + } + + [Usage("AddFurnPt6")] + public static void AddFurnPt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFurnPt6Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(40630), new ItemInfo(40631), new ItemInfo(40632), new ItemInfo(40633), new ItemInfo(40634), new ItemInfo(40635), new ItemInfo(40636), + new ItemInfo(40637), new ItemInfo(40638), new ItemInfo(40639), new ItemInfo(40640), new ItemInfo(40641), new ItemInfo(40642), new ItemInfo(40643), + new ItemInfo(40688), new ItemInfo(40689), new ItemInfo(40690), new ItemInfo(40691), new ItemInfo(40692), new ItemInfo(40693), new ItemInfo(40743), + new ItemInfo(40744), new ItemInfo(40853), new ItemInfo(40854), new ItemInfo(40871), new ItemInfo(40872), new ItemInfo(40873), new ItemInfo(40874), + new ItemInfo(40875), new ItemInfo(40897), new ItemInfo(40898), new ItemInfo(40899), new ItemInfo(40900), new ItemInfo(40947), new ItemInfo(40948), + new ItemInfo(40968), new ItemInfo(40969), new ItemInfo(40970), new ItemInfo(40971), new ItemInfo(40972), new ItemInfo(40973), new ItemInfo(40974), + new ItemInfo(40975), new ItemInfo(40976), new ItemInfo(40977), new ItemInfo(40978), new ItemInfo(40979), new ItemInfo(40980), new ItemInfo(40981), + new ItemInfo(40982), new ItemInfo(40983), new ItemInfo(40984), new ItemInfo(40985), new ItemInfo(40986), new ItemInfo(40987), new ItemInfo(41031), + new ItemInfo(41032), new ItemInfo(41033), new ItemInfo(41034), new ItemInfo(41035), new ItemInfo(41036), new ItemInfo(41037), new ItemInfo(41038), + new ItemInfo(41039), new ItemInfo(41040), new ItemInfo(41041), new ItemInfo(41042), new ItemInfo(41043), new ItemInfo(41044), new ItemInfo(41045), + new ItemInfo(41046), new ItemInfo(41047), new ItemInfo(41048), new ItemInfo(41049), new ItemInfo(41050), new ItemInfo(41051), new ItemInfo(41052), + new ItemInfo(41053), new ItemInfo(41054), new ItemInfo(41055), new ItemInfo(41056), new ItemInfo(41057), new ItemInfo(41058), new ItemInfo(41059), + new ItemInfo(41060), new ItemInfo(41061), new ItemInfo(41062), new ItemInfo(41063), new ItemInfo(41064), new ItemInfo(41065), new ItemInfo(41066), + new ItemInfo(41067), new ItemInfo(41068), new ItemInfo(41226), new ItemInfo(41227), new ItemInfo(41228), new ItemInfo(41229), new ItemInfo(41230), + new ItemInfo(41231), new ItemInfo(41232), new ItemInfo(41233), new ItemInfo(41273), new ItemInfo(41274), new ItemInfo(41275), new ItemInfo(41276), + new ItemInfo(41277), new ItemInfo(41278), new ItemInfo(41279), new ItemInfo(41280), new ItemInfo(41281), new ItemInfo(41282), new ItemInfo(41283), + new ItemInfo(41284), new ItemInfo(41285), new ItemInfo(41286), new ItemInfo(41287), new ItemInfo(41288), new ItemInfo(41289), new ItemInfo(41290), + new ItemInfo(42194), new ItemInfo(42195), new ItemInfo(42196), new ItemInfo(42197), new ItemInfo(42198), new ItemInfo(42199), new ItemInfo(42200), + new ItemInfo(42201), new ItemInfo(42202), new ItemInfo(42203), new ItemInfo(42204), new ItemInfo(42205), new ItemInfo(42206), new ItemInfo(42207), + new ItemInfo(42382), new ItemInfo(42383), new ItemInfo(42384), new ItemInfo(42385), new ItemInfo(42398), new ItemInfo(42399), new ItemInfo(42400), + new ItemInfo(42401), new ItemInfo(42402), new ItemInfo(42403), new ItemInfo(42404), new ItemInfo(42405), new ItemInfo(42406), new ItemInfo(42407), + new ItemInfo(42408), new ItemInfo(42409), new ItemInfo(42410), new ItemInfo(42411), new ItemInfo(42412), new ItemInfo(42413), new ItemInfo(42414), + new ItemInfo(42415), new ItemInfo(42416), new ItemInfo(42417), new ItemInfo(42418), new ItemInfo(42419), new ItemInfo(42420), new ItemInfo(42421), + new ItemInfo(42422), new ItemInfo(42423), new ItemInfo(42424), new ItemInfo(42425), new ItemInfo(42426), new ItemInfo(42427), new ItemInfo(42428), + new ItemInfo(42429), new ItemInfo(42430), new ItemInfo(42431), new ItemInfo(42432), new ItemInfo(42433), new ItemInfo(42434), new ItemInfo(42435), + new ItemInfo(42436), new ItemInfo(42437), new ItemInfo(42438), new ItemInfo(42439), new ItemInfo(42440), new ItemInfo(42441), new ItemInfo(42442), + new ItemInfo(42443), new ItemInfo(42444), new ItemInfo(42445), new ItemInfo(42446), new ItemInfo(42447) + #endregion + }; + + private int m_Page; + + + + public AddFurnPt6Gump() + : this(0) + { } + + public AddFurnPt6Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFurnPt6Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt1.cs new file mode 100644 index 000000000..1a9609b7c --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt1.cs @@ -0,0 +1,151 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFurnPt1Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFurnPt1", AccessLevel.GameMaster, new CommandEventHandler(AddFurnPt1_OnCommand)); + } + + [Usage("AddFurnPt1")] + public static void AddFurnPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFurnPt1Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(2602), new ItemInfo(2603), new ItemInfo(2604), new ItemInfo(2605), new ItemInfo(2606), new ItemInfo(2607), new ItemInfo(2608), + new ItemInfo(2609), new ItemInfo(2610), new ItemInfo(2611), new ItemInfo(2612), new ItemInfo(2613), new ItemInfo(2614), new ItemInfo(2615), + new ItemInfo(2616), new ItemInfo(2617), new ItemInfo(2618), new ItemInfo(2619), new ItemInfo(2620), new ItemInfo(2621), new ItemInfo(2622), + new ItemInfo(2623), new ItemInfo(2624), new ItemInfo(2625), new ItemInfo(2626), new ItemInfo(2627), new ItemInfo(2628), new ItemInfo(2629), + new ItemInfo(2630), new ItemInfo(2631), new ItemInfo(2632), new ItemInfo(2633), new ItemInfo(2634), new ItemInfo(2635), new ItemInfo(2636), + new ItemInfo(2637), new ItemInfo(2638), new ItemInfo(2639), new ItemInfo(2640), new ItemInfo(2641), new ItemInfo(2642), new ItemInfo(2643), + new ItemInfo(2645), new ItemInfo(2646), new ItemInfo(2647), new ItemInfo(2648), new ItemInfo(2649), new ItemInfo(2650), new ItemInfo(2651), + new ItemInfo(2652), new ItemInfo(2653), new ItemInfo(2654), new ItemInfo(2655), new ItemInfo(2656), new ItemInfo(2657), new ItemInfo(2658), + new ItemInfo(2659), new ItemInfo(2660), new ItemInfo(2661), new ItemInfo(2662), new ItemInfo(2663), new ItemInfo(2664), new ItemInfo(2665), + new ItemInfo(2666), new ItemInfo(2667), new ItemInfo(2668), new ItemInfo(2669), new ItemInfo(2670), new ItemInfo(2671), new ItemInfo(2672), + new ItemInfo(2673), new ItemInfo(2674), new ItemInfo(2675), new ItemInfo(2676), new ItemInfo(2677), new ItemInfo(2678), new ItemInfo(2679), + new ItemInfo(2680), new ItemInfo(2681), new ItemInfo(2682), new ItemInfo(2683), new ItemInfo(2684), new ItemInfo(2685), new ItemInfo(2686), + new ItemInfo(2687), new ItemInfo(2688), new ItemInfo(2689), new ItemInfo(2690), new ItemInfo(2691), new ItemInfo(2692), new ItemInfo(2693), + new ItemInfo(2694), new ItemInfo(2695), new ItemInfo(2696), new ItemInfo(2697), new ItemInfo(2698), new ItemInfo(2699), new ItemInfo(2700), + new ItemInfo(2701), new ItemInfo(2702), new ItemInfo(2703), new ItemInfo(2704), new ItemInfo(2705), new ItemInfo(2706), new ItemInfo(2707), + new ItemInfo(2708), new ItemInfo(2709), new ItemInfo(2711), new ItemInfo(2712), new ItemInfo(2713), new ItemInfo(2714), new ItemInfo(2715), + new ItemInfo(2716), new ItemInfo(2717), new ItemInfo(2718), new ItemInfo(2861), new ItemInfo(2862), new ItemInfo(2863), new ItemInfo(2864), + new ItemInfo(2865), new ItemInfo(2866), new ItemInfo(2867), new ItemInfo(2868), new ItemInfo(2869), new ItemInfo(2870), new ItemInfo(2871), + new ItemInfo(2872), new ItemInfo(2873), new ItemInfo(2874), new ItemInfo(2876), new ItemInfo(2877), new ItemInfo(2878), new ItemInfo(2879), + new ItemInfo(2880), new ItemInfo(2889), new ItemInfo(2890), new ItemInfo(2891), new ItemInfo(2892), new ItemInfo(2893), new ItemInfo(2894) + #endregion + }; + + private int m_Page; + + + + public AddFurnPt1Gump() + : this(0) + { } + + public AddFurnPt1Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFurnPt1Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt2.cs new file mode 100644 index 000000000..afac98ccf --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt2.cs @@ -0,0 +1,152 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFurnPt2Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFurnPt2", AccessLevel.GameMaster, new CommandEventHandler(AddFurnPt2_OnCommand)); + } + + [Usage("AddFurnPt2")] + public static void AddFurnPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFurnPt2Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(2895), new ItemInfo(2896), new ItemInfo(2897), new ItemInfo(2898), new ItemInfo(2899), new ItemInfo(2900), new ItemInfo(2901), + new ItemInfo(2902), new ItemInfo(2903), new ItemInfo(2904), new ItemInfo(2905), new ItemInfo(2906), new ItemInfo(2907), new ItemInfo(2908), + new ItemInfo(2909), new ItemInfo(2910), new ItemInfo(2911), new ItemInfo(2912), new ItemInfo(2913), new ItemInfo(2914), new ItemInfo(2915), + new ItemInfo(2916), new ItemInfo(2917), new ItemInfo(2918), new ItemInfo(2919), new ItemInfo(2920), new ItemInfo(2921), new ItemInfo(2922), + new ItemInfo(2923), new ItemInfo(2924), new ItemInfo(2925), new ItemInfo(2926), new ItemInfo(2927), new ItemInfo(2928), new ItemInfo(2929), + new ItemInfo(2930), new ItemInfo(2931), new ItemInfo(2932), new ItemInfo(2933), new ItemInfo(2934), new ItemInfo(2935), new ItemInfo(2936), + new ItemInfo(2937), new ItemInfo(2938), new ItemInfo(2939), new ItemInfo(2940), new ItemInfo(2941), new ItemInfo(2942), new ItemInfo(2943), + new ItemInfo(2944), new ItemInfo(2945), new ItemInfo(2946), new ItemInfo(2947), new ItemInfo(2948), new ItemInfo(2949), new ItemInfo(2950), + new ItemInfo(2951), new ItemInfo(2952), new ItemInfo(2953), new ItemInfo(2954), new ItemInfo(2955), new ItemInfo(2956), new ItemInfo(2957), + new ItemInfo(2958), new ItemInfo(2959), new ItemInfo(2960), new ItemInfo(2961), new ItemInfo(2962), new ItemInfo(2963), new ItemInfo(2964), + new ItemInfo(3088), new ItemInfo(3089), new ItemInfo(3090), new ItemInfo(3091), new ItemInfo(3092), new ItemInfo(3093), new ItemInfo(3096), + new ItemInfo(3097), new ItemInfo(3098), new ItemInfo(3099), new ItemInfo(3100), new ItemInfo(3101), new ItemInfo(3102), new ItemInfo(3103), + new ItemInfo(3104), new ItemInfo(3105), new ItemInfo(3106), new ItemInfo(3107), new ItemInfo(3108), new ItemInfo(3109), new ItemInfo(3110), + new ItemInfo(3111), new ItemInfo(3112), new ItemInfo(3113), new ItemInfo(3114), new ItemInfo(3115), new ItemInfo(3121), new ItemInfo(3122), + new ItemInfo(3123), new ItemInfo(3124), new ItemInfo(3125), new ItemInfo(3126), new ItemInfo(3664), new ItemInfo(3665), new ItemInfo(3666), + new ItemInfo(3667), new ItemInfo(4491), new ItemInfo(4492), new ItemInfo(4493), new ItemInfo(4494), new ItemInfo(4495), new ItemInfo(4496), + new ItemInfo(4497), new ItemInfo(4498), new ItemInfo(4558), new ItemInfo(4559), new ItemInfo(4560), new ItemInfo(4561), new ItemInfo(4562), new ItemInfo(4563), + new ItemInfo(4564), new ItemInfo(4565), new ItemInfo(4592), new ItemInfo(4593), new ItemInfo(4594), new ItemInfo(4595), new ItemInfo(4596), + new ItemInfo(4597), new ItemInfo(4598), new ItemInfo(4599), new ItemInfo(4600), new ItemInfo(4601), new ItemInfo(4602), new ItemInfo(4603), + new ItemInfo(4604), new ItemInfo(4605), new ItemInfo(4606), new ItemInfo(4607), new ItemInfo(4608), new ItemInfo(4609), new ItemInfo(4610), + new ItemInfo(4611), new ItemInfo(4612), new ItemInfo(4613), new ItemInfo(4614), new ItemInfo(4615), new ItemInfo(4616), new ItemInfo(4617) + #endregion + }; + + private int m_Page; + + + + public AddFurnPt2Gump() + : this(0) + { } + + public AddFurnPt2Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFurnPt2Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt3.cs new file mode 100644 index 000000000..e39e525cb --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt3.cs @@ -0,0 +1,153 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFurnPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFurnPt3", AccessLevel.GameMaster, new CommandEventHandler(AddFurnPt3_OnCommand)); + } + + [Usage("AddFurnPt3")] + public static void AddFurnPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFurnPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(4618), new ItemInfo(4619), new ItemInfo(4620), new ItemInfo(4632), new ItemInfo(4633), new ItemInfo(4634), new ItemInfo(4635), + new ItemInfo(4566), new ItemInfo(4567), new ItemInfo(4568), new ItemInfo(4569), new ItemInfo(4570), new ItemInfo(4571), new ItemInfo(4572), + new ItemInfo(4573), new ItemInfo(4574), new ItemInfo(4575), new ItemInfo(4576), new ItemInfo(4577), + new ItemInfo(6292), new ItemInfo(6293), new ItemInfo(6294), new ItemInfo(6295), new ItemInfo(6296), new ItemInfo(6297), new ItemInfo(6298), + new ItemInfo(6299), new ItemInfo(6416), new ItemInfo(6417), new ItemInfo(6418), new ItemInfo(6419), new ItemInfo(6420), new ItemInfo(6421), + new ItemInfo(6422), new ItemInfo(6423), new ItemInfo(6424), new ItemInfo(6425), new ItemInfo(6426), new ItemInfo(6427), new ItemInfo(6428), + new ItemInfo(6429), new ItemInfo(6430), new ItemInfo(6431), new ItemInfo(7589), new ItemInfo(7590), new ItemInfo(7591), new ItemInfo(7592), + new ItemInfo(7593), new ItemInfo(7594), new ItemInfo(7595), new ItemInfo(7596), new ItemInfo(7611), new ItemInfo(7612), new ItemInfo(7613), + new ItemInfo(7614), new ItemInfo(7615), new ItemInfo(7616), new ItemInfo(7617), new ItemInfo(7618), new ItemInfo(7619), new ItemInfo(7620), + new ItemInfo(7621), new ItemInfo(7622), new ItemInfo(7623), new ItemInfo(7624), new ItemInfo(7625), new ItemInfo(7626), new ItemInfo(7627), + new ItemInfo(7628), new ItemInfo(7629), new ItemInfo(7630), new ItemInfo(7631), new ItemInfo(7632), new ItemInfo(7633), new ItemInfo(7634), + new ItemInfo(7790), new ItemInfo(7791), new ItemInfo(7792), new ItemInfo(7793), new ItemInfo(7794), new ItemInfo(7795), new ItemInfo(7796), + new ItemInfo(7797), new ItemInfo(7798), new ItemInfo(7799), new ItemInfo(7800), new ItemInfo(7801), new ItemInfo(7802), new ItemInfo(7803), + new ItemInfo(7804), new ItemInfo(7805), new ItemInfo(7806), new ItemInfo(7807), new ItemInfo(7808), new ItemInfo(7809), new ItemInfo(7810), + new ItemInfo(7972), new ItemInfo(7973), new ItemInfo(7974), new ItemInfo(7975), new ItemInfo(10251), new ItemInfo(10252), new ItemInfo(10253), + new ItemInfo(10254), new ItemInfo(10255), new ItemInfo(10256), new ItemInfo(10257), new ItemInfo(10258), new ItemInfo(10259), new ItemInfo(10260), + new ItemInfo(10261), new ItemInfo(10262), new ItemInfo(10263), new ItemInfo(10264), new ItemInfo(10265), new ItemInfo(10266), new ItemInfo(10327), + new ItemInfo(10328), new ItemInfo(10329), new ItemInfo(10330), new ItemInfo(10331), new ItemInfo(10332), new ItemInfo(10333), new ItemInfo(10334), + new ItemInfo(11217), new ItemInfo(11218), new ItemInfo(11219), new ItemInfo(11220), new ItemInfo(11221), new ItemInfo(11222), new ItemInfo(11223), + new ItemInfo(11224), new ItemInfo(11525), new ItemInfo(11526), new ItemInfo(11527), new ItemInfo(11528), new ItemInfo(11529), new ItemInfo(11530), + new ItemInfo(11531), new ItemInfo(11532), new ItemInfo(11743), new ItemInfo(11744), new ItemInfo(11745), new ItemInfo(11746), new ItemInfo(11747), + new ItemInfo(11748), new ItemInfo(11749), new ItemInfo(11750), new ItemInfo(11751), new ItemInfo(11752), new ItemInfo(11753), new ItemInfo(11754) + #endregion + }; + + private int m_Page; + + + + public AddFurnPt3Gump() + : this(0) + { } + + public AddFurnPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFurnPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt4.cs new file mode 100644 index 000000000..7e1d7ee19 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Furniture/Furniture Pt4.cs @@ -0,0 +1,151 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFurnPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFurnPt4", AccessLevel.GameMaster, new CommandEventHandler(AddFurnPt4_OnCommand)); + } + + [Usage("AddFurnPt4")] + public static void AddFurnPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFurnPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(11755), new ItemInfo(11756), new ItemInfo(11757), new ItemInfo(11758), new ItemInfo(11759), new ItemInfo(11760), new ItemInfo(11761), + new ItemInfo(11762), new ItemInfo(11763), new ItemInfo(11764), new ItemInfo(11765), new ItemInfo(11766), new ItemInfo(12364), new ItemInfo(12365), + new ItemInfo(12368), new ItemInfo(12369), new ItemInfo(12370), new ItemInfo(12371), new ItemInfo(12372), new ItemInfo(12373), new ItemInfo(12374), + new ItemInfo(12375), new ItemInfo(12376), new ItemInfo(12377), new ItemInfo(12420), new ItemInfo(12421), new ItemInfo(12422), new ItemInfo(12423), + new ItemInfo(12424), new ItemInfo(12425), new ItemInfo(12426), new ItemInfo(12427), new ItemInfo(12428), new ItemInfo(12429), new ItemInfo(12430), + new ItemInfo(12431), new ItemInfo(12432), new ItemInfo(12433), new ItemInfo(12434), new ItemInfo(12435), new ItemInfo(12436), new ItemInfo(12437), + new ItemInfo(12438), new ItemInfo(12439), new ItemInfo(12440), new ItemInfo(12441), new ItemInfo(12442), new ItemInfo(12443), new ItemInfo(12511), + new ItemInfo(12512), new ItemInfo(12513), new ItemInfo(12514), new ItemInfo(12515), new ItemInfo(12516), new ItemInfo(12517), new ItemInfo(12518), + new ItemInfo(12698), new ItemInfo(12699), new ItemInfo(15754), new ItemInfo(15755), new ItemInfo(15756), new ItemInfo(15757), new ItemInfo(15758), + new ItemInfo(15759), new ItemInfo(15760), new ItemInfo(15761), new ItemInfo(15762), new ItemInfo(15763), new ItemInfo(16396), new ItemInfo(16397), + new ItemInfo(16398), new ItemInfo(16399), new ItemInfo(16400), new ItemInfo(16401), new ItemInfo(16402), new ItemInfo(16403), new ItemInfo(16404), + new ItemInfo(16405), new ItemInfo(16406), new ItemInfo(16407), new ItemInfo(16408), new ItemInfo(16409), new ItemInfo(16410), new ItemInfo(16411), + new ItemInfo(16412), new ItemInfo(16413), new ItemInfo(16414), new ItemInfo(16415), new ItemInfo(16416), new ItemInfo(16417), new ItemInfo(16419), + new ItemInfo(16420), new ItemInfo(16423), new ItemInfo(16424), new ItemInfo(16425), new ItemInfo(16426), new ItemInfo(16427), new ItemInfo(16428), + new ItemInfo(16429), new ItemInfo(16430), new ItemInfo(16431), new ItemInfo(16432), new ItemInfo(16433), new ItemInfo(16434), new ItemInfo(16435), + new ItemInfo(16436), new ItemInfo(16437), new ItemInfo(16438), new ItemInfo(16439), new ItemInfo(16440), new ItemInfo(16441), new ItemInfo(16442), + new ItemInfo(16443), new ItemInfo(16444), new ItemInfo(16445), new ItemInfo(16446), new ItemInfo(16447), new ItemInfo(16448), new ItemInfo(16449), + new ItemInfo(16450), new ItemInfo(16451), new ItemInfo(16452), new ItemInfo(16453), new ItemInfo(16454), new ItemInfo(17621), new ItemInfo(17622), + new ItemInfo(17623), new ItemInfo(17624), new ItemInfo(17625), new ItemInfo(17626), new ItemInfo(17627), new ItemInfo(17628), new ItemInfo(17629), + new ItemInfo(17630), new ItemInfo(17631), new ItemInfo(17632), new ItemInfo(17633), new ItemInfo(17634), new ItemInfo(17635), new ItemInfo(17636) + #endregion + }; + + private int m_Page; + + + + public AddFurnPt4Gump() + : this(0) + { } + + public AddFurnPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFurnPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt1.cs new file mode 100644 index 000000000..bfd407032 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt1.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGearPt1Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGearPt1", AccessLevel.GameMaster, new CommandEventHandler(AddGearPt1_OnCommand)); + } + + [Usage("AddGearPt1")] + + public static void AddGearPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGearPt1Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(643), new ItemInfo(644), new ItemInfo(645), new ItemInfo(646), new ItemInfo(647), new ItemInfo(648), new ItemInfo(649), new ItemInfo(650), + new ItemInfo(769), new ItemInfo(770), new ItemInfo(771), new ItemInfo(772), new ItemInfo(773), new ItemInfo(774), new ItemInfo(775), new ItemInfo(776), + new ItemInfo(777), new ItemInfo(778), new ItemInfo(779), new ItemInfo(780), new ItemInfo(781), new ItemInfo(782), new ItemInfo(784), new ItemInfo(785), + new ItemInfo(2301), new ItemInfo(2302), new ItemInfo(2303), new ItemInfo(2304), new ItemInfo(2305), new ItemInfo(2306), new ItemInfo(2307), new ItemInfo(2308), + new ItemInfo(2309), new ItemInfo(2310), new ItemInfo(2311), new ItemInfo(2312), new ItemInfo(2313), new ItemInfo(2314), new ItemInfo(2315), new ItemInfo(2316), + new ItemInfo(3827), new ItemInfo(3828), new ItemInfo(3829), new ItemInfo(3830), new ItemInfo(3831), new ItemInfo(3832), new ItemInfo(3833), new ItemInfo(3834), + new ItemInfo(3835), new ItemInfo(3836), new ItemInfo(3837), new ItemInfo(3838), new ItemInfo(3839), new ItemInfo(3840), new ItemInfo(3841), new ItemInfo(3842), + new ItemInfo(3843), new ItemInfo(3844), new ItemInfo(3845), new ItemInfo(3846), new ItemInfo(3847), new ItemInfo(3848), new ItemInfo(3849), new ItemInfo(3850), + new ItemInfo(3851), new ItemInfo(3852), new ItemInfo(3853), new ItemInfo(3854), new ItemInfo(3855), new ItemInfo(3856), new ItemInfo(3857), new ItemInfo(3858), + new ItemInfo(3859), new ItemInfo(3860), new ItemInfo(3861), new ItemInfo(3862), new ItemInfo(3863), new ItemInfo(3864), new ItemInfo(3865), new ItemInfo(3866), + new ItemInfo(3867), new ItemInfo(3868), new ItemInfo(3869), new ItemInfo(3870), new ItemInfo(3871), new ItemInfo(3872), new ItemInfo(3873), new ItemInfo(3874), + new ItemInfo(3875), new ItemInfo(3876), new ItemInfo(3877), new ItemInfo(3878), new ItemInfo(3879), new ItemInfo(3880), new ItemInfo(3881), new ItemInfo(3882), + new ItemInfo(3883), new ItemInfo(3884), new ItemInfo(3885), new ItemInfo(3886), new ItemInfo(3887), new ItemInfo(3888), new ItemInfo(3889), new ItemInfo(3890), + new ItemInfo(3891), new ItemInfo(3892), new ItemInfo(3893), new ItemInfo(3894), new ItemInfo(3895), new ItemInfo(3896), new ItemInfo(3897), new ItemInfo(3898), + new ItemInfo(3899), new ItemInfo(3900), new ItemInfo(3901), new ItemInfo(3902), new ItemInfo(3903), new ItemInfo(3904), new ItemInfo(3905), new ItemInfo(3906), + new ItemInfo(3907), new ItemInfo(3908), new ItemInfo(3909), new ItemInfo(3910), new ItemInfo(3911), new ItemInfo(3912), new ItemInfo(3913), new ItemInfo(3914), + new ItemInfo(3915), new ItemInfo(3916), new ItemInfo(3917), new ItemInfo(3918), new ItemInfo(3919), new ItemInfo(3920), new ItemInfo(3921), new ItemInfo(3922), + new ItemInfo(3923), new ItemInfo(3924), new ItemInfo(3925), new ItemInfo(3926), new ItemInfo(3927), new ItemInfo(3928), new ItemInfo(3929), new ItemInfo(3930), + new ItemInfo(3931), new ItemInfo(3932), new ItemInfo(3933), new ItemInfo(3934), new ItemInfo(3935), new ItemInfo(3936), new ItemInfo(3937), new ItemInfo(3938), + new ItemInfo(3939), new ItemInfo(3940), new ItemInfo(3947), new ItemInfo(5039), new ItemInfo(5040), new ItemInfo(5041), new ItemInfo(5042), new ItemInfo(5043), + new ItemInfo(5044), new ItemInfo(5045), new ItemInfo(5046), new ItemInfo(5047), new ItemInfo(5048), new ItemInfo(5049), new ItemInfo(5050), new ItemInfo(5051), + new ItemInfo(5052), new ItemInfo(5053), new ItemInfo(5054), new ItemInfo(5055), new ItemInfo(5056), new ItemInfo(5057), new ItemInfo(5058), new ItemInfo(5059) + #endregion + }; + + private int m_Page; + + + + public AddGearPt1Gump() + : this(0) + { } + + public AddGearPt1Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGearPt1Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt2.cs new file mode 100644 index 000000000..e1a76979c --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt2.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGearPt2Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGearPt2", AccessLevel.GameMaster, new CommandEventHandler(AddGearPt2_OnCommand)); + } + + [Usage("AddGearPt2")] + + public static void AddGearPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGearPt2Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(5060), new ItemInfo(5061), new ItemInfo(5062), new ItemInfo(5063), new ItemInfo(5064), new ItemInfo(5065), new ItemInfo(5066), new ItemInfo(5067), + new ItemInfo(5068), new ItemInfo(5069), new ItemInfo(5070), new ItemInfo(5071), new ItemInfo(5072), new ItemInfo(5073), new ItemInfo(5074), new ItemInfo(5075), + new ItemInfo(5076), new ItemInfo(5077), new ItemInfo(5078), new ItemInfo(5079), new ItemInfo(5080), new ItemInfo(5081), new ItemInfo(5082), new ItemInfo(5083), + new ItemInfo(5084), new ItemInfo(5085), new ItemInfo(5086), new ItemInfo(5087), new ItemInfo(5088), new ItemInfo(5089), new ItemInfo(5090), new ItemInfo(5091), + new ItemInfo(5092), new ItemInfo(5093), new ItemInfo(5094), new ItemInfo(5095), new ItemInfo(5096), new ItemInfo(5097), new ItemInfo(5098), new ItemInfo(5099), + new ItemInfo(5100), new ItemInfo(5101), new ItemInfo(5102), new ItemInfo(5103), new ItemInfo(5104), new ItemInfo(5105), new ItemInfo(5106), new ItemInfo(5108), + new ItemInfo(5109), new ItemInfo(5110), new ItemInfo(5111), new ItemInfo(5112), new ItemInfo(5113), new ItemInfo(5114), new ItemInfo(5115), new ItemInfo(5116), + new ItemInfo(5117), new ItemInfo(5118), new ItemInfo(5119), new ItemInfo(5120), new ItemInfo(5121), new ItemInfo(5122), new ItemInfo(5123), new ItemInfo(5124), + new ItemInfo(5125), new ItemInfo(5126), new ItemInfo(5127), new ItemInfo(5128), new ItemInfo(5129), new ItemInfo(5130), new ItemInfo(5131), new ItemInfo(5132), + new ItemInfo(5133), new ItemInfo(5134), new ItemInfo(5135), new ItemInfo(5136), new ItemInfo(5137), new ItemInfo(5138), new ItemInfo(5139), new ItemInfo(5140), + new ItemInfo(5141), new ItemInfo(5142), new ItemInfo(5143), new ItemInfo(5144), new ItemInfo(5145), new ItemInfo(5146), new ItemInfo(5147), new ItemInfo(5148), + new ItemInfo(5176), new ItemInfo(5177), new ItemInfo(5178), new ItemInfo(5179), new ItemInfo(5180), new ItemInfo(5181), new ItemInfo(5182), new ItemInfo(5183), + new ItemInfo(5184), new ItemInfo(5185), new ItemInfo(5186), new ItemInfo(5187), new ItemInfo(5198), new ItemInfo(5199), new ItemInfo(5200), new ItemInfo(5201), + new ItemInfo(5202), new ItemInfo(5203), new ItemInfo(5204), new ItemInfo(5205), new ItemInfo(5206), new ItemInfo(5207), new ItemInfo(5371), new ItemInfo(5372), + new ItemInfo(5373), new ItemInfo(5374), new ItemInfo(5422), new ItemInfo(5423), new ItemInfo(5424), new ItemInfo(5425), new ItemInfo(5429), new ItemInfo(5430), + new ItemInfo(5431), new ItemInfo(5432), new ItemInfo(5433), new ItemInfo(5434), new ItemInfo(5435), new ItemInfo(5436), new ItemInfo(5437), new ItemInfo(5438), + new ItemInfo(5439), new ItemInfo(5440), new ItemInfo(5441), new ItemInfo(5442), new ItemInfo(5443), new ItemInfo(5444), new ItemInfo(5445), new ItemInfo(5446), + new ItemInfo(5447), new ItemInfo(5448), new ItemInfo(5449), new ItemInfo(5450), new ItemInfo(5451), new ItemInfo(5452), new ItemInfo(5899), new ItemInfo(5900), + new ItemInfo(5901), new ItemInfo(5902), new ItemInfo(5903), new ItemInfo(5904), new ItemInfo(5905), new ItemInfo(5906), new ItemInfo(5907), new ItemInfo(5908), + new ItemInfo(5909), new ItemInfo(5910), new ItemInfo(5911), new ItemInfo(5912), new ItemInfo(5913), new ItemInfo(5914), new ItemInfo(5915), new ItemInfo(5916), + new ItemInfo(7026), new ItemInfo(7027), new ItemInfo(7028), new ItemInfo(7029), new ItemInfo(7030), new ItemInfo(7031), new ItemInfo(7032), new ItemInfo(7033), + new ItemInfo(7034), new ItemInfo(7035), new ItemInfo(7107), new ItemInfo(7108), new ItemInfo(7109), new ItemInfo(7110), new ItemInfo(7111), new ItemInfo(7168) + #endregion + }; + + private int m_Page; + + + + public AddGearPt2Gump() + : this(0) + { } + + public AddGearPt2Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGearPt2Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt3.cs new file mode 100644 index 000000000..f2a10ef65 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt3.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGearPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGearPt3", AccessLevel.GameMaster, new CommandEventHandler(AddGearPt3_OnCommand)); + } + + [Usage("AddGearPt3")] + + public static void AddGearPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGearPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(7169), new ItemInfo(7170), new ItemInfo(7171), new ItemInfo(7172), new ItemInfo(7173), new ItemInfo(7174), new ItemInfo(7175), new ItemInfo(7176), + new ItemInfo(7177), new ItemInfo(7178), new ItemInfo(7179), new ItemInfo(7180), new ItemInfo(7181), new ItemInfo(7933), new ItemInfo(7934), new ItemInfo(7935), + new ItemInfo(7936), new ItemInfo(7937), new ItemInfo(7938), new ItemInfo(7939), new ItemInfo(7940), new ItemInfo(7941), new ItemInfo(7942), new ItemInfo(7943), + new ItemInfo(7944), new ItemInfo(7945), new ItemInfo(7946), new ItemInfo(7947), new ItemInfo(7948), new ItemInfo(8059), new ItemInfo(8060), new ItemInfo(8095), + new ItemInfo(8096), new ItemInfo(8097), new ItemInfo(8098), new ItemInfo(8189), new ItemInfo(8190), new ItemInfo(8965), new ItemInfo(8966), new ItemInfo(8967), + new ItemInfo(8968), new ItemInfo(8969), new ItemInfo(8970), new ItemInfo(8971), new ItemInfo(8972), new ItemInfo(8973), new ItemInfo(8974), new ItemInfo(8975), + new ItemInfo(8976), new ItemInfo(9556), new ItemInfo(9557), new ItemInfo(9558), new ItemInfo(9559), new ItemInfo(9560), new ItemInfo(9561), new ItemInfo(9562), + new ItemInfo(9563), new ItemInfo(9564), new ItemInfo(9565), new ItemInfo(9566), new ItemInfo(9567), new ItemInfo(9568), new ItemInfo(9569), new ItemInfo(9570), + new ItemInfo(9571), new ItemInfo(9572), new ItemInfo(9573), new ItemInfo(9574), new ItemInfo(9575), new ItemInfo(9576), new ItemInfo(9577), new ItemInfo(9578), + new ItemInfo(9579), new ItemInfo(9580), new ItemInfo(9581), new ItemInfo(9582), new ItemInfo(9583), new ItemInfo(9584), new ItemInfo(9585), new ItemInfo(9586), + new ItemInfo(9587), new ItemInfo(9588), new ItemInfo(9589), new ItemInfo(9590), new ItemInfo(9591), new ItemInfo(9592), new ItemInfo(9593), new ItemInfo(9594), + new ItemInfo(9595), new ItemInfo(9596), new ItemInfo(9597), new ItemInfo(9598), new ItemInfo(9599), new ItemInfo(9700), new ItemInfo(9701), new ItemInfo(9702), + new ItemInfo(9703), new ItemInfo(9704), new ItemInfo(9705), new ItemInfo(9706), new ItemInfo(9707), new ItemInfo(9708), new ItemInfo(9709), new ItemInfo(9710), + new ItemInfo(9711), new ItemInfo(9712), new ItemInfo(9713), new ItemInfo(9714), new ItemInfo(9715), new ItemInfo(9793), new ItemInfo(9794), new ItemInfo(9795), + new ItemInfo(9796), new ItemInfo(9797), new ItemInfo(9798), new ItemInfo(9799), new ItemInfo(9800), new ItemInfo(9801), new ItemInfo(9802), new ItemInfo(9803), + new ItemInfo(9804), new ItemInfo(9805), new ItemInfo(9806), new ItemInfo(9807), new ItemInfo(9808), new ItemInfo(9809), new ItemInfo(9810), new ItemInfo(9811), + new ItemInfo(9812), new ItemInfo(9813), new ItemInfo(9814), new ItemInfo(9815), new ItemInfo(9816), new ItemInfo(9817), new ItemInfo(9818), new ItemInfo(9819), + new ItemInfo(9820), new ItemInfo(9821), new ItemInfo(9822), new ItemInfo(9823), new ItemInfo(9824), new ItemInfo(9825), new ItemInfo(9826), new ItemInfo(9827), + new ItemInfo(9828), new ItemInfo(9829), new ItemInfo(9830), new ItemInfo(9831), new ItemInfo(9832), new ItemInfo(9835), new ItemInfo(9836), new ItemInfo(9837), + new ItemInfo(9838), new ItemInfo(9841), new ItemInfo(9842), new ItemInfo(9843), new ItemInfo(9844), new ItemInfo(9847), new ItemInfo(9848), new ItemInfo(9849), + new ItemInfo(9850), new ItemInfo(9851), new ItemInfo(9852), new ItemInfo(9853), new ItemInfo(9854), new ItemInfo(9855), new ItemInfo(9856), new ItemInfo(9857), + new ItemInfo(9858), new ItemInfo(9859), new ItemInfo(9860), new ItemInfo(9861), new ItemInfo(9862), new ItemInfo(9863), new ItemInfo(9865), new ItemInfo(9866) + #endregion + }; + + private int m_Page; + + + + public AddGearPt3Gump() + : this(0) + { } + + public AddGearPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGearPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt4.cs new file mode 100644 index 000000000..76d7b0625 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt4.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGearPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGearPt4", AccessLevel.GameMaster, new CommandEventHandler(AddGearPt4_OnCommand)); + } + + [Usage("AddGearPt4")] + + public static void AddGearPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGearPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(9867), new ItemInfo(9868), new ItemInfo(9869), new ItemInfo(9870), new ItemInfo(9871), new ItemInfo(9872), new ItemInfo(9873), new ItemInfo(9874), + new ItemInfo(9885), new ItemInfo(9886), new ItemInfo(9889), new ItemInfo(9890), new ItemInfo(9891), new ItemInfo(9892), new ItemInfo(9900), new ItemInfo(9901), + new ItemInfo(9902), new ItemInfo(9903), new ItemInfo(9904), new ItemInfo(9905), new ItemInfo(9906), new ItemInfo(9907), new ItemInfo(9908), new ItemInfo(9909), + new ItemInfo(9910), new ItemInfo(9914), new ItemInfo(9915), new ItemInfo(9916), new ItemInfo(9917), new ItemInfo(9918), new ItemInfo(9919), new ItemInfo(9920), + new ItemInfo(9921), new ItemInfo(9922), new ItemInfo(9923), new ItemInfo(9924), new ItemInfo(9925), new ItemInfo(9926), new ItemInfo(9927), new ItemInfo(9928), + new ItemInfo(9929), new ItemInfo(9930), new ItemInfo(9931), new ItemInfo(9932), new ItemInfo(9933), new ItemInfo(9934), new ItemInfo(9935), new ItemInfo(10100), + new ItemInfo(10101), new ItemInfo(10102), new ItemInfo(10103), new ItemInfo(10104), new ItemInfo(10105), new ItemInfo(10106), new ItemInfo(10107), new ItemInfo(10108), + new ItemInfo(10109), new ItemInfo(10110), new ItemInfo(10111), new ItemInfo(10112), new ItemInfo(10113), new ItemInfo(10114), new ItemInfo(10115), new ItemInfo(10116), + new ItemInfo(10117), new ItemInfo(10118), new ItemInfo(10119), new ItemInfo(10120), new ItemInfo(10121), new ItemInfo(10122), new ItemInfo(10123), new ItemInfo(10125), + new ItemInfo(10126), new ItemInfo(10127), new ItemInfo(10128), new ItemInfo(10129), new ItemInfo(10130), new ItemInfo(10131), new ItemInfo(10132), new ItemInfo(10134), + new ItemInfo(10135), new ItemInfo(10136), new ItemInfo(10137), new ItemInfo(10138), new ItemInfo(10139), new ItemInfo(10140), new ItemInfo(10141), new ItemInfo(10144), + new ItemInfo(10145), new ItemInfo(10146), new ItemInfo(10147), new ItemInfo(10148), new ItemInfo(10149), new ItemInfo(10150), new ItemInfo(10151), new ItemInfo(10152), + new ItemInfo(10153), new ItemInfo(10154), new ItemInfo(10155), new ItemInfo(10156), new ItemInfo(10157), new ItemInfo(10158), new ItemInfo(10159), new ItemInfo(10175), + new ItemInfo(10176), new ItemInfo(10177), new ItemInfo(10178), new ItemInfo(10179), new ItemInfo(10180), new ItemInfo(10181), new ItemInfo(10182), new ItemInfo(10183), + new ItemInfo(10184), new ItemInfo(10185), new ItemInfo(10186), new ItemInfo(10187), new ItemInfo(10188), new ItemInfo(10189), new ItemInfo(10190), new ItemInfo(10191), + new ItemInfo(10192), new ItemInfo(10193), new ItemInfo(10194), new ItemInfo(10195), new ItemInfo(10196), new ItemInfo(10197), new ItemInfo(10198), new ItemInfo(10200), + new ItemInfo(10201), new ItemInfo(10202), new ItemInfo(10203), new ItemInfo(10204), new ItemInfo(10205), new ItemInfo(10206), new ItemInfo(10207), new ItemInfo(10209), + new ItemInfo(10210), new ItemInfo(10211), new ItemInfo(10212), new ItemInfo(10213), new ItemInfo(10214), new ItemInfo(10215), new ItemInfo(10216), new ItemInfo(10219), + new ItemInfo(10220), new ItemInfo(10221), new ItemInfo(10222), new ItemInfo(10223), new ItemInfo(10224), new ItemInfo(10225), new ItemInfo(10226), new ItemInfo(10227), + new ItemInfo(10228), new ItemInfo(10229), new ItemInfo(10230), new ItemInfo(10231), new ItemInfo(10232), new ItemInfo(10233), new ItemInfo(10234), new ItemInfo(10244), + new ItemInfo(10245), new ItemInfo(10246), new ItemInfo(10247), new ItemInfo(10248), new ItemInfo(10249), new ItemInfo(11009), new ItemInfo(11010), new ItemInfo(11011), + new ItemInfo(11012), new ItemInfo(11013), new ItemInfo(11014), new ItemInfo(11015), new ItemInfo(11016), new ItemInfo(11017), new ItemInfo(11018), new ItemInfo(11019) + #endregion + }; + + private int m_Page; + + + + public AddGearPt4Gump() + : this(0) + { } + + public AddGearPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGearPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt5.cs new file mode 100644 index 000000000..c2a402d77 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Gear/GearPt5.cs @@ -0,0 +1,162 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGearPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGearPt5", AccessLevel.GameMaster, new CommandEventHandler(AddGearPt5_OnCommand)); + } + + [Usage("AddGearPt5")] + + public static void AddGearPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGearPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(11020), new ItemInfo(11021), new ItemInfo(11022), new ItemInfo(11023), new ItemInfo(11024), new ItemInfo(11025), new ItemInfo(11026), new ItemInfo(11027), + new ItemInfo(11111), new ItemInfo(11112), new ItemInfo(11113), new ItemInfo(11114), new ItemInfo(11115), new ItemInfo(11116), new ItemInfo(11117), new ItemInfo(11118), + new ItemInfo(11119), new ItemInfo(11120), new ItemInfo(11121), new ItemInfo(11122), new ItemInfo(11123), new ItemInfo(11124), new ItemInfo(11125), new ItemInfo(11126), + new ItemInfo(11127), new ItemInfo(11128), new ItemInfo(11129), new ItemInfo(11550), new ItemInfo(11551), new ItemInfo(11552), new ItemInfo(11553), new ItemInfo(11554), + new ItemInfo(11555), new ItemInfo(11556), new ItemInfo(11557), new ItemInfo(11558), new ItemInfo(11559), new ItemInfo(11560), new ItemInfo(11561), new ItemInfo(11562), + new ItemInfo(11563), new ItemInfo(11564), new ItemInfo(11565), new ItemInfo(11566), new ItemInfo(11567), new ItemInfo(11568), new ItemInfo(11569), new ItemInfo(11570), + new ItemInfo(11571), new ItemInfo(11572), new ItemInfo(11573), new ItemInfo(12215), new ItemInfo(12216), new ItemInfo(12217), new ItemInfo(12218), new ItemInfo(12227), + new ItemInfo(12228), new ItemInfo(12229), new ItemInfo(12230), new ItemInfo(12231), new ItemInfo(12232), new ItemInfo(12233), new ItemInfo(12234), new ItemInfo(12235), + new ItemInfo(12638), new ItemInfo(12639), new ItemInfo(12640), new ItemInfo(12641), new ItemInfo(12642), new ItemInfo(12643), new ItemInfo(12644), new ItemInfo(12645), + new ItemInfo(12646), new ItemInfo(12647), new ItemInfo(12648), new ItemInfo(12649), new ItemInfo(12650), new ItemInfo(12651), new ItemInfo(12652), new ItemInfo(12653), + new ItemInfo(12654), new ItemInfo(12655), new ItemInfo(12656), new ItemInfo(12657), new ItemInfo(12658), new ItemInfo(12659), new ItemInfo(12660), new ItemInfo(12661), + new ItemInfo(12662), new ItemInfo(12663), new ItemInfo(12664), new ItemInfo(12665), new ItemInfo(12666), new ItemInfo(12667), new ItemInfo(12668), new ItemInfo(12669), + new ItemInfo(12670), new ItemInfo(12671), new ItemInfo(12672), new ItemInfo(12673), new ItemInfo(16384), new ItemInfo(16385), new ItemInfo(16386), new ItemInfo(16387), + new ItemInfo(16455), new ItemInfo(16456), new ItemInfo(16457), new ItemInfo(16458), new ItemInfo(16459), new ItemInfo(16460), new ItemInfo(16461), new ItemInfo(16462), + new ItemInfo(16463), new ItemInfo(16464), new ItemInfo(16465), new ItemInfo(16466), new ItemInfo(16467), new ItemInfo(16468), new ItemInfo(16469), new ItemInfo(16470), + new ItemInfo(16471), new ItemInfo(16472), new ItemInfo(16473), new ItemInfo(16474), new ItemInfo(16475), new ItemInfo(16476), new ItemInfo(16477), new ItemInfo(16478), + new ItemInfo(16479), new ItemInfo(16480), new ItemInfo(16481), new ItemInfo(16482), new ItemInfo(16483), new ItemInfo(16484), new ItemInfo(16485), new ItemInfo(16486), + new ItemInfo(16487), new ItemInfo(16488), new ItemInfo(16489), new ItemInfo(16490), new ItemInfo(16491), new ItemInfo(16492), new ItemInfo(16493), new ItemInfo(16494), + new ItemInfo(16495), new ItemInfo(16496), new ItemInfo(16497), new ItemInfo(16498), new ItemInfo(16499), new ItemInfo(16500), new ItemInfo(16501), new ItemInfo(16502), + new ItemInfo(16856), new ItemInfo(16857), new ItemInfo(16892), new ItemInfo(16893), new ItemInfo(16894), new ItemInfo(16895), new ItemInfo(16896), new ItemInfo(16897), + new ItemInfo(16898), new ItemInfo(16899), new ItemInfo(16900), new ItemInfo(16901), new ItemInfo(16902), new ItemInfo(16903), new ItemInfo(16904), new ItemInfo(16905), + new ItemInfo(16906), new ItemInfo(16907), new ItemInfo(16908), new ItemInfo(16909), new ItemInfo(16910), new ItemInfo(16911), new ItemInfo(16912), new ItemInfo(16913), + new ItemInfo(16914), new ItemInfo(16915), new ItemInfo(16936), new ItemInfo(16937), new ItemInfo(16938), new ItemInfo(16939), new ItemInfo(16940), new ItemInfo(16941), + new ItemInfo(16942), new ItemInfo(16943), new ItemInfo(16944), new ItemInfo(16945), new ItemInfo(17790), new ItemInfo(17791), new ItemInfo(17792), new ItemInfo(17793), + new ItemInfo(17828), new ItemInfo(17829), new ItemInfo(17830), new ItemInfo(17831), new ItemInfo(17841), new ItemInfo(17843), new ItemInfo(18100), new ItemInfo(18101), + new ItemInfo(18606), new ItemInfo(18607), new ItemInfo(18608), new ItemInfo(18609), new ItemInfo(18610), new ItemInfo(18611), new ItemInfo(18612), new ItemInfo(18613), + new ItemInfo(18614), new ItemInfo(18615), new ItemInfo(18616), new ItemInfo(18617), new ItemInfo(18618), new ItemInfo(18619), new ItemInfo(18620), new ItemInfo(18621), + new ItemInfo(18622), new ItemInfo(18623), new ItemInfo(18624), new ItemInfo(18625), new ItemInfo(18626), new ItemInfo(18627), new ItemInfo(18628), new ItemInfo(18629), + new ItemInfo(18630), new ItemInfo(18631), new ItemInfo(18632), new ItemInfo(18633), new ItemInfo(18634), new ItemInfo(18635), new ItemInfo(18636), new ItemInfo(18637), + new ItemInfo(18638), new ItemInfo(18639), new ItemInfo(18640), new ItemInfo(18641), new ItemInfo(18642), new ItemInfo(18643), new ItemInfo(20696), new ItemInfo(20697) + #endregion + }; + + private int m_Page; + + + + public AddGearPt5Gump() + : this(0) + { } + + public AddGearPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGearPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 1.cs new file mode 100644 index 000000000..711c618c4 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 1.cs @@ -0,0 +1,65 @@ +/* + * Oz'Thoth's Static Tool - Misc Part 1 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting miscellaneous static items (Part 1). +/// +public sealed class AddMiscPt1Gump : StaticItemGumpBase +{ + private static readonly int[] MiscItemIds = + [ + 2, 3, 4, 5, 525, 526, 540, 570, 571, + 572, 573, 574, 575, 576, 587, 604, 605, 606, + 607, 608, 609, 610, 611, 612, 613, 614, 615, + 616, 617, 618, 619, 620, 621, 622, 623, 624, + 625, 626, 627, 628, 629, 630, 637, 638, 639, + 640, 730, 749, 750, 751, 752, 753, 754, 755, + 756, 882, 883, 884, 885, 886, 887, 888, 889, + 890, 891, 892, 893, 930, 931, 932, 933, 934, + 935, 936, 937, 938, 939, 940, 941, 942, 943, + 944, 945, 946, 995, 996, 997, 998, 999, 1027, + 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, + 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, + 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, + 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, + 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, + 1073, 1074, 1075, 1076, 1077, 1113, 1114, 1115, 1116, + 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, + 1126, 1127, 1130, 1131, 1132, 1133, 1134, 1135, 1136, + 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, + 1146, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, + 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, + 1164, 1165, 1166, 1167, 1326, 1360, 1361, 1362, 1363, + 1493, 1517, 1518, 1618, 1619, 1620, 1621, 1622, 1623, + 1624, 1625, 1626, 1627, 1628, 1629, 1653, 1654, 1655, + 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 1664 + ]; + + protected override ReadOnlySpan ItemIds => MiscItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddMiscPt1Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddMiscPt1", AccessLevel.GameMaster, AddMiscPt1_OnCommand); + } + + [Usage("AddMiscPt1")] + [Description("Displays a menu for adding miscellaneous statics (Part 1).")] + private static void AddMiscPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt1Gump()); + } + + public AddMiscPt1Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 10.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 10.cs new file mode 100644 index 000000000..0905f4bfb --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 10.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt10Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt10", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt10_OnCommand)); + } + + [Usage("AddMiscPt10")] + + public static void AddMiscPt10_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt10Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(5163), new ItemInfo(5188), new ItemInfo(5189), new ItemInfo(5190), new ItemInfo(5191), new ItemInfo(5192), new ItemInfo(5193), new ItemInfo(5194), new ItemInfo(5195), + new ItemInfo(5196), new ItemInfo(5197), new ItemInfo(5208), new ItemInfo(5209), new ItemInfo(5210), new ItemInfo(5211), new ItemInfo(5212), new ItemInfo(5213), new ItemInfo(5214), + new ItemInfo(5215), new ItemInfo(5216), new ItemInfo(5217), new ItemInfo(5218), new ItemInfo(5219), new ItemInfo(5220), new ItemInfo(5221), new ItemInfo(5222), new ItemInfo(5223), + new ItemInfo(5224), new ItemInfo(5225), new ItemInfo(5226), new ItemInfo(5227), new ItemInfo(5228), new ItemInfo(5229), new ItemInfo(5230), new ItemInfo(5231), new ItemInfo(5232), + new ItemInfo(5233), new ItemInfo(5234), new ItemInfo(5235), new ItemInfo(5236), new ItemInfo(5237), new ItemInfo(5238), new ItemInfo(5239), new ItemInfo(5240), new ItemInfo(5241), + new ItemInfo(5242), new ItemInfo(5243), new ItemInfo(5244), new ItemInfo(5245), new ItemInfo(5246), new ItemInfo(5247), new ItemInfo(5248), new ItemInfo(5249), new ItemInfo(5250), + new ItemInfo(5251), new ItemInfo(5252), new ItemInfo(5253), new ItemInfo(5254), new ItemInfo(5255), new ItemInfo(5256), new ItemInfo(5257), new ItemInfo(5258), new ItemInfo(5259), + new ItemInfo(5260), new ItemInfo(5261), new ItemInfo(5262), new ItemInfo(5263), new ItemInfo(5264), new ItemInfo(5265), new ItemInfo(5266), new ItemInfo(5267), new ItemInfo(5268), + new ItemInfo(5269), new ItemInfo(5270), new ItemInfo(5271), new ItemInfo(5272), new ItemInfo(5273), new ItemInfo(5274), new ItemInfo(5275), new ItemInfo(5276), new ItemInfo(5277), + new ItemInfo(5278), new ItemInfo(5279), new ItemInfo(5280), new ItemInfo(5281), new ItemInfo(5282), new ItemInfo(5283), new ItemInfo(5284), new ItemInfo(5285), new ItemInfo(5286), + new ItemInfo(5287), new ItemInfo(5288), new ItemInfo(5289), new ItemInfo(5290), new ItemInfo(5291), new ItemInfo(5292), new ItemInfo(5293), new ItemInfo(5294), new ItemInfo(5295), + new ItemInfo(5296), new ItemInfo(5297), new ItemInfo(5298), new ItemInfo(5299), new ItemInfo(5300), new ItemInfo(5301), new ItemInfo(5302), new ItemInfo(5303), new ItemInfo(5304), + new ItemInfo(5305), new ItemInfo(5306), new ItemInfo(5307), new ItemInfo(5308), new ItemInfo(5309), new ItemInfo(5310), new ItemInfo(5311), new ItemInfo(5312), new ItemInfo(5313), + new ItemInfo(5314), new ItemInfo(5315), new ItemInfo(5316), new ItemInfo(5317), new ItemInfo(5318), new ItemInfo(5319), new ItemInfo(5320), new ItemInfo(5321), new ItemInfo(5322), + new ItemInfo(5323), new ItemInfo(5324), new ItemInfo(5325), new ItemInfo(5326), new ItemInfo(5327), new ItemInfo(5328), new ItemInfo(5329), new ItemInfo(5330), new ItemInfo(5331), + new ItemInfo(5332), new ItemInfo(5333), new ItemInfo(5334), new ItemInfo(5335), new ItemInfo(5336), new ItemInfo(5337), new ItemInfo(5338), new ItemInfo(5339), new ItemInfo(5340), + new ItemInfo(5341), new ItemInfo(5342), new ItemInfo(5343), new ItemInfo(5344), new ItemInfo(5345), new ItemInfo(5346), new ItemInfo(5347), new ItemInfo(5348), new ItemInfo(5349), + new ItemInfo(5350), new ItemInfo(5351), new ItemInfo(5352), new ItemInfo(5353), new ItemInfo(5354), new ItemInfo(5355), new ItemInfo(5356), new ItemInfo(5357), new ItemInfo(5358), + new ItemInfo(5359), new ItemInfo(5360), new ItemInfo(5361), new ItemInfo(5362), new ItemInfo(5363), new ItemInfo(5364), new ItemInfo(5365), new ItemInfo(5366), new ItemInfo(5367), + new ItemInfo(5368), new ItemInfo(5369), new ItemInfo(5370), new ItemInfo(5375), new ItemInfo(5376), new ItemInfo(5377), new ItemInfo(5378), new ItemInfo(5379), new ItemInfo(5380), + new ItemInfo(5381), new ItemInfo(5382), new ItemInfo(5383), new ItemInfo(5384), new ItemInfo(5385), new ItemInfo(5386), new ItemInfo(5387), new ItemInfo(5388), new ItemInfo(5389), + new ItemInfo(5390), new ItemInfo(5391), new ItemInfo(5392), new ItemInfo(5393), new ItemInfo(5394), new ItemInfo(5395), new ItemInfo(5396), new ItemInfo(5397), new ItemInfo(5398), + new ItemInfo(5399), new ItemInfo(5400), new ItemInfo(5401), new ItemInfo(5402), new ItemInfo(5403), new ItemInfo(5404), new ItemInfo(5405), new ItemInfo(5406), new ItemInfo(5407), + new ItemInfo(5408), new ItemInfo(5409), new ItemInfo(5410), new ItemInfo(5411), new ItemInfo(5412), new ItemInfo(5413), new ItemInfo(5414), new ItemInfo(5415), new ItemInfo(5416), + new ItemInfo(5417), new ItemInfo(5418), new ItemInfo(5419), new ItemInfo(5420), new ItemInfo(5421), new ItemInfo(5453), new ItemInfo(5454), new ItemInfo(5455), new ItemInfo(5456) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt10Gump() + : this(0) + { } + + public AddMiscPt10Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt10Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 11.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 11.cs new file mode 100644 index 000000000..0718bd3c2 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 11.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt11Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt11", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt11_OnCommand)); + } + + [Usage("AddMiscPt11")] + + public static void AddMiscPt11_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt11Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(5457), new ItemInfo(5458), new ItemInfo(5459), new ItemInfo(5460), new ItemInfo(5461), new ItemInfo(5462), new ItemInfo(5463), new ItemInfo(5464), new ItemInfo(5465), + new ItemInfo(5466), new ItemInfo(5467), new ItemInfo(5468), new ItemInfo(5469), new ItemInfo(5470), new ItemInfo(5471), new ItemInfo(5472), new ItemInfo(5473), new ItemInfo(5474), + new ItemInfo(5475), new ItemInfo(5476), new ItemInfo(5477), new ItemInfo(5478), new ItemInfo(5479), new ItemInfo(5480), new ItemInfo(5481), new ItemInfo(5482), new ItemInfo(5483), + new ItemInfo(5484), new ItemInfo(5485), new ItemInfo(5486), new ItemInfo(5487), new ItemInfo(5488), new ItemInfo(5489), new ItemInfo(5490), new ItemInfo(5491), new ItemInfo(5492), + new ItemInfo(5493), new ItemInfo(5494), new ItemInfo(5495), new ItemInfo(5496), new ItemInfo(5497), new ItemInfo(5498), new ItemInfo(5499), new ItemInfo(5500), new ItemInfo(5501), + new ItemInfo(5502), new ItemInfo(5503), new ItemInfo(5504), new ItemInfo(5505), new ItemInfo(5506), new ItemInfo(5507), new ItemInfo(5508), new ItemInfo(5509), new ItemInfo(5510), + new ItemInfo(5511), new ItemInfo(5512), new ItemInfo(5513), new ItemInfo(5514), new ItemInfo(5515), new ItemInfo(5516), new ItemInfo(5517), new ItemInfo(5518), new ItemInfo(5519), + new ItemInfo(5520), new ItemInfo(5521), new ItemInfo(5522), new ItemInfo(5523), new ItemInfo(5524), new ItemInfo(5525), new ItemInfo(5526), new ItemInfo(5527), new ItemInfo(5528), + new ItemInfo(5529), new ItemInfo(5530), new ItemInfo(5531), new ItemInfo(5532), new ItemInfo(5533), new ItemInfo(5534), new ItemInfo(5535), new ItemInfo(5536), new ItemInfo(5537), + new ItemInfo(5538), new ItemInfo(5539), new ItemInfo(5540), new ItemInfo(5541), new ItemInfo(5542), new ItemInfo(5543), new ItemInfo(5544), new ItemInfo(5545), new ItemInfo(5546), + new ItemInfo(5547), new ItemInfo(5548), new ItemInfo(5549), new ItemInfo(5550), new ItemInfo(5551), new ItemInfo(5552), new ItemInfo(5553), new ItemInfo(5554), new ItemInfo(5555), + new ItemInfo(5556), new ItemInfo(5557), new ItemInfo(5558), new ItemInfo(5559), new ItemInfo(5560), new ItemInfo(5561), new ItemInfo(5562), new ItemInfo(5563), new ItemInfo(5564), + new ItemInfo(5565), new ItemInfo(5566), new ItemInfo(5567), new ItemInfo(5568), new ItemInfo(5569), new ItemInfo(5570), new ItemInfo(5571), new ItemInfo(5572), new ItemInfo(5573), + new ItemInfo(5574), new ItemInfo(5575), new ItemInfo(5576), new ItemInfo(5577), new ItemInfo(5578), new ItemInfo(5579), new ItemInfo(5580), new ItemInfo(5581), new ItemInfo(5582), + new ItemInfo(5583), new ItemInfo(5584), new ItemInfo(5585), new ItemInfo(5586), new ItemInfo(5587), new ItemInfo(5588), new ItemInfo(5589), new ItemInfo(5590), new ItemInfo(5591), + new ItemInfo(5592), new ItemInfo(5593), new ItemInfo(5594), new ItemInfo(5595), new ItemInfo(5596), new ItemInfo(5597), new ItemInfo(5598), new ItemInfo(5599), new ItemInfo(5600), + new ItemInfo(5601), new ItemInfo(5602), new ItemInfo(5603), new ItemInfo(5604), new ItemInfo(5605), new ItemInfo(5606), new ItemInfo(5607), new ItemInfo(5608), new ItemInfo(5609), + new ItemInfo(5610), new ItemInfo(5611), new ItemInfo(5612), new ItemInfo(5613), new ItemInfo(5614), new ItemInfo(5615), new ItemInfo(5616), new ItemInfo(5617), new ItemInfo(5618), + new ItemInfo(5619), new ItemInfo(5620), new ItemInfo(5621), new ItemInfo(5622), new ItemInfo(5623), new ItemInfo(5624), new ItemInfo(5625), new ItemInfo(5626), new ItemInfo(5627), + new ItemInfo(5645), new ItemInfo(5646), new ItemInfo(5647), new ItemInfo(5648), new ItemInfo(5649), new ItemInfo(5650), new ItemInfo(5651), new ItemInfo(5652), new ItemInfo(5653), + new ItemInfo(5654), new ItemInfo(5655), new ItemInfo(5656), new ItemInfo(5657), new ItemInfo(5658), new ItemInfo(5659), new ItemInfo(5660), new ItemInfo(5661), new ItemInfo(5662), + new ItemInfo(5663), new ItemInfo(5664), new ItemInfo(5665), new ItemInfo(5666), new ItemInfo(5667), new ItemInfo(5668), new ItemInfo(5669), new ItemInfo(5670), new ItemInfo(5671), + new ItemInfo(5672), new ItemInfo(5673), new ItemInfo(5674), new ItemInfo(5675), new ItemInfo(5676), new ItemInfo(5677), new ItemInfo(5678), new ItemInfo(5679), new ItemInfo(5680), + new ItemInfo(5681), new ItemInfo(5682), new ItemInfo(5683), new ItemInfo(5684), new ItemInfo(5685), new ItemInfo(5686), new ItemInfo(5687), new ItemInfo(5688), new ItemInfo(5689), + new ItemInfo(5690), new ItemInfo(5691), new ItemInfo(5692), new ItemInfo(5693), new ItemInfo(5694), new ItemInfo(5695), new ItemInfo(5696), new ItemInfo(5697), new ItemInfo(5698) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt11Gump() + : this(0) + { } + + public AddMiscPt11Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt11Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 12.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 12.cs new file mode 100644 index 000000000..9c58615a6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 12.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt12Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt12", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt12_OnCommand)); + } + + [Usage("AddMiscPt12")] + + public static void AddMiscPt12_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt12Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(5699), new ItemInfo(5700), new ItemInfo(5701), new ItemInfo(5702), new ItemInfo(5703), new ItemInfo(5704), new ItemInfo(5705), new ItemInfo(5706), new ItemInfo(5707), + new ItemInfo(5708), new ItemInfo(5709), new ItemInfo(5710), new ItemInfo(5711), new ItemInfo(5712), new ItemInfo(5713), new ItemInfo(5714), new ItemInfo(5715), new ItemInfo(5716), + new ItemInfo(5717), new ItemInfo(5718), new ItemInfo(5719), new ItemInfo(5720), new ItemInfo(5721), new ItemInfo(5722), new ItemInfo(5723), new ItemInfo(5724), new ItemInfo(5725), + new ItemInfo(5726), new ItemInfo(5727), new ItemInfo(5728), new ItemInfo(5729), new ItemInfo(5730), new ItemInfo(5731), new ItemInfo(5732), new ItemInfo(5733), new ItemInfo(5734), + new ItemInfo(5735), new ItemInfo(5736), new ItemInfo(5737), new ItemInfo(5738), new ItemInfo(5739), new ItemInfo(5740), new ItemInfo(5741), new ItemInfo(5742), new ItemInfo(5743), + new ItemInfo(5744), new ItemInfo(5745), new ItemInfo(5746), new ItemInfo(5747), new ItemInfo(5748), new ItemInfo(5749), new ItemInfo(5750), new ItemInfo(5751), new ItemInfo(5752), + new ItemInfo(5753), new ItemInfo(5754), new ItemInfo(5755), new ItemInfo(5756), new ItemInfo(5757), new ItemInfo(5758), new ItemInfo(5759), new ItemInfo(5760), new ItemInfo(5761), + new ItemInfo(5762), new ItemInfo(5763), new ItemInfo(5764), new ItemInfo(5765), new ItemInfo(5766), new ItemInfo(5767), new ItemInfo(5768), new ItemInfo(5769), new ItemInfo(5770), + new ItemInfo(5771), new ItemInfo(5772), new ItemInfo(5773), new ItemInfo(5774), new ItemInfo(5775), new ItemInfo(5776), new ItemInfo(5777), new ItemInfo(5778), new ItemInfo(5779), + new ItemInfo(5780), new ItemInfo(5781), new ItemInfo(5782), new ItemInfo(5783), new ItemInfo(5784), new ItemInfo(5785), new ItemInfo(5786), new ItemInfo(5787), new ItemInfo(5788), + new ItemInfo(5789), new ItemInfo(5790), new ItemInfo(5791), new ItemInfo(5792), new ItemInfo(5793), new ItemInfo(5794), new ItemInfo(5795), new ItemInfo(5796), new ItemInfo(5797), + new ItemInfo(5798), new ItemInfo(5799), new ItemInfo(5800), new ItemInfo(5801), new ItemInfo(5802), new ItemInfo(5803), new ItemInfo(5804), new ItemInfo(5805), new ItemInfo(5806), + new ItemInfo(5807), new ItemInfo(5808), new ItemInfo(5809), new ItemInfo(5810), new ItemInfo(5811), new ItemInfo(5812), new ItemInfo(5813), new ItemInfo(5814), new ItemInfo(5815), + new ItemInfo(5816), new ItemInfo(5817), new ItemInfo(5818), new ItemInfo(5819), new ItemInfo(5820), new ItemInfo(5821), new ItemInfo(5822), new ItemInfo(5823), new ItemInfo(5824), + new ItemInfo(5825), new ItemInfo(5826), new ItemInfo(5827), new ItemInfo(5828), new ItemInfo(5829), new ItemInfo(5830), new ItemInfo(5831), new ItemInfo(5832), new ItemInfo(5833), + new ItemInfo(5834), new ItemInfo(5835), new ItemInfo(5836), new ItemInfo(5837), new ItemInfo(5838), new ItemInfo(5839), new ItemInfo(5840), new ItemInfo(5841), new ItemInfo(5842), + new ItemInfo(5843), new ItemInfo(5844), new ItemInfo(5845), new ItemInfo(5846), new ItemInfo(5847), new ItemInfo(5848), new ItemInfo(5849), new ItemInfo(5850), new ItemInfo(5851), + new ItemInfo(5852), new ItemInfo(5853), new ItemInfo(5854), new ItemInfo(5855), new ItemInfo(5856), new ItemInfo(5857), new ItemInfo(5858), new ItemInfo(5859), new ItemInfo(5860), + new ItemInfo(5861), new ItemInfo(5862), new ItemInfo(5863), new ItemInfo(5864), new ItemInfo(5865), new ItemInfo(5866), new ItemInfo(5867), new ItemInfo(5868), new ItemInfo(5869), + new ItemInfo(5870), new ItemInfo(5871), new ItemInfo(5872), new ItemInfo(5873), new ItemInfo(5874), new ItemInfo(5875), new ItemInfo(5876), new ItemInfo(5877), new ItemInfo(5878), + new ItemInfo(5879), new ItemInfo(5880), new ItemInfo(5881), new ItemInfo(5882), new ItemInfo(5883), new ItemInfo(5884), new ItemInfo(5885), new ItemInfo(5886), new ItemInfo(5887), + new ItemInfo(5888), new ItemInfo(5889), new ItemInfo(5890), new ItemInfo(5891), new ItemInfo(5892), new ItemInfo(5893), new ItemInfo(5894), new ItemInfo(5895), new ItemInfo(5896), + new ItemInfo(5897), new ItemInfo(5898), new ItemInfo(5934), new ItemInfo(5935), new ItemInfo(5936), new ItemInfo(5937), new ItemInfo(5938), new ItemInfo(5939), new ItemInfo(5940), + new ItemInfo(5941), new ItemInfo(5942), new ItemInfo(5943), new ItemInfo(5944), new ItemInfo(5945), new ItemInfo(5946), new ItemInfo(5947), new ItemInfo(5948), new ItemInfo(5949), + new ItemInfo(5950), new ItemInfo(5951), new ItemInfo(5952), new ItemInfo(5953), new ItemInfo(5954), new ItemInfo(5955), new ItemInfo(5956), new ItemInfo(5957), new ItemInfo(5958) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt12Gump() + : this(0) + { } + + public AddMiscPt12Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt12Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 13.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 13.cs new file mode 100644 index 000000000..35a052683 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 13.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt13Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt13", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt13_OnCommand)); + } + + [Usage("AddMiscPt13")] + + public static void AddMiscPt13_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt13Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(5959), new ItemInfo(5960), new ItemInfo(5961), new ItemInfo(5962), new ItemInfo(5963), new ItemInfo(5964), new ItemInfo(5965), new ItemInfo(5966), new ItemInfo(5967), + new ItemInfo(5968), new ItemInfo(5969), new ItemInfo(5970), new ItemInfo(5971), new ItemInfo(5972), new ItemInfo(5973), new ItemInfo(5974), new ItemInfo(5975), new ItemInfo(5976), + new ItemInfo(5977), new ItemInfo(5978), new ItemInfo(5979), new ItemInfo(5980), new ItemInfo(5981), new ItemInfo(5982), new ItemInfo(5983), new ItemInfo(5984), new ItemInfo(5985), + new ItemInfo(5986), new ItemInfo(5987), new ItemInfo(5988), new ItemInfo(5989), new ItemInfo(5990), new ItemInfo(5991), new ItemInfo(5992), new ItemInfo(5993), new ItemInfo(5994), + new ItemInfo(5995), new ItemInfo(5996), new ItemInfo(5997), new ItemInfo(5998), new ItemInfo(5999), new ItemInfo(6000), new ItemInfo(6026), new ItemInfo(6027), new ItemInfo(6028), + new ItemInfo(6029), new ItemInfo(6030), new ItemInfo(6031), new ItemInfo(6032), new ItemInfo(6033), new ItemInfo(6034), new ItemInfo(6035), new ItemInfo(6036), new ItemInfo(6037), + new ItemInfo(6067), new ItemInfo(6068), new ItemInfo(6069), new ItemInfo(6070), new ItemInfo(6071), new ItemInfo(6072), new ItemInfo(6073), new ItemInfo(6074), new ItemInfo(6075), + new ItemInfo(6076), new ItemInfo(6093), new ItemInfo(6094), new ItemInfo(6095), new ItemInfo(6096), new ItemInfo(6097), new ItemInfo(6098), new ItemInfo(6099), new ItemInfo(6100), + new ItemInfo(6101), new ItemInfo(6102), new ItemInfo(6103), new ItemInfo(6104), new ItemInfo(6105), new ItemInfo(6106), new ItemInfo(6107), new ItemInfo(6108), new ItemInfo(6109), + new ItemInfo(6110), new ItemInfo(6111), new ItemInfo(6112), new ItemInfo(6113), new ItemInfo(6114), new ItemInfo(6115), new ItemInfo(6116), new ItemInfo(6117), new ItemInfo(6118), + new ItemInfo(6119), new ItemInfo(6120), new ItemInfo(6121), new ItemInfo(6122), new ItemInfo(6123), new ItemInfo(6124), new ItemInfo(6125), new ItemInfo(6126), new ItemInfo(6127), + new ItemInfo(6128), new ItemInfo(6129), new ItemInfo(6130), new ItemInfo(6131), new ItemInfo(6132), new ItemInfo(6133), new ItemInfo(6134), new ItemInfo(6135), new ItemInfo(6136), + new ItemInfo(6137), new ItemInfo(6138), new ItemInfo(6139), new ItemInfo(6140), new ItemInfo(6141), new ItemInfo(6142), new ItemInfo(6143), new ItemInfo(6144), new ItemInfo(6145), + new ItemInfo(6146), new ItemInfo(6147), new ItemInfo(6148), new ItemInfo(6149), new ItemInfo(6150), new ItemInfo(6151), new ItemInfo(6152), new ItemInfo(6153), new ItemInfo(6154), + new ItemInfo(6155), new ItemInfo(6156), new ItemInfo(6157), new ItemInfo(6158), new ItemInfo(6159), new ItemInfo(6160), new ItemInfo(6161), new ItemInfo(6162), new ItemInfo(6163), + new ItemInfo(6164), new ItemInfo(6165), new ItemInfo(6166), new ItemInfo(6167), new ItemInfo(6168), new ItemInfo(6169), new ItemInfo(6170), new ItemInfo(6171), new ItemInfo(6172), + new ItemInfo(6173), new ItemInfo(6174), new ItemInfo(6175), new ItemInfo(6176), new ItemInfo(6177), new ItemInfo(6178), new ItemInfo(6179), new ItemInfo(6180), new ItemInfo(6181), + new ItemInfo(6182), new ItemInfo(6183), new ItemInfo(6184), new ItemInfo(6185), new ItemInfo(6186), new ItemInfo(6187), new ItemInfo(6188), new ItemInfo(6189), new ItemInfo(6190), + new ItemInfo(6191), new ItemInfo(6192), new ItemInfo(6193), new ItemInfo(6194), new ItemInfo(6195), new ItemInfo(6196), new ItemInfo(6197), new ItemInfo(6198), new ItemInfo(6199), + new ItemInfo(6200), new ItemInfo(6201), new ItemInfo(6202), new ItemInfo(6203), new ItemInfo(6204), new ItemInfo(6205), new ItemInfo(6206), new ItemInfo(6207), new ItemInfo(6208), + new ItemInfo(6209), new ItemInfo(6210), new ItemInfo(6211), new ItemInfo(6212), new ItemInfo(6213), new ItemInfo(6214), new ItemInfo(6215), new ItemInfo(6216), new ItemInfo(6217), + new ItemInfo(6218), new ItemInfo(6219), new ItemInfo(6220), new ItemInfo(6221), new ItemInfo(6222), new ItemInfo(6223), new ItemInfo(6224), new ItemInfo(6225), new ItemInfo(6226), + new ItemInfo(6235), new ItemInfo(6236), new ItemInfo(6237), new ItemInfo(6238), new ItemInfo(6239), new ItemInfo(6240), new ItemInfo(6241), new ItemInfo(6242), new ItemInfo(6243), + new ItemInfo(6244), new ItemInfo(6245), new ItemInfo(6246), new ItemInfo(6247), new ItemInfo(6248), new ItemInfo(6249), new ItemInfo(6250), new ItemInfo(6251), new ItemInfo(6252), + new ItemInfo(6253), new ItemInfo(6254), new ItemInfo(6255), new ItemInfo(6256), new ItemInfo(6257), new ItemInfo(6258), new ItemInfo(6259), new ItemInfo(6260), new ItemInfo(6261) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt13Gump() + : this(0) + { } + + public AddMiscPt13Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt13Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 14.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 14.cs new file mode 100644 index 000000000..ceef5d7aa --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 14.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt14Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt14", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt14_OnCommand)); + } + + [Usage("AddMiscPt14")] + + public static void AddMiscPt14_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt14Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(6262), new ItemInfo(6263), new ItemInfo(6264), new ItemInfo(6265), new ItemInfo(6266), new ItemInfo(6267), new ItemInfo(6268), new ItemInfo(6269), new ItemInfo(6270), + new ItemInfo(6271), new ItemInfo(6272), new ItemInfo(6273), new ItemInfo(6274), new ItemInfo(6275), new ItemInfo(6276), new ItemInfo(6277), new ItemInfo(6278), new ItemInfo(6279), + new ItemInfo(6280), new ItemInfo(6281), new ItemInfo(6282), new ItemInfo(6283), new ItemInfo(6284), new ItemInfo(6285), new ItemInfo(6286), new ItemInfo(6287), new ItemInfo(6288), + new ItemInfo(6289), new ItemInfo(6290), new ItemInfo(6291), new ItemInfo(6300), new ItemInfo(6301), new ItemInfo(6302), new ItemInfo(6303), new ItemInfo(6304), new ItemInfo(6305), + new ItemInfo(6306), new ItemInfo(6307), new ItemInfo(6308), new ItemInfo(6309), new ItemInfo(6310), new ItemInfo(6311), new ItemInfo(6312), new ItemInfo(6313), new ItemInfo(6314), + new ItemInfo(6315), new ItemInfo(6316), new ItemInfo(6317), new ItemInfo(6318), new ItemInfo(6319), new ItemInfo(6320), new ItemInfo(6321), new ItemInfo(6322), new ItemInfo(6323), + new ItemInfo(6324), new ItemInfo(6325), new ItemInfo(6326), new ItemInfo(6327), new ItemInfo(6328), new ItemInfo(6329), new ItemInfo(6330), new ItemInfo(6331), new ItemInfo(6332), + new ItemInfo(6333), new ItemInfo(6334), new ItemInfo(6335), new ItemInfo(6336), new ItemInfo(6337), new ItemInfo(6338), new ItemInfo(6339), new ItemInfo(6340), new ItemInfo(6341), + new ItemInfo(6342), new ItemInfo(6343), new ItemInfo(6344), new ItemInfo(6345), new ItemInfo(6346), new ItemInfo(6347), new ItemInfo(6348), new ItemInfo(6349), new ItemInfo(6350), + new ItemInfo(6351), new ItemInfo(6352), new ItemInfo(6353), new ItemInfo(6354), new ItemInfo(6355), new ItemInfo(6356), new ItemInfo(6357), new ItemInfo(6358), new ItemInfo(6359), + new ItemInfo(6360), new ItemInfo(6361), new ItemInfo(6362), new ItemInfo(6363), new ItemInfo(6364), new ItemInfo(6365), new ItemInfo(6366), new ItemInfo(6367), new ItemInfo(6368), + new ItemInfo(6369), new ItemInfo(6370), new ItemInfo(6371), new ItemInfo(6372), new ItemInfo(6373), new ItemInfo(6374), new ItemInfo(6375), new ItemInfo(6376), new ItemInfo(6377), + new ItemInfo(6378), new ItemInfo(6379), new ItemInfo(6380), new ItemInfo(6381), new ItemInfo(6382), new ItemInfo(6383), new ItemInfo(6384), new ItemInfo(6385), new ItemInfo(6386), + new ItemInfo(6387), new ItemInfo(6388), new ItemInfo(6389), new ItemInfo(6390), new ItemInfo(6391), new ItemInfo(6392), new ItemInfo(6393), new ItemInfo(6394), new ItemInfo(6395), + new ItemInfo(6396), new ItemInfo(6397), new ItemInfo(6398), new ItemInfo(6399), new ItemInfo(6400), new ItemInfo(6401), new ItemInfo(6402), new ItemInfo(6403), new ItemInfo(6404), + new ItemInfo(6405), new ItemInfo(6406), new ItemInfo(6407), new ItemInfo(6408), new ItemInfo(6409), new ItemInfo(6410), new ItemInfo(6411), new ItemInfo(6412), new ItemInfo(6413), + new ItemInfo(6414), new ItemInfo(6415), new ItemInfo(6432), new ItemInfo(6433), new ItemInfo(6434), new ItemInfo(6435), new ItemInfo(6436), new ItemInfo(6437), new ItemInfo(6438), + new ItemInfo(6439), new ItemInfo(6440), new ItemInfo(6441), new ItemInfo(6442), new ItemInfo(6443), new ItemInfo(6444), new ItemInfo(6445), new ItemInfo(6446), new ItemInfo(6447), + new ItemInfo(6448), new ItemInfo(6449), new ItemInfo(6450), new ItemInfo(6451), new ItemInfo(6452), new ItemInfo(6453), new ItemInfo(6454), new ItemInfo(6455), new ItemInfo(6456), + new ItemInfo(6463), new ItemInfo(6464), new ItemInfo(6465), new ItemInfo(6466), new ItemInfo(6467), new ItemInfo(6468), new ItemInfo(6469), new ItemInfo(6470), new ItemInfo(6471), + new ItemInfo(6472), new ItemInfo(6473), new ItemInfo(6474), new ItemInfo(6475), new ItemInfo(6476), new ItemInfo(6477), new ItemInfo(6478), new ItemInfo(6479), new ItemInfo(6480), + new ItemInfo(6481), new ItemInfo(6482), new ItemInfo(6483), new ItemInfo(6484), new ItemInfo(6485), new ItemInfo(6486), new ItemInfo(6487), new ItemInfo(6488), new ItemInfo(6489), + new ItemInfo(6490), new ItemInfo(6491), new ItemInfo(6492), new ItemInfo(6493), new ItemInfo(6494), new ItemInfo(6495), new ItemInfo(6496), new ItemInfo(6497), new ItemInfo(6498), + new ItemInfo(6499), new ItemInfo(6500), new ItemInfo(6501), new ItemInfo(6502), new ItemInfo(6503), new ItemInfo(6504), new ItemInfo(6505), new ItemInfo(6506), new ItemInfo(6507), + new ItemInfo(6508), new ItemInfo(6509), new ItemInfo(6510), new ItemInfo(6511), new ItemInfo(6512), new ItemInfo(6513), new ItemInfo(6514), new ItemInfo(6515), new ItemInfo(6516) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt14Gump() + : this(0) + { } + + public AddMiscPt14Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt14Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 15.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 15.cs new file mode 100644 index 000000000..ffaa2a4ea --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 15.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt15Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt15", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt15_OnCommand)); + } + + [Usage("AddMiscPt15")] + + public static void AddMiscPt15_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt15Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(6517), new ItemInfo(6518), new ItemInfo(6519), new ItemInfo(6520), new ItemInfo(6521), new ItemInfo(6522), new ItemInfo(6523), new ItemInfo(6524), new ItemInfo(6525), + new ItemInfo(6526), new ItemInfo(6527), new ItemInfo(6528), new ItemInfo(6529), new ItemInfo(6530), new ItemInfo(6531), new ItemInfo(6532), new ItemInfo(6533), new ItemInfo(6534), + new ItemInfo(6535), new ItemInfo(6536), new ItemInfo(6537), new ItemInfo(6538), new ItemInfo(6539), new ItemInfo(6540), new ItemInfo(6541), new ItemInfo(6542), new ItemInfo(6543), + new ItemInfo(6544), new ItemInfo(6545), new ItemInfo(6546), new ItemInfo(6547), new ItemInfo(6548), new ItemInfo(6549), new ItemInfo(6550), new ItemInfo(6551), new ItemInfo(6552), + new ItemInfo(6553), new ItemInfo(6554), new ItemInfo(6555), new ItemInfo(6556), new ItemInfo(6557), new ItemInfo(6558), new ItemInfo(6559), new ItemInfo(6560), new ItemInfo(6561), + new ItemInfo(6562), new ItemInfo(6563), new ItemInfo(6564), new ItemInfo(6565), new ItemInfo(6566), new ItemInfo(6567), new ItemInfo(6568), new ItemInfo(6569), new ItemInfo(6571), + new ItemInfo(6572), new ItemInfo(6573), new ItemInfo(6574), new ItemInfo(6575), new ItemInfo(6576), new ItemInfo(6577), new ItemInfo(6578), new ItemInfo(6579), new ItemInfo(6580), + new ItemInfo(6581), new ItemInfo(6582), new ItemInfo(6583), new ItemInfo(6584), new ItemInfo(6585), new ItemInfo(6586), new ItemInfo(6588), new ItemInfo(6589), new ItemInfo(6590), + new ItemInfo(6591), new ItemInfo(6592), new ItemInfo(6593), new ItemInfo(6594), new ItemInfo(6595), new ItemInfo(6596), new ItemInfo(6597), new ItemInfo(6598), new ItemInfo(6599), + new ItemInfo(6600), new ItemInfo(6601), new ItemInfo(6602), new ItemInfo(6603), new ItemInfo(6604), new ItemInfo(6605), new ItemInfo(6606), new ItemInfo(6607), new ItemInfo(6608), + new ItemInfo(6609), new ItemInfo(6610), new ItemInfo(6611), new ItemInfo(6612), new ItemInfo(6613), new ItemInfo(6614), new ItemInfo(6615), new ItemInfo(6616), new ItemInfo(6617), + new ItemInfo(6618), new ItemInfo(6619), new ItemInfo(6620), new ItemInfo(6621), new ItemInfo(6622), new ItemInfo(6623), new ItemInfo(6624), new ItemInfo(6625), new ItemInfo(6626), + new ItemInfo(6627), new ItemInfo(6628), new ItemInfo(6629), new ItemInfo(6630), new ItemInfo(6631), new ItemInfo(6632), new ItemInfo(6633), new ItemInfo(6634), new ItemInfo(6635), + new ItemInfo(6636), new ItemInfo(6637), new ItemInfo(6638), new ItemInfo(6639), new ItemInfo(6640), new ItemInfo(6641), new ItemInfo(6642), new ItemInfo(6643), new ItemInfo(6644), + new ItemInfo(6645), new ItemInfo(6646), new ItemInfo(6647), new ItemInfo(6648), new ItemInfo(6649), new ItemInfo(6650), new ItemInfo(6651), new ItemInfo(6652), new ItemInfo(6653), + new ItemInfo(6654), new ItemInfo(6655), new ItemInfo(6656), new ItemInfo(6657), new ItemInfo(6658), new ItemInfo(6659), new ItemInfo(6660), new ItemInfo(6661), new ItemInfo(6662), + new ItemInfo(6663), new ItemInfo(6664), new ItemInfo(6665), new ItemInfo(6666), new ItemInfo(6667), new ItemInfo(6668), new ItemInfo(6669), new ItemInfo(6670), new ItemInfo(6671), + new ItemInfo(6672), new ItemInfo(6673), new ItemInfo(6674), new ItemInfo(6675), new ItemInfo(6676), new ItemInfo(6677), new ItemInfo(6678), new ItemInfo(6679), new ItemInfo(6680), + new ItemInfo(6681), new ItemInfo(6682), new ItemInfo(6683), new ItemInfo(6684), new ItemInfo(6685), new ItemInfo(6686), new ItemInfo(6687), new ItemInfo(6688), new ItemInfo(6689), + new ItemInfo(6690), new ItemInfo(6691), new ItemInfo(6692), new ItemInfo(6693), new ItemInfo(6694), new ItemInfo(6695), new ItemInfo(6696), new ItemInfo(6697), new ItemInfo(6698), + new ItemInfo(6699), new ItemInfo(6700), new ItemInfo(6701), new ItemInfo(6702), new ItemInfo(6703), new ItemInfo(6704), new ItemInfo(6705), new ItemInfo(6706), new ItemInfo(6707), + new ItemInfo(6708), new ItemInfo(6709), new ItemInfo(6710), new ItemInfo(6711), new ItemInfo(6712), new ItemInfo(6713), new ItemInfo(6714), new ItemInfo(6715), new ItemInfo(6716), + new ItemInfo(6717), new ItemInfo(6718), new ItemInfo(6719), new ItemInfo(6720), new ItemInfo(6721), new ItemInfo(6722), new ItemInfo(6723), new ItemInfo(6724), new ItemInfo(6725), + new ItemInfo(6726), new ItemInfo(6727), new ItemInfo(6728), new ItemInfo(6729), new ItemInfo(6730), new ItemInfo(6731), new ItemInfo(6732), new ItemInfo(6733), new ItemInfo(6734), + new ItemInfo(6735), new ItemInfo(6736), new ItemInfo(6737), new ItemInfo(6738), new ItemInfo(6739), new ItemInfo(6740), new ItemInfo(6741), new ItemInfo(6742), new ItemInfo(6743) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt15Gump() + : this(0) + { } + + public AddMiscPt15Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt15Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 16.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 16.cs new file mode 100644 index 000000000..80c4cdbfd --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 16.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt16Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt16", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt16_OnCommand)); + } + + [Usage("AddMiscPt16")] + + public static void AddMiscPt16_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt16Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(6744), new ItemInfo(6745), new ItemInfo(6746), new ItemInfo(6747), new ItemInfo(6748), new ItemInfo(6749), new ItemInfo(6750), new ItemInfo(6751), new ItemInfo(6752), + new ItemInfo(6753), new ItemInfo(6754), new ItemInfo(6755), new ItemInfo(6756), new ItemInfo(6757), new ItemInfo(6758), new ItemInfo(6759), new ItemInfo(6760), new ItemInfo(6761), + new ItemInfo(6762), new ItemInfo(6763), new ItemInfo(6764), new ItemInfo(6765), new ItemInfo(6766), new ItemInfo(6767), new ItemInfo(6768), new ItemInfo(6769), new ItemInfo(6770), + new ItemInfo(6771), new ItemInfo(6772), new ItemInfo(6773), new ItemInfo(6774), new ItemInfo(6775), new ItemInfo(6776), new ItemInfo(6777), new ItemInfo(6778), new ItemInfo(6779), + new ItemInfo(6780), new ItemInfo(6781), new ItemInfo(6782), new ItemInfo(6783), new ItemInfo(6784), new ItemInfo(6785), new ItemInfo(6786), new ItemInfo(6787), new ItemInfo(6788), + new ItemInfo(6789), new ItemInfo(6790), new ItemInfo(6791), new ItemInfo(6792), new ItemInfo(6793), new ItemInfo(6794), new ItemInfo(6795), new ItemInfo(6796), new ItemInfo(6797), + new ItemInfo(6798), new ItemInfo(6799), new ItemInfo(6800), new ItemInfo(6801), new ItemInfo(6807), new ItemInfo(6808), new ItemInfo(6812), new ItemInfo(6813), new ItemInfo(6814), + new ItemInfo(6815), new ItemInfo(6816), new ItemInfo(6817), new ItemInfo(6818), new ItemInfo(6819), new ItemInfo(6820), new ItemInfo(6821), new ItemInfo(6822), new ItemInfo(6823), + new ItemInfo(6824), new ItemInfo(6825), new ItemInfo(6826), new ItemInfo(6827), new ItemInfo(6828), new ItemInfo(6829), new ItemInfo(6830), new ItemInfo(6831), new ItemInfo(6832), + new ItemInfo(6833), new ItemInfo(6834), new ItemInfo(6835), new ItemInfo(6836), new ItemInfo(6837), new ItemInfo(6838), new ItemInfo(6839), new ItemInfo(6840), new ItemInfo(6841), + new ItemInfo(6842), new ItemInfo(6843), new ItemInfo(6844), new ItemInfo(6845), new ItemInfo(6846), new ItemInfo(6847), new ItemInfo(6848), new ItemInfo(6849), new ItemInfo(6850), + new ItemInfo(6851), new ItemInfo(6852), new ItemInfo(6853), new ItemInfo(6854), new ItemInfo(6855), new ItemInfo(6856), new ItemInfo(6857), new ItemInfo(6858), new ItemInfo(6859), + new ItemInfo(6860), new ItemInfo(6861), new ItemInfo(6862), new ItemInfo(6863), new ItemInfo(6864), new ItemInfo(6865), new ItemInfo(6866), new ItemInfo(6867), new ItemInfo(6868), + new ItemInfo(6869), new ItemInfo(6870), new ItemInfo(6871), new ItemInfo(6872), new ItemInfo(6873), new ItemInfo(6874), new ItemInfo(6875), new ItemInfo(6876), new ItemInfo(6877), + new ItemInfo(6878), new ItemInfo(6879), new ItemInfo(6880), new ItemInfo(6881), new ItemInfo(6882), new ItemInfo(6883), new ItemInfo(6884), new ItemInfo(6885), new ItemInfo(6886), + new ItemInfo(6887), new ItemInfo(6888), new ItemInfo(6889), new ItemInfo(6890), new ItemInfo(6891), new ItemInfo(6892), new ItemInfo(6893), new ItemInfo(6894), new ItemInfo(6895), + new ItemInfo(6896), new ItemInfo(6897), new ItemInfo(6898), new ItemInfo(6899), new ItemInfo(6900), new ItemInfo(6901), new ItemInfo(6902), new ItemInfo(6903), new ItemInfo(6904), + new ItemInfo(6905), new ItemInfo(6906), new ItemInfo(6907), new ItemInfo(6908), new ItemInfo(6909), new ItemInfo(6910), new ItemInfo(6911), new ItemInfo(6912), new ItemInfo(6913), + new ItemInfo(6914), new ItemInfo(6915), new ItemInfo(6916), new ItemInfo(6917), new ItemInfo(6918), new ItemInfo(6919), new ItemInfo(6920), new ItemInfo(6921), new ItemInfo(6922), + new ItemInfo(6923), new ItemInfo(6924), new ItemInfo(6925), new ItemInfo(6926), new ItemInfo(6927), new ItemInfo(6928), new ItemInfo(6929), new ItemInfo(6930), new ItemInfo(6931), + new ItemInfo(6932), new ItemInfo(6933), new ItemInfo(6934), new ItemInfo(6935), new ItemInfo(6936), new ItemInfo(6937), new ItemInfo(6938), new ItemInfo(6939), new ItemInfo(6940), + new ItemInfo(6941), new ItemInfo(6942), new ItemInfo(6943), new ItemInfo(6944), new ItemInfo(6945), new ItemInfo(6946), new ItemInfo(6947), new ItemInfo(6948), new ItemInfo(6949), + new ItemInfo(6950), new ItemInfo(6951), new ItemInfo(6952), new ItemInfo(6953), new ItemInfo(6954), new ItemInfo(6955), new ItemInfo(6956), new ItemInfo(6957), new ItemInfo(6958), + new ItemInfo(6959), new ItemInfo(6960), new ItemInfo(6961), new ItemInfo(6962), new ItemInfo(6963), new ItemInfo(6964), new ItemInfo(6965), new ItemInfo(6966), new ItemInfo(6967), + new ItemInfo(6968), new ItemInfo(6969), new ItemInfo(6970), new ItemInfo(6971), new ItemInfo(6972), new ItemInfo(6973), new ItemInfo(6974), new ItemInfo(6975), new ItemInfo(6976) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt16Gump() + : this(0) + { } + + public AddMiscPt16Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt16Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 17.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 17.cs new file mode 100644 index 000000000..c5b70f309 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 17.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt17Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt17", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt17_OnCommand)); + } + + [Usage("AddMiscPt17")] + + public static void AddMiscPt17_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt17Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(6977), new ItemInfo(6978), new ItemInfo(6979), new ItemInfo(6980), new ItemInfo(6981), new ItemInfo(6982), new ItemInfo(6983), new ItemInfo(6984), new ItemInfo(6985), + new ItemInfo(6986), new ItemInfo(6987), new ItemInfo(6988), new ItemInfo(6989), new ItemInfo(6990), new ItemInfo(6991), new ItemInfo(6992), new ItemInfo(6993), new ItemInfo(6994), + new ItemInfo(6995), new ItemInfo(6996), new ItemInfo(6997), new ItemInfo(6998), new ItemInfo(6999), new ItemInfo(7000), new ItemInfo(7001), new ItemInfo(7002), new ItemInfo(7003), + new ItemInfo(7004), new ItemInfo(7005), new ItemInfo(7006), new ItemInfo(7007), new ItemInfo(7008), new ItemInfo(7009), new ItemInfo(7010), new ItemInfo(7011), new ItemInfo(7012), + new ItemInfo(7013), new ItemInfo(7014), new ItemInfo(7015), new ItemInfo(7016), new ItemInfo(7017), new ItemInfo(7018), new ItemInfo(7019), new ItemInfo(7020), new ItemInfo(7021), + new ItemInfo(7022), new ItemInfo(7023), new ItemInfo(7024), new ItemInfo(7025), new ItemInfo(7036), new ItemInfo(7037), new ItemInfo(7039), new ItemInfo(7040), new ItemInfo(7041), + new ItemInfo(7042), new ItemInfo(7043), new ItemInfo(7044), new ItemInfo(7045), new ItemInfo(7046), new ItemInfo(7047), new ItemInfo(7048), new ItemInfo(7049), new ItemInfo(7050), + new ItemInfo(7051), new ItemInfo(7052), new ItemInfo(7053), new ItemInfo(7054), new ItemInfo(7055), new ItemInfo(7056), new ItemInfo(7057), new ItemInfo(7058), new ItemInfo(7059), + new ItemInfo(7060), new ItemInfo(7061), new ItemInfo(7062), new ItemInfo(7063), new ItemInfo(7064), new ItemInfo(7065), new ItemInfo(7066), new ItemInfo(7067), new ItemInfo(7068), + new ItemInfo(7069), new ItemInfo(7070), new ItemInfo(7071), new ItemInfo(7072), new ItemInfo(7073), new ItemInfo(7074), new ItemInfo(7075), new ItemInfo(7076), new ItemInfo(7077), + new ItemInfo(7078), new ItemInfo(7079), new ItemInfo(7080), new ItemInfo(7081), new ItemInfo(7082), new ItemInfo(7083), new ItemInfo(7084), new ItemInfo(7085), new ItemInfo(7086), + new ItemInfo(7087), new ItemInfo(7088), new ItemInfo(7089), new ItemInfo(7090), new ItemInfo(7091), new ItemInfo(7092), new ItemInfo(7093), new ItemInfo(7094), new ItemInfo(7095), + new ItemInfo(7096), new ItemInfo(7097), new ItemInfo(7098), new ItemInfo(7099), new ItemInfo(7100), new ItemInfo(7101), new ItemInfo(7102), new ItemInfo(7103), new ItemInfo(7104), + new ItemInfo(7105), new ItemInfo(7106), new ItemInfo(7112), new ItemInfo(7113), new ItemInfo(7114), new ItemInfo(7115), new ItemInfo(7116), new ItemInfo(7117), new ItemInfo(7118), + new ItemInfo(7119), new ItemInfo(7120), new ItemInfo(7121), new ItemInfo(7122), new ItemInfo(7123), new ItemInfo(7124), new ItemInfo(7125), new ItemInfo(7126), new ItemInfo(7127), + new ItemInfo(7128), new ItemInfo(7129), new ItemInfo(7130), new ItemInfo(7131), new ItemInfo(7132), new ItemInfo(7133), new ItemInfo(7134), new ItemInfo(7135), new ItemInfo(7136), + new ItemInfo(7137), new ItemInfo(7138), new ItemInfo(7139), new ItemInfo(7140), new ItemInfo(7141), new ItemInfo(7142), new ItemInfo(7143), new ItemInfo(7144), new ItemInfo(7145), + new ItemInfo(7146), new ItemInfo(7147), new ItemInfo(7148), new ItemInfo(7149), new ItemInfo(7150), new ItemInfo(7151), new ItemInfo(7152), new ItemInfo(7153), new ItemInfo(7154), + new ItemInfo(7155), new ItemInfo(7156), new ItemInfo(7157), new ItemInfo(7158), new ItemInfo(7159), new ItemInfo(7160), new ItemInfo(7161), new ItemInfo(7162), new ItemInfo(7163), + new ItemInfo(7164), new ItemInfo(7165), new ItemInfo(7166), new ItemInfo(7167), new ItemInfo(7182), new ItemInfo(7183), new ItemInfo(7184), new ItemInfo(7185), new ItemInfo(7186), + new ItemInfo(7187), new ItemInfo(7188), new ItemInfo(7189), new ItemInfo(7190), new ItemInfo(7191), new ItemInfo(7192), new ItemInfo(7193), new ItemInfo(7194), new ItemInfo(7195), + new ItemInfo(7196), new ItemInfo(7197), new ItemInfo(7198), new ItemInfo(7199), new ItemInfo(7200), new ItemInfo(7201), new ItemInfo(7202), new ItemInfo(7203), new ItemInfo(7204), + new ItemInfo(7205), new ItemInfo(7206), new ItemInfo(7207), new ItemInfo(7208), new ItemInfo(7209), new ItemInfo(7210), new ItemInfo(7211), new ItemInfo(7212), new ItemInfo(7213), + new ItemInfo(7214), new ItemInfo(7215), new ItemInfo(7216), new ItemInfo(7217), new ItemInfo(7218), new ItemInfo(7219), new ItemInfo(7220), new ItemInfo(7221), new ItemInfo(7222), + new ItemInfo(7223), new ItemInfo(7224), new ItemInfo(7225), new ItemInfo(7226), new ItemInfo(7227), new ItemInfo(7228), new ItemInfo(7229), new ItemInfo(7230), new ItemInfo(7231) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt17Gump() + : this(0) + { } + + public AddMiscPt17Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt17Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 18.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 18.cs new file mode 100644 index 000000000..a0af4fc70 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 18.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt18Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt18", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt18_OnCommand)); + } + + [Usage("AddMiscPt18")] + + public static void AddMiscPt18_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt18Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(7223), new ItemInfo(7224), new ItemInfo(7225), new ItemInfo(7226), new ItemInfo(7227), new ItemInfo(7228), new ItemInfo(7229), new ItemInfo(7230), new ItemInfo(7231), + new ItemInfo(7232), new ItemInfo(7233), new ItemInfo(7234), new ItemInfo(7235), new ItemInfo(7236), new ItemInfo(7237), new ItemInfo(7238), new ItemInfo(7239), new ItemInfo(7240), + new ItemInfo(7241), new ItemInfo(7242), new ItemInfo(7243), new ItemInfo(7244), new ItemInfo(7245), new ItemInfo(7246), new ItemInfo(7247), new ItemInfo(7248), new ItemInfo(7249), + new ItemInfo(7250), new ItemInfo(7251), new ItemInfo(7252), new ItemInfo(7253), new ItemInfo(7254), new ItemInfo(7255), new ItemInfo(7256), new ItemInfo(7257), new ItemInfo(7258), + new ItemInfo(7259), new ItemInfo(7260), new ItemInfo(7261), new ItemInfo(7262), new ItemInfo(7263), new ItemInfo(7264), new ItemInfo(7265), new ItemInfo(7266), new ItemInfo(7267), + new ItemInfo(7268), new ItemInfo(7269), new ItemInfo(7270), new ItemInfo(7271), new ItemInfo(7272), new ItemInfo(7273), new ItemInfo(7274), new ItemInfo(7275), new ItemInfo(7276), + new ItemInfo(7277), new ItemInfo(7278), new ItemInfo(7279), new ItemInfo(7280), new ItemInfo(7281), new ItemInfo(7282), new ItemInfo(7283), new ItemInfo(7284), new ItemInfo(7285), + new ItemInfo(7286), new ItemInfo(7287), new ItemInfo(7291), new ItemInfo(7292), new ItemInfo(7293), new ItemInfo(7294), new ItemInfo(7295), new ItemInfo(7296), new ItemInfo(7297), + new ItemInfo(7298), new ItemInfo(7299), new ItemInfo(7300), new ItemInfo(7301), new ItemInfo(7302), new ItemInfo(7303), new ItemInfo(7304), new ItemInfo(7305), new ItemInfo(7306), + new ItemInfo(7307), new ItemInfo(7308), new ItemInfo(7309), new ItemInfo(7310), new ItemInfo(7311), new ItemInfo(7312), new ItemInfo(7313), new ItemInfo(7314), new ItemInfo(7315), + new ItemInfo(7316), new ItemInfo(7317), new ItemInfo(7318), new ItemInfo(7319), new ItemInfo(7320), new ItemInfo(7321), new ItemInfo(7322), new ItemInfo(7323), new ItemInfo(7324), + new ItemInfo(7325), new ItemInfo(7326), new ItemInfo(7327), new ItemInfo(7328), new ItemInfo(7329), new ItemInfo(7330), new ItemInfo(7331), new ItemInfo(7332), new ItemInfo(7333), + new ItemInfo(7334), new ItemInfo(7335), new ItemInfo(7336), new ItemInfo(7337), new ItemInfo(7338), new ItemInfo(7339), new ItemInfo(7340), new ItemInfo(7341), new ItemInfo(7342), + new ItemInfo(7343), new ItemInfo(7344), new ItemInfo(7345), new ItemInfo(7346), new ItemInfo(7347), new ItemInfo(7348), new ItemInfo(7349), new ItemInfo(7350), new ItemInfo(7351), + new ItemInfo(7352), new ItemInfo(7353), new ItemInfo(7354), new ItemInfo(7355), new ItemInfo(7356), new ItemInfo(7357), new ItemInfo(7358), new ItemInfo(7359), new ItemInfo(7360), + new ItemInfo(7361), new ItemInfo(7362), new ItemInfo(7363), new ItemInfo(7364), new ItemInfo(7365), new ItemInfo(7366), new ItemInfo(7367), new ItemInfo(7368), new ItemInfo(7369), + new ItemInfo(7370), new ItemInfo(7371), new ItemInfo(7372), new ItemInfo(7373), new ItemInfo(7374), new ItemInfo(7375), new ItemInfo(7376), new ItemInfo(7377), new ItemInfo(7378), + new ItemInfo(7379), new ItemInfo(7380), new ItemInfo(7381), new ItemInfo(7382), new ItemInfo(7383), new ItemInfo(7384), new ItemInfo(7385), new ItemInfo(7386), new ItemInfo(7387), + new ItemInfo(7388), new ItemInfo(7389), new ItemInfo(7390), new ItemInfo(7391), new ItemInfo(7392), new ItemInfo(7393), new ItemInfo(7394), new ItemInfo(7395), new ItemInfo(7396), + new ItemInfo(7397), new ItemInfo(7398), new ItemInfo(7399), new ItemInfo(7400), new ItemInfo(7401), new ItemInfo(7402), new ItemInfo(7403), new ItemInfo(7404), new ItemInfo(7405), + new ItemInfo(7406), new ItemInfo(7407), new ItemInfo(7408), new ItemInfo(7409), new ItemInfo(7410), new ItemInfo(7411), new ItemInfo(7412), new ItemInfo(7413), new ItemInfo(7414), + new ItemInfo(7415), new ItemInfo(7416), new ItemInfo(7417), new ItemInfo(7418), new ItemInfo(7419), new ItemInfo(7420), new ItemInfo(7421), new ItemInfo(7422), new ItemInfo(7423), + new ItemInfo(7424), new ItemInfo(7425), new ItemInfo(7426), new ItemInfo(7427), new ItemInfo(7428), new ItemInfo(7429), new ItemInfo(7430), new ItemInfo(7431), new ItemInfo(7432), + new ItemInfo(7433), new ItemInfo(7434), new ItemInfo(7435), new ItemInfo(7436), new ItemInfo(7437), new ItemInfo(7438), new ItemInfo(7439), new ItemInfo(7440), new ItemInfo(7441), + new ItemInfo(7442), new ItemInfo(7443), new ItemInfo(7444), new ItemInfo(7445), new ItemInfo(7446), new ItemInfo(7447), new ItemInfo(7448), new ItemInfo(7449), new ItemInfo(7450) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt18Gump() + : this(0) + { } + + public AddMiscPt18Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt18Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 19.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 19.cs new file mode 100644 index 000000000..93fd0fbc8 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 19.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt19Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt19", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt19_OnCommand)); + } + + [Usage("AddMiscPt19")] + + public static void AddMiscPt19_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt19Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(7451), new ItemInfo(7452), new ItemInfo(7453), new ItemInfo(7454), new ItemInfo(7455), new ItemInfo(7456), new ItemInfo(7457), new ItemInfo(7458), new ItemInfo(7459), + new ItemInfo(7460), new ItemInfo(7461), new ItemInfo(7462), new ItemInfo(7463), new ItemInfo(7464), new ItemInfo(7465), new ItemInfo(7466), new ItemInfo(7467), new ItemInfo(7468), + new ItemInfo(7469), new ItemInfo(7470), new ItemInfo(7471), new ItemInfo(7472), new ItemInfo(7473), new ItemInfo(7474), new ItemInfo(7475), new ItemInfo(7476), new ItemInfo(7477), + new ItemInfo(7478), new ItemInfo(7479), new ItemInfo(7480), new ItemInfo(7481), new ItemInfo(7482), new ItemInfo(7483), new ItemInfo(7484), new ItemInfo(7485), new ItemInfo(7486), + new ItemInfo(7487), new ItemInfo(7488), new ItemInfo(7489), new ItemInfo(7490), new ItemInfo(7491), new ItemInfo(7492), new ItemInfo(7493), new ItemInfo(7494), new ItemInfo(7495), + new ItemInfo(7496), new ItemInfo(7497), new ItemInfo(7498), new ItemInfo(7499), new ItemInfo(7500), new ItemInfo(7501), new ItemInfo(7502), new ItemInfo(7503), new ItemInfo(7504), + new ItemInfo(7505), new ItemInfo(7506), new ItemInfo(7507), new ItemInfo(7508), new ItemInfo(7509), new ItemInfo(7510), new ItemInfo(7511), new ItemInfo(7512), new ItemInfo(7513), + new ItemInfo(7514), new ItemInfo(7515), new ItemInfo(7516), new ItemInfo(7517), new ItemInfo(7518), new ItemInfo(7519), new ItemInfo(7520), new ItemInfo(7521), new ItemInfo(7522), + new ItemInfo(7523), new ItemInfo(7524), new ItemInfo(7525), new ItemInfo(7526), new ItemInfo(7527), new ItemInfo(7528), new ItemInfo(7529), new ItemInfo(7530), new ItemInfo(7531), + new ItemInfo(7532), new ItemInfo(7533), new ItemInfo(7534), new ItemInfo(7535), new ItemInfo(7536), new ItemInfo(7537), new ItemInfo(7538), new ItemInfo(7539), new ItemInfo(7540), + new ItemInfo(7541), new ItemInfo(7542), new ItemInfo(7543), new ItemInfo(7544), new ItemInfo(7545), new ItemInfo(7546), new ItemInfo(7547), new ItemInfo(7548), new ItemInfo(7549), + new ItemInfo(7550), new ItemInfo(7551), new ItemInfo(7552), new ItemInfo(7553), new ItemInfo(7554), new ItemInfo(7555), new ItemInfo(7556), new ItemInfo(7557), new ItemInfo(7558), + new ItemInfo(7559), new ItemInfo(7560), new ItemInfo(7561), new ItemInfo(7562), new ItemInfo(7563), new ItemInfo(7564), new ItemInfo(7565), new ItemInfo(7566), new ItemInfo(7567), + new ItemInfo(7568), new ItemInfo(7569), new ItemInfo(7570), new ItemInfo(7571), new ItemInfo(7572), new ItemInfo(7573), new ItemInfo(7574), new ItemInfo(7575), new ItemInfo(7576), + new ItemInfo(7577), new ItemInfo(7578), new ItemInfo(7579), new ItemInfo(7580), new ItemInfo(7581), new ItemInfo(7582), new ItemInfo(7583), new ItemInfo(7584), new ItemInfo(7585), + new ItemInfo(7586), new ItemInfo(7587), new ItemInfo(7588), new ItemInfo(7597), new ItemInfo(7598), new ItemInfo(7599), new ItemInfo(7600), new ItemInfo(7601), new ItemInfo(7602), + new ItemInfo(7603), new ItemInfo(7604), new ItemInfo(7605), new ItemInfo(7606), new ItemInfo(7607), new ItemInfo(7608), new ItemInfo(7609), new ItemInfo(7610), new ItemInfo(7635), + new ItemInfo(7636), new ItemInfo(7637), new ItemInfo(7638), new ItemInfo(7639), new ItemInfo(7640), new ItemInfo(7641), new ItemInfo(7642), new ItemInfo(7643), new ItemInfo(7644), + new ItemInfo(7645), new ItemInfo(7646), new ItemInfo(7647), new ItemInfo(7648), new ItemInfo(7649), new ItemInfo(7650), new ItemInfo(7651), new ItemInfo(7652), new ItemInfo(7653), + new ItemInfo(7654), new ItemInfo(7655), new ItemInfo(7656), new ItemInfo(7657), new ItemInfo(7658), new ItemInfo(7659), new ItemInfo(7660), new ItemInfo(7661), new ItemInfo(7662), + new ItemInfo(7663), new ItemInfo(7664), new ItemInfo(7665), new ItemInfo(7666), new ItemInfo(7667), new ItemInfo(7668), new ItemInfo(7669), new ItemInfo(7670), new ItemInfo(7671), + new ItemInfo(7672), new ItemInfo(7673), new ItemInfo(7674), new ItemInfo(7675), new ItemInfo(7676), new ItemInfo(7677), new ItemInfo(7678), new ItemInfo(7679), new ItemInfo(7680), + new ItemInfo(7681), new ItemInfo(7682), new ItemInfo(7683), new ItemInfo(7684), new ItemInfo(7685), new ItemInfo(7686), new ItemInfo(7687), new ItemInfo(7688), new ItemInfo(7689), + new ItemInfo(7690), new ItemInfo(7691), new ItemInfo(7692), new ItemInfo(7693), new ItemInfo(7694), new ItemInfo(7695), new ItemInfo(7696), new ItemInfo(7697), new ItemInfo(7698), + new ItemInfo(7699), new ItemInfo(7700), new ItemInfo(7712), new ItemInfo(7713), new ItemInfo(7714), new ItemInfo(7715), new ItemInfo(7716), new ItemInfo(7717), new ItemInfo(7718) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt19Gump() + : this(0) + { } + + public AddMiscPt19Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt19Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 2.cs new file mode 100644 index 000000000..1a743ade6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 2.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt2Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt2", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt2_OnCommand)); + } + + [Usage("AddMiscPt2")] + + public static void AddMiscPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt2Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(1665), new ItemInfo(1666), new ItemInfo(1667), new ItemInfo(1668), new ItemInfo(1669), new ItemInfo(1670), new ItemInfo(1671), new ItemInfo(1672), new ItemInfo(1673), + new ItemInfo(1674), new ItemInfo(1675), new ItemInfo(1676), new ItemInfo(1677), new ItemInfo(1678), new ItemInfo(1679), new ItemInfo(1680), new ItemInfo(1681), new ItemInfo(1682), + new ItemInfo(1683), new ItemInfo(1684), new ItemInfo(1685), new ItemInfo(1686), new ItemInfo(1687), new ItemInfo(1688), new ItemInfo(1689), new ItemInfo(1690), new ItemInfo(1691), + new ItemInfo(1692), new ItemInfo(1693), new ItemInfo(1694), new ItemInfo(1695), new ItemInfo(1696), new ItemInfo(1697), new ItemInfo(1698), new ItemInfo(1699), new ItemInfo(1700), + new ItemInfo(1701), new ItemInfo(1702), new ItemInfo(1703), new ItemInfo(1704), new ItemInfo(1705), new ItemInfo(1706), new ItemInfo(1707), new ItemInfo(1708), new ItemInfo(1709), + new ItemInfo(1710), new ItemInfo(1711), new ItemInfo(1712), new ItemInfo(1713), new ItemInfo(1714), new ItemInfo(1715), new ItemInfo(1716), new ItemInfo(1717), new ItemInfo(1718), + new ItemInfo(1719), new ItemInfo(1720), new ItemInfo(1721), new ItemInfo(1722), new ItemInfo(1723), new ItemInfo(1724), new ItemInfo(1725), new ItemInfo(1726), new ItemInfo(1727), + new ItemInfo(1728), new ItemInfo(1729), new ItemInfo(1730), new ItemInfo(1731), new ItemInfo(1732), new ItemInfo(1733), new ItemInfo(1734), new ItemInfo(1735), new ItemInfo(1736), + new ItemInfo(1737), new ItemInfo(1738), new ItemInfo(1739), new ItemInfo(1740), new ItemInfo(1741), new ItemInfo(1742), new ItemInfo(1743), new ItemInfo(1744), new ItemInfo(1745), + new ItemInfo(1746), new ItemInfo(1747), new ItemInfo(1748), new ItemInfo(1749), new ItemInfo(1750), new ItemInfo(1751), new ItemInfo(1752), new ItemInfo(1753), new ItemInfo(1754), + new ItemInfo(1755), new ItemInfo(1756), new ItemInfo(1757), new ItemInfo(1758), new ItemInfo(1759), new ItemInfo(1760), new ItemInfo(1761), new ItemInfo(1762), new ItemInfo(1763), + new ItemInfo(1764), new ItemInfo(1765), new ItemInfo(1766), new ItemInfo(1767), new ItemInfo(1768), new ItemInfo(1769), new ItemInfo(1770), new ItemInfo(1771), new ItemInfo(1772), + new ItemInfo(1773), new ItemInfo(1774), new ItemInfo(1775), new ItemInfo(1776), new ItemInfo(1777), new ItemInfo(1778), new ItemInfo(1779), new ItemInfo(1780), new ItemInfo(1781), + new ItemInfo(1782), new ItemInfo(1783), new ItemInfo(1784), new ItemInfo(1785), new ItemInfo(1786), new ItemInfo(1787), new ItemInfo(1971), new ItemInfo(1972), new ItemInfo(1973), + new ItemInfo(1974), new ItemInfo(2003), new ItemInfo(2004), new ItemInfo(2005), new ItemInfo(2006), new ItemInfo(2007), new ItemInfo(2008), new ItemInfo(2009), new ItemInfo(2011), + new ItemInfo(2012), new ItemInfo(2013), new ItemInfo(2014), new ItemInfo(2017), new ItemInfo(2018), new ItemInfo(2019), new ItemInfo(2020), new ItemInfo(2021), new ItemInfo(2022), + new ItemInfo(2023), new ItemInfo(2024), new ItemInfo(2025), new ItemInfo(2026), new ItemInfo(2027), new ItemInfo(2028), new ItemInfo(2029), new ItemInfo(2030), new ItemInfo(2031), + new ItemInfo(2032), new ItemInfo(2033), new ItemInfo(2034), new ItemInfo(2035), new ItemInfo(2036), new ItemInfo(2037), new ItemInfo(2038), new ItemInfo(2039), new ItemInfo(2040), + new ItemInfo(2041), new ItemInfo(2042), new ItemInfo(2043), new ItemInfo(2044), new ItemInfo(2045), new ItemInfo(2046), new ItemInfo(2047), new ItemInfo(2048), new ItemInfo(2049), + new ItemInfo(2050), new ItemInfo(2051), new ItemInfo(2052), new ItemInfo(2053), new ItemInfo(2054), new ItemInfo(2055), new ItemInfo(2056), new ItemInfo(2057), new ItemInfo(2058), + new ItemInfo(2059), new ItemInfo(2060), new ItemInfo(2061), new ItemInfo(2062), new ItemInfo(2063), new ItemInfo(2064), new ItemInfo(2065), new ItemInfo(2066), new ItemInfo(2067), + new ItemInfo(2068), new ItemInfo(2069), new ItemInfo(2070), new ItemInfo(2071), new ItemInfo(2072), new ItemInfo(2073), new ItemInfo(2074), new ItemInfo(2075), new ItemInfo(2076), + new ItemInfo(2077), new ItemInfo(2078), new ItemInfo(2079), new ItemInfo(2080), new ItemInfo(2170), new ItemInfo(2171), new ItemInfo(2172), new ItemInfo(2173), new ItemInfo(2188), + new ItemInfo(2189), new ItemInfo(2190), new ItemInfo(2191), new ItemInfo(2192), new ItemInfo(2193), new ItemInfo(2194), new ItemInfo(2195), new ItemInfo(2196), new ItemInfo(2197), + new ItemInfo(2198), new ItemInfo(2199), new ItemInfo(2200), new ItemInfo(2201), new ItemInfo(2202), new ItemInfo(2203), new ItemInfo(2204), new ItemInfo(2205), new ItemInfo(2206) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt2Gump() + : this(0) + { } + + public AddMiscPt2Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt2Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 20.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 20.cs new file mode 100644 index 000000000..5244c970d --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 20.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt20Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt20", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt20_OnCommand)); + } + + [Usage("AddMiscPt20")] + + public static void AddMiscPt20_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt20Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(7719), new ItemInfo(7720), new ItemInfo(7721), new ItemInfo(7722), new ItemInfo(7723), new ItemInfo(7724), new ItemInfo(7725), new ItemInfo(7726), new ItemInfo(7727), + new ItemInfo(7728), new ItemInfo(7729), new ItemInfo(7730), new ItemInfo(7731), new ItemInfo(7732), new ItemInfo(7733), new ItemInfo(7734), new ItemInfo(7735), new ItemInfo(7736), + new ItemInfo(7737), new ItemInfo(7738), new ItemInfo(7739), new ItemInfo(7740), new ItemInfo(7741), new ItemInfo(7742), new ItemInfo(7743), new ItemInfo(7744), new ItemInfo(7745), + new ItemInfo(7746), new ItemInfo(7747), new ItemInfo(7748), new ItemInfo(7749), new ItemInfo(7750), new ItemInfo(7751), new ItemInfo(7752), new ItemInfo(7753), new ItemInfo(7754), + new ItemInfo(7755), new ItemInfo(7756), new ItemInfo(7757), new ItemInfo(7758), new ItemInfo(7759), new ItemInfo(7760), new ItemInfo(7761), new ItemInfo(7762), new ItemInfo(7763), + new ItemInfo(7764), new ItemInfo(7765), new ItemInfo(7766), new ItemInfo(7767), new ItemInfo(7768), new ItemInfo(7769), new ItemInfo(7770), new ItemInfo(7771), new ItemInfo(7772), + new ItemInfo(7773), new ItemInfo(7774), new ItemInfo(7775), new ItemInfo(7776), new ItemInfo(7777), new ItemInfo(7778), new ItemInfo(7779), new ItemInfo(7780), new ItemInfo(7781), + new ItemInfo(7782), new ItemInfo(7783), new ItemInfo(7784), new ItemInfo(7785), new ItemInfo(7786), new ItemInfo(7787), new ItemInfo(7788), new ItemInfo(7789), new ItemInfo(7834), + new ItemInfo(7835), new ItemInfo(7836), new ItemInfo(7837), new ItemInfo(7838), new ItemInfo(7839), new ItemInfo(7840), new ItemInfo(7841), new ItemInfo(7842), new ItemInfo(7843), + new ItemInfo(7844), new ItemInfo(7845), new ItemInfo(7846), new ItemInfo(7847), new ItemInfo(7848), new ItemInfo(7849), new ItemInfo(7850), new ItemInfo(7851), new ItemInfo(7852), + new ItemInfo(7853), new ItemInfo(7854), new ItemInfo(7855), new ItemInfo(7856), new ItemInfo(7857), new ItemInfo(7858), new ItemInfo(7859), new ItemInfo(7860), new ItemInfo(7861), + new ItemInfo(7862), new ItemInfo(7863), new ItemInfo(7864), new ItemInfo(7865), new ItemInfo(7866), new ItemInfo(7867), new ItemInfo(7868), new ItemInfo(7869), new ItemInfo(7870), + new ItemInfo(7871), new ItemInfo(7872), new ItemInfo(7873), new ItemInfo(7874), new ItemInfo(7875), new ItemInfo(7876), new ItemInfo(7877), new ItemInfo(7878), new ItemInfo(7879), + new ItemInfo(7880), new ItemInfo(7881), new ItemInfo(7882), new ItemInfo(7883), new ItemInfo(7884), new ItemInfo(7885), new ItemInfo(7886), new ItemInfo(7887), new ItemInfo(7888), + new ItemInfo(7889), new ItemInfo(7890), new ItemInfo(7891), new ItemInfo(7892), new ItemInfo(7893), new ItemInfo(7894), new ItemInfo(7895), new ItemInfo(7896), new ItemInfo(7897), + new ItemInfo(7898), new ItemInfo(7899), new ItemInfo(7900), new ItemInfo(7901), new ItemInfo(7902), new ItemInfo(7903), new ItemInfo(7904), new ItemInfo(7905), new ItemInfo(7906), + new ItemInfo(7907), new ItemInfo(7908), new ItemInfo(7909), new ItemInfo(7910), new ItemInfo(7911), new ItemInfo(7912), new ItemInfo(7913), new ItemInfo(7914), new ItemInfo(7915), + new ItemInfo(7916), new ItemInfo(7917), new ItemInfo(7918), new ItemInfo(7919), new ItemInfo(7920), new ItemInfo(7921), new ItemInfo(7922), new ItemInfo(7923), new ItemInfo(7924), + new ItemInfo(7925), new ItemInfo(7926), new ItemInfo(7927), new ItemInfo(7928), new ItemInfo(7929), new ItemInfo(7930), new ItemInfo(7931), new ItemInfo(7932), new ItemInfo(7949), + new ItemInfo(7950), new ItemInfo(7951), new ItemInfo(7952), new ItemInfo(7953), new ItemInfo(7954), new ItemInfo(7955), new ItemInfo(7956), new ItemInfo(7957), new ItemInfo(7958), + new ItemInfo(7959), new ItemInfo(7960), new ItemInfo(7961), new ItemInfo(7962), new ItemInfo(7963), new ItemInfo(7964), new ItemInfo(7965), new ItemInfo(7966), new ItemInfo(7967), + new ItemInfo(7968), new ItemInfo(7969), new ItemInfo(7970), new ItemInfo(7971), new ItemInfo(7976), new ItemInfo(7977), new ItemInfo(7978), new ItemInfo(7979), new ItemInfo(7980), + new ItemInfo(7981), new ItemInfo(7982), new ItemInfo(7983), new ItemInfo(7984), new ItemInfo(7985), new ItemInfo(7986), new ItemInfo(7987), new ItemInfo(7988), new ItemInfo(7989), + new ItemInfo(7990), new ItemInfo(7991), new ItemInfo(7992), new ItemInfo(7993), new ItemInfo(7994), new ItemInfo(7995), new ItemInfo(7996), new ItemInfo(7997), new ItemInfo(7998), + new ItemInfo(7999), new ItemInfo(8000), new ItemInfo(8001), new ItemInfo(8002), new ItemInfo(8003), new ItemInfo(8004), new ItemInfo(8005), new ItemInfo(8006), new ItemInfo(8007) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt20Gump() + : this(0) + { } + + public AddMiscPt20Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt20Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 3.cs new file mode 100644 index 000000000..352ac8f2f --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 3.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt3", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt3_OnCommand)); + } + + [Usage("AddMiscPt3")] + + public static void AddMiscPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(2207), new ItemInfo(2208), new ItemInfo(2209), new ItemInfo(2210), new ItemInfo(2211), new ItemInfo(2212), new ItemInfo(2213), new ItemInfo(2214), new ItemInfo(2215), + new ItemInfo(2216), new ItemInfo(2217), new ItemInfo(2218), new ItemInfo(2219), new ItemInfo(2220), new ItemInfo(2221), new ItemInfo(2255), new ItemInfo(2256), new ItemInfo(2257), + new ItemInfo(2258), new ItemInfo(2259), new ItemInfo(2260), new ItemInfo(2261), new ItemInfo(2262), new ItemInfo(2263), new ItemInfo(2264), new ItemInfo(2265), new ItemInfo(2266), + new ItemInfo(2267), new ItemInfo(2268), new ItemInfo(2269), new ItemInfo(2270), new ItemInfo(2271), new ItemInfo(2317), new ItemInfo(2318), new ItemInfo(2319), new ItemInfo(2320), + new ItemInfo(2321), new ItemInfo(2322), new ItemInfo(2323), new ItemInfo(2324), new ItemInfo(2329), new ItemInfo(2330), new ItemInfo(2331), new ItemInfo(2332), new ItemInfo(2333), + new ItemInfo(2334), new ItemInfo(2335), new ItemInfo(2336), new ItemInfo(2337), new ItemInfo(2338), new ItemInfo(2339), new ItemInfo(2340), new ItemInfo(2341), new ItemInfo(2342), + new ItemInfo(2343), new ItemInfo(2344), new ItemInfo(2345), new ItemInfo(2346), new ItemInfo(2347), new ItemInfo(2348), new ItemInfo(2349), new ItemInfo(2350), new ItemInfo(2351), + new ItemInfo(2352), new ItemInfo(2353), new ItemInfo(2354), new ItemInfo(2355), new ItemInfo(2356), new ItemInfo(2357), new ItemInfo(2358), new ItemInfo(2359), new ItemInfo(2360), + new ItemInfo(2361), new ItemInfo(2362), new ItemInfo(2363), new ItemInfo(2364), new ItemInfo(2365), new ItemInfo(2366), new ItemInfo(2367), new ItemInfo(2368), new ItemInfo(2369), + new ItemInfo(2370), new ItemInfo(2371), new ItemInfo(2372), new ItemInfo(2373), new ItemInfo(2374), new ItemInfo(2375), new ItemInfo(2376), new ItemInfo(2377), new ItemInfo(2378), + new ItemInfo(2379), new ItemInfo(2380), new ItemInfo(2381), new ItemInfo(2382), new ItemInfo(2383), new ItemInfo(2384), new ItemInfo(2385), new ItemInfo(2386), new ItemInfo(2387), + new ItemInfo(2388), new ItemInfo(2389), new ItemInfo(2390), new ItemInfo(2391), new ItemInfo(2392), new ItemInfo(2393), new ItemInfo(2394), new ItemInfo(2395), new ItemInfo(2396), + new ItemInfo(2397), new ItemInfo(2398), new ItemInfo(2399), new ItemInfo(2400), new ItemInfo(2401), new ItemInfo(2402), new ItemInfo(2403), new ItemInfo(2404), new ItemInfo(2405), + new ItemInfo(2406), new ItemInfo(2407), new ItemInfo(2408), new ItemInfo(2409), new ItemInfo(2410), new ItemInfo(2411), new ItemInfo(2412), new ItemInfo(2413), new ItemInfo(2414), + new ItemInfo(2415), new ItemInfo(2432), new ItemInfo(2433), new ItemInfo(2434), new ItemInfo(2435), new ItemInfo(2436), new ItemInfo(2437), new ItemInfo(2438), new ItemInfo(2439), + new ItemInfo(2440), new ItemInfo(2441), new ItemInfo(2442), new ItemInfo(2443), new ItemInfo(2472), new ItemInfo(2473), new ItemInfo(2474), new ItemInfo(2475), new ItemInfo(2590), + new ItemInfo(2591), new ItemInfo(2592), new ItemInfo(2593), new ItemInfo(2719), new ItemInfo(2720), new ItemInfo(2721), new ItemInfo(2722), new ItemInfo(2723), new ItemInfo(2724), + new ItemInfo(2725), new ItemInfo(2726), new ItemInfo(2727), new ItemInfo(2728), new ItemInfo(2729), new ItemInfo(2730), new ItemInfo(2731), new ItemInfo(2732), new ItemInfo(2733), + new ItemInfo(2734), new ItemInfo(2735), new ItemInfo(2736), new ItemInfo(2737), new ItemInfo(2738), new ItemInfo(2739), new ItemInfo(2740), new ItemInfo(2741), new ItemInfo(2742), + new ItemInfo(2743), new ItemInfo(2744), new ItemInfo(2745), new ItemInfo(2746), new ItemInfo(2747), new ItemInfo(2748), new ItemInfo(2749), new ItemInfo(2750), new ItemInfo(2751), + new ItemInfo(2752), new ItemInfo(2753), new ItemInfo(2754), new ItemInfo(2755), new ItemInfo(2756), new ItemInfo(2757), new ItemInfo(2758), new ItemInfo(2759), new ItemInfo(2760), + new ItemInfo(2761), new ItemInfo(2762), new ItemInfo(2763), new ItemInfo(2764), new ItemInfo(2765), new ItemInfo(2766), new ItemInfo(2767), new ItemInfo(2768), new ItemInfo(2769), + new ItemInfo(2770), new ItemInfo(2771), new ItemInfo(2772), new ItemInfo(2773), new ItemInfo(2774), new ItemInfo(2775), new ItemInfo(2776), new ItemInfo(2777), new ItemInfo(2778), + new ItemInfo(2779), new ItemInfo(2780), new ItemInfo(2781), new ItemInfo(2782), new ItemInfo(2783), new ItemInfo(2784), new ItemInfo(2785), new ItemInfo(2786), new ItemInfo(2787), + new ItemInfo(2788), new ItemInfo(2789), new ItemInfo(2790), new ItemInfo(2791), new ItemInfo(2792), new ItemInfo(2793), new ItemInfo(2794), new ItemInfo(2795), new ItemInfo(2796) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt3Gump() + : this(0) + { } + + public AddMiscPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 4.cs new file mode 100644 index 000000000..4551dfbc1 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 4.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt4", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt4_OnCommand)); + } + + [Usage("AddMiscPt4")] + + public static void AddMiscPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(2797), new ItemInfo(2798), new ItemInfo(2799), new ItemInfo(2800), new ItemInfo(2801), new ItemInfo(2802), new ItemInfo(2803), new ItemInfo(2804), new ItemInfo(2805), + new ItemInfo(2806), new ItemInfo(2807), new ItemInfo(2808), new ItemInfo(2809), new ItemInfo(2810), new ItemInfo(2811), new ItemInfo(2812), new ItemInfo(2813), new ItemInfo(2814), + new ItemInfo(2815), new ItemInfo(2816), new ItemInfo(2817), new ItemInfo(2818), new ItemInfo(2819), new ItemInfo(2820), new ItemInfo(2821), new ItemInfo(2822), new ItemInfo(2823), + new ItemInfo(2824), new ItemInfo(2825), new ItemInfo(2826), new ItemInfo(2827), new ItemInfo(2828), new ItemInfo(2829), new ItemInfo(2830), new ItemInfo(2831), new ItemInfo(2832), + new ItemInfo(2833), new ItemInfo(2834), new ItemInfo(2835), new ItemInfo(2836), new ItemInfo(2837), new ItemInfo(2838), new ItemInfo(2839), new ItemInfo(2840), new ItemInfo(2841), + new ItemInfo(2857), new ItemInfo(2858), new ItemInfo(2859), new ItemInfo(2860), new ItemInfo(2875), new ItemInfo(2881), new ItemInfo(2882), new ItemInfo(2883), new ItemInfo(2884), + new ItemInfo(2885), new ItemInfo(2886), new ItemInfo(2887), new ItemInfo(2888), new ItemInfo(2965), new ItemInfo(2966), new ItemInfo(2979), new ItemInfo(2980), new ItemInfo(2981), + new ItemInfo(2982), new ItemInfo(2983), new ItemInfo(2984), new ItemInfo(2985), new ItemInfo(2986), new ItemInfo(2987), new ItemInfo(2988), new ItemInfo(2989), new ItemInfo(2990), + new ItemInfo(2991), new ItemInfo(2992), new ItemInfo(2993), new ItemInfo(2994), new ItemInfo(2995), new ItemInfo(2996), new ItemInfo(2997), new ItemInfo(2998), new ItemInfo(2999), + new ItemInfo(3000), new ItemInfo(3001), new ItemInfo(3002), new ItemInfo(3003), new ItemInfo(3004), new ItemInfo(3005), new ItemInfo(3006), new ItemInfo(3007), new ItemInfo(3008), + new ItemInfo(3009), new ItemInfo(3010), new ItemInfo(3011), new ItemInfo(3012), new ItemInfo(3013), new ItemInfo(3014), new ItemInfo(3015), new ItemInfo(3016), new ItemInfo(3017), + new ItemInfo(3018), new ItemInfo(3019), new ItemInfo(3020), new ItemInfo(3021), new ItemInfo(3022), new ItemInfo(3023), new ItemInfo(3024), new ItemInfo(3025), new ItemInfo(3026), + new ItemInfo(3027), new ItemInfo(3028), new ItemInfo(3029), new ItemInfo(3030), new ItemInfo(3031), new ItemInfo(3032), new ItemInfo(3033), new ItemInfo(3034), new ItemInfo(3035), + new ItemInfo(3036), new ItemInfo(3037), new ItemInfo(3038), new ItemInfo(3039), new ItemInfo(3040), new ItemInfo(3041), new ItemInfo(3042), new ItemInfo(3043), new ItemInfo(3044), + new ItemInfo(3045), new ItemInfo(3046), new ItemInfo(3047), new ItemInfo(3048), new ItemInfo(3049), new ItemInfo(3050), new ItemInfo(3051), new ItemInfo(3052), new ItemInfo(3053), + new ItemInfo(3054), new ItemInfo(3055), new ItemInfo(3056), new ItemInfo(3057), new ItemInfo(3058), new ItemInfo(3059), new ItemInfo(3060), new ItemInfo(3061), new ItemInfo(3062), + new ItemInfo(3063), new ItemInfo(3064), new ItemInfo(3065), new ItemInfo(3066), new ItemInfo(3067), new ItemInfo(3068), new ItemInfo(3069), new ItemInfo(3070), new ItemInfo(3071), + new ItemInfo(3072), new ItemInfo(3073), new ItemInfo(3074), new ItemInfo(3075), new ItemInfo(3076), new ItemInfo(3077), new ItemInfo(3078), new ItemInfo(3079), new ItemInfo(3080), + new ItemInfo(3081), new ItemInfo(3082), new ItemInfo(3083), new ItemInfo(3084), new ItemInfo(3085), new ItemInfo(3086), new ItemInfo(3087), new ItemInfo(3094), new ItemInfo(3095), + new ItemInfo(3116), new ItemInfo(3117), new ItemInfo(3118), new ItemInfo(3119), new ItemInfo(3120), new ItemInfo(3127), new ItemInfo(3128), new ItemInfo(3129), new ItemInfo(3130), + new ItemInfo(3139), new ItemInfo(3140), new ItemInfo(3355), new ItemInfo(3356), new ItemInfo(3357), new ItemInfo(3358), new ItemInfo(3359), new ItemInfo(3360), new ItemInfo(3361), + new ItemInfo(3362), new ItemInfo(3363), new ItemInfo(3364), new ItemInfo(3504), new ItemInfo(3505), new ItemInfo(3506), new ItemInfo(3507), new ItemInfo(3508), new ItemInfo(3509), + new ItemInfo(3510), new ItemInfo(3511), new ItemInfo(3526), new ItemInfo(3527), new ItemInfo(3528), new ItemInfo(3529), new ItemInfo(3530), new ItemInfo(3531), new ItemInfo(3532), + new ItemInfo(3533), new ItemInfo(3534), new ItemInfo(3535), new ItemInfo(3536), new ItemInfo(3537), new ItemInfo(3538), new ItemInfo(3539), new ItemInfo(3540), new ItemInfo(3541), + new ItemInfo(3546), new ItemInfo(3547), new ItemInfo(3548), new ItemInfo(3549), new ItemInfo(3550), new ItemInfo(3551), new ItemInfo(3552), new ItemInfo(3563), new ItemInfo(3564) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt4Gump() + : this(0) + { } + + public AddMiscPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 5.cs new file mode 100644 index 000000000..8cefe49d1 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 5.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt5", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt5_OnCommand)); + } + + [Usage("AddMiscPt5")] + + public static void AddMiscPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(3574), new ItemInfo(3575), new ItemInfo(3576), new ItemInfo(3577), new ItemInfo(3578), new ItemInfo(3579), new ItemInfo(3580), new ItemInfo(3581), new ItemInfo(3582), + new ItemInfo(3583), new ItemInfo(3584), new ItemInfo(3585), new ItemInfo(3586), new ItemInfo(3587), new ItemInfo(3588), new ItemInfo(3589), new ItemInfo(3590), new ItemInfo(3591), + new ItemInfo(3592), new ItemInfo(3593), new ItemInfo(3594), new ItemInfo(3595), new ItemInfo(3596), new ItemInfo(3597), new ItemInfo(3598), new ItemInfo(3599), new ItemInfo(3600), + new ItemInfo(3601), new ItemInfo(3602), new ItemInfo(3603), new ItemInfo(3604), new ItemInfo(3605), new ItemInfo(3606), new ItemInfo(3607), new ItemInfo(3608), new ItemInfo(3609), + new ItemInfo(3610), new ItemInfo(3611), new ItemInfo(3612), new ItemInfo(3613), new ItemInfo(3614), new ItemInfo(3615), new ItemInfo(3616), new ItemInfo(3617), new ItemInfo(3618), + new ItemInfo(3619), new ItemInfo(3620), new ItemInfo(3621), new ItemInfo(3622), new ItemInfo(3623), new ItemInfo(3624), new ItemInfo(3625), new ItemInfo(3626), new ItemInfo(3627), + new ItemInfo(3628), new ItemInfo(3629), new ItemInfo(3630), new ItemInfo(3631), new ItemInfo(3632), new ItemInfo(3633), new ItemInfo(3634), new ItemInfo(3635), new ItemInfo(3636), + new ItemInfo(3637), new ItemInfo(3638), new ItemInfo(3639), new ItemInfo(3640), new ItemInfo(3641), new ItemInfo(3642), new ItemInfo(3643), new ItemInfo(3644), new ItemInfo(3645), + new ItemInfo(3646), new ItemInfo(3647), new ItemInfo(3648), new ItemInfo(3649), new ItemInfo(3650), new ItemInfo(3651), new ItemInfo(3652), new ItemInfo(3653), new ItemInfo(3654), + new ItemInfo(3655), new ItemInfo(3656), new ItemInfo(3657), new ItemInfo(3658), new ItemInfo(3659), new ItemInfo(3660), new ItemInfo(3661), new ItemInfo(3662), new ItemInfo(3663), + new ItemInfo(3668), new ItemInfo(3669), new ItemInfo(3670), new ItemInfo(3671), new ItemInfo(3672), new ItemInfo(3673), new ItemInfo(3674), new ItemInfo(3675), new ItemInfo(3676), + new ItemInfo(3677), new ItemInfo(3678), new ItemInfo(3679), new ItemInfo(3680), new ItemInfo(3681), new ItemInfo(3682), new ItemInfo(3683), new ItemInfo(3684), new ItemInfo(3685), + new ItemInfo(3686), new ItemInfo(3687), new ItemInfo(3688), new ItemInfo(3689), new ItemInfo(3690), new ItemInfo(3691), new ItemInfo(3692), new ItemInfo(3693), new ItemInfo(3694), + new ItemInfo(3695), new ItemInfo(3696), new ItemInfo(3697), new ItemInfo(3698), new ItemInfo(3699), new ItemInfo(3700), new ItemInfo(3701), new ItemInfo(3702), new ItemInfo(3703), + new ItemInfo(3704), new ItemInfo(3705), new ItemInfo(3706), new ItemInfo(3707), new ItemInfo(3708), new ItemInfo(3709), new ItemInfo(3710), new ItemInfo(3711), new ItemInfo(3712), + new ItemInfo(3713), new ItemInfo(3714), new ItemInfo(3715), new ItemInfo(3716), new ItemInfo(3717), new ItemInfo(3718), new ItemInfo(3719), new ItemInfo(3720), new ItemInfo(3721), + new ItemInfo(3722), new ItemInfo(3723), new ItemInfo(3724), new ItemInfo(3725), new ItemInfo(3726), new ItemInfo(3727), new ItemInfo(3728), new ItemInfo(3729), new ItemInfo(3730), + new ItemInfo(3731), new ItemInfo(3732), new ItemInfo(3733), new ItemInfo(3734), new ItemInfo(3735), new ItemInfo(3736), new ItemInfo(3737), new ItemInfo(3738), new ItemInfo(3739), + new ItemInfo(3740), new ItemInfo(3741), new ItemInfo(3742), new ItemInfo(3743), new ItemInfo(3744), new ItemInfo(3745), new ItemInfo(3746), new ItemInfo(3747), new ItemInfo(3748), + new ItemInfo(3749), new ItemInfo(3750), new ItemInfo(3751), new ItemInfo(3752), new ItemInfo(3753), new ItemInfo(3754), new ItemInfo(3755), new ItemInfo(3756), new ItemInfo(3757), + new ItemInfo(3758), new ItemInfo(3759), new ItemInfo(3760), new ItemInfo(3761), new ItemInfo(3762), new ItemInfo(3763), new ItemInfo(3764), new ItemInfo(3765), new ItemInfo(3766), + new ItemInfo(3767), new ItemInfo(3768), new ItemInfo(3769), new ItemInfo(3770), new ItemInfo(3771), new ItemInfo(3772), new ItemInfo(3773), new ItemInfo(3774), new ItemInfo(3775), + new ItemInfo(3776), new ItemInfo(3777), new ItemInfo(3778), new ItemInfo(3779), new ItemInfo(3780), new ItemInfo(3781), new ItemInfo(3782), new ItemInfo(3783), new ItemInfo(3784), + new ItemInfo(3785), new ItemInfo(3786), new ItemInfo(3787), new ItemInfo(3788), new ItemInfo(3789), new ItemInfo(3790), new ItemInfo(3791), new ItemInfo(3792), new ItemInfo(3793), + new ItemInfo(3794), new ItemInfo(3795), new ItemInfo(3796), new ItemInfo(3797), new ItemInfo(3798), new ItemInfo(3799), new ItemInfo(3800), new ItemInfo(3801), new ItemInfo(3802) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt5Gump() + : this(0) + { } + + public AddMiscPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 6.cs new file mode 100644 index 000000000..12f3737ce --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 6.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt6Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt6", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt6_OnCommand)); + } + + [Usage("AddMiscPt6")] + + public static void AddMiscPt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt6Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(3803), new ItemInfo(3804), new ItemInfo(3805), new ItemInfo(3806), new ItemInfo(3807), new ItemInfo(3808), new ItemInfo(3809), new ItemInfo(3810), new ItemInfo(3811), + new ItemInfo(3812), new ItemInfo(3813), new ItemInfo(3814), new ItemInfo(3815), new ItemInfo(3816), new ItemInfo(3817), new ItemInfo(3818), new ItemInfo(3819), new ItemInfo(3820), + new ItemInfo(3821), new ItemInfo(3822), new ItemInfo(3823), new ItemInfo(3824), new ItemInfo(3825), new ItemInfo(3826), new ItemInfo(3941), new ItemInfo(3942), new ItemInfo(3943), + new ItemInfo(3944), new ItemInfo(3945), new ItemInfo(3946), new ItemInfo(3948), new ItemInfo(3949), new ItemInfo(3950), new ItemInfo(3951), new ItemInfo(3952), new ItemInfo(3953), + new ItemInfo(3954), new ItemInfo(3955), new ItemInfo(3956), new ItemInfo(3957), new ItemInfo(3958), new ItemInfo(3959), new ItemInfo(3960), new ItemInfo(3961), new ItemInfo(3962), + new ItemInfo(3963), new ItemInfo(3964), new ItemInfo(3965), new ItemInfo(3966), new ItemInfo(3967), new ItemInfo(3968), new ItemInfo(3969), new ItemInfo(3970), new ItemInfo(3971), + new ItemInfo(3972), new ItemInfo(3973), new ItemInfo(3974), new ItemInfo(3975), new ItemInfo(3976), new ItemInfo(3977), new ItemInfo(3978), new ItemInfo(3979), new ItemInfo(3980), + new ItemInfo(3981), new ItemInfo(3982), new ItemInfo(3983), new ItemInfo(3984), new ItemInfo(3985), new ItemInfo(3986), new ItemInfo(3987), new ItemInfo(3988), new ItemInfo(3989), + new ItemInfo(3990), new ItemInfo(3991), new ItemInfo(3992), new ItemInfo(3993), new ItemInfo(3994), new ItemInfo(3995), new ItemInfo(3996), new ItemInfo(3997), new ItemInfo(3998), + new ItemInfo(3999), new ItemInfo(4000), new ItemInfo(4001), new ItemInfo(4002), new ItemInfo(4003), new ItemInfo(4004), new ItemInfo(4005), new ItemInfo(4006), new ItemInfo(4007), + new ItemInfo(4008), new ItemInfo(4009), new ItemInfo(4010), new ItemInfo(4011), new ItemInfo(4012), new ItemInfo(4013), new ItemInfo(4014), new ItemInfo(4015), new ItemInfo(4016), + new ItemInfo(4017), new ItemInfo(4018), new ItemInfo(4019), new ItemInfo(4020), new ItemInfo(4021), new ItemInfo(4022), new ItemInfo(4023), new ItemInfo(4024), new ItemInfo(4025), + new ItemInfo(4026), new ItemInfo(4027), new ItemInfo(4028), new ItemInfo(4029), new ItemInfo(4030), new ItemInfo(4031), new ItemInfo(4032), new ItemInfo(4033), new ItemInfo(4034), + new ItemInfo(4035), new ItemInfo(4036), new ItemInfo(4037), new ItemInfo(4038), new ItemInfo(4039), new ItemInfo(4040), new ItemInfo(4041), new ItemInfo(4042), new ItemInfo(4043), + new ItemInfo(4044), new ItemInfo(4045), new ItemInfo(4046), new ItemInfo(4047), new ItemInfo(4048), new ItemInfo(4049), new ItemInfo(4050), new ItemInfo(4051), new ItemInfo(4052), + new ItemInfo(4053), new ItemInfo(4054), new ItemInfo(4055), new ItemInfo(4056), new ItemInfo(4057), new ItemInfo(4058), new ItemInfo(4059), new ItemInfo(4060), new ItemInfo(4061), + new ItemInfo(4062), new ItemInfo(4063), new ItemInfo(4064), new ItemInfo(4065), new ItemInfo(4066), new ItemInfo(4067), new ItemInfo(4068), new ItemInfo(4069), new ItemInfo(4070), + new ItemInfo(4071), new ItemInfo(4072), new ItemInfo(4073), new ItemInfo(4074), new ItemInfo(4075), new ItemInfo(4076), new ItemInfo(4077), new ItemInfo(4078), new ItemInfo(4079), + new ItemInfo(4080), new ItemInfo(4081), new ItemInfo(4082), new ItemInfo(4083), new ItemInfo(4084), new ItemInfo(4085), new ItemInfo(4106), new ItemInfo(4107), new ItemInfo(4108), + new ItemInfo(4109), new ItemInfo(4110), new ItemInfo(4111), new ItemInfo(4112), new ItemInfo(4113), new ItemInfo(4114), new ItemInfo(4115), new ItemInfo(4116), new ItemInfo(4117), + new ItemInfo(4118), new ItemInfo(4119), new ItemInfo(4120), new ItemInfo(4121), new ItemInfo(4122), new ItemInfo(4123), new ItemInfo(4124), new ItemInfo(4125), new ItemInfo(4126), + new ItemInfo(4127), new ItemInfo(4128), new ItemInfo(4129), new ItemInfo(4130), new ItemInfo(4131), new ItemInfo(4132), new ItemInfo(4133), new ItemInfo(4134), new ItemInfo(4135), + new ItemInfo(4136), new ItemInfo(4137), new ItemInfo(4138), new ItemInfo(4139), new ItemInfo(4140), new ItemInfo(4141), new ItemInfo(4142), new ItemInfo(4143), new ItemInfo(4144), + new ItemInfo(4145), new ItemInfo(4146), new ItemInfo(4147), new ItemInfo(4148), new ItemInfo(4149), new ItemInfo(4150), new ItemInfo(4151), new ItemInfo(4152), new ItemInfo(4167), + new ItemInfo(4168), new ItemInfo(4169), new ItemInfo(4170), new ItemInfo(4171), new ItemInfo(4172), new ItemInfo(4173), new ItemInfo(4174), new ItemInfo(4175), new ItemInfo(4176) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt6Gump() + : this(0) + { } + + public AddMiscPt6Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt6Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 7.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 7.cs new file mode 100644 index 000000000..2c260b298 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 7.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt7Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt7", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt7_OnCommand)); + } + + [Usage("AddMiscPt7")] + + public static void AddMiscPt7_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt7Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(4177), new ItemInfo(4178), new ItemInfo(4179), new ItemInfo(4180), new ItemInfo(4181), new ItemInfo(4182), new ItemInfo(4183), new ItemInfo(4184), new ItemInfo(4185), + new ItemInfo(4186), new ItemInfo(4187), new ItemInfo(4188), new ItemInfo(4189), new ItemInfo(4190), new ItemInfo(4191), new ItemInfo(4192), new ItemInfo(4193), new ItemInfo(4194), + new ItemInfo(4195), new ItemInfo(4196), new ItemInfo(4197), new ItemInfo(4198), new ItemInfo(4199), new ItemInfo(4200), new ItemInfo(4201), new ItemInfo(4202), new ItemInfo(4203), + new ItemInfo(4204), new ItemInfo(4205), new ItemInfo(4206), new ItemInfo(4207), new ItemInfo(4208), new ItemInfo(4209), new ItemInfo(4210), new ItemInfo(4211), new ItemInfo(4212), + new ItemInfo(4213), new ItemInfo(4214), new ItemInfo(4215), new ItemInfo(4216), new ItemInfo(4217), new ItemInfo(4218), new ItemInfo(4219), new ItemInfo(4220), new ItemInfo(4221), + new ItemInfo(4222), new ItemInfo(4223), new ItemInfo(4224), new ItemInfo(4225), new ItemInfo(4226), new ItemInfo(4228), new ItemInfo(4229), new ItemInfo(4230), new ItemInfo(4231), + new ItemInfo(4232), new ItemInfo(4233), new ItemInfo(4234), new ItemInfo(4235), new ItemInfo(4236), new ItemInfo(4237), new ItemInfo(4238), new ItemInfo(4239), new ItemInfo(4240), + new ItemInfo(4241), new ItemInfo(4242), new ItemInfo(4243), new ItemInfo(4244), new ItemInfo(4245), new ItemInfo(4246), new ItemInfo(4247), new ItemInfo(4248), new ItemInfo(4249), + new ItemInfo(4250), new ItemInfo(4251), new ItemInfo(4252), new ItemInfo(4253), new ItemInfo(4254), new ItemInfo(4255), new ItemInfo(4256), new ItemInfo(4257), new ItemInfo(4258), + new ItemInfo(4259), new ItemInfo(4260), new ItemInfo(4261), new ItemInfo(4262), new ItemInfo(4263), new ItemInfo(4264), new ItemInfo(4265), new ItemInfo(4266), new ItemInfo(4267), + new ItemInfo(4268), new ItemInfo(4269), new ItemInfo(4270), new ItemInfo(4271), new ItemInfo(4272), new ItemInfo(4273), new ItemInfo(4274), new ItemInfo(4275), new ItemInfo(4276), + new ItemInfo(4277), new ItemInfo(4278), new ItemInfo(4279), new ItemInfo(4280), new ItemInfo(4281), new ItemInfo(4282), new ItemInfo(4283), new ItemInfo(4284), new ItemInfo(4285), + new ItemInfo(4286), new ItemInfo(4287), new ItemInfo(4288), new ItemInfo(4289), new ItemInfo(4290), new ItemInfo(4291), new ItemInfo(4292), new ItemInfo(4293), new ItemInfo(4294), + new ItemInfo(4295), new ItemInfo(4296), new ItemInfo(4297), new ItemInfo(4298), new ItemInfo(4299), new ItemInfo(4300), new ItemInfo(4301), new ItemInfo(4302), new ItemInfo(4303), + new ItemInfo(4304), new ItemInfo(4305), new ItemInfo(4306), new ItemInfo(4307), new ItemInfo(4308), new ItemInfo(4309), new ItemInfo(4310), new ItemInfo(4311), new ItemInfo(4312), + new ItemInfo(4313), new ItemInfo(4314), new ItemInfo(4315), new ItemInfo(4316), new ItemInfo(4317), new ItemInfo(4318), new ItemInfo(4319), new ItemInfo(4320), new ItemInfo(4321), + new ItemInfo(4322), new ItemInfo(4323), new ItemInfo(4324), new ItemInfo(4325), new ItemInfo(4326), new ItemInfo(4327), new ItemInfo(4328), new ItemInfo(4329), new ItemInfo(4330), + new ItemInfo(4331), new ItemInfo(4332), new ItemInfo(4333), new ItemInfo(4334), new ItemInfo(4335), new ItemInfo(4336), new ItemInfo(4337), new ItemInfo(4338), new ItemInfo(4339), + new ItemInfo(4340), new ItemInfo(4341), new ItemInfo(4342), new ItemInfo(4343), new ItemInfo(4344), new ItemInfo(4345), new ItemInfo(4346), new ItemInfo(4347), new ItemInfo(4348), + new ItemInfo(4349), new ItemInfo(4350), new ItemInfo(4351), new ItemInfo(4352), new ItemInfo(4353), new ItemInfo(4354), new ItemInfo(4355), new ItemInfo(4356), new ItemInfo(4357), + new ItemInfo(4358), new ItemInfo(4359), new ItemInfo(4360), new ItemInfo(4361), new ItemInfo(4362), new ItemInfo(4363), new ItemInfo(4364), new ItemInfo(4365), new ItemInfo(4366), + new ItemInfo(4367), new ItemInfo(4368), new ItemInfo(4369), new ItemInfo(4370), new ItemInfo(4371), new ItemInfo(4372), new ItemInfo(4373), new ItemInfo(4374), new ItemInfo(4375), + new ItemInfo(4376), new ItemInfo(4377), new ItemInfo(4378), new ItemInfo(4379), new ItemInfo(4380), new ItemInfo(4381), new ItemInfo(4382), new ItemInfo(4383), new ItemInfo(4384), + new ItemInfo(4385), new ItemInfo(4386), new ItemInfo(4387), new ItemInfo(4388), new ItemInfo(4389), new ItemInfo(4390), new ItemInfo(4391), new ItemInfo(4392), new ItemInfo(4393), + new ItemInfo(4394), new ItemInfo(4395), new ItemInfo(4396), new ItemInfo(4397), new ItemInfo(4398), new ItemInfo(4399), new ItemInfo(4400), new ItemInfo(4401), new ItemInfo(4402) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt7Gump() + : this(0) + { } + + public AddMiscPt7Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt7Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 8.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 8.cs new file mode 100644 index 000000000..2544d6c51 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 8.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt8Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt8", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt8_OnCommand)); + } + + [Usage("AddMiscPt8")] + + public static void AddMiscPt8_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt8Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(4403), new ItemInfo(4404), new ItemInfo(4405), new ItemInfo(4406), new ItemInfo(4407), new ItemInfo(4408), new ItemInfo(4409), new ItemInfo(4410), new ItemInfo(4411), + new ItemInfo(4412), new ItemInfo(4413), new ItemInfo(4414), new ItemInfo(4415), new ItemInfo(4416), new ItemInfo(4417), new ItemInfo(4418), new ItemInfo(4419), new ItemInfo(4420), + new ItemInfo(4421), new ItemInfo(4422), new ItemInfo(4423), new ItemInfo(4424), new ItemInfo(4425), new ItemInfo(4426), new ItemInfo(4427), new ItemInfo(4428), new ItemInfo(4429), + new ItemInfo(4430), new ItemInfo(4431), new ItemInfo(4432), new ItemInfo(4433), new ItemInfo(4434), new ItemInfo(4435), new ItemInfo(4436), new ItemInfo(4437), new ItemInfo(4438), + new ItemInfo(4439), new ItemInfo(4440), new ItemInfo(4441), new ItemInfo(4442), new ItemInfo(4443), new ItemInfo(4444), new ItemInfo(4445), new ItemInfo(4446), new ItemInfo(4447), + new ItemInfo(4448), new ItemInfo(4449), new ItemInfo(4450), new ItemInfo(4451), new ItemInfo(4452), new ItemInfo(4453), new ItemInfo(4454), new ItemInfo(4455), new ItemInfo(4456), + new ItemInfo(4457), new ItemInfo(4458), new ItemInfo(4459), new ItemInfo(4460), new ItemInfo(4461), new ItemInfo(4462), new ItemInfo(4463), new ItemInfo(4464), new ItemInfo(4465), + new ItemInfo(4466), new ItemInfo(4467), new ItemInfo(4468), new ItemInfo(4469), new ItemInfo(4470), new ItemInfo(4471), new ItemInfo(4472), new ItemInfo(4473), new ItemInfo(4474), + new ItemInfo(4475), new ItemInfo(4476), new ItemInfo(4477), new ItemInfo(4478), new ItemInfo(4479), new ItemInfo(4480), new ItemInfo(4481), new ItemInfo(4482), new ItemInfo(4483), + new ItemInfo(4484), new ItemInfo(4485), new ItemInfo(4486), new ItemInfo(4487), new ItemInfo(4488), new ItemInfo(4489), new ItemInfo(4490), new ItemInfo(4491), new ItemInfo(4492), + new ItemInfo(4493), new ItemInfo(4494), new ItemInfo(4495), new ItemInfo(4496), new ItemInfo(4497), new ItemInfo(4498), new ItemInfo(4499), new ItemInfo(4500), new ItemInfo(4501), + new ItemInfo(4502), new ItemInfo(4503), new ItemInfo(4504), new ItemInfo(4505), new ItemInfo(4506), new ItemInfo(4507), new ItemInfo(4508), new ItemInfo(4509), new ItemInfo(4510), + new ItemInfo(4511), new ItemInfo(4512), new ItemInfo(4513), new ItemInfo(4514), new ItemInfo(4515), new ItemInfo(4516), new ItemInfo(4517), new ItemInfo(4518), new ItemInfo(4519), + new ItemInfo(4520), new ItemInfo(4521), new ItemInfo(4522), new ItemInfo(4523), new ItemInfo(4524), new ItemInfo(4525), new ItemInfo(4526), new ItemInfo(4527), new ItemInfo(4528), + new ItemInfo(4529), new ItemInfo(4530), new ItemInfo(4531), new ItemInfo(4532), new ItemInfo(4533), new ItemInfo(4534), new ItemInfo(4535), new ItemInfo(4536), new ItemInfo(4537), + new ItemInfo(4538), new ItemInfo(4539), new ItemInfo(4544), new ItemInfo(4545), new ItemInfo(4546), new ItemInfo(4547), new ItemInfo(4548), new ItemInfo(4549), new ItemInfo(4550), + new ItemInfo(4551), new ItemInfo(4552), new ItemInfo(4553), new ItemInfo(4554), new ItemInfo(4555), new ItemInfo(4556), new ItemInfo(4557), new ItemInfo(4566), new ItemInfo(4567), + new ItemInfo(3565), new ItemInfo(3566), new ItemInfo(3567), new ItemInfo(3568), new ItemInfo(3569), new ItemInfo(3570), new ItemInfo(3571), new ItemInfo(3572), new ItemInfo(3573), + new ItemInfo(4568), new ItemInfo(4569), new ItemInfo(4570), new ItemInfo(4571), new ItemInfo(4572), new ItemInfo(4573), new ItemInfo(4574), new ItemInfo(4575), new ItemInfo(4576), + new ItemInfo(4577), new ItemInfo(4578), new ItemInfo(4579), new ItemInfo(4580), new ItemInfo(4581), new ItemInfo(4582), new ItemInfo(4583), new ItemInfo(4584), new ItemInfo(4585), + new ItemInfo(4586), new ItemInfo(4587), new ItemInfo(4588), new ItemInfo(4589), new ItemInfo(4590), new ItemInfo(4591), new ItemInfo(4621), new ItemInfo(4622), new ItemInfo(4623), + new ItemInfo(4624), new ItemInfo(4625), new ItemInfo(4626), new ItemInfo(4627), new ItemInfo(4628), new ItemInfo(4629), new ItemInfo(4630), new ItemInfo(4631), new ItemInfo(4636), + new ItemInfo(4637), new ItemInfo(4638), new ItemInfo(4639), new ItemInfo(4640), new ItemInfo(4641), new ItemInfo(4642), new ItemInfo(4643), new ItemInfo(4644), new ItemInfo(4645), + new ItemInfo(4646), new ItemInfo(4647), new ItemInfo(4648), new ItemInfo(4649), new ItemInfo(4650), new ItemInfo(4651), new ItemInfo(4652), new ItemInfo(4653), new ItemInfo(4654), + new ItemInfo(4655), new ItemInfo(4656), new ItemInfo(4657), new ItemInfo(4658), new ItemInfo(4659), new ItemInfo(4660), new ItemInfo(4661), new ItemInfo(4662), new ItemInfo(4663) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt8Gump() + : this(0) + { } + + public AddMiscPt8Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt8Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 9.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 9.cs new file mode 100644 index 000000000..96d7e959a --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc/Misc 9.cs @@ -0,0 +1,158 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMiscPt9Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMiscPt9", AccessLevel.GameMaster, new CommandEventHandler(AddMiscPt9_OnCommand)); + } + + [Usage("AddMiscPt9")] + + public static void AddMiscPt9_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMiscPt9Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(4664), new ItemInfo(4665), new ItemInfo(4666), new ItemInfo(4667), new ItemInfo(4668), new ItemInfo(4669), new ItemInfo(4670), new ItemInfo(4671), new ItemInfo(4672), + new ItemInfo(4673), new ItemInfo(4674), new ItemInfo(4675), new ItemInfo(4676), new ItemInfo(4677), new ItemInfo(4678), new ItemInfo(4679), new ItemInfo(4680), new ItemInfo(4681), + new ItemInfo(4682), new ItemInfo(4683), new ItemInfo(4684), new ItemInfo(4685), new ItemInfo(4686), new ItemInfo(4687), new ItemInfo(4688), new ItemInfo(4689), new ItemInfo(4690), + new ItemInfo(4691), new ItemInfo(4692), new ItemInfo(4693), new ItemInfo(4694), new ItemInfo(4695), new ItemInfo(4696), new ItemInfo(4697), new ItemInfo(4698), new ItemInfo(4699), + new ItemInfo(4700), new ItemInfo(4701), new ItemInfo(4702), new ItemInfo(4703), new ItemInfo(4704), new ItemInfo(4705), new ItemInfo(4706), new ItemInfo(4707), new ItemInfo(4708), + new ItemInfo(4709), new ItemInfo(4710), new ItemInfo(4711), new ItemInfo(4712), new ItemInfo(4713), new ItemInfo(4714), new ItemInfo(4715), new ItemInfo(4716), new ItemInfo(4717), + new ItemInfo(4718), new ItemInfo(4719), new ItemInfo(4720), new ItemInfo(4721), new ItemInfo(4722), new ItemInfo(4723), new ItemInfo(4724), new ItemInfo(4725), new ItemInfo(4726), + new ItemInfo(4727), new ItemInfo(4728), new ItemInfo(4729), new ItemInfo(4730), new ItemInfo(4731), new ItemInfo(4732), new ItemInfo(4733), new ItemInfo(4734), new ItemInfo(4735), + new ItemInfo(4736), new ItemInfo(4737), new ItemInfo(4738), new ItemInfo(4739), new ItemInfo(4740), new ItemInfo(4741), new ItemInfo(4742), new ItemInfo(4743), new ItemInfo(4744), + new ItemInfo(4745), new ItemInfo(4746), new ItemInfo(4747), new ItemInfo(4748), new ItemInfo(4749), new ItemInfo(4750), new ItemInfo(4751), new ItemInfo(4752), new ItemInfo(4753), + new ItemInfo(4754), new ItemInfo(4755), new ItemInfo(4756), new ItemInfo(4757), new ItemInfo(4758), new ItemInfo(4759), new ItemInfo(4760), new ItemInfo(4761), new ItemInfo(4762), + new ItemInfo(4763), new ItemInfo(4764), new ItemInfo(4765), new ItemInfo(4766), new ItemInfo(4767), new ItemInfo(4768), new ItemInfo(4769), new ItemInfo(4770), new ItemInfo(4771), + new ItemInfo(4772), new ItemInfo(4773), new ItemInfo(4774), new ItemInfo(4775), new ItemInfo(4776), new ItemInfo(4777), new ItemInfo(4778), new ItemInfo(4779), new ItemInfo(4780), + new ItemInfo(4781), new ItemInfo(4782), new ItemInfo(4783), new ItemInfo(4784), new ItemInfo(4785), new ItemInfo(4786), new ItemInfo(4787), new ItemInfo(4788), new ItemInfo(4808), + new ItemInfo(4809), new ItemInfo(4810), new ItemInfo(4811), new ItemInfo(4812), new ItemInfo(4813), new ItemInfo(4814), new ItemInfo(4815), new ItemInfo(4816), new ItemInfo(4817), + new ItemInfo(4818), new ItemInfo(4819), new ItemInfo(4820), new ItemInfo(4821), new ItemInfo(4822), new ItemInfo(4823), new ItemInfo(4824), new ItemInfo(4825), new ItemInfo(4826), + new ItemInfo(4827), new ItemInfo(4828), new ItemInfo(4829), new ItemInfo(4830), new ItemInfo(4831), new ItemInfo(4832), new ItemInfo(4833), new ItemInfo(4834), new ItemInfo(4835), + new ItemInfo(4836), new ItemInfo(4837), new ItemInfo(4838), new ItemInfo(4839), new ItemInfo(4840), new ItemInfo(4841), new ItemInfo(4842), new ItemInfo(4843), new ItemInfo(4844), + new ItemInfo(4845), new ItemInfo(4942), new ItemInfo(4975), new ItemInfo(4976), new ItemInfo(4977), new ItemInfo(4978), new ItemInfo(4979), new ItemInfo(4980), new ItemInfo(4981), + new ItemInfo(4982), new ItemInfo(4983), new ItemInfo(4984), new ItemInfo(4985), new ItemInfo(4986), new ItemInfo(4987), new ItemInfo(4988), new ItemInfo(4989), new ItemInfo(4995), + new ItemInfo(4996), new ItemInfo(4997), new ItemInfo(4998), new ItemInfo(4999), new ItemInfo(5000), new ItemInfo(5001), new ItemInfo(5002), new ItemInfo(5003), new ItemInfo(5004), + new ItemInfo(5005), new ItemInfo(5006), new ItemInfo(5007), new ItemInfo(5008), new ItemInfo(5009), new ItemInfo(5010), new ItemInfo(5011), new ItemInfo(5012), new ItemInfo(5013), + new ItemInfo(5014), new ItemInfo(5015), new ItemInfo(5016), new ItemInfo(5017), new ItemInfo(5018), new ItemInfo(5019), new ItemInfo(5020), new ItemInfo(5021), new ItemInfo(5022), + new ItemInfo(5023), new ItemInfo(5024), new ItemInfo(5025), new ItemInfo(5026), new ItemInfo(5027), new ItemInfo(5028), new ItemInfo(5029), new ItemInfo(5030), new ItemInfo(5031), + new ItemInfo(5032), new ItemInfo(5033), new ItemInfo(5034), new ItemInfo(5035), new ItemInfo(5036), new ItemInfo(5037), new ItemInfo(5038), new ItemInfo(5152), new ItemInfo(5153), + new ItemInfo(5154), new ItemInfo(5155), new ItemInfo(5156), new ItemInfo(5157), new ItemInfo(5158), new ItemInfo(5159), new ItemInfo(5160), new ItemInfo(5161), new ItemInfo(5162) + #endregion + }; + + private int m_Page; + + + + public AddMiscPt9Gump() + : this(0) + { } + + public AddMiscPt9Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMiscPt9Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 1.cs new file mode 100644 index 000000000..7cc57de38 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 1.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt1Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt1", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt1_OnCommand)); + } + + [Usage("AddMisc2Pt1")] + + public static void AddMisc2Pt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt1Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(8008), new ItemInfo(8009), new ItemInfo(8010), new ItemInfo(8011), new ItemInfo(8012), new ItemInfo(8013), new ItemInfo(8014), new ItemInfo(8015), new ItemInfo(8016), + new ItemInfo(8017), new ItemInfo(8018), new ItemInfo(8019), new ItemInfo(8020), new ItemInfo(8021), new ItemInfo(8022), new ItemInfo(8023), new ItemInfo(8024), new ItemInfo(8025), + new ItemInfo(8026), new ItemInfo(8027), new ItemInfo(8028), new ItemInfo(8029), new ItemInfo(8030), new ItemInfo(8031), new ItemInfo(8032), new ItemInfo(8033), new ItemInfo(8034), + new ItemInfo(8035), new ItemInfo(8036), new ItemInfo(8037), new ItemInfo(8038), new ItemInfo(8039), new ItemInfo(8040), new ItemInfo(8041), new ItemInfo(8042), new ItemInfo(8043), + new ItemInfo(8044), new ItemInfo(8045), new ItemInfo(8046), new ItemInfo(8047), new ItemInfo(8048), new ItemInfo(8049), new ItemInfo(8050), new ItemInfo(8051), new ItemInfo(8052), + new ItemInfo(8053), new ItemInfo(8054), new ItemInfo(8055), new ItemInfo(8056), new ItemInfo(8057), new ItemInfo(8058), new ItemInfo(8061), new ItemInfo(8062), new ItemInfo(8063), + new ItemInfo(8064), new ItemInfo(8065), new ItemInfo(8066), new ItemInfo(8067), new ItemInfo(8068), new ItemInfo(8069), new ItemInfo(8070), new ItemInfo(8071), new ItemInfo(8072), + new ItemInfo(8073), new ItemInfo(8074), new ItemInfo(8075), new ItemInfo(8076), new ItemInfo(8077), new ItemInfo(8078), new ItemInfo(8079), new ItemInfo(8080), new ItemInfo(8081), + new ItemInfo(8082), new ItemInfo(8083), new ItemInfo(8084), new ItemInfo(8085), new ItemInfo(8086), new ItemInfo(8087), new ItemInfo(8088), new ItemInfo(8089), new ItemInfo(8090), + new ItemInfo(8091), new ItemInfo(8092), new ItemInfo(8093), new ItemInfo(8094), new ItemInfo(8099), new ItemInfo(8100), new ItemInfo(8101), new ItemInfo(8102), new ItemInfo(8103), + new ItemInfo(8104), new ItemInfo(8105), new ItemInfo(8106), new ItemInfo(8107), new ItemInfo(8108), new ItemInfo(8109), new ItemInfo(8110), new ItemInfo(8111), new ItemInfo(8112), + new ItemInfo(8113), new ItemInfo(8114), new ItemInfo(8115), new ItemInfo(8116), new ItemInfo(8117), new ItemInfo(8118), new ItemInfo(8119), new ItemInfo(8120), new ItemInfo(8121), + new ItemInfo(8122), new ItemInfo(8123), new ItemInfo(8124), new ItemInfo(8125), new ItemInfo(8126), new ItemInfo(8127), new ItemInfo(8128), new ItemInfo(8129), new ItemInfo(8130), + new ItemInfo(8131), new ItemInfo(8132), new ItemInfo(8133), new ItemInfo(8134), new ItemInfo(8135), new ItemInfo(8136), new ItemInfo(8137), new ItemInfo(8138), new ItemInfo(8139), + new ItemInfo(8140), new ItemInfo(8141), new ItemInfo(8142), new ItemInfo(8143), new ItemInfo(8144), new ItemInfo(8145), new ItemInfo(8146), new ItemInfo(8147), new ItemInfo(8148), + new ItemInfo(8149), new ItemInfo(8150), new ItemInfo(8151), new ItemInfo(8152), new ItemInfo(8153), new ItemInfo(8154), new ItemInfo(8155), new ItemInfo(8156), new ItemInfo(8157), + new ItemInfo(8158), new ItemInfo(8159), new ItemInfo(8160), new ItemInfo(8161), new ItemInfo(8162), new ItemInfo(8163), new ItemInfo(8164), new ItemInfo(8165), new ItemInfo(8166), + new ItemInfo(8167), new ItemInfo(8168), new ItemInfo(8169), new ItemInfo(8170), new ItemInfo(8171), new ItemInfo(8172), new ItemInfo(8173), new ItemInfo(8174), new ItemInfo(8175), + new ItemInfo(8176), new ItemInfo(8177), new ItemInfo(8178), new ItemInfo(8179), new ItemInfo(8180), new ItemInfo(8181), new ItemInfo(8182), new ItemInfo(8183), new ItemInfo(8184), + new ItemInfo(8185), new ItemInfo(8186), new ItemInfo(8187), new ItemInfo(8188), new ItemInfo(8191), new ItemInfo(8192), new ItemInfo(8193), new ItemInfo(8194), new ItemInfo(8195), + new ItemInfo(8196), new ItemInfo(8197), new ItemInfo(8198), new ItemInfo(8199), new ItemInfo(8200), new ItemInfo(8201), new ItemInfo(8202), new ItemInfo(8203), new ItemInfo(8204), + new ItemInfo(8205), new ItemInfo(8206), new ItemInfo(8207), new ItemInfo(8208), new ItemInfo(8209), new ItemInfo(8210), new ItemInfo(8211), new ItemInfo(8212), new ItemInfo(8213), + new ItemInfo(8214), new ItemInfo(8215), new ItemInfo(8216), new ItemInfo(8217), new ItemInfo(8218), new ItemInfo(8219), new ItemInfo(8220), new ItemInfo(8221), new ItemInfo(8222), + new ItemInfo(8223), new ItemInfo(8224), new ItemInfo(8225), new ItemInfo(8226), new ItemInfo(8227), new ItemInfo(8228), new ItemInfo(8229), new ItemInfo(8230), new ItemInfo(8231), + new ItemInfo(8232), new ItemInfo(8233), new ItemInfo(8234), new ItemInfo(8235), new ItemInfo(8236), new ItemInfo(8237), new ItemInfo(8238), new ItemInfo(8239), new ItemInfo(8240) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt1Gump() + : this(0) + { } + + public AddMisc2Pt1Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt1Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 10.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 10.cs new file mode 100644 index 000000000..fe8a15fa7 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 10.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt10Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt10", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt10_OnCommand)); + } + + [Usage("AddMisc2Pt10")] + + public static void AddMisc2Pt10_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt10Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(12988), new ItemInfo(12989), new ItemInfo(12990), new ItemInfo(12991), new ItemInfo(12992), new ItemInfo(12993), new ItemInfo(12994), new ItemInfo(12995), new ItemInfo(13040), + new ItemInfo(13042), new ItemInfo(13043), new ItemInfo(13044), new ItemInfo(13045), new ItemInfo(13046), new ItemInfo(13047), new ItemInfo(13048), new ItemInfo(13178), new ItemInfo(13549), + new ItemInfo(13550), new ItemInfo(13551), new ItemInfo(13552), new ItemInfo(13553), new ItemInfo(13554), new ItemInfo(13555), new ItemInfo(13556), new ItemInfo(13557), new ItemInfo(13558), + new ItemInfo(13559), new ItemInfo(13560), new ItemInfo(13561), new ItemInfo(13562), new ItemInfo(13563), new ItemInfo(13564), new ItemInfo(13565), new ItemInfo(13566), new ItemInfo(13567), + new ItemInfo(13568), new ItemInfo(13569), new ItemInfo(13570), new ItemInfo(13571), new ItemInfo(13572), new ItemInfo(13573), new ItemInfo(13574), new ItemInfo(13575), new ItemInfo(13576), + new ItemInfo(13577), new ItemInfo(13578), new ItemInfo(13579), new ItemInfo(13580), new ItemInfo(13581), new ItemInfo(13582), new ItemInfo(13583), new ItemInfo(13584), new ItemInfo(13585), + new ItemInfo(13586), new ItemInfo(13587), new ItemInfo(13588), new ItemInfo(13589), new ItemInfo(13590), new ItemInfo(13591), new ItemInfo(13592), new ItemInfo(13593), new ItemInfo(13594), + new ItemInfo(13595), new ItemInfo(13596), new ItemInfo(13597), new ItemInfo(13598), new ItemInfo(13599), new ItemInfo(13600), new ItemInfo(13601), new ItemInfo(13602), new ItemInfo(13603), + new ItemInfo(13604), new ItemInfo(13605), new ItemInfo(13606), new ItemInfo(13607), new ItemInfo(13608), new ItemInfo(13700), new ItemInfo(13701), new ItemInfo(13702), new ItemInfo(13703), + new ItemInfo(13704), new ItemInfo(13705), new ItemInfo(13706), new ItemInfo(13707), new ItemInfo(13708), new ItemInfo(13709), new ItemInfo(13710), new ItemInfo(13711), new ItemInfo(13712), + new ItemInfo(13713), new ItemInfo(13758), new ItemInfo(13759), new ItemInfo(13760), new ItemInfo(13761), new ItemInfo(13762), new ItemInfo(13763), new ItemInfo(13764), new ItemInfo(13765), + new ItemInfo(13766), new ItemInfo(13767), new ItemInfo(13768), new ItemInfo(13769), new ItemInfo(13770), new ItemInfo(13771), new ItemInfo(13772), new ItemInfo(13773), new ItemInfo(13774), + new ItemInfo(13775), new ItemInfo(13776), new ItemInfo(13777), new ItemInfo(13778), new ItemInfo(13779), new ItemInfo(13780), new ItemInfo(13781), new ItemInfo(13782), new ItemInfo(13799), + new ItemInfo(13800), new ItemInfo(13801), new ItemInfo(13802), new ItemInfo(13803), new ItemInfo(13804), new ItemInfo(13805), new ItemInfo(13806), new ItemInfo(13807), new ItemInfo(13808), + new ItemInfo(13809), new ItemInfo(13810), new ItemInfo(13811), new ItemInfo(13812), new ItemInfo(13813), new ItemInfo(13814), new ItemInfo(13815), new ItemInfo(13816), new ItemInfo(13817), + new ItemInfo(13818), new ItemInfo(13819), new ItemInfo(13820), new ItemInfo(13821), new ItemInfo(13822), new ItemInfo(13823), new ItemInfo(13824), new ItemInfo(13825), new ItemInfo(13826), + new ItemInfo(13827), new ItemInfo(13828), new ItemInfo(13829), new ItemInfo(13830), new ItemInfo(13831), new ItemInfo(13832), new ItemInfo(13833), new ItemInfo(13834), new ItemInfo(13835), + new ItemInfo(13836), new ItemInfo(13837), new ItemInfo(13878), new ItemInfo(13879), new ItemInfo(13880), new ItemInfo(13881), new ItemInfo(13882), new ItemInfo(13883), new ItemInfo(13884), + new ItemInfo(13885), new ItemInfo(13886), new ItemInfo(13887), new ItemInfo(13888), new ItemInfo(13889), new ItemInfo(13890), new ItemInfo(13891), new ItemInfo(13892), new ItemInfo(13893), + new ItemInfo(13894), new ItemInfo(13895), new ItemInfo(13896), new ItemInfo(13897), new ItemInfo(13898), new ItemInfo(13899), new ItemInfo(13900), new ItemInfo(13901), new ItemInfo(13902), + new ItemInfo(13903), new ItemInfo(13904), new ItemInfo(13905), new ItemInfo(13906), new ItemInfo(13907), new ItemInfo(13908), new ItemInfo(13909), new ItemInfo(13910), new ItemInfo(13911), + new ItemInfo(13912), new ItemInfo(13913), new ItemInfo(13914), new ItemInfo(13915), new ItemInfo(13916), new ItemInfo(13917), new ItemInfo(13918), new ItemInfo(13919), new ItemInfo(13920), + new ItemInfo(13921), new ItemInfo(13922), new ItemInfo(13923), new ItemInfo(13924), new ItemInfo(13925), new ItemInfo(13926), new ItemInfo(13927), new ItemInfo(13928), new ItemInfo(13929), + new ItemInfo(13930), new ItemInfo(13931), new ItemInfo(13932), new ItemInfo(13933), new ItemInfo(13934), new ItemInfo(13935), new ItemInfo(13944), new ItemInfo(13945), new ItemInfo(13946), + new ItemInfo(13947), new ItemInfo(13948), new ItemInfo(13949), new ItemInfo(13950), new ItemInfo(13951), new ItemInfo(13952), new ItemInfo(13953), new ItemInfo(13954), new ItemInfo(13955), + new ItemInfo(13956), new ItemInfo(13957), new ItemInfo(13958), new ItemInfo(13959), new ItemInfo(13960), new ItemInfo(13961), new ItemInfo(13962), new ItemInfo(13963), new ItemInfo(13964), + new ItemInfo(13965), new ItemInfo(13966), new ItemInfo(13967), new ItemInfo(13968), new ItemInfo(13969), new ItemInfo(13970), new ItemInfo(13971), new ItemInfo(13972), new ItemInfo(13973), + new ItemInfo(13974), new ItemInfo(13975), new ItemInfo(13976), new ItemInfo(13977), new ItemInfo(13978), new ItemInfo(13979), new ItemInfo(13980), new ItemInfo(13981), new ItemInfo(13982), + new ItemInfo(13983), new ItemInfo(13986), new ItemInfo(13987), new ItemInfo(13988), new ItemInfo(13989), new ItemInfo(13990), new ItemInfo(13991), new ItemInfo(13992), new ItemInfo(13993), + new ItemInfo(13994), new ItemInfo(13995), new ItemInfo(13996), new ItemInfo(13997), new ItemInfo(13998), new ItemInfo(13999), new ItemInfo(14000), new ItemInfo(14001), new ItemInfo(14002), + new ItemInfo(14003), new ItemInfo(14004), new ItemInfo(14005), new ItemInfo(14006), new ItemInfo(14007), new ItemInfo(14008), new ItemInfo(14009), new ItemInfo(14010), new ItemInfo(14011), + new ItemInfo(14012), new ItemInfo(14013), new ItemInfo(14014), new ItemInfo(14015), new ItemInfo(14016), new ItemInfo(14017), new ItemInfo(14018), new ItemInfo(14019), new ItemInfo(14020), + new ItemInfo(14021), new ItemInfo(14022), new ItemInfo(14023), new ItemInfo(14024), new ItemInfo(14025), new ItemInfo(14026), new ItemInfo(14027), new ItemInfo(14028), new ItemInfo(14029), + new ItemInfo(14030), new ItemInfo(14031), new ItemInfo(14032), new ItemInfo(14033), new ItemInfo(14034), new ItemInfo(14035), new ItemInfo(14036), new ItemInfo(14037), new ItemInfo(14038), + new ItemInfo(14039), new ItemInfo(14040), new ItemInfo(14041), new ItemInfo(14042), new ItemInfo(14043), new ItemInfo(14044), new ItemInfo(14045), new ItemInfo(14046), new ItemInfo(14047), + new ItemInfo(14048), new ItemInfo(14049), new ItemInfo(14050), new ItemInfo(14051), new ItemInfo(14052), new ItemInfo(14053), new ItemInfo(14054), new ItemInfo(14055), new ItemInfo(14056), + new ItemInfo(14057), new ItemInfo(14058), new ItemInfo(14059), new ItemInfo(14060), new ItemInfo(14061), new ItemInfo(14062), new ItemInfo(14063), new ItemInfo(14064), new ItemInfo(14065), + new ItemInfo(14066), new ItemInfo(14067), new ItemInfo(14068), new ItemInfo(14069), new ItemInfo(14070), new ItemInfo(14071), new ItemInfo(14072), new ItemInfo(14073), new ItemInfo(14074), + new ItemInfo(14075), new ItemInfo(14076), new ItemInfo(14077), new ItemInfo(14078), new ItemInfo(14079), new ItemInfo(14080), new ItemInfo(14081), new ItemInfo(14082), new ItemInfo(14083), + new ItemInfo(14084), new ItemInfo(14085), new ItemInfo(14086), new ItemInfo(14087), new ItemInfo(14088), new ItemInfo(14089), new ItemInfo(14090), new ItemInfo(14091), new ItemInfo(14092) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt10Gump() + : this(0) + { } + + public AddMisc2Pt10Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt10Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 11.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 11.cs new file mode 100644 index 000000000..464618d08 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 11.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt11Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt11", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt11_OnCommand)); + } + + [Usage("AddMisc2Pt11")] + + public static void AddMisc2Pt11_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt11Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(14093), new ItemInfo(14094), new ItemInfo(14095), new ItemInfo(14096), new ItemInfo(14097), new ItemInfo(14098), new ItemInfo(14099), new ItemInfo(14100), new ItemInfo(14101), + new ItemInfo(14102), new ItemInfo(14103), new ItemInfo(14104), new ItemInfo(14105), new ItemInfo(14106), new ItemInfo(14107), new ItemInfo(14108), new ItemInfo(14109), new ItemInfo(14110), + new ItemInfo(14111), new ItemInfo(14112), new ItemInfo(14113), new ItemInfo(14114), new ItemInfo(14115), new ItemInfo(14116), new ItemInfo(14117), new ItemInfo(14118), new ItemInfo(14119), + new ItemInfo(14120), new ItemInfo(14121), new ItemInfo(14122), new ItemInfo(14123), new ItemInfo(14124), new ItemInfo(14125), new ItemInfo(14126), new ItemInfo(14127), new ItemInfo(14128), + new ItemInfo(14129), new ItemInfo(14130), new ItemInfo(14131), new ItemInfo(14132), new ItemInfo(14133), new ItemInfo(14134), new ItemInfo(14135), new ItemInfo(14136), new ItemInfo(14137), + new ItemInfo(14138), new ItemInfo(14139), new ItemInfo(14140), new ItemInfo(14141), new ItemInfo(14142), new ItemInfo(14143), new ItemInfo(14144), new ItemInfo(14145), new ItemInfo(14146), + new ItemInfo(14147), new ItemInfo(14148), new ItemInfo(14149), new ItemInfo(14150), new ItemInfo(14151), new ItemInfo(14152), new ItemInfo(14153), new ItemInfo(14154), new ItemInfo(14155), + new ItemInfo(14156), new ItemInfo(14157), new ItemInfo(14158), new ItemInfo(14159), new ItemInfo(14160), new ItemInfo(14161), new ItemInfo(14162), new ItemInfo(14163), new ItemInfo(14164), + new ItemInfo(14165), new ItemInfo(14166), new ItemInfo(14167), new ItemInfo(14168), new ItemInfo(14169), new ItemInfo(14170), new ItemInfo(14171), new ItemInfo(14172), new ItemInfo(14173), + new ItemInfo(14174), new ItemInfo(14175), new ItemInfo(14176), new ItemInfo(14177), new ItemInfo(14178), new ItemInfo(14179), new ItemInfo(14180), new ItemInfo(14181), new ItemInfo(14182), + new ItemInfo(14183), new ItemInfo(14184), new ItemInfo(14185), new ItemInfo(14186), new ItemInfo(14187), new ItemInfo(14188), new ItemInfo(14189), new ItemInfo(14190), new ItemInfo(14191), + new ItemInfo(14192), new ItemInfo(14193), new ItemInfo(14194), new ItemInfo(14195), new ItemInfo(14196), new ItemInfo(14197), new ItemInfo(14198), new ItemInfo(14199), new ItemInfo(14200), + new ItemInfo(14201), new ItemInfo(14202), new ItemInfo(14203), new ItemInfo(14204), new ItemInfo(14205), new ItemInfo(14206), new ItemInfo(14207), new ItemInfo(14208), new ItemInfo(14209), + new ItemInfo(14210), new ItemInfo(14211), new ItemInfo(14212), new ItemInfo(14213), new ItemInfo(14214), new ItemInfo(14215), new ItemInfo(14216), new ItemInfo(14217), new ItemInfo(14218), + new ItemInfo(14219), new ItemInfo(14220), new ItemInfo(14221), new ItemInfo(14222), new ItemInfo(14223), new ItemInfo(14224), new ItemInfo(14225), new ItemInfo(14226), new ItemInfo(14227), + new ItemInfo(14228), new ItemInfo(14229), new ItemInfo(14230), new ItemInfo(14231), new ItemInfo(14232), new ItemInfo(14233), new ItemInfo(14234), new ItemInfo(14235), new ItemInfo(14236), + new ItemInfo(14237), new ItemInfo(14238), new ItemInfo(14239), new ItemInfo(14240), new ItemInfo(14241), new ItemInfo(14242), new ItemInfo(14243), new ItemInfo(14244), new ItemInfo(14245), + new ItemInfo(14246), new ItemInfo(14247), new ItemInfo(14248), new ItemInfo(14249), new ItemInfo(14250), new ItemInfo(14251), new ItemInfo(14252), new ItemInfo(14253), new ItemInfo(14254), + new ItemInfo(14255), new ItemInfo(14256), new ItemInfo(14257), new ItemInfo(14258), new ItemInfo(14259), new ItemInfo(14260), new ItemInfo(14261), new ItemInfo(14262), new ItemInfo(14263), + new ItemInfo(14264), new ItemInfo(14265), new ItemInfo(14266), new ItemInfo(14267), new ItemInfo(14268), new ItemInfo(14269), new ItemInfo(14270), new ItemInfo(14271), new ItemInfo(14272), + new ItemInfo(14273), new ItemInfo(14274), new ItemInfo(14275), new ItemInfo(14276), new ItemInfo(14277), new ItemInfo(14278), new ItemInfo(14279), new ItemInfo(14280), new ItemInfo(14281), + new ItemInfo(14282), new ItemInfo(14283), new ItemInfo(14284), new ItemInfo(14285), new ItemInfo(14286), new ItemInfo(14287), new ItemInfo(14288), new ItemInfo(14289), new ItemInfo(14290), + new ItemInfo(14291), new ItemInfo(14292), new ItemInfo(14293), new ItemInfo(14294), new ItemInfo(14295), new ItemInfo(14296), new ItemInfo(14297), new ItemInfo(14298), new ItemInfo(14299), + new ItemInfo(14300), new ItemInfo(14301), new ItemInfo(14302), new ItemInfo(14303), new ItemInfo(14304), new ItemInfo(14305), new ItemInfo(14306), new ItemInfo(14307), new ItemInfo(14308), + new ItemInfo(14309), new ItemInfo(14310), new ItemInfo(14311), new ItemInfo(14312), new ItemInfo(14313), new ItemInfo(14314), new ItemInfo(14315), new ItemInfo(14316), new ItemInfo(14317), + new ItemInfo(14318), new ItemInfo(14319), new ItemInfo(14320), new ItemInfo(14321), new ItemInfo(14322), new ItemInfo(14323), new ItemInfo(14324), new ItemInfo(14325), new ItemInfo(14326), + new ItemInfo(14327), new ItemInfo(14328), new ItemInfo(14329), new ItemInfo(14330), new ItemInfo(14331), new ItemInfo(14332), new ItemInfo(14333), new ItemInfo(14334), new ItemInfo(14335), + new ItemInfo(14336), new ItemInfo(14337), new ItemInfo(14338), new ItemInfo(14339), new ItemInfo(14340), new ItemInfo(14341), new ItemInfo(14342), new ItemInfo(14343), new ItemInfo(14344), + new ItemInfo(14345), new ItemInfo(14346), new ItemInfo(14347), new ItemInfo(14348), new ItemInfo(14349), new ItemInfo(14350), new ItemInfo(14351), new ItemInfo(14352), new ItemInfo(14353), + new ItemInfo(14354), new ItemInfo(14355), new ItemInfo(14356), new ItemInfo(14357), new ItemInfo(14358), new ItemInfo(14359), new ItemInfo(14360), new ItemInfo(14361), new ItemInfo(14362), + new ItemInfo(14363), new ItemInfo(14364), new ItemInfo(14365), new ItemInfo(14366), new ItemInfo(14367), new ItemInfo(14368), new ItemInfo(14369), new ItemInfo(14370), new ItemInfo(14371), + new ItemInfo(14372), new ItemInfo(14373), new ItemInfo(14374), new ItemInfo(14375), new ItemInfo(14376), new ItemInfo(14377), new ItemInfo(14378), new ItemInfo(14379), new ItemInfo(14380), + new ItemInfo(14381), new ItemInfo(14382), new ItemInfo(14383), new ItemInfo(14384), new ItemInfo(14385), new ItemInfo(14386), new ItemInfo(14387), new ItemInfo(14388), new ItemInfo(14389), + new ItemInfo(14390), new ItemInfo(14391), new ItemInfo(14392), new ItemInfo(14393), new ItemInfo(14394), new ItemInfo(14395), new ItemInfo(14396), new ItemInfo(14397), new ItemInfo(14398), + new ItemInfo(14399), new ItemInfo(14400), new ItemInfo(14401), new ItemInfo(14402), new ItemInfo(14403), new ItemInfo(14404), new ItemInfo(14405), new ItemInfo(14406), new ItemInfo(14407), + new ItemInfo(14408), new ItemInfo(14409), new ItemInfo(14410), new ItemInfo(14411), new ItemInfo(14412), new ItemInfo(14413), new ItemInfo(14414), new ItemInfo(14415), new ItemInfo(14416), + new ItemInfo(14417), new ItemInfo(14418), new ItemInfo(14419), new ItemInfo(14420), new ItemInfo(14421), new ItemInfo(14422), new ItemInfo(14423), new ItemInfo(14424), new ItemInfo(14425), + new ItemInfo(14426), new ItemInfo(14427), new ItemInfo(14428), new ItemInfo(14429), new ItemInfo(14430), new ItemInfo(14431), new ItemInfo(14432), new ItemInfo(14433), new ItemInfo(14434), + new ItemInfo(14435), new ItemInfo(14436), new ItemInfo(14437), new ItemInfo(14438), new ItemInfo(14439), new ItemInfo(14440), new ItemInfo(14441), new ItemInfo(14442), new ItemInfo(14443), + new ItemInfo(14444), new ItemInfo(14445), new ItemInfo(14446), new ItemInfo(14447), new ItemInfo(14448), new ItemInfo(14449), new ItemInfo(14450), new ItemInfo(14451), new ItemInfo(14452) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt11Gump() + : this(0) + { } + + public AddMisc2Pt11Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt11Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 12.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 12.cs new file mode 100644 index 000000000..32aa5bdd9 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 12.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt12Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt12", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt12_OnCommand)); + } + + [Usage("AddMisc2Pt12")] + + public static void AddMisc2Pt12_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt12Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(14453), new ItemInfo(14454), new ItemInfo(14455), new ItemInfo(14456), new ItemInfo(14457), new ItemInfo(14458), new ItemInfo(14459), new ItemInfo(14460), new ItemInfo(14461), + new ItemInfo(14462), new ItemInfo(14463), new ItemInfo(14464), new ItemInfo(14465), new ItemInfo(14466), new ItemInfo(14467), new ItemInfo(14468), new ItemInfo(14469), new ItemInfo(14470), + new ItemInfo(14471), new ItemInfo(14472), new ItemInfo(14473), new ItemInfo(14474), new ItemInfo(14475), new ItemInfo(14476), new ItemInfo(14477), new ItemInfo(14478), new ItemInfo(14479), + new ItemInfo(14480), new ItemInfo(14481), new ItemInfo(14482), new ItemInfo(14483), new ItemInfo(14484), new ItemInfo(14485), new ItemInfo(14486), new ItemInfo(14487), new ItemInfo(14488), + new ItemInfo(14489), new ItemInfo(14490), new ItemInfo(14491), new ItemInfo(14492), new ItemInfo(14493), new ItemInfo(14494), new ItemInfo(14495), new ItemInfo(14496), new ItemInfo(14497), + new ItemInfo(14498), new ItemInfo(14499), new ItemInfo(14500), new ItemInfo(14501), new ItemInfo(14502), new ItemInfo(14503), new ItemInfo(14504), new ItemInfo(14505), new ItemInfo(14506), + new ItemInfo(14507), new ItemInfo(14508), new ItemInfo(14509), new ItemInfo(14510), new ItemInfo(14511), new ItemInfo(14512), new ItemInfo(14513), new ItemInfo(14514), new ItemInfo(14515), + new ItemInfo(14516), new ItemInfo(14517), new ItemInfo(14518), new ItemInfo(14519), new ItemInfo(14520), new ItemInfo(14521), new ItemInfo(14522), new ItemInfo(14523), new ItemInfo(14524), + new ItemInfo(14525), new ItemInfo(14526), new ItemInfo(14527), new ItemInfo(14528), new ItemInfo(14529), new ItemInfo(14530), new ItemInfo(14531), new ItemInfo(14532), new ItemInfo(14533), + new ItemInfo(14534), new ItemInfo(14535), new ItemInfo(14536), new ItemInfo(14537), new ItemInfo(14538), new ItemInfo(14539), new ItemInfo(14540), new ItemInfo(14541), new ItemInfo(14542), + new ItemInfo(14543), new ItemInfo(14544), new ItemInfo(14545), new ItemInfo(14546), new ItemInfo(14547), new ItemInfo(14548), new ItemInfo(14549), new ItemInfo(14550), new ItemInfo(14551), + new ItemInfo(14552), new ItemInfo(14553), new ItemInfo(14554), new ItemInfo(14555), new ItemInfo(14556), new ItemInfo(14557), new ItemInfo(14558), new ItemInfo(14559), new ItemInfo(14560), + new ItemInfo(14561), new ItemInfo(14562), new ItemInfo(14563), new ItemInfo(14564), new ItemInfo(14565), new ItemInfo(14566), new ItemInfo(14567), new ItemInfo(14568), new ItemInfo(14569), + new ItemInfo(14570), new ItemInfo(14571), new ItemInfo(14572), new ItemInfo(14573), new ItemInfo(14574), new ItemInfo(14575), new ItemInfo(14576), new ItemInfo(14577), new ItemInfo(14578), + new ItemInfo(14579), new ItemInfo(14580), new ItemInfo(14581), new ItemInfo(14582), new ItemInfo(14583), new ItemInfo(14584), new ItemInfo(14585), new ItemInfo(14586), new ItemInfo(14587), + new ItemInfo(14588), new ItemInfo(14589), new ItemInfo(14590), new ItemInfo(14591), new ItemInfo(14592), new ItemInfo(14593), new ItemInfo(14594), new ItemInfo(14595), new ItemInfo(14596), + new ItemInfo(14597), new ItemInfo(14598), new ItemInfo(14599), new ItemInfo(14600), new ItemInfo(14601), new ItemInfo(14602), new ItemInfo(14603), new ItemInfo(14604), new ItemInfo(14605), + new ItemInfo(14606), new ItemInfo(14607), new ItemInfo(14608), new ItemInfo(14609), new ItemInfo(14610), new ItemInfo(14611), new ItemInfo(14612), new ItemInfo(14613), new ItemInfo(14614), + new ItemInfo(14615), new ItemInfo(14616), new ItemInfo(14617), new ItemInfo(14618), new ItemInfo(14619), new ItemInfo(14620), new ItemInfo(14621), new ItemInfo(14622), new ItemInfo(14623), + new ItemInfo(14624), new ItemInfo(14625), new ItemInfo(14626), new ItemInfo(14627), new ItemInfo(14628), new ItemInfo(14629), new ItemInfo(14630), new ItemInfo(14631), new ItemInfo(14632), + new ItemInfo(14633), new ItemInfo(14634), new ItemInfo(14635), new ItemInfo(14636), new ItemInfo(14637), new ItemInfo(14638), new ItemInfo(14639), new ItemInfo(14640), new ItemInfo(14641), + new ItemInfo(14642), new ItemInfo(14643), new ItemInfo(14644), new ItemInfo(14645), new ItemInfo(14646), new ItemInfo(14647), new ItemInfo(14648), new ItemInfo(14649), new ItemInfo(14650), + new ItemInfo(14651), new ItemInfo(14652), new ItemInfo(14653), new ItemInfo(14654), new ItemInfo(14655), new ItemInfo(14656), new ItemInfo(14657), new ItemInfo(14658), new ItemInfo(14659), + new ItemInfo(14660), new ItemInfo(14661), new ItemInfo(14662), new ItemInfo(14663), new ItemInfo(14664), new ItemInfo(14665), new ItemInfo(14666), new ItemInfo(14667), new ItemInfo(14668), + new ItemInfo(14669), new ItemInfo(14670), new ItemInfo(14671), new ItemInfo(14672), new ItemInfo(14673), new ItemInfo(14674), new ItemInfo(14675), new ItemInfo(14676), new ItemInfo(14677), + new ItemInfo(14678), new ItemInfo(14679), new ItemInfo(14680), new ItemInfo(14681), new ItemInfo(14682), new ItemInfo(14683), new ItemInfo(14684), new ItemInfo(14685), new ItemInfo(14686), + new ItemInfo(14687), new ItemInfo(14688), new ItemInfo(14689), new ItemInfo(14690), new ItemInfo(14691), new ItemInfo(14692), new ItemInfo(14693), new ItemInfo(14694), new ItemInfo(14695), + new ItemInfo(14696), new ItemInfo(14697), new ItemInfo(14698), new ItemInfo(14699), new ItemInfo(14700), new ItemInfo(14701), new ItemInfo(14702), new ItemInfo(14703), new ItemInfo(14704), + new ItemInfo(14705), new ItemInfo(14706), new ItemInfo(14707), new ItemInfo(14708), new ItemInfo(14709), new ItemInfo(14710), new ItemInfo(14711), new ItemInfo(14712), new ItemInfo(14713), + new ItemInfo(14714), new ItemInfo(14715), new ItemInfo(14716), new ItemInfo(14717), new ItemInfo(14718), new ItemInfo(14719), new ItemInfo(14720), new ItemInfo(14721), new ItemInfo(14722), + new ItemInfo(14723), new ItemInfo(14724), new ItemInfo(14725), new ItemInfo(14726), new ItemInfo(14727), new ItemInfo(14728), new ItemInfo(14729), new ItemInfo(14730), new ItemInfo(14731), + new ItemInfo(14732), new ItemInfo(14733), new ItemInfo(14734), new ItemInfo(14735), new ItemInfo(14736), new ItemInfo(14737), new ItemInfo(14738), new ItemInfo(14739), new ItemInfo(14740), + new ItemInfo(14741), new ItemInfo(14742), new ItemInfo(14743), new ItemInfo(14744), new ItemInfo(14745), new ItemInfo(14746), new ItemInfo(14747), new ItemInfo(14748), new ItemInfo(14749), + new ItemInfo(14750), new ItemInfo(14751), new ItemInfo(14752), new ItemInfo(14753), new ItemInfo(14754), new ItemInfo(14768), new ItemInfo(14781), new ItemInfo(14782), new ItemInfo(14783), + new ItemInfo(14784), new ItemInfo(14785), new ItemInfo(14786), new ItemInfo(14855), new ItemInfo(14856), new ItemInfo(14933), new ItemInfo(14934), new ItemInfo(14935), new ItemInfo(14936), + new ItemInfo(14937), new ItemInfo(14938), new ItemInfo(14939), new ItemInfo(14940), new ItemInfo(14941), new ItemInfo(14942), new ItemInfo(14943), new ItemInfo(14944), new ItemInfo(14945), + new ItemInfo(14946), new ItemInfo(14947), new ItemInfo(14948), new ItemInfo(14949), new ItemInfo(14950), new ItemInfo(14951), new ItemInfo(14952), new ItemInfo(14953), new ItemInfo(14954), + new ItemInfo(14955), new ItemInfo(14956), new ItemInfo(14957), new ItemInfo(14958), new ItemInfo(14959), new ItemInfo(14960), new ItemInfo(14961), new ItemInfo(14962), new ItemInfo(14963), + new ItemInfo(14964), new ItemInfo(14965), new ItemInfo(14966), new ItemInfo(14967), new ItemInfo(14968), new ItemInfo(14969), new ItemInfo(14970), new ItemInfo(14971), new ItemInfo(14972), + new ItemInfo(14973), new ItemInfo(14974), new ItemInfo(14975), new ItemInfo(14976), new ItemInfo(14977), new ItemInfo(14978), new ItemInfo(14979), new ItemInfo(14980), new ItemInfo(14981) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt12Gump() + : this(0) + { } + + public AddMisc2Pt12Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt12Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 13.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 13.cs new file mode 100644 index 000000000..37735be39 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 13.cs @@ -0,0 +1,173 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt13Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt13", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt13_OnCommand)); + } + + [Usage("AddMisc2Pt13")] + + public static void AddMisc2Pt13_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt13Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(14982), new ItemInfo(14983), new ItemInfo(14984), new ItemInfo(14985), new ItemInfo(14986), new ItemInfo(14987), new ItemInfo(14988), new ItemInfo(14989), new ItemInfo(14990), + new ItemInfo(14991), new ItemInfo(14992), new ItemInfo(14993), new ItemInfo(14994), new ItemInfo(14995), new ItemInfo(14996), new ItemInfo(14997), new ItemInfo(14998), new ItemInfo(14999), + new ItemInfo(15000), new ItemInfo(15001), new ItemInfo(15002), new ItemInfo(15003), new ItemInfo(15097), new ItemInfo(15098), new ItemInfo(15099), new ItemInfo(15100), new ItemInfo(15101), + new ItemInfo(15102), new ItemInfo(15103), new ItemInfo(15104), new ItemInfo(15105), new ItemInfo(15106), new ItemInfo(15107), new ItemInfo(15108), new ItemInfo(15109), new ItemInfo(15110), + new ItemInfo(15111), new ItemInfo(15112), new ItemInfo(15113), new ItemInfo(15114), new ItemInfo(15115), new ItemInfo(15116), new ItemInfo(15117), new ItemInfo(15118), new ItemInfo(15119), + new ItemInfo(15120), new ItemInfo(15121), new ItemInfo(15122), new ItemInfo(15123), new ItemInfo(15124), new ItemInfo(15125), new ItemInfo(15160), new ItemInfo(15161), new ItemInfo(15162), + new ItemInfo(15163), new ItemInfo(15164), new ItemInfo(15165), new ItemInfo(15166), new ItemInfo(15167), new ItemInfo(15168), new ItemInfo(15169), new ItemInfo(15170), new ItemInfo(15171), + new ItemInfo(15283), new ItemInfo(15284), new ItemInfo(15285), new ItemInfo(15286), new ItemInfo(15287), new ItemInfo(15288), new ItemInfo(15289), new ItemInfo(15290), new ItemInfo(15291), + new ItemInfo(15292), new ItemInfo(15634), new ItemInfo(15639), new ItemInfo(15640), new ItemInfo(15716), new ItemInfo(15717), new ItemInfo(15718), new ItemInfo(15719), new ItemInfo(15720), + new ItemInfo(15721), new ItemInfo(15722), new ItemInfo(15723), new ItemInfo(15748), new ItemInfo(15750), new ItemInfo(15751), new ItemInfo(15772), new ItemInfo(15773), new ItemInfo(15774), + new ItemInfo(15775), new ItemInfo(15776), new ItemInfo(15777), new ItemInfo(15778), new ItemInfo(15779), new ItemInfo(15780), new ItemInfo(15781), new ItemInfo(15782), new ItemInfo(15783), + new ItemInfo(15784), new ItemInfo(15785), new ItemInfo(15786), new ItemInfo(15787), new ItemInfo(15788), new ItemInfo(15789), new ItemInfo(15790), new ItemInfo(15791), new ItemInfo(15792), + new ItemInfo(15793), new ItemInfo(15794), new ItemInfo(15795), new ItemInfo(15796), new ItemInfo(15797), new ItemInfo(15798), new ItemInfo(15799), new ItemInfo(15800), new ItemInfo(15801), + new ItemInfo(15802), new ItemInfo(15803), new ItemInfo(15871), new ItemInfo(15872), new ItemInfo(15874), new ItemInfo(15875), new ItemInfo(15876), new ItemInfo(15877), new ItemInfo(15878), + new ItemInfo(15879), new ItemInfo(15880), new ItemInfo(15881), new ItemInfo(15882), new ItemInfo(15883), new ItemInfo(15911), new ItemInfo(15912), new ItemInfo(15913), new ItemInfo(15914), + new ItemInfo(15915), new ItemInfo(15916), new ItemInfo(15917), new ItemInfo(15918), new ItemInfo(15919), new ItemInfo(15920), new ItemInfo(15921), new ItemInfo(15922), new ItemInfo(15923), + new ItemInfo(15924), new ItemInfo(15925), new ItemInfo(15926), new ItemInfo(15927), new ItemInfo(15928), new ItemInfo(15929), new ItemInfo(15930), new ItemInfo(15935), new ItemInfo(15936), + new ItemInfo(15937), new ItemInfo(15938), new ItemInfo(15939), new ItemInfo(15940), new ItemInfo(15941), new ItemInfo(15942), new ItemInfo(15943), new ItemInfo(15944), new ItemInfo(15945), + new ItemInfo(15946), new ItemInfo(15947), new ItemInfo(15948), new ItemInfo(15949), new ItemInfo(15950), new ItemInfo(15951), new ItemInfo(15952), new ItemInfo(15953), new ItemInfo(15954), + new ItemInfo(15955), new ItemInfo(15956), new ItemInfo(15957), new ItemInfo(15958), new ItemInfo(15959), new ItemInfo(15960), new ItemInfo(15961), new ItemInfo(15962), new ItemInfo(15963), + new ItemInfo(15964), new ItemInfo(15965), new ItemInfo(15966), new ItemInfo(15967), new ItemInfo(15968), new ItemInfo(15969), new ItemInfo(15970), new ItemInfo(15971), new ItemInfo(15972), + new ItemInfo(15973), new ItemInfo(15974), new ItemInfo(15975), new ItemInfo(15976), new ItemInfo(15977), new ItemInfo(15978), new ItemInfo(15979), new ItemInfo(15980), new ItemInfo(15981), + new ItemInfo(15982), new ItemInfo(15983), new ItemInfo(15984), new ItemInfo(15985), new ItemInfo(15986), new ItemInfo(15987), new ItemInfo(15988), new ItemInfo(15989), new ItemInfo(15990), + new ItemInfo(15991), new ItemInfo(15992), new ItemInfo(15993), new ItemInfo(15994), new ItemInfo(15995), new ItemInfo(15996), new ItemInfo(15997), new ItemInfo(15998), new ItemInfo(15999), + new ItemInfo(16000), new ItemInfo(16001), new ItemInfo(16002), new ItemInfo(16003), new ItemInfo(16004), new ItemInfo(16005), new ItemInfo(16006), new ItemInfo(16007), new ItemInfo(16008), + new ItemInfo(16009), new ItemInfo(16010), new ItemInfo(16011), new ItemInfo(16012), new ItemInfo(16013), new ItemInfo(16014), new ItemInfo(16015), new ItemInfo(16016), new ItemInfo(16017), + new ItemInfo(16018), new ItemInfo(16019), new ItemInfo(16020), new ItemInfo(16021), new ItemInfo(16022), new ItemInfo(16023), new ItemInfo(16024), new ItemInfo(16025), new ItemInfo(16026), + new ItemInfo(16027), new ItemInfo(16028), new ItemInfo(16029), new ItemInfo(16030), new ItemInfo(16031), new ItemInfo(16032), new ItemInfo(16033), new ItemInfo(16034), new ItemInfo(16035), + new ItemInfo(16036), new ItemInfo(16037), new ItemInfo(16038), new ItemInfo(16039), new ItemInfo(16040), new ItemInfo(16041), new ItemInfo(16042), new ItemInfo(16043), new ItemInfo(16044), + new ItemInfo(16045), new ItemInfo(16046), new ItemInfo(16047), new ItemInfo(16048), new ItemInfo(16049), new ItemInfo(16050), new ItemInfo(16051), new ItemInfo(16052), new ItemInfo(16053), + new ItemInfo(16054), new ItemInfo(16055), new ItemInfo(16056), new ItemInfo(16057), new ItemInfo(16058), new ItemInfo(16059), new ItemInfo(16060), new ItemInfo(16061), new ItemInfo(16062), + new ItemInfo(16063), new ItemInfo(16064), new ItemInfo(16065), new ItemInfo(16066), new ItemInfo(16067), new ItemInfo(16068), new ItemInfo(16069), new ItemInfo(16070), new ItemInfo(16071), + new ItemInfo(16072), new ItemInfo(16073), new ItemInfo(16074), new ItemInfo(16075), new ItemInfo(16076), new ItemInfo(16077), new ItemInfo(16078), new ItemInfo(16079), new ItemInfo(16080), + new ItemInfo(16081), new ItemInfo(16082), new ItemInfo(16083), new ItemInfo(16084), new ItemInfo(16085), new ItemInfo(16086), new ItemInfo(16087), new ItemInfo(16088), new ItemInfo(16089), + new ItemInfo(16090), new ItemInfo(16091), new ItemInfo(16092), new ItemInfo(16093), new ItemInfo(16094), new ItemInfo(16095), new ItemInfo(16096), new ItemInfo(16097), new ItemInfo(16098), + new ItemInfo(16099), new ItemInfo(16100), new ItemInfo(16101), new ItemInfo(16102), new ItemInfo(16103), new ItemInfo(16104), new ItemInfo(16105), new ItemInfo(16106), new ItemInfo(16107), + new ItemInfo(16108), new ItemInfo(16109), new ItemInfo(16110), new ItemInfo(16111), new ItemInfo(16112), new ItemInfo(16113), new ItemInfo(16114), new ItemInfo(16115), new ItemInfo(16116), + new ItemInfo(16117), new ItemInfo(16118), new ItemInfo(16119), new ItemInfo(16120), new ItemInfo(16121), new ItemInfo(16122), new ItemInfo(16123), new ItemInfo(16124), new ItemInfo(16125), + new ItemInfo(16126), new ItemInfo(16127), new ItemInfo(16128), new ItemInfo(16129), new ItemInfo(16130), new ItemInfo(16131), new ItemInfo(16132), new ItemInfo(16133), new ItemInfo(16134), + new ItemInfo(16135), new ItemInfo(16136), new ItemInfo(16137), new ItemInfo(16138), new ItemInfo(16139), new ItemInfo(16140), new ItemInfo(16141), new ItemInfo(16142), new ItemInfo(16143), + new ItemInfo(16144), new ItemInfo(16145), new ItemInfo(16146), new ItemInfo(16147), new ItemInfo(16148), new ItemInfo(16149), new ItemInfo(16150), new ItemInfo(16151), new ItemInfo(16152) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt13Gump() + : this(0) + { } + + public AddMisc2Pt13Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt13Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 14.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 14.cs new file mode 100644 index 000000000..b7a6f644f --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 14.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt14Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt14", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt14_OnCommand)); + } + + [Usage("AddMisc2Pt14")] + + public static void AddMisc2Pt14_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt14Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(16153), new ItemInfo(16154), new ItemInfo(16155), new ItemInfo(16156), new ItemInfo(16157), new ItemInfo(16158), new ItemInfo(16159), new ItemInfo(16160), new ItemInfo(16161), + new ItemInfo(16162), new ItemInfo(16163), new ItemInfo(16164), new ItemInfo(16165), new ItemInfo(16166), new ItemInfo(16167), new ItemInfo(16168), new ItemInfo(16169), new ItemInfo(16170), + new ItemInfo(16171), new ItemInfo(16172), new ItemInfo(16173), new ItemInfo(16174), new ItemInfo(16175), new ItemInfo(16176), new ItemInfo(16177), new ItemInfo(16178), new ItemInfo(16179), + new ItemInfo(16180), new ItemInfo(16181), new ItemInfo(16182), new ItemInfo(16183), new ItemInfo(16184), new ItemInfo(16185), new ItemInfo(16186), new ItemInfo(16187), new ItemInfo(16188), + new ItemInfo(16189), new ItemInfo(16190), new ItemInfo(16191), new ItemInfo(16192), new ItemInfo(16193), new ItemInfo(16194), new ItemInfo(16195), new ItemInfo(16196), new ItemInfo(16197), + new ItemInfo(16198), new ItemInfo(16199), new ItemInfo(16200), new ItemInfo(16201), new ItemInfo(16202), new ItemInfo(16203), new ItemInfo(16204), new ItemInfo(16205), new ItemInfo(16206), + new ItemInfo(16207), new ItemInfo(16208), new ItemInfo(16209), new ItemInfo(16210), new ItemInfo(16211), new ItemInfo(16212), new ItemInfo(16213), new ItemInfo(16214), new ItemInfo(16215), + new ItemInfo(16216), new ItemInfo(16217), new ItemInfo(16218), new ItemInfo(16219), new ItemInfo(16220), new ItemInfo(16221), new ItemInfo(16222), new ItemInfo(16223), new ItemInfo(16224), + new ItemInfo(16225), new ItemInfo(16226), new ItemInfo(16227), new ItemInfo(16228), new ItemInfo(16229), new ItemInfo(16230), new ItemInfo(16231), new ItemInfo(16232), new ItemInfo(16233), + new ItemInfo(16234), new ItemInfo(16235), new ItemInfo(16236), new ItemInfo(16237), new ItemInfo(16238), new ItemInfo(16239), new ItemInfo(16240), new ItemInfo(16241), new ItemInfo(16242), + new ItemInfo(16243), new ItemInfo(16244), new ItemInfo(16245), new ItemInfo(16246), new ItemInfo(16247), new ItemInfo(16248), new ItemInfo(16249), new ItemInfo(16250), new ItemInfo(16251), + new ItemInfo(16252), new ItemInfo(16253), new ItemInfo(16254), new ItemInfo(16255), new ItemInfo(16256), new ItemInfo(16257), new ItemInfo(16258), new ItemInfo(16259), new ItemInfo(16260), + new ItemInfo(16261), new ItemInfo(16262), new ItemInfo(16263), new ItemInfo(16264), new ItemInfo(16265), new ItemInfo(16266), new ItemInfo(16267), new ItemInfo(16268), new ItemInfo(16269), + new ItemInfo(16270), new ItemInfo(16271), new ItemInfo(16272), new ItemInfo(16273), new ItemInfo(16274), new ItemInfo(16275), new ItemInfo(16276), new ItemInfo(16277), new ItemInfo(16278), + new ItemInfo(16279), new ItemInfo(16280), new ItemInfo(16281), new ItemInfo(16282), new ItemInfo(16283), new ItemInfo(16284), new ItemInfo(16285), new ItemInfo(16286), new ItemInfo(16287), + new ItemInfo(16288), new ItemInfo(16289), new ItemInfo(16290), new ItemInfo(16291), new ItemInfo(16292), new ItemInfo(16293), new ItemInfo(16294), new ItemInfo(16295), new ItemInfo(16296), + new ItemInfo(16297), new ItemInfo(16298), new ItemInfo(16299), new ItemInfo(16300), new ItemInfo(16301), new ItemInfo(16302), new ItemInfo(16303), new ItemInfo(16304), new ItemInfo(16305), + new ItemInfo(16306), new ItemInfo(16307), new ItemInfo(16308), new ItemInfo(16309), new ItemInfo(16310), new ItemInfo(16311), new ItemInfo(16312), new ItemInfo(16313), new ItemInfo(16314), + new ItemInfo(16315), new ItemInfo(16316), new ItemInfo(16317), new ItemInfo(16318), new ItemInfo(16319), new ItemInfo(16320), new ItemInfo(16321), new ItemInfo(16322), new ItemInfo(16323), + new ItemInfo(16324), new ItemInfo(16325), new ItemInfo(16326), new ItemInfo(16327), new ItemInfo(16328), new ItemInfo(16329), new ItemInfo(16330), new ItemInfo(16331), new ItemInfo(16332), + new ItemInfo(16333), new ItemInfo(16334), new ItemInfo(16335), new ItemInfo(16336), new ItemInfo(16337), new ItemInfo(16338), new ItemInfo(16339), new ItemInfo(16340), new ItemInfo(16341), + new ItemInfo(16342), new ItemInfo(16343), new ItemInfo(16344), new ItemInfo(16345), new ItemInfo(16346), new ItemInfo(16347), new ItemInfo(16348), new ItemInfo(16349), new ItemInfo(16350), + new ItemInfo(16351), new ItemInfo(16352), new ItemInfo(16353), new ItemInfo(16354), new ItemInfo(16355), new ItemInfo(16356), new ItemInfo(16357), new ItemInfo(16358), new ItemInfo(16359), + new ItemInfo(16360), new ItemInfo(16361), new ItemInfo(16362), new ItemInfo(16363), new ItemInfo(16364), new ItemInfo(16365), new ItemInfo(16366), new ItemInfo(16367), new ItemInfo(16368), + new ItemInfo(16369), new ItemInfo(16370), new ItemInfo(16371), new ItemInfo(16372), new ItemInfo(16373), new ItemInfo(16374), new ItemInfo(16375), new ItemInfo(16376), new ItemInfo(16377), + new ItemInfo(16378), new ItemInfo(16379), new ItemInfo(16380), new ItemInfo(16381), new ItemInfo(16382), new ItemInfo(16383), new ItemInfo(16388), new ItemInfo(16389), new ItemInfo(16390), + new ItemInfo(16391), new ItemInfo(16392), new ItemInfo(16393), new ItemInfo(16394), new ItemInfo(16395), new ItemInfo(16418), new ItemInfo(16421), new ItemInfo(16422), new ItemInfo(16503), + new ItemInfo(16504), new ItemInfo(16505), new ItemInfo(16506), new ItemInfo(16507), new ItemInfo(16508), new ItemInfo(16509), new ItemInfo(16539), new ItemInfo(16540), new ItemInfo(16541), + new ItemInfo(16542), new ItemInfo(16543), new ItemInfo(16544), new ItemInfo(16545), new ItemInfo(16546), new ItemInfo(16572), new ItemInfo(16573), new ItemInfo(16574), new ItemInfo(16575), + new ItemInfo(16576), new ItemInfo(16602), new ItemInfo(16603), new ItemInfo(16604), new ItemInfo(16605), new ItemInfo(16606), new ItemInfo(16607), new ItemInfo(16608), new ItemInfo(16609), + new ItemInfo(16610), new ItemInfo(16611), new ItemInfo(16612), new ItemInfo(16613), new ItemInfo(16614), new ItemInfo(16615), new ItemInfo(16616), new ItemInfo(16617), new ItemInfo(16618), + new ItemInfo(16619), new ItemInfo(16620), new ItemInfo(16621), new ItemInfo(16622), new ItemInfo(16623), new ItemInfo(16624), new ItemInfo(16625), new ItemInfo(16626), new ItemInfo(16627), + new ItemInfo(16628), new ItemInfo(16629), new ItemInfo(16630), new ItemInfo(16631), new ItemInfo(16632), new ItemInfo(16633), new ItemInfo(16634), new ItemInfo(16635), new ItemInfo(16636), + new ItemInfo(16637), new ItemInfo(16638), new ItemInfo(16639), new ItemInfo(16640), new ItemInfo(16641), new ItemInfo(16642), new ItemInfo(16643), new ItemInfo(16644), new ItemInfo(16645), + new ItemInfo(16646), new ItemInfo(16647), new ItemInfo(16648), new ItemInfo(16649), new ItemInfo(16650), new ItemInfo(16651), new ItemInfo(16652), new ItemInfo(16653), new ItemInfo(16654), + new ItemInfo(16655), new ItemInfo(16656), new ItemInfo(16657), new ItemInfo(16658), new ItemInfo(16659), new ItemInfo(16667), new ItemInfo(16668), new ItemInfo(16669), new ItemInfo(16670), + new ItemInfo(16671), new ItemInfo(16672), new ItemInfo(16673), new ItemInfo(16674), new ItemInfo(16678), new ItemInfo(16679), new ItemInfo(16680), new ItemInfo(16681), new ItemInfo(16682), + new ItemInfo(16683), new ItemInfo(16684), new ItemInfo(16685), new ItemInfo(16686), new ItemInfo(16687), new ItemInfo(16688), new ItemInfo(16689), new ItemInfo(16690), new ItemInfo(16691), + new ItemInfo(16692), new ItemInfo(16693), new ItemInfo(16694), new ItemInfo(16695), new ItemInfo(16696), new ItemInfo(16697), new ItemInfo(16698), new ItemInfo(16699), new ItemInfo(16700), + new ItemInfo(16701), new ItemInfo(16702), new ItemInfo(16703), new ItemInfo(16704), new ItemInfo(16705), new ItemInfo(16706), new ItemInfo(16707), new ItemInfo(16708), new ItemInfo(16709) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt14Gump() + : this(0) + { } + + public AddMisc2Pt14Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt14Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 15.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 15.cs new file mode 100644 index 000000000..7070f94fc --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 15.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt15Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt15", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt15_OnCommand)); + } + + [Usage("AddMisc2Pt15")] + + public static void AddMisc2Pt15_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt15Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(16710), new ItemInfo(16711), new ItemInfo(16712), new ItemInfo(16713), new ItemInfo(16714), new ItemInfo(16715), new ItemInfo(16716), new ItemInfo(16717), new ItemInfo(16801), + new ItemInfo(16802), new ItemInfo(16813), new ItemInfo(16814), new ItemInfo(16819), new ItemInfo(16820), new ItemInfo(16829), new ItemInfo(16830), new ItemInfo(16831), new ItemInfo(16832), + new ItemInfo(16833), new ItemInfo(16834), new ItemInfo(16835), new ItemInfo(16836), new ItemInfo(16837), new ItemInfo(16838), new ItemInfo(16839), new ItemInfo(16840), new ItemInfo(16841), + new ItemInfo(16845), new ItemInfo(16846), new ItemInfo(16847), new ItemInfo(16848), new ItemInfo(16849), new ItemInfo(16850), new ItemInfo(16851), new ItemInfo(16852), new ItemInfo(16853), + new ItemInfo(16854), new ItemInfo(16858), new ItemInfo(16859), new ItemInfo(16869), new ItemInfo(16870), new ItemInfo(16871), new ItemInfo(16916), new ItemInfo(16917), new ItemInfo(16918), + new ItemInfo(16919), new ItemInfo(16920), new ItemInfo(16921), new ItemInfo(16922), new ItemInfo(16923), new ItemInfo(16924), new ItemInfo(16925), new ItemInfo(16926), new ItemInfo(16927), + new ItemInfo(16928), new ItemInfo(16929), new ItemInfo(16930), new ItemInfo(16931), new ItemInfo(16932), new ItemInfo(16933), new ItemInfo(16934), new ItemInfo(16935), new ItemInfo(16954), + new ItemInfo(16955), new ItemInfo(16956), new ItemInfo(16957), new ItemInfo(16958), new ItemInfo(16959), new ItemInfo(16960), new ItemInfo(16961), new ItemInfo(16962), new ItemInfo(16963), + new ItemInfo(16964), new ItemInfo(16965), new ItemInfo(16966), new ItemInfo(16967), new ItemInfo(16968), new ItemInfo(16969), new ItemInfo(16970), new ItemInfo(16971), new ItemInfo(16972), + new ItemInfo(16973), new ItemInfo(16974), new ItemInfo(16975), new ItemInfo(16976), new ItemInfo(16977), new ItemInfo(16978), new ItemInfo(16979), new ItemInfo(16980), new ItemInfo(16981), + new ItemInfo(16982), new ItemInfo(16983), new ItemInfo(16984), new ItemInfo(16985), new ItemInfo(16986), new ItemInfo(16987), new ItemInfo(16988), new ItemInfo(16989), new ItemInfo(16990), + new ItemInfo(16991), new ItemInfo(16992), new ItemInfo(16993), new ItemInfo(16994), new ItemInfo(16995), new ItemInfo(16996), new ItemInfo(16997), new ItemInfo(16998), new ItemInfo(16999), + new ItemInfo(17000), new ItemInfo(17001), new ItemInfo(17002), new ItemInfo(17003), new ItemInfo(17004), new ItemInfo(17005), new ItemInfo(17006), new ItemInfo(17007), new ItemInfo(17008), + new ItemInfo(17009), new ItemInfo(17010), new ItemInfo(17011), new ItemInfo(17012), new ItemInfo(17013), new ItemInfo(17014), new ItemInfo(17015), new ItemInfo(17016), new ItemInfo(17017), + new ItemInfo(17018), new ItemInfo(17019), new ItemInfo(17020), new ItemInfo(17021), new ItemInfo(17022), new ItemInfo(17023), new ItemInfo(17024), new ItemInfo(17025), new ItemInfo(17026), + new ItemInfo(17027), new ItemInfo(17028), new ItemInfo(17029), new ItemInfo(17030), new ItemInfo(17031), new ItemInfo(17032), new ItemInfo(17033), new ItemInfo(17034), new ItemInfo(17035), + new ItemInfo(17036), new ItemInfo(17037), new ItemInfo(17038), new ItemInfo(17039), new ItemInfo(17040), new ItemInfo(17041), new ItemInfo(17042), new ItemInfo(17043), new ItemInfo(17044), + new ItemInfo(17045), new ItemInfo(17046), new ItemInfo(17047), new ItemInfo(17048), new ItemInfo(17049), new ItemInfo(17050), new ItemInfo(17051), new ItemInfo(17052), new ItemInfo(17053), + new ItemInfo(17054), new ItemInfo(17055), new ItemInfo(17056), new ItemInfo(17057), new ItemInfo(17058), new ItemInfo(17059), new ItemInfo(17060), new ItemInfo(17061), new ItemInfo(17062), + new ItemInfo(17063), new ItemInfo(17064), new ItemInfo(17065), new ItemInfo(17066), new ItemInfo(17067), new ItemInfo(17068), new ItemInfo(17069), new ItemInfo(17070), new ItemInfo(17071), + new ItemInfo(17072), new ItemInfo(17073), new ItemInfo(17074), new ItemInfo(17075), new ItemInfo(17076), new ItemInfo(17077), new ItemInfo(17078), new ItemInfo(17079), new ItemInfo(17080), + new ItemInfo(17081), new ItemInfo(17082), new ItemInfo(17083), new ItemInfo(17084), new ItemInfo(17085), new ItemInfo(17086), new ItemInfo(17087), new ItemInfo(17088), new ItemInfo(17089), + new ItemInfo(17090), new ItemInfo(17091), new ItemInfo(17092), new ItemInfo(17093), new ItemInfo(17094), new ItemInfo(17095), new ItemInfo(17096), new ItemInfo(17097), new ItemInfo(17098), + new ItemInfo(17099), new ItemInfo(17100), new ItemInfo(17101), new ItemInfo(17102), new ItemInfo(17103), new ItemInfo(17104), new ItemInfo(17105), new ItemInfo(17106), new ItemInfo(17107), + new ItemInfo(17108), new ItemInfo(17109), new ItemInfo(17110), new ItemInfo(17111), new ItemInfo(17112), new ItemInfo(17113), new ItemInfo(17114), new ItemInfo(17115), new ItemInfo(17116), + new ItemInfo(17117), new ItemInfo(17118), new ItemInfo(17119), new ItemInfo(17154), new ItemInfo(17155), new ItemInfo(17156), new ItemInfo(17157), new ItemInfo(17158), new ItemInfo(17159), + new ItemInfo(17160), new ItemInfo(17161), new ItemInfo(17162), new ItemInfo(17163), new ItemInfo(17164), new ItemInfo(17165), new ItemInfo(17166), new ItemInfo(17167), new ItemInfo(17168), + new ItemInfo(17169), new ItemInfo(17170), new ItemInfo(17171), new ItemInfo(17212), new ItemInfo(17213), new ItemInfo(17214), new ItemInfo(17215), new ItemInfo(17216), new ItemInfo(17217), + new ItemInfo(17218), new ItemInfo(17219), new ItemInfo(17220), new ItemInfo(17221), new ItemInfo(17222), new ItemInfo(17223), new ItemInfo(17236), new ItemInfo(17237), new ItemInfo(17238), + new ItemInfo(17239), new ItemInfo(17240), new ItemInfo(17241), new ItemInfo(17262), new ItemInfo(17263), new ItemInfo(17264), new ItemInfo(17265), new ItemInfo(17266), new ItemInfo(17267), + new ItemInfo(17268), new ItemInfo(17269), new ItemInfo(17270), new ItemInfo(17271), new ItemInfo(17272), new ItemInfo(17273), new ItemInfo(17274), new ItemInfo(17275), new ItemInfo(17276), + new ItemInfo(17277), new ItemInfo(17278), new ItemInfo(17279), new ItemInfo(17280), new ItemInfo(17281), new ItemInfo(17282), new ItemInfo(17283), new ItemInfo(17284), new ItemInfo(17285), + new ItemInfo(17286), new ItemInfo(17287), new ItemInfo(17288), new ItemInfo(17289), new ItemInfo(17290), new ItemInfo(17291), new ItemInfo(17292), new ItemInfo(17293), new ItemInfo(17294), + new ItemInfo(17295), new ItemInfo(17296), new ItemInfo(17297), new ItemInfo(17298), new ItemInfo(17299), new ItemInfo(17300), new ItemInfo(17301), new ItemInfo(17302), new ItemInfo(17303), + new ItemInfo(17304), new ItemInfo(17305), new ItemInfo(17306), new ItemInfo(17307), new ItemInfo(17308), new ItemInfo(17309), new ItemInfo(17310), new ItemInfo(17311), new ItemInfo(17312), + new ItemInfo(17313), new ItemInfo(17314), new ItemInfo(17315), new ItemInfo(17316), new ItemInfo(17317), new ItemInfo(17318), new ItemInfo(17319), new ItemInfo(17320), new ItemInfo(17321), + new ItemInfo(17322), new ItemInfo(17323), new ItemInfo(17324), new ItemInfo(17325), new ItemInfo(17326), new ItemInfo(17327), new ItemInfo(17336), new ItemInfo(17337), new ItemInfo(17338), + new ItemInfo(17339), new ItemInfo(17340), new ItemInfo(17341), new ItemInfo(17342), new ItemInfo(17343), new ItemInfo(17601), new ItemInfo(17602), new ItemInfo(17603), new ItemInfo(17604), + new ItemInfo(17605), new ItemInfo(17606), new ItemInfo(17607), new ItemInfo(17608), new ItemInfo(17609), new ItemInfo(17610), new ItemInfo(17611), new ItemInfo(17612), new ItemInfo(17613), + new ItemInfo(17614), new ItemInfo(17615), new ItemInfo(17616), new ItemInfo(17617), new ItemInfo(17618), new ItemInfo(17619), new ItemInfo(17620), new ItemInfo(17637), new ItemInfo(17638) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt15Gump() + : this(0) + { } + + public AddMisc2Pt15Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt15Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 16.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 16.cs new file mode 100644 index 000000000..916dc8451 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 16.cs @@ -0,0 +1,173 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt16Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt16", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt16_OnCommand)); + } + + [Usage("AddMisc2Pt16")] + + public static void AddMisc2Pt16_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt16Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(17639), new ItemInfo(17640), new ItemInfo(17641), new ItemInfo(17642), new ItemInfo(17643), new ItemInfo(17644), new ItemInfo(17645), new ItemInfo(17646), new ItemInfo(17647), + new ItemInfo(17648), new ItemInfo(17649), new ItemInfo(17650), new ItemInfo(17651), new ItemInfo(17652), new ItemInfo(17653), new ItemInfo(17654), new ItemInfo(17655), new ItemInfo(17656), + new ItemInfo(17677), new ItemInfo(17678), new ItemInfo(17683), new ItemInfo(17684), new ItemInfo(17685), new ItemInfo(17686), new ItemInfo(17687), new ItemInfo(17774), new ItemInfo(17775), + new ItemInfo(17776), new ItemInfo(17777), new ItemInfo(17778), new ItemInfo(17779), new ItemInfo(17780), new ItemInfo(17781), new ItemInfo(17782), new ItemInfo(17783), new ItemInfo(17784), + new ItemInfo(17785), new ItemInfo(17786), new ItemInfo(17787), new ItemInfo(17788), new ItemInfo(17789), new ItemInfo(17844), new ItemInfo(17845), new ItemInfo(17846), new ItemInfo(17847), + new ItemInfo(17848), new ItemInfo(17849), new ItemInfo(17850), new ItemInfo(17851), new ItemInfo(17852), new ItemInfo(17853), new ItemInfo(17854), new ItemInfo(17855), new ItemInfo(17856), + new ItemInfo(17857), new ItemInfo(17858), new ItemInfo(17859), new ItemInfo(17860), new ItemInfo(17861), new ItemInfo(17862), new ItemInfo(17863), new ItemInfo(17864), new ItemInfo(17865), + new ItemInfo(17866), new ItemInfo(17867), new ItemInfo(17868), new ItemInfo(17869), new ItemInfo(17870), new ItemInfo(17871), new ItemInfo(17872), new ItemInfo(17873), new ItemInfo(17874), + new ItemInfo(17875), new ItemInfo(17876), new ItemInfo(17877), new ItemInfo(17878), new ItemInfo(17879), new ItemInfo(17880), new ItemInfo(17881), new ItemInfo(17882), new ItemInfo(17883), + new ItemInfo(17884), new ItemInfo(17885), new ItemInfo(17886), new ItemInfo(17887), new ItemInfo(17888), new ItemInfo(17889), new ItemInfo(17890), new ItemInfo(17891), new ItemInfo(17892), + new ItemInfo(17893), new ItemInfo(17894), new ItemInfo(17895), new ItemInfo(17896), new ItemInfo(17897), new ItemInfo(17898), new ItemInfo(17899), new ItemInfo(17900), new ItemInfo(17901), + new ItemInfo(17902), new ItemInfo(17903), new ItemInfo(17904), new ItemInfo(17905), new ItemInfo(17906), new ItemInfo(17907), new ItemInfo(17908), new ItemInfo(17909), new ItemInfo(17910), + new ItemInfo(17911), new ItemInfo(17912), new ItemInfo(17913), new ItemInfo(17914), new ItemInfo(17915), new ItemInfo(17916), new ItemInfo(17917), new ItemInfo(17918), new ItemInfo(17919), + new ItemInfo(17920), new ItemInfo(17921), new ItemInfo(17922), new ItemInfo(17923), new ItemInfo(17924), new ItemInfo(17925), new ItemInfo(17926), new ItemInfo(17927), new ItemInfo(17928), + new ItemInfo(17929), new ItemInfo(17930), new ItemInfo(17931), new ItemInfo(17932), new ItemInfo(17933), new ItemInfo(17934), new ItemInfo(17935), new ItemInfo(17936), new ItemInfo(17937), + new ItemInfo(17938), new ItemInfo(17939), new ItemInfo(17940), new ItemInfo(17941), new ItemInfo(17942), new ItemInfo(17943), new ItemInfo(17944), new ItemInfo(17945), new ItemInfo(17946), + new ItemInfo(17947), new ItemInfo(17948), new ItemInfo(17949), new ItemInfo(17950), new ItemInfo(17951), new ItemInfo(17952), new ItemInfo(17953), new ItemInfo(17954), new ItemInfo(17955), + new ItemInfo(17956), new ItemInfo(17957), new ItemInfo(17958), new ItemInfo(17959), new ItemInfo(17960), new ItemInfo(17961), new ItemInfo(17962), new ItemInfo(17963), new ItemInfo(17964), + new ItemInfo(17965), new ItemInfo(17966), new ItemInfo(17967), new ItemInfo(17968), new ItemInfo(17969), new ItemInfo(17970), new ItemInfo(17971), new ItemInfo(17972), new ItemInfo(17973), + new ItemInfo(17974), new ItemInfo(17975), new ItemInfo(17976), new ItemInfo(17977), new ItemInfo(17978), new ItemInfo(17979), new ItemInfo(17980), new ItemInfo(17981), new ItemInfo(17982), + new ItemInfo(17983), new ItemInfo(17984), new ItemInfo(17985), new ItemInfo(17986), new ItemInfo(17987), new ItemInfo(17988), new ItemInfo(17989), new ItemInfo(17990), new ItemInfo(17991), + new ItemInfo(17992), new ItemInfo(17993), new ItemInfo(17994), new ItemInfo(17995), new ItemInfo(17996), new ItemInfo(17997), new ItemInfo(17998), new ItemInfo(17999), new ItemInfo(18000), + new ItemInfo(18001), new ItemInfo(18002), new ItemInfo(18003), new ItemInfo(18004), new ItemInfo(18005), new ItemInfo(18006), new ItemInfo(18007), new ItemInfo(18008), new ItemInfo(18009), + new ItemInfo(18010), new ItemInfo(18011), new ItemInfo(18012), new ItemInfo(18013), new ItemInfo(18014), new ItemInfo(18015), new ItemInfo(18016), new ItemInfo(18017), new ItemInfo(18018), + new ItemInfo(18019), new ItemInfo(18020), new ItemInfo(18021), new ItemInfo(18022), new ItemInfo(18023), new ItemInfo(18024), new ItemInfo(18025), new ItemInfo(18026), new ItemInfo(18027), + new ItemInfo(18028), new ItemInfo(18029), new ItemInfo(18030), new ItemInfo(18031), new ItemInfo(18032), new ItemInfo(18033), new ItemInfo(18034), new ItemInfo(18035), new ItemInfo(18036), + new ItemInfo(18037), new ItemInfo(18038), new ItemInfo(18039), new ItemInfo(18040), new ItemInfo(18041), new ItemInfo(18042), new ItemInfo(18043), new ItemInfo(18044), new ItemInfo(18045), + new ItemInfo(18046), new ItemInfo(18047), new ItemInfo(18048), new ItemInfo(18049), new ItemInfo(18050), new ItemInfo(18051), new ItemInfo(18052), new ItemInfo(18053), new ItemInfo(18054), + new ItemInfo(18055), new ItemInfo(18056), new ItemInfo(18057), new ItemInfo(18058), new ItemInfo(18059), new ItemInfo(18065), new ItemInfo(18066), new ItemInfo(18067), new ItemInfo(18068), + new ItemInfo(18069), new ItemInfo(18070), new ItemInfo(18071), new ItemInfo(18072), new ItemInfo(18073), new ItemInfo(18074), new ItemInfo(18075), new ItemInfo(18076), new ItemInfo(18082), + new ItemInfo(18083), new ItemInfo(18084), new ItemInfo(18085), new ItemInfo(18086), new ItemInfo(18087), new ItemInfo(18088), new ItemInfo(18089), new ItemInfo(18090), new ItemInfo(18091), + new ItemInfo(18092), new ItemInfo(18093), new ItemInfo(18094), new ItemInfo(18095), new ItemInfo(18098), new ItemInfo(18099), new ItemInfo(18102), new ItemInfo(18103), new ItemInfo(18104), + new ItemInfo(18105), new ItemInfo(18106), new ItemInfo(18107), new ItemInfo(18108), new ItemInfo(18137), new ItemInfo(18141), new ItemInfo(18142), new ItemInfo(18143), new ItemInfo(18144), + new ItemInfo(18145), new ItemInfo(18146), new ItemInfo(18147), new ItemInfo(18148), new ItemInfo(18149), new ItemInfo(18150), new ItemInfo(18151), new ItemInfo(18152), new ItemInfo(18153), + new ItemInfo(18154), new ItemInfo(18155), new ItemInfo(18156), new ItemInfo(18157), new ItemInfo(18158), new ItemInfo(18159), new ItemInfo(18160), new ItemInfo(18161), new ItemInfo(18162), + new ItemInfo(18163), new ItemInfo(18164), new ItemInfo(18165), new ItemInfo(18166), new ItemInfo(18167), new ItemInfo(18168), new ItemInfo(18169), new ItemInfo(18170), new ItemInfo(18171), + new ItemInfo(18172), new ItemInfo(18173), new ItemInfo(18174), new ItemInfo(18175), new ItemInfo(18176), new ItemInfo(18177), new ItemInfo(18178), new ItemInfo(18179), new ItemInfo(18182), + new ItemInfo(18183), new ItemInfo(18184), new ItemInfo(18185), new ItemInfo(18186), new ItemInfo(18187), new ItemInfo(18188), new ItemInfo(18189), new ItemInfo(18190), new ItemInfo(18191), + new ItemInfo(18192), new ItemInfo(18193), new ItemInfo(18194), new ItemInfo(18195), new ItemInfo(18196), new ItemInfo(18197), new ItemInfo(18198), new ItemInfo(18199), new ItemInfo(18200), + new ItemInfo(18201), new ItemInfo(18202), new ItemInfo(18203), new ItemInfo(18204), new ItemInfo(18205), new ItemInfo(18206), new ItemInfo(18207), new ItemInfo(18208), new ItemInfo(18209) + + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt16Gump() + : this(0) + { } + + public AddMisc2Pt16Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt16Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 17.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 17.cs new file mode 100644 index 000000000..f4ea2ce36 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 17.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt17Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt17", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt17_OnCommand)); + } + + [Usage("AddMisc2Pt17")] + + public static void AddMisc2Pt17_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt17Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(18210), new ItemInfo(18211), new ItemInfo(18212), new ItemInfo(18213), new ItemInfo(18214), new ItemInfo(18215), new ItemInfo(18216), new ItemInfo(18217), new ItemInfo(18218), + new ItemInfo(18219), new ItemInfo(18220), new ItemInfo(18221), new ItemInfo(18222), new ItemInfo(18223), new ItemInfo(18224), new ItemInfo(18225), new ItemInfo(18226), new ItemInfo(18227), + new ItemInfo(18228), new ItemInfo(18229), new ItemInfo(18230), new ItemInfo(18231), new ItemInfo(18232), new ItemInfo(18233), new ItemInfo(18234), new ItemInfo(18235), new ItemInfo(18236), + new ItemInfo(18237), new ItemInfo(18238), new ItemInfo(18239), new ItemInfo(18240), new ItemInfo(18241), new ItemInfo(18242), new ItemInfo(18243), new ItemInfo(18244), new ItemInfo(18245), + new ItemInfo(18246), new ItemInfo(18247), new ItemInfo(18248), new ItemInfo(18249), new ItemInfo(18250), new ItemInfo(18251), new ItemInfo(18252), new ItemInfo(18253), new ItemInfo(18254), + new ItemInfo(18255), new ItemInfo(18256), new ItemInfo(18257), new ItemInfo(18258), new ItemInfo(18259), new ItemInfo(18260), new ItemInfo(18261), new ItemInfo(18262), new ItemInfo(18263), + new ItemInfo(18264), new ItemInfo(18265), new ItemInfo(18266), new ItemInfo(18267), new ItemInfo(18268), new ItemInfo(18269), new ItemInfo(18270), new ItemInfo(18271), new ItemInfo(18272), + new ItemInfo(18273), new ItemInfo(18274), new ItemInfo(18275), new ItemInfo(18276), new ItemInfo(18277), new ItemInfo(18278), new ItemInfo(18279), new ItemInfo(18280), new ItemInfo(18281), + new ItemInfo(18282), new ItemInfo(18283), new ItemInfo(18284), new ItemInfo(18285), new ItemInfo(18286), new ItemInfo(18287), new ItemInfo(18288), new ItemInfo(18289), new ItemInfo(18290), + new ItemInfo(18291), new ItemInfo(18292), new ItemInfo(18293), new ItemInfo(18294), new ItemInfo(18295), new ItemInfo(18296), new ItemInfo(18297), new ItemInfo(18298), new ItemInfo(18299), + new ItemInfo(18300), new ItemInfo(18320), new ItemInfo(18321), new ItemInfo(18322), new ItemInfo(18323), new ItemInfo(18324), new ItemInfo(18325), new ItemInfo(18330), new ItemInfo(18331), + new ItemInfo(18332), new ItemInfo(18333), new ItemInfo(18334), new ItemInfo(18335), new ItemInfo(18336), new ItemInfo(18337), new ItemInfo(18338), new ItemInfo(18339), new ItemInfo(18340), + new ItemInfo(18341), new ItemInfo(18342), new ItemInfo(18343), new ItemInfo(18344), new ItemInfo(18345), new ItemInfo(18346), new ItemInfo(18347), new ItemInfo(18348), new ItemInfo(18349), + new ItemInfo(18350), new ItemInfo(18351), new ItemInfo(18352), new ItemInfo(18353), new ItemInfo(18354), new ItemInfo(18355), new ItemInfo(18356), new ItemInfo(18357), new ItemInfo(18358), + new ItemInfo(18359), new ItemInfo(18360), new ItemInfo(18361), new ItemInfo(18362), new ItemInfo(18363), new ItemInfo(18364), new ItemInfo(18365), new ItemInfo(18366), new ItemInfo(18367), + new ItemInfo(18368), new ItemInfo(18369), new ItemInfo(18370), new ItemInfo(18371), new ItemInfo(18372), new ItemInfo(18373), new ItemInfo(18374), new ItemInfo(18375), new ItemInfo(18376), + new ItemInfo(18377), new ItemInfo(18378), new ItemInfo(18379), new ItemInfo(18380), new ItemInfo(18381), new ItemInfo(18382), new ItemInfo(18383), new ItemInfo(18384), new ItemInfo(18385), + new ItemInfo(18386), new ItemInfo(18387), new ItemInfo(18388), new ItemInfo(18389), new ItemInfo(18390), new ItemInfo(18391), new ItemInfo(18392), new ItemInfo(18393), new ItemInfo(18394), + new ItemInfo(18395), new ItemInfo(18396), new ItemInfo(18397), new ItemInfo(18398), new ItemInfo(18399), new ItemInfo(18400), new ItemInfo(18401), new ItemInfo(18402), new ItemInfo(18403), + new ItemInfo(18404), new ItemInfo(18405), new ItemInfo(18406), new ItemInfo(18407), new ItemInfo(18408), new ItemInfo(18409), new ItemInfo(18491), new ItemInfo(18492), new ItemInfo(18493), + new ItemInfo(18494), new ItemInfo(18495), new ItemInfo(18496), new ItemInfo(18497), new ItemInfo(18498), new ItemInfo(18499), new ItemInfo(18500), new ItemInfo(18501), new ItemInfo(18502), + new ItemInfo(18503), new ItemInfo(18504), new ItemInfo(18505), new ItemInfo(18506), new ItemInfo(18507), new ItemInfo(18508), new ItemInfo(18509), new ItemInfo(18510), new ItemInfo(18511), + new ItemInfo(18512), new ItemInfo(18513), new ItemInfo(18514), new ItemInfo(18515), new ItemInfo(18516), new ItemInfo(18517), new ItemInfo(18518), new ItemInfo(18519), new ItemInfo(18520), + new ItemInfo(18521), new ItemInfo(18522), new ItemInfo(18523), new ItemInfo(18524), new ItemInfo(18525), new ItemInfo(18526), new ItemInfo(18527), new ItemInfo(18528), new ItemInfo(18529), + new ItemInfo(18530), new ItemInfo(18531), new ItemInfo(18532), new ItemInfo(18533), new ItemInfo(18534), new ItemInfo(18535), new ItemInfo(18536), new ItemInfo(18537), new ItemInfo(18538), + new ItemInfo(18539), new ItemInfo(18540), new ItemInfo(18541), new ItemInfo(18542), new ItemInfo(18543), new ItemInfo(18544), new ItemInfo(18545), new ItemInfo(18546), new ItemInfo(18547), + new ItemInfo(18548), new ItemInfo(18549), new ItemInfo(18550), new ItemInfo(18551), new ItemInfo(18552), new ItemInfo(18553), new ItemInfo(18554), new ItemInfo(18555), new ItemInfo(18556), + new ItemInfo(18557), new ItemInfo(18558), new ItemInfo(18559), new ItemInfo(18560), new ItemInfo(18561), new ItemInfo(18562), new ItemInfo(18563), new ItemInfo(18564), new ItemInfo(18565), + new ItemInfo(18566), new ItemInfo(18567), new ItemInfo(18568), new ItemInfo(18569), new ItemInfo(18570), new ItemInfo(18571), new ItemInfo(18572), new ItemInfo(18573), new ItemInfo(18574), + new ItemInfo(18575), new ItemInfo(18576), new ItemInfo(18577), new ItemInfo(18578), new ItemInfo(18579), new ItemInfo(18580), new ItemInfo(18581), new ItemInfo(18582), new ItemInfo(18583), + new ItemInfo(18584), new ItemInfo(18585), new ItemInfo(18586), new ItemInfo(18587), new ItemInfo(18588), new ItemInfo(18589), new ItemInfo(18590), new ItemInfo(18591), new ItemInfo(18592), + new ItemInfo(18593), new ItemInfo(18594), new ItemInfo(18595), new ItemInfo(18596), new ItemInfo(18597), new ItemInfo(18598), new ItemInfo(18599), new ItemInfo(18600), new ItemInfo(18601), + new ItemInfo(18602), new ItemInfo(18603), new ItemInfo(18604), new ItemInfo(18605), new ItemInfo(18644), new ItemInfo(18645), new ItemInfo(18646), new ItemInfo(18647), new ItemInfo(18648), + new ItemInfo(18649), new ItemInfo(18650), new ItemInfo(18651), new ItemInfo(18652), new ItemInfo(18653), new ItemInfo(18654), new ItemInfo(18655), new ItemInfo(18656), new ItemInfo(18657), + new ItemInfo(18658), new ItemInfo(18659), new ItemInfo(18661), new ItemInfo(18662), new ItemInfo(18663), new ItemInfo(18664), new ItemInfo(18665), new ItemInfo(18666), new ItemInfo(18667), + new ItemInfo(18668), new ItemInfo(18669), new ItemInfo(18670), new ItemInfo(18671), new ItemInfo(18672), new ItemInfo(18673), new ItemInfo(18674), new ItemInfo(18675), new ItemInfo(18676), + new ItemInfo(18677), new ItemInfo(18678), new ItemInfo(18679), new ItemInfo(18680), new ItemInfo(18681), new ItemInfo(18682), new ItemInfo(18683), new ItemInfo(18684), new ItemInfo(18685), + new ItemInfo(18686), new ItemInfo(18687), new ItemInfo(18688), new ItemInfo(18689), new ItemInfo(18690), new ItemInfo(18691), new ItemInfo(18692), new ItemInfo(18693), new ItemInfo(18694), + new ItemInfo(18695), new ItemInfo(18696), new ItemInfo(18697), new ItemInfo(18698), new ItemInfo(18699), new ItemInfo(18700), new ItemInfo(18701), new ItemInfo(18702), new ItemInfo(18703), + new ItemInfo(18704), new ItemInfo(18705), new ItemInfo(18706), new ItemInfo(18707), new ItemInfo(18708), new ItemInfo(18709), new ItemInfo(18710), new ItemInfo(18711), new ItemInfo(18712) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt17Gump() + : this(0) + { } + + public AddMisc2Pt17Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt17Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 18.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 18.cs new file mode 100644 index 000000000..c92842548 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 18.cs @@ -0,0 +1,173 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt18Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt18", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt18_OnCommand)); + } + + [Usage("AddMisc2Pt18")] + + public static void AddMisc2Pt18_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt18Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(18713), new ItemInfo(18714), new ItemInfo(18715), new ItemInfo(18716), new ItemInfo(18717), new ItemInfo(18718), new ItemInfo(18719), new ItemInfo(18720), new ItemInfo(18721), + new ItemInfo(18722), new ItemInfo(18723), new ItemInfo(18724), new ItemInfo(18725), new ItemInfo(18726), new ItemInfo(18727), new ItemInfo(18728), new ItemInfo(18729), new ItemInfo(18730), + new ItemInfo(18731), new ItemInfo(18732), new ItemInfo(18733), new ItemInfo(18734), new ItemInfo(18735), new ItemInfo(18736), new ItemInfo(18737), new ItemInfo(18738), new ItemInfo(18739), + new ItemInfo(18740), new ItemInfo(18741), new ItemInfo(18742), new ItemInfo(18743), new ItemInfo(18744), new ItemInfo(18745), new ItemInfo(18746), new ItemInfo(18747), new ItemInfo(18748), + new ItemInfo(18749), new ItemInfo(18750), new ItemInfo(18751), new ItemInfo(18752), new ItemInfo(18753), new ItemInfo(18754), new ItemInfo(18755), new ItemInfo(18756), new ItemInfo(18757), + new ItemInfo(18758), new ItemInfo(18759), new ItemInfo(18760), new ItemInfo(18761), new ItemInfo(18762), new ItemInfo(18763), new ItemInfo(18764), new ItemInfo(18765), new ItemInfo(18766), + new ItemInfo(18767), new ItemInfo(18768), new ItemInfo(18769), new ItemInfo(18770), new ItemInfo(18771), new ItemInfo(18772), new ItemInfo(18773), new ItemInfo(18774), new ItemInfo(18775), + new ItemInfo(18776), new ItemInfo(18777), new ItemInfo(18778), new ItemInfo(18779), new ItemInfo(18780), new ItemInfo(18781), new ItemInfo(18782), new ItemInfo(18783), new ItemInfo(18784), + new ItemInfo(18785), new ItemInfo(18786), new ItemInfo(18787), new ItemInfo(18788), new ItemInfo(18789), new ItemInfo(18790), new ItemInfo(18791), new ItemInfo(18792), new ItemInfo(18793), + new ItemInfo(18794), new ItemInfo(18795), new ItemInfo(18796), new ItemInfo(18797), new ItemInfo(18798), new ItemInfo(18799), new ItemInfo(18800), new ItemInfo(18802), new ItemInfo(18803), + new ItemInfo(18804), new ItemInfo(18805), new ItemInfo(18806), new ItemInfo(18807), new ItemInfo(18808), new ItemInfo(18809), new ItemInfo(18810), new ItemInfo(18811), new ItemInfo(18812), + new ItemInfo(18813), new ItemInfo(18814), new ItemInfo(18815), new ItemInfo(18816), new ItemInfo(18817), new ItemInfo(18818), new ItemInfo(18819), new ItemInfo(18820), new ItemInfo(18821), + new ItemInfo(18822), new ItemInfo(18823), new ItemInfo(18825), new ItemInfo(18826), new ItemInfo(18827), new ItemInfo(18828), new ItemInfo(18829), new ItemInfo(18830), new ItemInfo(18832), + new ItemInfo(18833), new ItemInfo(18834), new ItemInfo(18835), new ItemInfo(18836), new ItemInfo(18837), new ItemInfo(18838), new ItemInfo(18839), new ItemInfo(18840), new ItemInfo(18841), + new ItemInfo(18842), new ItemInfo(18843), new ItemInfo(18844), new ItemInfo(18846), new ItemInfo(18847), new ItemInfo(18848), new ItemInfo(18849), new ItemInfo(18850), new ItemInfo(18851), + new ItemInfo(18852), new ItemInfo(18853), new ItemInfo(18854), new ItemInfo(18855), new ItemInfo(18856), new ItemInfo(18857), new ItemInfo(18858), new ItemInfo(18859), new ItemInfo(18860), + new ItemInfo(18861), new ItemInfo(18862), new ItemInfo(18863), new ItemInfo(18864), new ItemInfo(18865), new ItemInfo(18866), new ItemInfo(18867), new ItemInfo(18868), new ItemInfo(18869), + new ItemInfo(18870), new ItemInfo(18871), new ItemInfo(18872), new ItemInfo(18873), new ItemInfo(18874), new ItemInfo(18875), new ItemInfo(18876), new ItemInfo(18877), new ItemInfo(18878), + new ItemInfo(18879), new ItemInfo(18880), new ItemInfo(18884), new ItemInfo(18885), new ItemInfo(18886), new ItemInfo(18887), new ItemInfo(18888), new ItemInfo(18889), new ItemInfo(18890), + new ItemInfo(18891), new ItemInfo(18892), new ItemInfo(18893), new ItemInfo(18894), new ItemInfo(18895), new ItemInfo(18896), new ItemInfo(18897), new ItemInfo(18898), new ItemInfo(18899), + new ItemInfo(18900), new ItemInfo(18901), new ItemInfo(18902), new ItemInfo(18903), new ItemInfo(18904), new ItemInfo(18905), new ItemInfo(18906), new ItemInfo(18907), new ItemInfo(18908), + new ItemInfo(18909), new ItemInfo(18910), new ItemInfo(18911), new ItemInfo(18912), new ItemInfo(18913), new ItemInfo(18914), new ItemInfo(18915), new ItemInfo(18916), new ItemInfo(18917), + new ItemInfo(18918), new ItemInfo(18919), new ItemInfo(18920), new ItemInfo(18921), new ItemInfo(18922), new ItemInfo(18923), new ItemInfo(18924), new ItemInfo(18925), new ItemInfo(18926), + new ItemInfo(18927), new ItemInfo(18928), new ItemInfo(18929), new ItemInfo(18930), new ItemInfo(18931), new ItemInfo(18932), new ItemInfo(18933), new ItemInfo(18934), new ItemInfo(18935), + new ItemInfo(18936), new ItemInfo(18937), new ItemInfo(18938), new ItemInfo(18939), new ItemInfo(19096), new ItemInfo(19097), new ItemInfo(19108), new ItemInfo(19109), new ItemInfo(19110), + new ItemInfo(19111), new ItemInfo(19112), new ItemInfo(19113), new ItemInfo(19124), new ItemInfo(19125), new ItemInfo(19126), new ItemInfo(19127), new ItemInfo(19128), new ItemInfo(19198), + new ItemInfo(19199), new ItemInfo(19228), new ItemInfo(19229), new ItemInfo(19230), new ItemInfo(19231), new ItemInfo(19232), new ItemInfo(19233), new ItemInfo(19234), new ItemInfo(19235), + new ItemInfo(19236), new ItemInfo(19237), new ItemInfo(19238), new ItemInfo(19239), new ItemInfo(19240), new ItemInfo(19241), new ItemInfo(19242), new ItemInfo(19248), new ItemInfo(19249), + new ItemInfo(19261), new ItemInfo(19268), new ItemInfo(19269), new ItemInfo(19270), new ItemInfo(19271), new ItemInfo(19272), new ItemInfo(19273), new ItemInfo(19274), new ItemInfo(19275), + new ItemInfo(19276), new ItemInfo(19277), new ItemInfo(19278), new ItemInfo(19279), new ItemInfo(19280), new ItemInfo(19281), new ItemInfo(19282), new ItemInfo(19283), new ItemInfo(19284), + new ItemInfo(19285), new ItemInfo(19286), new ItemInfo(19287), new ItemInfo(19288), new ItemInfo(19289), new ItemInfo(19290), new ItemInfo(19291), new ItemInfo(19292), new ItemInfo(19293), + new ItemInfo(19294), new ItemInfo(19295), new ItemInfo(19296), new ItemInfo(19297), new ItemInfo(19298), new ItemInfo(19299), new ItemInfo(19300), new ItemInfo(19301), new ItemInfo(19302), + new ItemInfo(19303), new ItemInfo(19304), new ItemInfo(19305), new ItemInfo(19306), new ItemInfo(19307), new ItemInfo(19308), new ItemInfo(19309), new ItemInfo(19310), new ItemInfo(19311), + new ItemInfo(19312), new ItemInfo(19313), new ItemInfo(19314), new ItemInfo(19315), new ItemInfo(19316), new ItemInfo(19317), new ItemInfo(19318), new ItemInfo(19319), new ItemInfo(19320), + new ItemInfo(19321), new ItemInfo(19322), new ItemInfo(19323), new ItemInfo(19324), new ItemInfo(19325), new ItemInfo(19326), new ItemInfo(19327), new ItemInfo(19328), new ItemInfo(19329), + new ItemInfo(19330), new ItemInfo(19331), new ItemInfo(19332), new ItemInfo(19333), new ItemInfo(19334), new ItemInfo(19335), new ItemInfo(19336), new ItemInfo(19337), new ItemInfo(19338), + new ItemInfo(19339), new ItemInfo(19340), new ItemInfo(19341), new ItemInfo(19342), new ItemInfo(19357), new ItemInfo(19358), new ItemInfo(19359), new ItemInfo(19360), new ItemInfo(19361), + new ItemInfo(19362), new ItemInfo(19365), new ItemInfo(19366), new ItemInfo(19367), new ItemInfo(19368), new ItemInfo(19419), new ItemInfo(19420), new ItemInfo(19421), new ItemInfo(19422), + new ItemInfo(19423), new ItemInfo(19424), new ItemInfo(19425), new ItemInfo(19426), new ItemInfo(19427), new ItemInfo(19428), new ItemInfo(19429), new ItemInfo(19430), new ItemInfo(19431), + new ItemInfo(19432), new ItemInfo(19433), new ItemInfo(19434), new ItemInfo(19435), new ItemInfo(19436), new ItemInfo(19437), new ItemInfo(19438), new ItemInfo(19439), new ItemInfo(19440) + + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt18Gump() + : this(0) + { } + + public AddMisc2Pt18Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt18Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 19.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 19.cs new file mode 100644 index 000000000..4788f7bac --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 19.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt19Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt19", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt19_OnCommand)); + } + + [Usage("AddMisc2Pt19")] + + public static void AddMisc2Pt19_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt19Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(19441), new ItemInfo(19442), new ItemInfo(19443), new ItemInfo(19444), new ItemInfo(19445), new ItemInfo(19446), new ItemInfo(19447), new ItemInfo(19448), new ItemInfo(19449), + new ItemInfo(19450), new ItemInfo(19451), new ItemInfo(19452), new ItemInfo(19453), new ItemInfo(19454), new ItemInfo(19455), new ItemInfo(19456), new ItemInfo(19457), new ItemInfo(19461), + new ItemInfo(19462), new ItemInfo(19467), new ItemInfo(19480), new ItemInfo(19481), new ItemInfo(19482), new ItemInfo(19483), new ItemInfo(19484), new ItemInfo(19485), new ItemInfo(19486), + new ItemInfo(19487), new ItemInfo(19488), new ItemInfo(19489), new ItemInfo(19490), new ItemInfo(19491), new ItemInfo(19597), new ItemInfo(19598), new ItemInfo(19599), new ItemInfo(19650), + new ItemInfo(19651), new ItemInfo(19686), new ItemInfo(19687), new ItemInfo(19688), new ItemInfo(19689), new ItemInfo(19690), new ItemInfo(19691), new ItemInfo(19692), new ItemInfo(19693), + new ItemInfo(19737), new ItemInfo(19738), new ItemInfo(19739), new ItemInfo(19740), new ItemInfo(19741), new ItemInfo(19742), new ItemInfo(19743), new ItemInfo(19744), new ItemInfo(19745), + new ItemInfo(19746), new ItemInfo(19747), new ItemInfo(19748), new ItemInfo(19749), new ItemInfo(19750), new ItemInfo(19751), new ItemInfo(19752), new ItemInfo(19753), new ItemInfo(19936), + new ItemInfo(19937), new ItemInfo(20326), new ItemInfo(20327), new ItemInfo(20352), new ItemInfo(20353), new ItemInfo(20354), new ItemInfo(20355), new ItemInfo(20356), new ItemInfo(20357), + new ItemInfo(20358), new ItemInfo(20359), new ItemInfo(20360), new ItemInfo(20361), new ItemInfo(20362), new ItemInfo(20363), new ItemInfo(20364), new ItemInfo(20365), new ItemInfo(20366), + new ItemInfo(20367), new ItemInfo(20368), new ItemInfo(20369), new ItemInfo(20370), new ItemInfo(20371), new ItemInfo(20372), new ItemInfo(20373), new ItemInfo(20374), new ItemInfo(20375), + new ItemInfo(20376), new ItemInfo(20377), new ItemInfo(20378), new ItemInfo(20379), new ItemInfo(20380), new ItemInfo(20381), new ItemInfo(20382), new ItemInfo(20383), new ItemInfo(20384), + new ItemInfo(20385), new ItemInfo(20386), new ItemInfo(20387), new ItemInfo(20388), new ItemInfo(20389), new ItemInfo(20390), new ItemInfo(20391), new ItemInfo(20392), new ItemInfo(20393), + new ItemInfo(20394), new ItemInfo(20395), new ItemInfo(20396), new ItemInfo(20397), new ItemInfo(20398), new ItemInfo(20399), new ItemInfo(20400), new ItemInfo(20401), new ItemInfo(20402), + new ItemInfo(20403), new ItemInfo(20404), new ItemInfo(20405), new ItemInfo(20406), new ItemInfo(20407), new ItemInfo(20408), new ItemInfo(20409), new ItemInfo(20410), new ItemInfo(20411), + new ItemInfo(20480), new ItemInfo(20481), new ItemInfo(20482), new ItemInfo(20483), new ItemInfo(20484), new ItemInfo(20485), new ItemInfo(20486), new ItemInfo(20487), new ItemInfo(20488), + new ItemInfo(20489), new ItemInfo(20490), new ItemInfo(20491), new ItemInfo(20492), new ItemInfo(20493), new ItemInfo(20494), new ItemInfo(20495), new ItemInfo(20496), new ItemInfo(20497), + new ItemInfo(20498), new ItemInfo(20499), new ItemInfo(20500), new ItemInfo(20501), new ItemInfo(20502), new ItemInfo(20503), new ItemInfo(20504), new ItemInfo(20505), new ItemInfo(20506), + new ItemInfo(20507), new ItemInfo(20508), new ItemInfo(20509), new ItemInfo(20510), new ItemInfo(20511), new ItemInfo(20512), new ItemInfo(20513), new ItemInfo(20514), new ItemInfo(20515), + new ItemInfo(20516), new ItemInfo(20517), new ItemInfo(20518), new ItemInfo(20519), new ItemInfo(20520), new ItemInfo(20521), new ItemInfo(20522), new ItemInfo(20523), new ItemInfo(20524), + new ItemInfo(20525), new ItemInfo(20526), new ItemInfo(20527), new ItemInfo(20528), new ItemInfo(20529), new ItemInfo(20530), new ItemInfo(20531), new ItemInfo(20532), new ItemInfo(20533), + new ItemInfo(20534), new ItemInfo(20535), new ItemInfo(20536), new ItemInfo(20537), new ItemInfo(20538), new ItemInfo(20539), new ItemInfo(20540), new ItemInfo(20541), new ItemInfo(20542), + new ItemInfo(20543), new ItemInfo(20544), new ItemInfo(20545), new ItemInfo(20546), new ItemInfo(20547), new ItemInfo(20548), new ItemInfo(20549), new ItemInfo(20550), new ItemInfo(20551), + new ItemInfo(20552), new ItemInfo(20553), new ItemInfo(20554), new ItemInfo(20555), new ItemInfo(20556), new ItemInfo(20557), new ItemInfo(20558), new ItemInfo(20559), new ItemInfo(20560), + new ItemInfo(20561), new ItemInfo(20562), new ItemInfo(20563), new ItemInfo(20564), new ItemInfo(20565), new ItemInfo(20566), new ItemInfo(20567), new ItemInfo(20568), new ItemInfo(20569), + new ItemInfo(20570), new ItemInfo(20571), new ItemInfo(20572), new ItemInfo(20573), new ItemInfo(20574), new ItemInfo(20575), new ItemInfo(20576), new ItemInfo(20577), new ItemInfo(20578), + new ItemInfo(20579), new ItemInfo(20580), new ItemInfo(20581), new ItemInfo(20582), new ItemInfo(20583), new ItemInfo(20584), new ItemInfo(20585), new ItemInfo(20586), new ItemInfo(20587), + new ItemInfo(20588), new ItemInfo(20589), new ItemInfo(20590), new ItemInfo(20591), new ItemInfo(20592), new ItemInfo(20593), new ItemInfo(20594), new ItemInfo(20595), new ItemInfo(20596), + new ItemInfo(20597), new ItemInfo(20598), new ItemInfo(20599), new ItemInfo(20600), new ItemInfo(20601), new ItemInfo(20602), new ItemInfo(20603), new ItemInfo(20604), new ItemInfo(20605), + new ItemInfo(20606), new ItemInfo(20607), new ItemInfo(20608), new ItemInfo(20609), new ItemInfo(20610), new ItemInfo(20611), new ItemInfo(20612), new ItemInfo(20613), new ItemInfo(20614), + new ItemInfo(20615), new ItemInfo(20616), new ItemInfo(20617), new ItemInfo(20618), new ItemInfo(20619), new ItemInfo(20620), new ItemInfo(20621), new ItemInfo(20622), new ItemInfo(20623), + new ItemInfo(20624), new ItemInfo(20625), new ItemInfo(20626), new ItemInfo(20627), new ItemInfo(20628), new ItemInfo(20629), new ItemInfo(20630), new ItemInfo(20631), new ItemInfo(20632), + new ItemInfo(20633), new ItemInfo(20634), new ItemInfo(20635), new ItemInfo(20636), new ItemInfo(20637), new ItemInfo(20638), new ItemInfo(20639), new ItemInfo(20640), new ItemInfo(20641), + new ItemInfo(20642), new ItemInfo(20643), new ItemInfo(20644), new ItemInfo(20645), new ItemInfo(20646), new ItemInfo(20647), new ItemInfo(20648), new ItemInfo(20649), new ItemInfo(20650), + new ItemInfo(20651), new ItemInfo(20652), new ItemInfo(20653), new ItemInfo(20654), new ItemInfo(20655), new ItemInfo(20656), new ItemInfo(20657), new ItemInfo(20658), new ItemInfo(20659), + new ItemInfo(20660), new ItemInfo(20661), new ItemInfo(20662), new ItemInfo(20663), new ItemInfo(20664), new ItemInfo(20665), new ItemInfo(20666), new ItemInfo(20667), new ItemInfo(20668), + new ItemInfo(20669), new ItemInfo(20670), new ItemInfo(20671), new ItemInfo(20672), new ItemInfo(20673), new ItemInfo(20674), new ItemInfo(20675), new ItemInfo(20676), new ItemInfo(20677), + new ItemInfo(20678), new ItemInfo(20679), new ItemInfo(20680), new ItemInfo(20681), new ItemInfo(20682), new ItemInfo(20683), new ItemInfo(20684), new ItemInfo(20685), new ItemInfo(20686), + new ItemInfo(20687), new ItemInfo(20688), new ItemInfo(20689), new ItemInfo(20690), new ItemInfo(20691), new ItemInfo(20692), new ItemInfo(20693), new ItemInfo(20694), new ItemInfo(20695), + new ItemInfo(22000), new ItemInfo(22001), new ItemInfo(22002), new ItemInfo(22003), new ItemInfo(22004), new ItemInfo(22005), new ItemInfo(22006), new ItemInfo(22007), new ItemInfo(22008), + new ItemInfo(22009), new ItemInfo(22010), new ItemInfo(22011), new ItemInfo(22012), new ItemInfo(22013), new ItemInfo(22014), new ItemInfo(22015), new ItemInfo(22016), new ItemInfo(22017) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt19Gump() + : this(0) + { } + + public AddMisc2Pt19Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt19Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 2.cs new file mode 100644 index 000000000..dd77253b0 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 2.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt2Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt2", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt2_OnCommand)); + } + + [Usage("AddMisc2Pt2")] + + public static void AddMisc2Pt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt2Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(8241), new ItemInfo(8242), new ItemInfo(8243), new ItemInfo(8244), new ItemInfo(8245), new ItemInfo(8246), new ItemInfo(8247), new ItemInfo(8248), new ItemInfo(8249), + new ItemInfo(8250), new ItemInfo(8251), new ItemInfo(8252), new ItemInfo(8253), new ItemInfo(8254), new ItemInfo(8255), new ItemInfo(8256), new ItemInfo(8257), new ItemInfo(8258), + new ItemInfo(8259), new ItemInfo(8260), new ItemInfo(8261), new ItemInfo(8262), new ItemInfo(8263), new ItemInfo(8264), new ItemInfo(8265), new ItemInfo(8266), new ItemInfo(8267), + new ItemInfo(8268), new ItemInfo(8269), new ItemInfo(8270), new ItemInfo(8271), new ItemInfo(8272), new ItemInfo(8273), new ItemInfo(8274), new ItemInfo(8275), new ItemInfo(8276), + new ItemInfo(8277), new ItemInfo(8278), new ItemInfo(8279), new ItemInfo(8280), new ItemInfo(8281), new ItemInfo(8282), new ItemInfo(8283), new ItemInfo(8284), new ItemInfo(8285), + new ItemInfo(8286), new ItemInfo(8287), new ItemInfo(8288), new ItemInfo(8289), new ItemInfo(8290), new ItemInfo(8291), new ItemInfo(8292), new ItemInfo(8293), new ItemInfo(8294), + new ItemInfo(8295), new ItemInfo(8296), new ItemInfo(8297), new ItemInfo(8298), new ItemInfo(8299), new ItemInfo(8300), new ItemInfo(8301), new ItemInfo(8302), new ItemInfo(8303), + new ItemInfo(8304), new ItemInfo(8305), new ItemInfo(8306), new ItemInfo(8307), new ItemInfo(8308), new ItemInfo(8309), new ItemInfo(8310), new ItemInfo(8311), new ItemInfo(8312), + new ItemInfo(8313), new ItemInfo(8314), new ItemInfo(8315), new ItemInfo(8316), new ItemInfo(8317), new ItemInfo(8318), new ItemInfo(8319), new ItemInfo(8320), new ItemInfo(8321), + new ItemInfo(8322), new ItemInfo(8323), new ItemInfo(8324), new ItemInfo(8325), new ItemInfo(8326), new ItemInfo(8327), new ItemInfo(8328), new ItemInfo(8329), new ItemInfo(8330), + new ItemInfo(8331), new ItemInfo(8332), new ItemInfo(8333), new ItemInfo(8334), new ItemInfo(8335), new ItemInfo(8336), new ItemInfo(8337), new ItemInfo(8338), new ItemInfo(8339), + new ItemInfo(8340), new ItemInfo(8341), new ItemInfo(8342), new ItemInfo(8343), new ItemInfo(8344), new ItemInfo(8345), new ItemInfo(8346), new ItemInfo(8347), new ItemInfo(8348), + new ItemInfo(8349), new ItemInfo(8350), new ItemInfo(8351), new ItemInfo(8352), new ItemInfo(8353), new ItemInfo(8354), new ItemInfo(8355), new ItemInfo(8356), new ItemInfo(8357), + new ItemInfo(8358), new ItemInfo(8359), new ItemInfo(8360), new ItemInfo(8361), new ItemInfo(8362), new ItemInfo(8363), new ItemInfo(8364), new ItemInfo(8365), new ItemInfo(8366), + new ItemInfo(8367), new ItemInfo(8368), new ItemInfo(8369), new ItemInfo(8370), new ItemInfo(8371), new ItemInfo(8372), new ItemInfo(8373), new ItemInfo(8374), new ItemInfo(8375), + new ItemInfo(8376), new ItemInfo(8377), new ItemInfo(8378), new ItemInfo(8379), new ItemInfo(8380), new ItemInfo(8381), new ItemInfo(8382), new ItemInfo(8383), new ItemInfo(8384), + new ItemInfo(8385), new ItemInfo(8386), new ItemInfo(8387), new ItemInfo(8388), new ItemInfo(8389), new ItemInfo(8390), new ItemInfo(8391), new ItemInfo(8392), new ItemInfo(8393), + new ItemInfo(8394), new ItemInfo(8395), new ItemInfo(8396), new ItemInfo(8397), new ItemInfo(8398), new ItemInfo(8399), new ItemInfo(8400), new ItemInfo(8401), new ItemInfo(8402), + new ItemInfo(8403), new ItemInfo(8404), new ItemInfo(8405), new ItemInfo(8406), new ItemInfo(8407), new ItemInfo(8408), new ItemInfo(8409), new ItemInfo(8410), new ItemInfo(8411), + new ItemInfo(8412), new ItemInfo(8413), new ItemInfo(8414), new ItemInfo(8415), new ItemInfo(8416), new ItemInfo(8417), new ItemInfo(8418), new ItemInfo(8419), new ItemInfo(8420), + new ItemInfo(8421), new ItemInfo(8422), new ItemInfo(8423), new ItemInfo(8424), new ItemInfo(8425), new ItemInfo(8426), new ItemInfo(8427), new ItemInfo(8428), new ItemInfo(8429), + new ItemInfo(8430), new ItemInfo(8431), new ItemInfo(8432), new ItemInfo(8433), new ItemInfo(8434), new ItemInfo(8435), new ItemInfo(8436), new ItemInfo(8437), new ItemInfo(8438), + new ItemInfo(8439), new ItemInfo(8440), new ItemInfo(8441), new ItemInfo(8442), new ItemInfo(8443), new ItemInfo(8444), new ItemInfo(8445), new ItemInfo(8446), new ItemInfo(8447), + new ItemInfo(8448), new ItemInfo(8449), new ItemInfo(8450), new ItemInfo(8451), new ItemInfo(8452), new ItemInfo(8453), new ItemInfo(8454), new ItemInfo(8455), new ItemInfo(8456), + new ItemInfo(8457), new ItemInfo(8458), new ItemInfo(8459), new ItemInfo(8460), new ItemInfo(8461), new ItemInfo(8462), new ItemInfo(8463), new ItemInfo(8464), new ItemInfo(8465) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt2Gump() + : this(0) + { } + + public AddMisc2Pt2Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt2Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 20.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 20.cs new file mode 100644 index 000000000..dfee0b0c7 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 20.cs @@ -0,0 +1,171 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt20Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt20", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt20_OnCommand)); + } + + [Usage("AddMisc2Pt20")] + + public static void AddMisc2Pt20_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt20Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(22018), new ItemInfo(22019), new ItemInfo(22020), new ItemInfo(22021), new ItemInfo(22022), new ItemInfo(22023), new ItemInfo(22034), new ItemInfo(22035), new ItemInfo(22036), + new ItemInfo(22037), new ItemInfo(22038), new ItemInfo(22039), new ItemInfo(22040), new ItemInfo(22041), new ItemInfo(22042), new ItemInfo(22043), new ItemInfo(22044), new ItemInfo(22045), + new ItemInfo(22046), new ItemInfo(22047), new ItemInfo(22048), new ItemInfo(22049), new ItemInfo(22050), new ItemInfo(22051), new ItemInfo(22052), new ItemInfo(22053), new ItemInfo(22054), + new ItemInfo(22055), new ItemInfo(22056), new ItemInfo(22057), new ItemInfo(22058), new ItemInfo(22059), new ItemInfo(22060), new ItemInfo(22061), new ItemInfo(22071), new ItemInfo(22072), + new ItemInfo(22073), new ItemInfo(22074), new ItemInfo(22075), new ItemInfo(22076), new ItemInfo(22077), new ItemInfo(22078), new ItemInfo(22079), new ItemInfo(22080), new ItemInfo(22081), + new ItemInfo(22082), new ItemInfo(22083), new ItemInfo(22084), new ItemInfo(22085), new ItemInfo(22086), new ItemInfo(22087), new ItemInfo(22088), new ItemInfo(22089), new ItemInfo(22090), + new ItemInfo(22091), new ItemInfo(22092), new ItemInfo(22093), new ItemInfo(22094), new ItemInfo(22095), new ItemInfo(22096), new ItemInfo(22097), new ItemInfo(22098), new ItemInfo(22099), + new ItemInfo(22100), new ItemInfo(22101), new ItemInfo(22102), new ItemInfo(22103), new ItemInfo(22104), new ItemInfo(22105), new ItemInfo(22106), new ItemInfo(22107), new ItemInfo(22108), + new ItemInfo(22109), new ItemInfo(22110), new ItemInfo(22111), new ItemInfo(22112), new ItemInfo(22113), new ItemInfo(22114), new ItemInfo(22115), new ItemInfo(22116), new ItemInfo(22117), + new ItemInfo(22118), new ItemInfo(22119), new ItemInfo(22120), new ItemInfo(22121), new ItemInfo(22122), new ItemInfo(22123), new ItemInfo(22124), new ItemInfo(22125), new ItemInfo(22126), + new ItemInfo(22127), new ItemInfo(22128), new ItemInfo(22129), new ItemInfo(22130), new ItemInfo(22131), new ItemInfo(22132), new ItemInfo(22133), new ItemInfo(22134), new ItemInfo(22135), + new ItemInfo(22136), new ItemInfo(22137), new ItemInfo(22138), new ItemInfo(22139), new ItemInfo(22140), new ItemInfo(22141), new ItemInfo(22142), new ItemInfo(22143), new ItemInfo(22144), + new ItemInfo(22145), new ItemInfo(22146), new ItemInfo(22147), new ItemInfo(22148), new ItemInfo(22149), new ItemInfo(22150), new ItemInfo(22160), new ItemInfo(22200), new ItemInfo(22201), + new ItemInfo(22202), new ItemInfo(22203), new ItemInfo(22204), new ItemInfo(22205), new ItemInfo(22206), new ItemInfo(22207), new ItemInfo(22208), new ItemInfo(22209), new ItemInfo(22210), + new ItemInfo(22211), new ItemInfo(22212), new ItemInfo(22213), new ItemInfo(22214), new ItemInfo(22215), new ItemInfo(22216), new ItemInfo(22217), new ItemInfo(22218), new ItemInfo(22219), + new ItemInfo(22220), new ItemInfo(22221), new ItemInfo(22222), new ItemInfo(22223), new ItemInfo(22224), new ItemInfo(22225), new ItemInfo(22226), new ItemInfo(22227), new ItemInfo(22228), + new ItemInfo(22229), new ItemInfo(22230), new ItemInfo(22231), new ItemInfo(22232), new ItemInfo(22233), new ItemInfo(22234), new ItemInfo(22235), new ItemInfo(22236), new ItemInfo(22237), + new ItemInfo(22238), new ItemInfo(22239), new ItemInfo(22240), new ItemInfo(22241), new ItemInfo(22242), new ItemInfo(22243), new ItemInfo(22244), new ItemInfo(22245), new ItemInfo(22246), + new ItemInfo(22247), new ItemInfo(22248), new ItemInfo(22249), new ItemInfo(22250), new ItemInfo(22251), new ItemInfo(22252), new ItemInfo(22253), new ItemInfo(22254), new ItemInfo(22255), + new ItemInfo(22256), new ItemInfo(22257), new ItemInfo(22258), new ItemInfo(22259), new ItemInfo(22260), new ItemInfo(22300), new ItemInfo(22301), new ItemInfo(22302), new ItemInfo(22303), + new ItemInfo(22304), new ItemInfo(22305), new ItemInfo(22306), new ItemInfo(22307), new ItemInfo(22308), new ItemInfo(22309), new ItemInfo(22310), new ItemInfo(22311), new ItemInfo(22312), + new ItemInfo(22313), new ItemInfo(22314), new ItemInfo(22315), new ItemInfo(22316), new ItemInfo(22317), new ItemInfo(22318), new ItemInfo(22319), new ItemInfo(22320), new ItemInfo(22321), + new ItemInfo(22322), new ItemInfo(22323), new ItemInfo(22324), new ItemInfo(22325), new ItemInfo(22326), new ItemInfo(22327), new ItemInfo(22328), new ItemInfo(22329), new ItemInfo(22330), + new ItemInfo(22331), new ItemInfo(22332), new ItemInfo(22333), new ItemInfo(22334), new ItemInfo(22335), new ItemInfo(22336), new ItemInfo(22337), new ItemInfo(22338), new ItemInfo(22339), + new ItemInfo(22340), new ItemInfo(22341), new ItemInfo(22342), new ItemInfo(22343), new ItemInfo(22344), new ItemInfo(22345), new ItemInfo(22346), new ItemInfo(22347), new ItemInfo(22348), + new ItemInfo(22349), new ItemInfo(22350), new ItemInfo(22351), new ItemInfo(22352), new ItemInfo(25557), new ItemInfo(25558), new ItemInfo(25559), new ItemInfo(25560), new ItemInfo(25561), + new ItemInfo(25562), new ItemInfo(25563), new ItemInfo(25564), new ItemInfo(25565), new ItemInfo(25566), new ItemInfo(25567), new ItemInfo(25568), new ItemInfo(25569), new ItemInfo(25570), + new ItemInfo(25571), new ItemInfo(25572), new ItemInfo(25573), new ItemInfo(25574), new ItemInfo(25575), new ItemInfo(25576), new ItemInfo(25577), new ItemInfo(25578), new ItemInfo(25579), + new ItemInfo(25580), new ItemInfo(25581), new ItemInfo(25582), new ItemInfo(25583), new ItemInfo(25584), new ItemInfo(25585), new ItemInfo(25586), new ItemInfo(25587), new ItemInfo(25588), + new ItemInfo(25589), new ItemInfo(25590), new ItemInfo(25591), new ItemInfo(25592), new ItemInfo(25593), new ItemInfo(27287), new ItemInfo(27288), new ItemInfo(27289), new ItemInfo(27290), + new ItemInfo(27291), new ItemInfo(27292), new ItemInfo(27293), new ItemInfo(27295), new ItemInfo(27296), new ItemInfo(27297), new ItemInfo(27298), new ItemInfo(27300), new ItemInfo(27301), + new ItemInfo(27302), new ItemInfo(27303), new ItemInfo(27304), new ItemInfo(27306), new ItemInfo(27307), new ItemInfo(27308), new ItemInfo(27309), new ItemInfo(30000), new ItemInfo(38940), + new ItemInfo(38941), new ItemInfo(38942), new ItemInfo(38943), new ItemInfo(38944), new ItemInfo(38945), new ItemInfo(38946), new ItemInfo(38947), new ItemInfo(38948), new ItemInfo(38949), + new ItemInfo(38950), new ItemInfo(38951), new ItemInfo(38952), new ItemInfo(38953), new ItemInfo(38954), new ItemInfo(38955), new ItemInfo(38956), new ItemInfo(38957), new ItemInfo(38958), + new ItemInfo(38959), new ItemInfo(38960), new ItemInfo(38961), new ItemInfo(38962), new ItemInfo(38963), new ItemInfo(38964), new ItemInfo(38965), new ItemInfo(38966), new ItemInfo(38967), + new ItemInfo(38968), new ItemInfo(38969), new ItemInfo(38970), new ItemInfo(38971), new ItemInfo(38972), new ItemInfo(38973), new ItemInfo(38974), new ItemInfo(38975), new ItemInfo(38976), + new ItemInfo(38977), new ItemInfo(38980), new ItemInfo(38981), new ItemInfo(38982), new ItemInfo(38983), new ItemInfo(38984), new ItemInfo(38985), new ItemInfo(38986), new ItemInfo(38987), + new ItemInfo(38988), new ItemInfo(38989), new ItemInfo(38990), new ItemInfo(38991), new ItemInfo(38992), new ItemInfo(38993), new ItemInfo(38994) + + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt20Gump() + : this(0) + { } + + public AddMisc2Pt20Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt20Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 3.cs new file mode 100644 index 000000000..7eefadef7 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 3.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt3", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt3_OnCommand)); + } + + [Usage("AddMisc2Pt3")] + + public static void AddMisc2Pt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(8466), new ItemInfo(8467), new ItemInfo(8468), new ItemInfo(8469), new ItemInfo(8470), new ItemInfo(8471), new ItemInfo(8472), new ItemInfo(8473), new ItemInfo(8474), + new ItemInfo(8475), new ItemInfo(8476), new ItemInfo(8477), new ItemInfo(8478), new ItemInfo(8479), new ItemInfo(8480), new ItemInfo(8481), new ItemInfo(8482), new ItemInfo(8483), + new ItemInfo(8484), new ItemInfo(8485), new ItemInfo(8486), new ItemInfo(8487), new ItemInfo(8488), new ItemInfo(8489), new ItemInfo(8490), new ItemInfo(8491), new ItemInfo(8492), + new ItemInfo(8493), new ItemInfo(8494), new ItemInfo(8495), new ItemInfo(8496), new ItemInfo(8497), new ItemInfo(8498), new ItemInfo(8499), new ItemInfo(8500), new ItemInfo(8501), + new ItemInfo(8502), new ItemInfo(8503), new ItemInfo(8504), new ItemInfo(8505), new ItemInfo(8506), new ItemInfo(8507), new ItemInfo(8508), new ItemInfo(8509), new ItemInfo(8510), + new ItemInfo(8511), new ItemInfo(8512), new ItemInfo(8513), new ItemInfo(8514), new ItemInfo(8515), new ItemInfo(8516), new ItemInfo(8517), new ItemInfo(8518), new ItemInfo(8519), + new ItemInfo(8520), new ItemInfo(8521), new ItemInfo(8522), new ItemInfo(8523), new ItemInfo(8524), new ItemInfo(8525), new ItemInfo(8526), new ItemInfo(8527), new ItemInfo(8528), + new ItemInfo(8529), new ItemInfo(8530), new ItemInfo(8531), new ItemInfo(8532), new ItemInfo(8533), new ItemInfo(8534), new ItemInfo(8535), new ItemInfo(8536), new ItemInfo(8537), + new ItemInfo(8538), new ItemInfo(8539), new ItemInfo(8540), new ItemInfo(8541), new ItemInfo(8542), new ItemInfo(8543), new ItemInfo(8544), new ItemInfo(8545), new ItemInfo(8546), + new ItemInfo(8547), new ItemInfo(8548), new ItemInfo(8549), new ItemInfo(8550), new ItemInfo(8551), new ItemInfo(8552), new ItemInfo(8553), new ItemInfo(8554), new ItemInfo(8555), + new ItemInfo(8556), new ItemInfo(8557), new ItemInfo(8558), new ItemInfo(8559), new ItemInfo(8560), new ItemInfo(8561), new ItemInfo(8562), new ItemInfo(8563), new ItemInfo(8564), + new ItemInfo(8565), new ItemInfo(8566), new ItemInfo(8567), new ItemInfo(8568), new ItemInfo(8569), new ItemInfo(8570), new ItemInfo(8571), new ItemInfo(8572), new ItemInfo(8573), + new ItemInfo(8574), new ItemInfo(8575), new ItemInfo(8576), new ItemInfo(8577), new ItemInfo(8578), new ItemInfo(8579), new ItemInfo(8580), new ItemInfo(8581), new ItemInfo(8582), + new ItemInfo(8583), new ItemInfo(8681), new ItemInfo(8682), new ItemInfo(8683), new ItemInfo(8684), new ItemInfo(8685), new ItemInfo(8686), new ItemInfo(8687), new ItemInfo(8688), + new ItemInfo(8689), new ItemInfo(8690), new ItemInfo(8691), new ItemInfo(8692), new ItemInfo(8693), new ItemInfo(8694), new ItemInfo(8695), new ItemInfo(8696), new ItemInfo(8697), + new ItemInfo(8698), new ItemInfo(8699), new ItemInfo(8700), new ItemInfo(8701), new ItemInfo(8702), new ItemInfo(8703), new ItemInfo(8704), new ItemInfo(8705), new ItemInfo(8706), + new ItemInfo(8707), new ItemInfo(8708), new ItemInfo(8709), new ItemInfo(8710), new ItemInfo(8711), new ItemInfo(8712), new ItemInfo(8713), new ItemInfo(8714), new ItemInfo(8715), + new ItemInfo(8716), new ItemInfo(8717), new ItemInfo(8718), new ItemInfo(8719), new ItemInfo(8720), new ItemInfo(8721), new ItemInfo(8722), new ItemInfo(8723), new ItemInfo(8724), + new ItemInfo(8725), new ItemInfo(8726), new ItemInfo(8727), new ItemInfo(8728), new ItemInfo(8729), new ItemInfo(8730), new ItemInfo(8731), new ItemInfo(8732), new ItemInfo(8733), + new ItemInfo(8734), new ItemInfo(8735), new ItemInfo(8736), new ItemInfo(8737), new ItemInfo(8738), new ItemInfo(8739), new ItemInfo(8740), new ItemInfo(8741), new ItemInfo(8742), + new ItemInfo(8743), new ItemInfo(8744), new ItemInfo(8745), new ItemInfo(8746), new ItemInfo(8747), new ItemInfo(8748), new ItemInfo(8749), new ItemInfo(8750), new ItemInfo(8751), + new ItemInfo(8752), new ItemInfo(8753), new ItemInfo(8754), new ItemInfo(8755), new ItemInfo(8756), new ItemInfo(8757), new ItemInfo(8758), new ItemInfo(8759), new ItemInfo(8760), + new ItemInfo(8761), new ItemInfo(8762), new ItemInfo(8763), new ItemInfo(8764), new ItemInfo(8765), new ItemInfo(8766), new ItemInfo(8767), new ItemInfo(8768), new ItemInfo(8769), + new ItemInfo(8770), new ItemInfo(8771), new ItemInfo(8772), new ItemInfo(8773), new ItemInfo(8774), new ItemInfo(8775), new ItemInfo(8776), new ItemInfo(8777), new ItemInfo(8778), + new ItemInfo(8779), new ItemInfo(8780), new ItemInfo(8781), new ItemInfo(8782), new ItemInfo(8783), new ItemInfo(8784), new ItemInfo(8785), new ItemInfo(8786), new ItemInfo(8787) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt3Gump() + : this(0) + { } + + public AddMisc2Pt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 4.cs new file mode 100644 index 000000000..f5f6ebed5 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 4.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt4", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt4_OnCommand)); + } + + [Usage("AddMisc2Pt4")] + + public static void AddMisc2Pt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(8788), new ItemInfo(8789), new ItemInfo(8790), new ItemInfo(8791), new ItemInfo(8792), new ItemInfo(8793), new ItemInfo(8794), new ItemInfo(8795), new ItemInfo(8796), + new ItemInfo(8797), new ItemInfo(8798), new ItemInfo(8799), new ItemInfo(8800), new ItemInfo(8801), new ItemInfo(8802), new ItemInfo(8803), new ItemInfo(8804), new ItemInfo(8805), + new ItemInfo(8806), new ItemInfo(8807), new ItemInfo(8808), new ItemInfo(8809), new ItemInfo(8810), new ItemInfo(8811), new ItemInfo(8812), new ItemInfo(8813), new ItemInfo(8814), + new ItemInfo(8815), new ItemInfo(8816), new ItemInfo(8817), new ItemInfo(8818), new ItemInfo(8819), new ItemInfo(8820), new ItemInfo(8821), new ItemInfo(8822), new ItemInfo(8823), + new ItemInfo(8824), new ItemInfo(8825), new ItemInfo(8826), new ItemInfo(8827), new ItemInfo(8828), new ItemInfo(8829), new ItemInfo(8830), new ItemInfo(8831), new ItemInfo(8832), + new ItemInfo(8833), new ItemInfo(8834), new ItemInfo(8835), new ItemInfo(8836), new ItemInfo(8837), new ItemInfo(8838), new ItemInfo(8839), new ItemInfo(8840), new ItemInfo(8841), + new ItemInfo(8842), new ItemInfo(8843), new ItemInfo(8844), new ItemInfo(8845), new ItemInfo(8846), new ItemInfo(8847), new ItemInfo(8848), new ItemInfo(8849), new ItemInfo(8850), + new ItemInfo(8851), new ItemInfo(8852), new ItemInfo(8853), new ItemInfo(8854), new ItemInfo(8855), new ItemInfo(8856), new ItemInfo(8857), new ItemInfo(8858), new ItemInfo(8859), + new ItemInfo(8860), new ItemInfo(8861), new ItemInfo(8862), new ItemInfo(8863), new ItemInfo(8864), new ItemInfo(8865), new ItemInfo(8866), new ItemInfo(8867), new ItemInfo(8868), + new ItemInfo(8869), new ItemInfo(8870), new ItemInfo(8871), new ItemInfo(8872), new ItemInfo(8873), new ItemInfo(8874), new ItemInfo(8875), new ItemInfo(8876), new ItemInfo(8877), + new ItemInfo(8878), new ItemInfo(8879), new ItemInfo(8880), new ItemInfo(8881), new ItemInfo(8882), new ItemInfo(8883), new ItemInfo(8884), new ItemInfo(8885), new ItemInfo(8886), + new ItemInfo(8887), new ItemInfo(8888), new ItemInfo(8889), new ItemInfo(8890), new ItemInfo(8891), new ItemInfo(8892), new ItemInfo(8893), new ItemInfo(8894), new ItemInfo(8895), + new ItemInfo(8896), new ItemInfo(8897), new ItemInfo(8898), new ItemInfo(8899), new ItemInfo(8900), new ItemInfo(8901), new ItemInfo(8902), new ItemInfo(8903), new ItemInfo(8904), + new ItemInfo(8905), new ItemInfo(8906), new ItemInfo(8907), new ItemInfo(8908), new ItemInfo(8909), new ItemInfo(8910), new ItemInfo(8911), new ItemInfo(8912), new ItemInfo(8913), + new ItemInfo(8914), new ItemInfo(8915), new ItemInfo(8916), new ItemInfo(8917), new ItemInfo(8918), new ItemInfo(8919), new ItemInfo(8920), new ItemInfo(8921), new ItemInfo(8922), + new ItemInfo(8923), new ItemInfo(8924), new ItemInfo(8925), new ItemInfo(8926), new ItemInfo(8927), new ItemInfo(8928), new ItemInfo(8929), new ItemInfo(8930), new ItemInfo(8931), + new ItemInfo(8932), new ItemInfo(8933), new ItemInfo(8934), new ItemInfo(8935), new ItemInfo(8936), new ItemInfo(8937), new ItemInfo(8938), new ItemInfo(8939), new ItemInfo(8940), + new ItemInfo(8941), new ItemInfo(8942), new ItemInfo(8943), new ItemInfo(8944), new ItemInfo(8945), new ItemInfo(8946), new ItemInfo(8947), new ItemInfo(8948), new ItemInfo(8949), + new ItemInfo(8950), new ItemInfo(8951), new ItemInfo(8952), new ItemInfo(8953), new ItemInfo(8954), new ItemInfo(8955), new ItemInfo(8956), new ItemInfo(8957), new ItemInfo(8958), + new ItemInfo(8959), new ItemInfo(8960), new ItemInfo(8961), new ItemInfo(8962), new ItemInfo(8963), new ItemInfo(8964), new ItemInfo(8977), new ItemInfo(8978), new ItemInfo(8979), + new ItemInfo(8980), new ItemInfo(8981), new ItemInfo(8982), new ItemInfo(8983), new ItemInfo(8984), new ItemInfo(8985), new ItemInfo(8986), new ItemInfo(8987), new ItemInfo(8988), + new ItemInfo(8989), new ItemInfo(8990), new ItemInfo(8991), new ItemInfo(8992), new ItemInfo(8993), new ItemInfo(8994), new ItemInfo(8995), new ItemInfo(8996), new ItemInfo(8997), + new ItemInfo(8998), new ItemInfo(8999), new ItemInfo(9000), new ItemInfo(9001), new ItemInfo(9002), new ItemInfo(9003), new ItemInfo(9004), new ItemInfo(9005), new ItemInfo(9006), + new ItemInfo(9007), new ItemInfo(9008), new ItemInfo(9009), new ItemInfo(9010), new ItemInfo(9011), new ItemInfo(9012), new ItemInfo(9013), new ItemInfo(9014), new ItemInfo(9015), + new ItemInfo(9016), new ItemInfo(9017), new ItemInfo(9018), new ItemInfo(9019), new ItemInfo(9020), new ItemInfo(9021), new ItemInfo(9022), new ItemInfo(9023), new ItemInfo(9024) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt4Gump() + : this(0) + { } + + public AddMisc2Pt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 5.cs new file mode 100644 index 000000000..b3cabb951 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 5.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt5", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt5_OnCommand)); + } + + [Usage("AddMisc2Pt5")] + + public static void AddMisc2Pt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(9025), new ItemInfo(9026), new ItemInfo(9027), new ItemInfo(9028), new ItemInfo(9029), new ItemInfo(9030), new ItemInfo(9031), new ItemInfo(9032), new ItemInfo(9033), + new ItemInfo(9034), new ItemInfo(9035), new ItemInfo(9036), new ItemInfo(9037), new ItemInfo(9038), new ItemInfo(9039), new ItemInfo(9040), new ItemInfo(9041), new ItemInfo(9042), + new ItemInfo(9043), new ItemInfo(9044), new ItemInfo(9045), new ItemInfo(9046), new ItemInfo(9047), new ItemInfo(9048), new ItemInfo(9049), new ItemInfo(9050), new ItemInfo(9051), + new ItemInfo(9052), new ItemInfo(9053), new ItemInfo(9054), new ItemInfo(9055), new ItemInfo(9056), new ItemInfo(9057), new ItemInfo(9058), new ItemInfo(9059), new ItemInfo(9060), + new ItemInfo(9061), new ItemInfo(9062), new ItemInfo(9063), new ItemInfo(9064), new ItemInfo(9065), new ItemInfo(9066), new ItemInfo(9067), new ItemInfo(9068), new ItemInfo(9069), + new ItemInfo(9070), new ItemInfo(9071), new ItemInfo(9072), new ItemInfo(9073), new ItemInfo(9074), new ItemInfo(9075), new ItemInfo(9076), new ItemInfo(9077), new ItemInfo(9078), + new ItemInfo(9079), new ItemInfo(9080), new ItemInfo(9081), new ItemInfo(9082), new ItemInfo(9083), new ItemInfo(9084), new ItemInfo(9085), new ItemInfo(9086), new ItemInfo(9087), + new ItemInfo(9088), new ItemInfo(9089), new ItemInfo(9090), new ItemInfo(9091), new ItemInfo(9092), new ItemInfo(9093), new ItemInfo(9094), new ItemInfo(9095), new ItemInfo(9096), + new ItemInfo(9097), new ItemInfo(9098), new ItemInfo(9099), new ItemInfo(9100), new ItemInfo(9101), new ItemInfo(9102), new ItemInfo(9103), new ItemInfo(9104), new ItemInfo(9105), + new ItemInfo(9106), new ItemInfo(9107), new ItemInfo(9108), new ItemInfo(9109), new ItemInfo(9110), new ItemInfo(9111), new ItemInfo(9112), new ItemInfo(9113), new ItemInfo(9114), + new ItemInfo(9115), new ItemInfo(9116), new ItemInfo(9117), new ItemInfo(9118), new ItemInfo(9119), new ItemInfo(9120), new ItemInfo(9121), new ItemInfo(9122), new ItemInfo(9123), + new ItemInfo(9124), new ItemInfo(9125), new ItemInfo(9126), new ItemInfo(9127), new ItemInfo(9128), new ItemInfo(9129), new ItemInfo(9130), new ItemInfo(9131), new ItemInfo(9132), + new ItemInfo(9133), new ItemInfo(9134), new ItemInfo(9135), new ItemInfo(9136), new ItemInfo(9137), new ItemInfo(9138), new ItemInfo(9139), new ItemInfo(9140), new ItemInfo(9141), + new ItemInfo(9142), new ItemInfo(9143), new ItemInfo(9144), new ItemInfo(9145), new ItemInfo(9146), new ItemInfo(9147), new ItemInfo(9148), new ItemInfo(9149), new ItemInfo(9150), + new ItemInfo(9151), new ItemInfo(9152), new ItemInfo(9153), new ItemInfo(9154), new ItemInfo(9155), new ItemInfo(9156), new ItemInfo(9157), new ItemInfo(9158), new ItemInfo(9159), + new ItemInfo(9160), new ItemInfo(9161), new ItemInfo(9162), new ItemInfo(9163), new ItemInfo(9164), new ItemInfo(9165), new ItemInfo(9166), new ItemInfo(9167), new ItemInfo(9168), + new ItemInfo(9169), new ItemInfo(9170), new ItemInfo(9171), new ItemInfo(9172), new ItemInfo(9173), new ItemInfo(9174), new ItemInfo(9175), new ItemInfo(9176), new ItemInfo(9177), + new ItemInfo(9178), new ItemInfo(9179), new ItemInfo(9180), new ItemInfo(9181), new ItemInfo(9182), new ItemInfo(9183), new ItemInfo(9184), new ItemInfo(9185), new ItemInfo(9186), + new ItemInfo(9187), new ItemInfo(9188), new ItemInfo(9189), new ItemInfo(9190), new ItemInfo(9191), new ItemInfo(9192), new ItemInfo(9193), new ItemInfo(9194), new ItemInfo(9195), + new ItemInfo(9196), new ItemInfo(9197), new ItemInfo(9198), new ItemInfo(9199), new ItemInfo(9200), new ItemInfo(9201), new ItemInfo(9202), new ItemInfo(9203), new ItemInfo(9204), + new ItemInfo(9205), new ItemInfo(9206), new ItemInfo(9207), new ItemInfo(9208), new ItemInfo(9209), new ItemInfo(9210), new ItemInfo(9211), new ItemInfo(9212), new ItemInfo(9213), + new ItemInfo(9214), new ItemInfo(9215), new ItemInfo(9216), new ItemInfo(9217), new ItemInfo(9218), new ItemInfo(9219), new ItemInfo(9220), new ItemInfo(9221), new ItemInfo(9222), + new ItemInfo(9223), new ItemInfo(9224), new ItemInfo(9225), new ItemInfo(9226), new ItemInfo(9227), new ItemInfo(9228), new ItemInfo(9229), new ItemInfo(9230), new ItemInfo(9231), + new ItemInfo(9232), new ItemInfo(9233), new ItemInfo(9234), new ItemInfo(9235), new ItemInfo(9236), new ItemInfo(9237), new ItemInfo(9238), new ItemInfo(9239), new ItemInfo(9240), + new ItemInfo(9241), new ItemInfo(9242), new ItemInfo(9243), new ItemInfo(9244), new ItemInfo(9245), new ItemInfo(9246), new ItemInfo(9247), new ItemInfo(9248), new ItemInfo(9249) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt5Gump() + : this(0) + { } + + public AddMisc2Pt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 6.cs new file mode 100644 index 000000000..e4a5ea340 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 6.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt6Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt6", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt6_OnCommand)); + } + + [Usage("AddMisc2Pt6")] + + public static void AddMisc2Pt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt6Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(9250), new ItemInfo(9251), new ItemInfo(9252), new ItemInfo(9299), new ItemInfo(9300), new ItemInfo(9301), new ItemInfo(9302), new ItemInfo(9303), new ItemInfo(9304), + new ItemInfo(9305), new ItemInfo(9306), new ItemInfo(9307), new ItemInfo(9308), new ItemInfo(9309), new ItemInfo(9310), new ItemInfo(9311), new ItemInfo(9312), new ItemInfo(9313), + new ItemInfo(9314), new ItemInfo(9315), new ItemInfo(9316), new ItemInfo(9317), new ItemInfo(9318), new ItemInfo(9319), new ItemInfo(9320), new ItemInfo(9321), new ItemInfo(9322), + new ItemInfo(9323), new ItemInfo(9389), new ItemInfo(9390), new ItemInfo(9391), new ItemInfo(9392), new ItemInfo(9393), new ItemInfo(9394), new ItemInfo(9395), new ItemInfo(9396), + new ItemInfo(9397), new ItemInfo(9398), new ItemInfo(9399), new ItemInfo(9400), new ItemInfo(9401), new ItemInfo(9402), new ItemInfo(9403), new ItemInfo(9404), new ItemInfo(9405), + new ItemInfo(9406), new ItemInfo(9407), new ItemInfo(9408), new ItemInfo(9409), new ItemInfo(9410), new ItemInfo(9411), new ItemInfo(9412), new ItemInfo(9413), new ItemInfo(9414), + new ItemInfo(9415), new ItemInfo(9416), new ItemInfo(9417), new ItemInfo(9418), new ItemInfo(9419), new ItemInfo(9420), new ItemInfo(9421), new ItemInfo(9422), new ItemInfo(9423), + new ItemInfo(9424), new ItemInfo(9425), new ItemInfo(9426), new ItemInfo(9427), new ItemInfo(9428), new ItemInfo(9429), new ItemInfo(9430), new ItemInfo(9431), new ItemInfo(9432), + new ItemInfo(9433), new ItemInfo(9434), new ItemInfo(9435), new ItemInfo(9436), new ItemInfo(9437), new ItemInfo(9438), new ItemInfo(9439), new ItemInfo(9440), new ItemInfo(9441), + new ItemInfo(9442), new ItemInfo(9443), new ItemInfo(9444), new ItemInfo(9445), new ItemInfo(9446), new ItemInfo(9447), new ItemInfo(9450), new ItemInfo(9451), new ItemInfo(9452), + new ItemInfo(9453), new ItemInfo(9454), new ItemInfo(9455), new ItemInfo(9456), new ItemInfo(9457), new ItemInfo(9458), new ItemInfo(9459), new ItemInfo(9600), new ItemInfo(9601), + new ItemInfo(9602), new ItemInfo(9603), new ItemInfo(9604), new ItemInfo(9605), new ItemInfo(9606), new ItemInfo(9607), new ItemInfo(9608), new ItemInfo(9609), new ItemInfo(9610), + new ItemInfo(9611), new ItemInfo(9612), new ItemInfo(9613), new ItemInfo(9614), new ItemInfo(9615), new ItemInfo(9616), new ItemInfo(9617), new ItemInfo(9618), new ItemInfo(9619), + new ItemInfo(9620), new ItemInfo(9621), new ItemInfo(9622), new ItemInfo(9623), new ItemInfo(9624), new ItemInfo(9625), new ItemInfo(9626), new ItemInfo(9627), new ItemInfo(9628), + new ItemInfo(9629), new ItemInfo(9630), new ItemInfo(9631), new ItemInfo(9632), new ItemInfo(9633), new ItemInfo(9634), new ItemInfo(9635), new ItemInfo(9636), new ItemInfo(9637), + new ItemInfo(9638), new ItemInfo(9639), new ItemInfo(9640), new ItemInfo(9641), new ItemInfo(9642), new ItemInfo(9643), new ItemInfo(9644), new ItemInfo(9645), new ItemInfo(9646), + new ItemInfo(9647), new ItemInfo(9648), new ItemInfo(9649), new ItemInfo(9650), new ItemInfo(9651), new ItemInfo(9652), new ItemInfo(9653), new ItemInfo(9654), new ItemInfo(9655), + new ItemInfo(9656), new ItemInfo(9657), new ItemInfo(9658), new ItemInfo(9659), new ItemInfo(9660), new ItemInfo(9661), new ItemInfo(9662), new ItemInfo(9663), new ItemInfo(9664), + new ItemInfo(9665), new ItemInfo(9666), new ItemInfo(9667), new ItemInfo(9668), new ItemInfo(9669), new ItemInfo(9670), new ItemInfo(9671), new ItemInfo(9672), new ItemInfo(9673), + new ItemInfo(9674), new ItemInfo(9675), new ItemInfo(9676), new ItemInfo(9677), new ItemInfo(9678), new ItemInfo(9679), new ItemInfo(9680), new ItemInfo(9681), new ItemInfo(9682), + new ItemInfo(9683), new ItemInfo(9684), new ItemInfo(9685), new ItemInfo(9686), new ItemInfo(9687), new ItemInfo(9688), new ItemInfo(9689), new ItemInfo(9690), new ItemInfo(9691), + new ItemInfo(9692), new ItemInfo(9693), new ItemInfo(9694), new ItemInfo(9695), new ItemInfo(9696), new ItemInfo(9697), new ItemInfo(9698), new ItemInfo(9699), new ItemInfo(9716), + new ItemInfo(9717), new ItemInfo(9718), new ItemInfo(9719), new ItemInfo(9720), new ItemInfo(9721), new ItemInfo(9722), new ItemInfo(9723), new ItemInfo(9724), new ItemInfo(9725), + new ItemInfo(9726), new ItemInfo(9727), new ItemInfo(9728), new ItemInfo(9729), new ItemInfo(9730), new ItemInfo(9731), new ItemInfo(9732), new ItemInfo(9733), new ItemInfo(9734), + new ItemInfo(9735), new ItemInfo(9736), new ItemInfo(9737), new ItemInfo(9738), new ItemInfo(9739), new ItemInfo(9740), new ItemInfo(9741), new ItemInfo(9742), new ItemInfo(9743) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt6Gump() + : this(0) + { } + + public AddMisc2Pt6Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt6Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 7.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 7.cs new file mode 100644 index 000000000..d7a633fa0 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 7.cs @@ -0,0 +1,162 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt7Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt7", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt7_OnCommand)); + } + + [Usage("AddMisc2Pt7")] + + public static void AddMisc2Pt7_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt7Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(9744), new ItemInfo(9745), new ItemInfo(9746), new ItemInfo(9747), new ItemInfo(9748), new ItemInfo(9749), new ItemInfo(9750), new ItemInfo(9751), new ItemInfo(9752), + new ItemInfo(9753), new ItemInfo(9754), new ItemInfo(9755), new ItemInfo(9756), new ItemInfo(9757), new ItemInfo(9758), new ItemInfo(9759), new ItemInfo(9760), new ItemInfo(9761), + new ItemInfo(9762), new ItemInfo(9763), new ItemInfo(9764), new ItemInfo(9765), new ItemInfo(9766), new ItemInfo(9767), new ItemInfo(9768), new ItemInfo(9769), new ItemInfo(9770), + new ItemInfo(9771), new ItemInfo(9772), new ItemInfo(9773), new ItemInfo(9774), new ItemInfo(9775), new ItemInfo(9776), new ItemInfo(9777), new ItemInfo(9778), new ItemInfo(9779), + new ItemInfo(9780), new ItemInfo(9781), new ItemInfo(9782), new ItemInfo(9783), new ItemInfo(9784), new ItemInfo(9785), new ItemInfo(9786), new ItemInfo(9787), new ItemInfo(9788), + new ItemInfo(9789), new ItemInfo(9790), new ItemInfo(9791), new ItemInfo(9792), new ItemInfo(9911), new ItemInfo(9912), new ItemInfo(9913), new ItemInfo(9972), new ItemInfo(9973), + new ItemInfo(9974), new ItemInfo(9975),new ItemInfo(9997), new ItemInfo(9998), new ItemInfo(9999), new ItemInfo(10000), new ItemInfo(10001), new ItemInfo(10002), new ItemInfo(10003), + new ItemInfo(10004), new ItemInfo(10005), new ItemInfo(10016), new ItemInfo(10017), new ItemInfo(10066), new ItemInfo(10083), new ItemInfo(10084), new ItemInfo(10085), new ItemInfo(10086), + new ItemInfo(10087), new ItemInfo(10088), new ItemInfo(10089), new ItemInfo(10090), new ItemInfo(10091), new ItemInfo(10092), new ItemInfo(10093), new ItemInfo(10094), new ItemInfo(10095), + new ItemInfo(10096), new ItemInfo(10097), new ItemInfo(10098), new ItemInfo(10099), new ItemInfo(10267), new ItemInfo(10268), new ItemInfo(10269), new ItemInfo(10270), new ItemInfo(10271), + new ItemInfo(10272), new ItemInfo(10273), new ItemInfo(10274), new ItemInfo(10275), new ItemInfo(10276), new ItemInfo(10277), new ItemInfo(10278), new ItemInfo(10279), new ItemInfo(10280), + new ItemInfo(10281), new ItemInfo(10282), new ItemInfo(10283), new ItemInfo(10284), new ItemInfo(10285), new ItemInfo(10286), new ItemInfo(10287), new ItemInfo(10288), new ItemInfo(10289), + new ItemInfo(10290), new ItemInfo(10291), new ItemInfo(10292), new ItemInfo(10293), new ItemInfo(10294), new ItemInfo(10295), new ItemInfo(10296), new ItemInfo(10297), new ItemInfo(10298), + new ItemInfo(10299), new ItemInfo(10300), new ItemInfo(10301), new ItemInfo(10306), new ItemInfo(10307), new ItemInfo(10308), new ItemInfo(10309), new ItemInfo(10310), new ItemInfo(10311), + new ItemInfo(10312), new ItemInfo(10313), new ItemInfo(10314), new ItemInfo(10321), new ItemInfo(10322), new ItemInfo(10323), new ItemInfo(10324), new ItemInfo(10325), new ItemInfo(10326), + new ItemInfo(10374), new ItemInfo(10375), new ItemInfo(10460), new ItemInfo(10461), new ItemInfo(10462), new ItemInfo(10463), new ItemInfo(10464), new ItemInfo(10465), new ItemInfo(10466), + new ItemInfo(10467), new ItemInfo(10524), new ItemInfo(10525), new ItemInfo(10526), new ItemInfo(10527), new ItemInfo(10550), new ItemInfo(10551), new ItemInfo(10588), new ItemInfo(10589), + new ItemInfo(10590), new ItemInfo(10591), new ItemInfo(10749), new ItemInfo(10750), new ItemInfo(10751), new ItemInfo(10752), new ItemInfo(10753), new ItemInfo(10754), new ItemInfo(10755), + new ItemInfo(10756), new ItemInfo(10757), new ItemInfo(10758), new ItemInfo(10759), new ItemInfo(10760), new ItemInfo(10761), new ItemInfo(10762), new ItemInfo(10763), new ItemInfo(10764), + new ItemInfo(10765), new ItemInfo(10766), new ItemInfo(10767), new ItemInfo(10768), new ItemInfo(10769), new ItemInfo(10770), new ItemInfo(10771), new ItemInfo(10772), new ItemInfo(10773), + new ItemInfo(10774), new ItemInfo(10775), new ItemInfo(10776), new ItemInfo(10777), new ItemInfo(10778), new ItemInfo(10779), new ItemInfo(10780), new ItemInfo(10794), new ItemInfo(10795), + new ItemInfo(10796), new ItemInfo(10797), new ItemInfo(10798), new ItemInfo(10799), new ItemInfo(10821), new ItemInfo(10822), new ItemInfo(10823), new ItemInfo(10824), new ItemInfo(10825), + new ItemInfo(10826), new ItemInfo(10827), new ItemInfo(10828), new ItemInfo(10829), new ItemInfo(10830), new ItemInfo(10831), new ItemInfo(10832), new ItemInfo(10833), new ItemInfo(10834), + new ItemInfo(10835), new ItemInfo(10836), new ItemInfo(10837), new ItemInfo(10838), new ItemInfo(10839), new ItemInfo(10840), new ItemInfo(10841), new ItemInfo(10842), new ItemInfo(10843), + new ItemInfo(10844), new ItemInfo(10845), new ItemInfo(10846), new ItemInfo(10847), new ItemInfo(10848), new ItemInfo(10849), new ItemInfo(10850), new ItemInfo(10851), new ItemInfo(10852), + new ItemInfo(10853), new ItemInfo(10854), new ItemInfo(10855), new ItemInfo(10856), new ItemInfo(10857), new ItemInfo(10858), new ItemInfo(10859), new ItemInfo(10860), new ItemInfo(10861), + new ItemInfo(10862), new ItemInfo(10863), new ItemInfo(10864), new ItemInfo(10865), new ItemInfo(10866), new ItemInfo(10867), new ItemInfo(10868), new ItemInfo(10869), new ItemInfo(10870), + new ItemInfo(10871), new ItemInfo(10872), new ItemInfo(10873), new ItemInfo(10874), new ItemInfo(10875), new ItemInfo(10876), new ItemInfo(10877), new ItemInfo(10878), new ItemInfo(10879), + new ItemInfo(10880), new ItemInfo(10881), new ItemInfo(10882), new ItemInfo(10883), new ItemInfo(10884), new ItemInfo(10885), new ItemInfo(10886), new ItemInfo(10887), new ItemInfo(10888), + new ItemInfo(10889), new ItemInfo(10890), new ItemInfo(10891), new ItemInfo(10892), new ItemInfo(10893), new ItemInfo(10894), new ItemInfo(10895), new ItemInfo(10896), new ItemInfo(10897) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt7Gump() + : this(0) + { } + + public AddMisc2Pt7Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt7Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 8.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 8.cs new file mode 100644 index 000000000..fe5b0c2b5 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 8.cs @@ -0,0 +1,167 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt8Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt8", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt8_OnCommand)); + } + + [Usage("AddMisc2Pt8")] + + public static void AddMisc2Pt8_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt8Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(10898), new ItemInfo(10899), new ItemInfo(10900), new ItemInfo(10901), new ItemInfo(10902), new ItemInfo(10903), new ItemInfo(10904), new ItemInfo(10905), new ItemInfo(10906), + new ItemInfo(10907), new ItemInfo(10908), new ItemInfo(10909), new ItemInfo(10910), new ItemInfo(10911), new ItemInfo(10912), new ItemInfo(10913), new ItemInfo(10914), new ItemInfo(10915), + new ItemInfo(10916), new ItemInfo(10917), new ItemInfo(10918), new ItemInfo(10919), new ItemInfo(10920), new ItemInfo(10921), new ItemInfo(10922), new ItemInfo(10923), new ItemInfo(10924), + new ItemInfo(10925), new ItemInfo(10926), new ItemInfo(10927), new ItemInfo(10928), new ItemInfo(10929), new ItemInfo(10930), new ItemInfo(10931), new ItemInfo(10932), new ItemInfo(10933), + new ItemInfo(10934), new ItemInfo(10935), new ItemInfo(10936), new ItemInfo(10937), new ItemInfo(10938), new ItemInfo(10939), new ItemInfo(10940), new ItemInfo(10941), new ItemInfo(10942), + new ItemInfo(10943), new ItemInfo(10944), new ItemInfo(10945), new ItemInfo(10946), new ItemInfo(10947), new ItemInfo(10948), new ItemInfo(10949), new ItemInfo(10950), new ItemInfo(10951), + new ItemInfo(10952), new ItemInfo(10953), new ItemInfo(10954), new ItemInfo(10955), new ItemInfo(10956), new ItemInfo(10957), new ItemInfo(10958), new ItemInfo(10959), new ItemInfo(10960), + new ItemInfo(10961), new ItemInfo(10962), new ItemInfo(10963), new ItemInfo(10964), new ItemInfo(10965), new ItemInfo(10966), new ItemInfo(10967), new ItemInfo(10968), new ItemInfo(10969), + new ItemInfo(10970), new ItemInfo(10971), new ItemInfo(10972), new ItemInfo(10973), new ItemInfo(10974), new ItemInfo(10975), new ItemInfo(10976), new ItemInfo(10977), new ItemInfo(10978), + new ItemInfo(10979), new ItemInfo(10980), new ItemInfo(10981), new ItemInfo(10982), new ItemInfo(10983), new ItemInfo(10984), new ItemInfo(10985), new ItemInfo(10986), new ItemInfo(10987), + new ItemInfo(10988), new ItemInfo(10989), new ItemInfo(10990), new ItemInfo(10991), new ItemInfo(10992), new ItemInfo(10993), new ItemInfo(10994), new ItemInfo(10995), new ItemInfo(10996), + new ItemInfo(10997), new ItemInfo(10998), new ItemInfo(10999), new ItemInfo(11000), new ItemInfo(11001), new ItemInfo(11002), new ItemInfo(11003), new ItemInfo(11004), new ItemInfo(11005), + new ItemInfo(11006), new ItemInfo(11007), new ItemInfo(11008), new ItemInfo(11028), new ItemInfo(11110), new ItemInfo(11130), new ItemInfo(11131), new ItemInfo(11132), new ItemInfo(11133), + new ItemInfo(11134), new ItemInfo(11135), new ItemInfo(11136), new ItemInfo(11216), new ItemInfo(11225), new ItemInfo(11226), new ItemInfo(11227), new ItemInfo(11228), new ItemInfo(11229), + new ItemInfo(11230), new ItemInfo(11231), new ItemInfo(11232), new ItemInfo(11233), new ItemInfo(11234), new ItemInfo(11235), new ItemInfo(11236), new ItemInfo(11237), new ItemInfo(11238), + new ItemInfo(11239), new ItemInfo(11240), new ItemInfo(11517), new ItemInfo(11518), new ItemInfo(11519), new ItemInfo(11520), new ItemInfo(11521), new ItemInfo(11522), new ItemInfo(11523), + new ItemInfo(11524), new ItemInfo(11533), new ItemInfo(11534), new ItemInfo(11535), new ItemInfo(11536), new ItemInfo(11537), new ItemInfo(11538), new ItemInfo(11539), new ItemInfo(11540), + new ItemInfo(11541), new ItemInfo(11542), new ItemInfo(11543), new ItemInfo(11574), new ItemInfo(11575), new ItemInfo(11590), new ItemInfo(11591), new ItemInfo(11592), new ItemInfo(11593), + new ItemInfo(11594), new ItemInfo(11595), new ItemInfo(11596), new ItemInfo(11597), new ItemInfo(11598), new ItemInfo(11599), new ItemInfo(11600), new ItemInfo(11601), new ItemInfo(11602), + new ItemInfo(11603), new ItemInfo(11604), new ItemInfo(11605), new ItemInfo(11606), new ItemInfo(11607), new ItemInfo(11608), new ItemInfo(11609), new ItemInfo(11610), new ItemInfo(11611), + new ItemInfo(11612), new ItemInfo(11613), new ItemInfo(11614), new ItemInfo(11615), new ItemInfo(11616), new ItemInfo(11617), new ItemInfo(11618), new ItemInfo(11619), new ItemInfo(11620), + new ItemInfo(11621), new ItemInfo(11622), new ItemInfo(11623), new ItemInfo(11624), new ItemInfo(11625), new ItemInfo(11626), new ItemInfo(11627), new ItemInfo(11628), new ItemInfo(11629), + new ItemInfo(11630), new ItemInfo(11631), new ItemInfo(11632), new ItemInfo(11633), new ItemInfo(11634), new ItemInfo(11635), new ItemInfo(11636), new ItemInfo(11637), new ItemInfo(11638), + new ItemInfo(11639), new ItemInfo(11640), new ItemInfo(11641), new ItemInfo(11642), new ItemInfo(11643), new ItemInfo(11644), new ItemInfo(11645), new ItemInfo(11646), new ItemInfo(11647), + new ItemInfo(11648), new ItemInfo(11649), new ItemInfo(11650), new ItemInfo(11651), new ItemInfo(11652), new ItemInfo(11653), new ItemInfo(11654), new ItemInfo(11655), new ItemInfo(11656), + new ItemInfo(11657), new ItemInfo(11658), new ItemInfo(11659), new ItemInfo(11660), new ItemInfo(11661), new ItemInfo(11662), new ItemInfo(11663), new ItemInfo(11664), new ItemInfo(11665), + new ItemInfo(11666), new ItemInfo(11667), new ItemInfo(11668), new ItemInfo(11669), new ItemInfo(11670), new ItemInfo(11671), new ItemInfo(11672), new ItemInfo(11673), new ItemInfo(11674), + new ItemInfo(11675), new ItemInfo(11676), new ItemInfo(11677), new ItemInfo(11678), new ItemInfo(11679), new ItemInfo(11680), new ItemInfo(11681), new ItemInfo(11682), new ItemInfo(11683), + new ItemInfo(11684), new ItemInfo(11685), new ItemInfo(11686), new ItemInfo(11687), new ItemInfo(11688), new ItemInfo(11689), new ItemInfo(11690), new ItemInfo(11691), new ItemInfo(11692), + new ItemInfo(11693), new ItemInfo(11694), new ItemInfo(11695), new ItemInfo(11696), new ItemInfo(11697), new ItemInfo(11698), new ItemInfo(11699), new ItemInfo(11700), new ItemInfo(11701), + new ItemInfo(11702), new ItemInfo(11703), new ItemInfo(11704), new ItemInfo(11705), new ItemInfo(11706), new ItemInfo(11707), new ItemInfo(11708), new ItemInfo(11709), new ItemInfo(11710), + new ItemInfo(11730), new ItemInfo(11731), new ItemInfo(11732), new ItemInfo(11733), new ItemInfo(11734), new ItemInfo(11735), new ItemInfo(11736), new ItemInfo(11737), new ItemInfo(11738), + new ItemInfo(11739), new ItemInfo(11740), new ItemInfo(11741), new ItemInfo(11742), new ItemInfo(11777), new ItemInfo(11836), new ItemInfo(11837), new ItemInfo(11838), new ItemInfo(11839), + new ItemInfo(12047), new ItemInfo(12048), new ItemInfo(12049), new ItemInfo(12050), new ItemInfo(12051), new ItemInfo(12052), new ItemInfo(12053), new ItemInfo(12054), new ItemInfo(12055), + new ItemInfo(12056), new ItemInfo(12057), new ItemInfo(12058), new ItemInfo(12073), new ItemInfo(12074), new ItemInfo(12075), new ItemInfo(12076), new ItemInfo(12077), new ItemInfo(12078) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt8Gump() + : this(0) + { } + + public AddMisc2Pt8Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt8Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 9.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 9.cs new file mode 100644 index 000000000..ba8eed7ec --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Misc2/Misc2 9.cs @@ -0,0 +1,172 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddMisc2Pt9Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddMisc2Pt9", AccessLevel.GameMaster, new CommandEventHandler(AddMisc2Pt9_OnCommand)); + } + + [Usage("AddMisc2Pt9")] + + public static void AddMisc2Pt9_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddMisc2Pt9Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(12079), new ItemInfo(12080), new ItemInfo(12081), new ItemInfo(12082), new ItemInfo(12083), new ItemInfo(12084), new ItemInfo(12085), new ItemInfo(12086), new ItemInfo(12087), + new ItemInfo(12088), new ItemInfo(12089), new ItemInfo(12090), new ItemInfo(12091), new ItemInfo(12092), new ItemInfo(12093), new ItemInfo(12094), new ItemInfo(12095), new ItemInfo(12096), + new ItemInfo(12097), new ItemInfo(12098), new ItemInfo(12099), new ItemInfo(12100), new ItemInfo(12101), new ItemInfo(12102), new ItemInfo(12103), new ItemInfo(12104), new ItemInfo(12105), + new ItemInfo(12106), new ItemInfo(12107), new ItemInfo(12108), new ItemInfo(12109), new ItemInfo(12110), new ItemInfo(12111), new ItemInfo(12112), new ItemInfo(12113), new ItemInfo(12114), + new ItemInfo(12115), new ItemInfo(12116), new ItemInfo(12117), new ItemInfo(12118), new ItemInfo(12119), new ItemInfo(12120), new ItemInfo(12121), new ItemInfo(12122), new ItemInfo(12123), + new ItemInfo(12124), new ItemInfo(12125), new ItemInfo(12126), new ItemInfo(12127), new ItemInfo(12128), new ItemInfo(12129), new ItemInfo(12214), new ItemInfo(12219), new ItemInfo(12220), + new ItemInfo(12221), new ItemInfo(12222), new ItemInfo(12223), new ItemInfo(12224), new ItemInfo(12225), new ItemInfo(12226), new ItemInfo(12236), new ItemInfo(12237), new ItemInfo(12238), + new ItemInfo(12239), new ItemInfo(12240), new ItemInfo(12241), new ItemInfo(12242), new ItemInfo(12243), new ItemInfo(12244), new ItemInfo(12245), new ItemInfo(12246), new ItemInfo(12249), + new ItemInfo(12250), new ItemInfo(12251), new ItemInfo(12252), new ItemInfo(12253), new ItemInfo(12254), new ItemInfo(12255), new ItemInfo(12256), new ItemInfo(12257), new ItemInfo(12258), + new ItemInfo(12259), new ItemInfo(12260), new ItemInfo(12261), new ItemInfo(12262), new ItemInfo(12263), new ItemInfo(12264), new ItemInfo(12265), new ItemInfo(12266), new ItemInfo(12267), + new ItemInfo(12268), new ItemInfo(12269), new ItemInfo(12270), new ItemInfo(12271), new ItemInfo(12272), new ItemInfo(12273), new ItemInfo(12274), new ItemInfo(12275), new ItemInfo(12276), + new ItemInfo(12277), new ItemInfo(12278), new ItemInfo(12279), new ItemInfo(12280), new ItemInfo(12281), new ItemInfo(12282), new ItemInfo(12283), new ItemInfo(12284), new ItemInfo(12285), + new ItemInfo(12286), new ItemInfo(12287), new ItemInfo(12288), new ItemInfo(12289), new ItemInfo(12290), new ItemInfo(12291), new ItemInfo(12296), new ItemInfo(12297), new ItemInfo(12298), + new ItemInfo(12299), new ItemInfo(12300), new ItemInfo(12301), new ItemInfo(12302), new ItemInfo(12303), new ItemInfo(12304), new ItemInfo(12305), new ItemInfo(12306), new ItemInfo(12307), + new ItemInfo(12308), new ItemInfo(12309), new ItemInfo(12310), new ItemInfo(12311), new ItemInfo(12312), new ItemInfo(12313), new ItemInfo(12314), new ItemInfo(12315), new ItemInfo(12316), + new ItemInfo(12317), new ItemInfo(12318), new ItemInfo(12319), new ItemInfo(12320), new ItemInfo(12321), new ItemInfo(12322), new ItemInfo(12323), new ItemInfo(12324), new ItemInfo(12325), + new ItemInfo(12326), new ItemInfo(12327), new ItemInfo(12328), new ItemInfo(12329), new ItemInfo(12330), new ItemInfo(12331), new ItemInfo(12332), new ItemInfo(12333), new ItemInfo(12334), + new ItemInfo(12335), new ItemInfo(12336), new ItemInfo(12337), new ItemInfo(12338), new ItemInfo(12339), new ItemInfo(12340), new ItemInfo(12341), new ItemInfo(12342), new ItemInfo(12343), + new ItemInfo(12344), new ItemInfo(12345), new ItemInfo(12346), new ItemInfo(12347), new ItemInfo(12348), new ItemInfo(12349), new ItemInfo(12350), new ItemInfo(12351), new ItemInfo(12352), + new ItemInfo(12353), new ItemInfo(12354), new ItemInfo(12355), new ItemInfo(12356), new ItemInfo(12357), new ItemInfo(12358), new ItemInfo(12359), new ItemInfo(12360), new ItemInfo(12361), + new ItemInfo(12362), new ItemInfo(12363), new ItemInfo(12378), new ItemInfo(12379), new ItemInfo(12380), new ItemInfo(12381), new ItemInfo(12382), new ItemInfo(12383), new ItemInfo(12384), + new ItemInfo(12385), new ItemInfo(12386), new ItemInfo(12387), new ItemInfo(12388), new ItemInfo(12389), new ItemInfo(12390), new ItemInfo(12391), new ItemInfo(12392), new ItemInfo(12393), + new ItemInfo(12394), new ItemInfo(12395), new ItemInfo(12396), new ItemInfo(12397), new ItemInfo(12398), new ItemInfo(12399), new ItemInfo(12400), new ItemInfo(12401), new ItemInfo(12402), + new ItemInfo(12403), new ItemInfo(12404), new ItemInfo(12405), new ItemInfo(12406), new ItemInfo(12407), new ItemInfo(12408), new ItemInfo(12409), new ItemInfo(12410), new ItemInfo(12411), + new ItemInfo(12412), new ItemInfo(12413), new ItemInfo(12414), new ItemInfo(12415), new ItemInfo(12416), new ItemInfo(12417), new ItemInfo(12418), new ItemInfo(12419), new ItemInfo(12570), + new ItemInfo(12571), new ItemInfo(12572), new ItemInfo(12573), new ItemInfo(12574), new ItemInfo(12575), new ItemInfo(12576), new ItemInfo(12577), new ItemInfo(12581), new ItemInfo(12582), + new ItemInfo(12583), new ItemInfo(12584), new ItemInfo(12585), new ItemInfo(12586), new ItemInfo(12587), new ItemInfo(12588), new ItemInfo(12589), new ItemInfo(12590), new ItemInfo(12591), + new ItemInfo(12592), new ItemInfo(12593), new ItemInfo(12594), new ItemInfo(12595), new ItemInfo(12596), new ItemInfo(12597), new ItemInfo(12598), new ItemInfo(12599), new ItemInfo(12600), + new ItemInfo(12601), new ItemInfo(12602), new ItemInfo(12603), new ItemInfo(12604), new ItemInfo(12605), new ItemInfo(12606), new ItemInfo(12607), new ItemInfo(12608), new ItemInfo(12609), + new ItemInfo(12610), new ItemInfo(12611), new ItemInfo(12612), new ItemInfo(12613), new ItemInfo(12614), new ItemInfo(12615), new ItemInfo(12616), new ItemInfo(12617), new ItemInfo(12618), + new ItemInfo(12619), new ItemInfo(12620), new ItemInfo(12621), new ItemInfo(12622), new ItemInfo(12623), new ItemInfo(12624), new ItemInfo(12625), new ItemInfo(12626), new ItemInfo(12627), + new ItemInfo(12628), new ItemInfo(12629), new ItemInfo(12630), new ItemInfo(12631), new ItemInfo(12632), new ItemInfo(12633), new ItemInfo(12634), new ItemInfo(12635), new ItemInfo(12636), + new ItemInfo(12637), new ItemInfo(12674), new ItemInfo(12675), new ItemInfo(12676), new ItemInfo(12677), new ItemInfo(12678), new ItemInfo(12679), new ItemInfo(12680), new ItemInfo(12681), + new ItemInfo(12682), new ItemInfo(12683), new ItemInfo(12684), new ItemInfo(12685), new ItemInfo(12686), new ItemInfo(12687), new ItemInfo(12688), new ItemInfo(12689), new ItemInfo(12690), + new ItemInfo(12691), new ItemInfo(12692), new ItemInfo(12693), new ItemInfo(12694), new ItemInfo(12695), new ItemInfo(12696), new ItemInfo(12697), new ItemInfo(12700), new ItemInfo(12701), + new ItemInfo(12702), new ItemInfo(12703), new ItemInfo(12704), new ItemInfo(12705), new ItemInfo(12706), new ItemInfo(12707), new ItemInfo(12708), new ItemInfo(12709), new ItemInfo(12710), + new ItemInfo(12711), new ItemInfo(12712), new ItemInfo(12713), new ItemInfo(12714), new ItemInfo(12715), new ItemInfo(12716), new ItemInfo(12717), new ItemInfo(12718), new ItemInfo(12719), + new ItemInfo(12720), new ItemInfo(12721), new ItemInfo(12722), new ItemInfo(12723), new ItemInfo(12724), new ItemInfo(12725), new ItemInfo(12726), new ItemInfo(12727), new ItemInfo(12728), + new ItemInfo(12729), new ItemInfo(12730), new ItemInfo(12731), new ItemInfo(12732), new ItemInfo(12733), new ItemInfo(12734), new ItemInfo(12735), new ItemInfo(12736), new ItemInfo(12978), + new ItemInfo(12979), new ItemInfo(12980), new ItemInfo(12981), new ItemInfo(12982), new ItemInfo(12983), new ItemInfo(12984), new ItemInfo(12985), new ItemInfo(12986), new ItemInfo(12987) + #endregion + }; + + private int m_Page; + + + + public AddMisc2Pt9Gump() + : this(0) + { } + + public AddMisc2Pt9Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddMisc2Pt9Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt5.cs new file mode 100644 index 000000000..506dc3843 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt5.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddPlantPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddPlantPt5", AccessLevel.GameMaster, new CommandEventHandler(AddPlantPt5_OnCommand)); + } + + [Usage("AddPlantPt5")] + public static void AddPlantPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddPlantPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(41763), new ItemInfo(41764), new ItemInfo(41765), new ItemInfo(41766), new ItemInfo(41767), new ItemInfo(41768), new ItemInfo(41769), new ItemInfo(41770), + new ItemInfo(41771), new ItemInfo(41772), new ItemInfo(41773), new ItemInfo(41774), new ItemInfo(41775), new ItemInfo(41776), new ItemInfo(41777), new ItemInfo(41778), + new ItemInfo(41779), new ItemInfo(41780), new ItemInfo(41781), new ItemInfo(41782), new ItemInfo(41783), new ItemInfo(41784), new ItemInfo(41785), new ItemInfo(41786), + new ItemInfo(41787), new ItemInfo(41788), new ItemInfo(41789), new ItemInfo(41790), new ItemInfo(41791), new ItemInfo(41792), new ItemInfo(41793), new ItemInfo(41794), + new ItemInfo(41795), new ItemInfo(41796), new ItemInfo(41797), new ItemInfo(41798), new ItemInfo(41799), new ItemInfo(41800), new ItemInfo(41801), new ItemInfo(41802), + new ItemInfo(41803), new ItemInfo(41804), new ItemInfo(41805), new ItemInfo(41806), new ItemInfo(41807), new ItemInfo(41808), new ItemInfo(41809), new ItemInfo(41810), + new ItemInfo(41811), new ItemInfo(41812), new ItemInfo(41813), new ItemInfo(41814), new ItemInfo(41815), new ItemInfo(41816), new ItemInfo(41817), new ItemInfo(41818), + new ItemInfo(41819), new ItemInfo(41820), new ItemInfo(41821), new ItemInfo(41822), new ItemInfo(41823), new ItemInfo(41824), new ItemInfo(41825), new ItemInfo(41826), + new ItemInfo(41827), new ItemInfo(41828), new ItemInfo(41829), new ItemInfo(41830), new ItemInfo(41831), new ItemInfo(41832), new ItemInfo(41833), new ItemInfo(41834), + new ItemInfo(41835), new ItemInfo(41836), new ItemInfo(41837), new ItemInfo(41838), new ItemInfo(41839), new ItemInfo(41840), new ItemInfo(41841), new ItemInfo(41842), + new ItemInfo(41843), new ItemInfo(41844), new ItemInfo(41845), new ItemInfo(41846), new ItemInfo(41847), new ItemInfo(41848), new ItemInfo(41849), new ItemInfo(41850), + new ItemInfo(41851), new ItemInfo(41852), new ItemInfo(41853), new ItemInfo(41854), new ItemInfo(41855), new ItemInfo(41856), new ItemInfo(41857), new ItemInfo(41858), + new ItemInfo(41859), new ItemInfo(41860), new ItemInfo(41861), new ItemInfo(41862), new ItemInfo(41863), new ItemInfo(41864), new ItemInfo(41865), new ItemInfo(41866), + new ItemInfo(41867), new ItemInfo(41868), new ItemInfo(41869), new ItemInfo(41870), new ItemInfo(41871), new ItemInfo(41872), new ItemInfo(41873), new ItemInfo(41874), + new ItemInfo(41875), new ItemInfo(41876), new ItemInfo(41877), new ItemInfo(41878), new ItemInfo(41879), new ItemInfo(41880), new ItemInfo(41881), new ItemInfo(41882), + new ItemInfo(41883), new ItemInfo(41884), new ItemInfo(41885), new ItemInfo(41886), new ItemInfo(41887), new ItemInfo(41888), new ItemInfo(41889), new ItemInfo(41890), + new ItemInfo(41891), new ItemInfo(41892), new ItemInfo(41893), new ItemInfo(41894), new ItemInfo(41895), new ItemInfo(41896), new ItemInfo(41897), new ItemInfo(41898), + new ItemInfo(41899), new ItemInfo(41900), new ItemInfo(41901), new ItemInfo(41902), new ItemInfo(41903), new ItemInfo(41904), new ItemInfo(41905), new ItemInfo(41906), + new ItemInfo(41907), new ItemInfo(41908), new ItemInfo(41909), new ItemInfo(41910), new ItemInfo(41911), new ItemInfo(41912), new ItemInfo(41913), new ItemInfo(41914), + new ItemInfo(41915), new ItemInfo(41916), new ItemInfo(41917), new ItemInfo(41918), new ItemInfo(41919), new ItemInfo(41920), new ItemInfo(41921), new ItemInfo(41922), + new ItemInfo(41923), new ItemInfo(41924), new ItemInfo(41925), new ItemInfo(41926), new ItemInfo(41927), new ItemInfo(41928), new ItemInfo(41929), new ItemInfo(41930), + new ItemInfo(41931), new ItemInfo(41932), new ItemInfo(41933), new ItemInfo(41934), new ItemInfo(41935), new ItemInfo(41936), new ItemInfo(41937), new ItemInfo(41938) + + #endregion + }; + + private int m_Page; + + + + public AddPlantPt5Gump() + : this(0) + { } + + public AddPlantPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddPlantPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt6.cs new file mode 100644 index 000000000..dd158abe6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt6.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddPlantPt6Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddPlantPt6", AccessLevel.GameMaster, new CommandEventHandler(AddPlantPt6_OnCommand)); + } + + [Usage("AddPlantPt6")] + public static void AddPlantPt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddPlantPt6Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(41939), new ItemInfo(41940), new ItemInfo(41941), new ItemInfo(41942), new ItemInfo(41943), new ItemInfo(41944), new ItemInfo(41945), new ItemInfo(41946), + new ItemInfo(41947), new ItemInfo(41948), new ItemInfo(41949), new ItemInfo(41950), new ItemInfo(41951), new ItemInfo(41952), new ItemInfo(41953), new ItemInfo(41954), + new ItemInfo(41955), new ItemInfo(41956), new ItemInfo(41957), new ItemInfo(41958), new ItemInfo(41959), new ItemInfo(41960), new ItemInfo(41961), new ItemInfo(41962), + new ItemInfo(41963), new ItemInfo(41964), new ItemInfo(41965), new ItemInfo(41966), new ItemInfo(41967), new ItemInfo(41968), new ItemInfo(41969), new ItemInfo(41970), + new ItemInfo(41971), new ItemInfo(41972), new ItemInfo(41973), new ItemInfo(41974), new ItemInfo(41975), new ItemInfo(41976), new ItemInfo(41977), new ItemInfo(41978), + new ItemInfo(41979), new ItemInfo(41980), new ItemInfo(41981), new ItemInfo(41982), new ItemInfo(41983), new ItemInfo(41984), new ItemInfo(41985), new ItemInfo(41986), + new ItemInfo(41987), new ItemInfo(41988), new ItemInfo(41989), new ItemInfo(41990), new ItemInfo(41991), new ItemInfo(41992), new ItemInfo(41993), new ItemInfo(41994), + new ItemInfo(41995), new ItemInfo(41996), new ItemInfo(41997), new ItemInfo(41998), new ItemInfo(41999), new ItemInfo(42000), new ItemInfo(42001), new ItemInfo(42002), + new ItemInfo(42003), new ItemInfo(42004), new ItemInfo(42005), new ItemInfo(42006), new ItemInfo(42007), new ItemInfo(42008), new ItemInfo(42009), new ItemInfo(42010), + new ItemInfo(42011), new ItemInfo(42012), new ItemInfo(42013), new ItemInfo(42014), new ItemInfo(42015), new ItemInfo(42016), new ItemInfo(42017), new ItemInfo(42018), + new ItemInfo(42019), new ItemInfo(42020), new ItemInfo(42021), new ItemInfo(42022), new ItemInfo(42023), new ItemInfo(42024), new ItemInfo(42025), new ItemInfo(42026), + new ItemInfo(42027), new ItemInfo(42028), new ItemInfo(42029), new ItemInfo(42030), new ItemInfo(42031), new ItemInfo(42032), new ItemInfo(42033), new ItemInfo(42034), + new ItemInfo(42035), new ItemInfo(42036), new ItemInfo(42037), new ItemInfo(42038), new ItemInfo(42039), new ItemInfo(42040), new ItemInfo(42041), new ItemInfo(42042), + new ItemInfo(42043), new ItemInfo(42044), new ItemInfo(42045), new ItemInfo(42046), new ItemInfo(42047), new ItemInfo(42048), new ItemInfo(42049), new ItemInfo(42050), + new ItemInfo(42051), new ItemInfo(42052), new ItemInfo(42053), new ItemInfo(42054), new ItemInfo(42055), new ItemInfo(42056), new ItemInfo(42057), new ItemInfo(42058), + new ItemInfo(42059), new ItemInfo(42060), new ItemInfo(42061), new ItemInfo(42062), new ItemInfo(42063), new ItemInfo(42064), new ItemInfo(42065), new ItemInfo(42066), + new ItemInfo(42067), new ItemInfo(42068), new ItemInfo(42069), new ItemInfo(42070), new ItemInfo(42071), new ItemInfo(42072), new ItemInfo(42073), new ItemInfo(42074), + new ItemInfo(42075), new ItemInfo(42076), new ItemInfo(42077), new ItemInfo(42078), new ItemInfo(42079), new ItemInfo(42080), new ItemInfo(42081), new ItemInfo(42082), + new ItemInfo(42083), new ItemInfo(42084), new ItemInfo(42085), new ItemInfo(42086), new ItemInfo(42087), new ItemInfo(42088), new ItemInfo(42089), new ItemInfo(42090), + new ItemInfo(42091), new ItemInfo(42092), new ItemInfo(42093), new ItemInfo(42094), new ItemInfo(42095), new ItemInfo(42096), new ItemInfo(42097), new ItemInfo(42098), + new ItemInfo(42099), new ItemInfo(42100), new ItemInfo(42101), new ItemInfo(42102), new ItemInfo(42103), new ItemInfo(42104), new ItemInfo(42105), new ItemInfo(42106), + new ItemInfo(42107), new ItemInfo(42108), new ItemInfo(42109), new ItemInfo(42110), new ItemInfo(42111), new ItemInfo(42112), new ItemInfo(42113), new ItemInfo(42114) + + #endregion + }; + + private int m_Page; + + + + public AddPlantPt6Gump() + : this(0) + { } + + public AddPlantPt6Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddPlantPt6Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt7.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt7.cs new file mode 100644 index 000000000..0133e4134 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/Custom/PlantPt7.cs @@ -0,0 +1,145 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddPlantPt7Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddPlantPt7", AccessLevel.GameMaster, new CommandEventHandler(AddPlantPt7_OnCommand)); + } + + [Usage("AddPlantPt7")] + public static void AddPlantPt7_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddPlantPt7Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(42115), new ItemInfo(42116), new ItemInfo(42117), new ItemInfo(42118), new ItemInfo(42119), new ItemInfo(42120), new ItemInfo(42121), new ItemInfo(42122), + new ItemInfo(42123), new ItemInfo(42124), new ItemInfo(42125), new ItemInfo(42126), new ItemInfo(42127), new ItemInfo(42128), new ItemInfo(42129), new ItemInfo(42130), + new ItemInfo(42131), new ItemInfo(42132), new ItemInfo(42133), new ItemInfo(42134), new ItemInfo(42135), new ItemInfo(42136), new ItemInfo(42137), new ItemInfo(42138), + new ItemInfo(42139), new ItemInfo(42140), new ItemInfo(42141), new ItemInfo(42142), new ItemInfo(42143), new ItemInfo(42144), new ItemInfo(42145), new ItemInfo(42146), + new ItemInfo(42147), new ItemInfo(42148), new ItemInfo(42149), new ItemInfo(42150), new ItemInfo(42151), new ItemInfo(42152), new ItemInfo(42153), new ItemInfo(42154), + new ItemInfo(42155), new ItemInfo(42156), new ItemInfo(42157), new ItemInfo(42158), new ItemInfo(42159), new ItemInfo(42160), new ItemInfo(42161), new ItemInfo(42162), + new ItemInfo(42163), new ItemInfo(42164), new ItemInfo(42165), new ItemInfo(42166), new ItemInfo(42167), new ItemInfo(42168), new ItemInfo(42169), new ItemInfo(42170), + new ItemInfo(42171), new ItemInfo(42172), new ItemInfo(42173), new ItemInfo(42174), new ItemInfo(42175), new ItemInfo(42176), new ItemInfo(42177), new ItemInfo(42178), + new ItemInfo(42179), new ItemInfo(42180), new ItemInfo(42181), new ItemInfo(42182), new ItemInfo(42183), new ItemInfo(42184), new ItemInfo(42185), new ItemInfo(42186), + new ItemInfo(42187), new ItemInfo(42188), new ItemInfo(42189), new ItemInfo(42190), new ItemInfo(42191), new ItemInfo(42192), new ItemInfo(42193), new ItemInfo(42208), + new ItemInfo(42209), new ItemInfo(42210), new ItemInfo(42211), new ItemInfo(42212), new ItemInfo(42213), new ItemInfo(42214), new ItemInfo(42215), new ItemInfo(42216), + new ItemInfo(42217), new ItemInfo(42223), new ItemInfo(42224), new ItemInfo(42225), new ItemInfo(42226), new ItemInfo(42227), new ItemInfo(42228), new ItemInfo(42229), + new ItemInfo(42230), new ItemInfo(42231), new ItemInfo(42232), new ItemInfo(42233), new ItemInfo(42234), new ItemInfo(42248), new ItemInfo(42249) + + #endregion + }; + + private int m_Page; + + + + public AddPlantPt7Gump() + : this(0) + { } + + public AddPlantPt7Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddPlantPt7Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt1.cs new file mode 100644 index 000000000..92162c95c --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt1.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddPlantPt1Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddPlantPt1", AccessLevel.GameMaster, new CommandEventHandler(AddPlantPt1_OnCommand)); + } + + [Usage("AddPlantPt1")] + public static void AddPlantPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddPlantPt1Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(731), new ItemInfo(3131), new ItemInfo(3132), new ItemInfo(3133), new ItemInfo(3134), new ItemInfo(3135), new ItemInfo(3136), new ItemInfo(3137), + new ItemInfo(3138), new ItemInfo(3141), new ItemInfo(3142), new ItemInfo(3143), new ItemInfo(3144), new ItemInfo(3145), new ItemInfo(3146), new ItemInfo(3147), + new ItemInfo(3148), new ItemInfo(3149), new ItemInfo(3150), new ItemInfo(3151), new ItemInfo(3152), new ItemInfo(3153), new ItemInfo(3154), new ItemInfo(3155), + new ItemInfo(3156), new ItemInfo(3157), new ItemInfo(3158), new ItemInfo(3159), new ItemInfo(3160), new ItemInfo(3161), new ItemInfo(3162), new ItemInfo(3163), + new ItemInfo(3166), new ItemInfo(3167), new ItemInfo(3168), new ItemInfo(3169), new ItemInfo(3170), new ItemInfo(3171), new ItemInfo(3176), new ItemInfo(3177), + new ItemInfo(3183), new ItemInfo(3190), new ItemInfo(3197), new ItemInfo(3198), new ItemInfo(3203), new ItemInfo(3204), new ItemInfo(3205), new ItemInfo(3206), + new ItemInfo(3207), new ItemInfo(3208), new ItemInfo(3209), new ItemInfo(3210), new ItemInfo(3211), new ItemInfo(3212), new ItemInfo(3213), new ItemInfo(3214), + new ItemInfo(3215), new ItemInfo(3216), new ItemInfo(3217), new ItemInfo(3218), new ItemInfo(3219), new ItemInfo(3220), new ItemInfo(3221), new ItemInfo(3222), + new ItemInfo(3223), new ItemInfo(3224), new ItemInfo(3225), new ItemInfo(3226), new ItemInfo(3227), new ItemInfo(3228), new ItemInfo(3229), new ItemInfo(3230), + new ItemInfo(3231), new ItemInfo(3232), new ItemInfo(3233), new ItemInfo(3234), new ItemInfo(3235), new ItemInfo(3236), new ItemInfo(3237), new ItemInfo(3238), + new ItemInfo(3239), new ItemInfo(3240), new ItemInfo(3241), new ItemInfo(3242), new ItemInfo(3243), new ItemInfo(3244), new ItemInfo(3245), new ItemInfo(3246), + new ItemInfo(3247), new ItemInfo(3248), new ItemInfo(3249), new ItemInfo(3250), new ItemInfo(3251), new ItemInfo(3252), new ItemInfo(3253), new ItemInfo(3254), + new ItemInfo(3255), new ItemInfo(3256), new ItemInfo(3257), new ItemInfo(3258), new ItemInfo(3259), new ItemInfo(3260), new ItemInfo(3261), new ItemInfo(3262), + new ItemInfo(3263), new ItemInfo(3264), new ItemInfo(3265), new ItemInfo(3267), new ItemInfo(3268), new ItemInfo(3269), new ItemInfo(3270), new ItemInfo(3271), + new ItemInfo(3272), new ItemInfo(3273), new ItemInfo(3274), new ItemInfo(3275), new ItemInfo(3276), new ItemInfo(3277), new ItemInfo(3278), new ItemInfo(3279), + new ItemInfo(3280), new ItemInfo(3281), new ItemInfo(3282), new ItemInfo(3283), new ItemInfo(3284), new ItemInfo(3285), new ItemInfo(3286), new ItemInfo(3287), + new ItemInfo(3288), new ItemInfo(3289), new ItemInfo(3290), new ItemInfo(3291), new ItemInfo(3292), new ItemInfo(3293), new ItemInfo(3294), new ItemInfo(3295), + new ItemInfo(3296), new ItemInfo(3297), new ItemInfo(3298), new ItemInfo(3299), new ItemInfo(3300), new ItemInfo(3301), new ItemInfo(3302), new ItemInfo(3303), + new ItemInfo(3304), new ItemInfo(3305), new ItemInfo(3306), new ItemInfo(3307), new ItemInfo(3308), new ItemInfo(3309), new ItemInfo(3310), new ItemInfo(3311), + new ItemInfo(3312), new ItemInfo(3313), new ItemInfo(3314), new ItemInfo(3315), new ItemInfo(3316), new ItemInfo(3317), new ItemInfo(3318), new ItemInfo(3319), + new ItemInfo(3320), new ItemInfo(3321), new ItemInfo(3322), new ItemInfo(3323), new ItemInfo(3324), new ItemInfo(3325), new ItemInfo(3326), new ItemInfo(3327), + new ItemInfo(3328), new ItemInfo(3329), new ItemInfo(3330), new ItemInfo(3331), new ItemInfo(3332), new ItemInfo(3333), new ItemInfo(3334), new ItemInfo(3335) + + #endregion + }; + + private int m_Page; + + + + public AddPlantPt1Gump() + : this(0) + { } + + public AddPlantPt1Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddPlantPt1Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt3.cs new file mode 100644 index 000000000..dfdb4c6d6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt3.cs @@ -0,0 +1,155 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddPlantPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddPlantPt3", AccessLevel.GameMaster, new CommandEventHandler(AddPlantPt3_OnCommand)); + } + + [Usage("AddPlantPt3")] + public static void AddPlantPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddPlantPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(4795), new ItemInfo(4796), new ItemInfo(4797), new ItemInfo(4798), new ItemInfo(4799), new ItemInfo(4800), new ItemInfo(4801), new ItemInfo(4802), + new ItemInfo(4803), new ItemInfo(4804), new ItemInfo(4805), new ItemInfo(4806), new ItemInfo(4807), new ItemInfo(6802), new ItemInfo(6803), new ItemInfo(6804), + new ItemInfo(6805), new ItemInfo(6806), new ItemInfo(6809), new ItemInfo(6810), new ItemInfo(6811), new ItemInfo(7038), new ItemInfo(9324), new ItemInfo(9325), + new ItemInfo(9326), new ItemInfo(9327), new ItemInfo(9328), new ItemInfo(9329), new ItemInfo(9330), new ItemInfo(9331), new ItemInfo(9332), new ItemInfo(9333), + new ItemInfo(9334), new ItemInfo(9335), new ItemInfo(9336), new ItemInfo(9337), new ItemInfo(9338), new ItemInfo(9339), new ItemInfo(9340), new ItemInfo(9341), + new ItemInfo(9342), new ItemInfo(9965), new ItemInfo(9966), new ItemInfo(9967), new ItemInfo(9968), new ItemInfo(9969), new ItemInfo(9970), new ItemInfo(9971), + new ItemInfo(11513), new ItemInfo(11514), new ItemInfo(11515), new ItemInfo(11516), new ItemInfo(12444), new ItemInfo(12445), new ItemInfo(12446), + new ItemInfo(12447), new ItemInfo(12448), new ItemInfo(12449), new ItemInfo(12450), new ItemInfo(12451), new ItemInfo(12452), new ItemInfo(12453), new ItemInfo(12454), + new ItemInfo(12455), new ItemInfo(12456), new ItemInfo(12457), new ItemInfo(12458), new ItemInfo(12459), new ItemInfo(12460), new ItemInfo(12461), new ItemInfo(12462), + new ItemInfo(12463), new ItemInfo(12464), new ItemInfo(12465), new ItemInfo(12466), new ItemInfo(12467), new ItemInfo(12468), new ItemInfo(12469), new ItemInfo(12470), + new ItemInfo(12471), new ItemInfo(12472), new ItemInfo(12473), new ItemInfo(12474), new ItemInfo(12475), new ItemInfo(12476), new ItemInfo(12477), new ItemInfo(12478), + new ItemInfo(12479), new ItemInfo(12480), new ItemInfo(12481), new ItemInfo(12482), new ItemInfo(12483), new ItemInfo(12484), new ItemInfo(12485), new ItemInfo(12486), + new ItemInfo(12487), new ItemInfo(12488), new ItemInfo(12489), new ItemInfo(12490), new ItemInfo(12491), new ItemInfo(12492), new ItemInfo(12493), new ItemInfo(12494), + new ItemInfo(12495), new ItemInfo(12496), new ItemInfo(12497), new ItemInfo(12498), new ItemInfo(12499), new ItemInfo(12500), new ItemInfo(12501), new ItemInfo(12502), + new ItemInfo(12503), new ItemInfo(12504), new ItemInfo(12505), new ItemInfo(12506), new ItemInfo(12507), new ItemInfo(12508), new ItemInfo(12509), new ItemInfo(12510), + new ItemInfo(12578), new ItemInfo(12579), new ItemInfo(12580), new ItemInfo(13984), new ItemInfo(13985), new ItemInfo(14755), new ItemInfo(14756), new ItemInfo(14757), + new ItemInfo(14758), new ItemInfo(14759), new ItemInfo(14760), new ItemInfo(14761), new ItemInfo(14762), new ItemInfo(14763), new ItemInfo(14764), new ItemInfo(14765), + new ItemInfo(14766), new ItemInfo(14767), new ItemInfo(14769), new ItemInfo(14770), new ItemInfo(14771), new ItemInfo(14772), new ItemInfo(14773), new ItemInfo(14774), + new ItemInfo(14775), new ItemInfo(14776), new ItemInfo(14777), new ItemInfo(14778), new ItemInfo(14779), new ItemInfo(14780), new ItemInfo(14787), new ItemInfo(14788), + new ItemInfo(14789), new ItemInfo(14790), new ItemInfo(14791), new ItemInfo(14792), new ItemInfo(14793), new ItemInfo(14794), new ItemInfo(14795), new ItemInfo(14796), + new ItemInfo(14797), new ItemInfo(14798), new ItemInfo(14799), new ItemInfo(14800), new ItemInfo(14801), new ItemInfo(14802), new ItemInfo(14803), new ItemInfo(14804), + new ItemInfo(14805), new ItemInfo(14806), new ItemInfo(14807), new ItemInfo(14808), new ItemInfo(14809), new ItemInfo(14810), new ItemInfo(14811), new ItemInfo(14812), + new ItemInfo(14813), new ItemInfo(14814), new ItemInfo(14815), new ItemInfo(14816), new ItemInfo(14817), new ItemInfo(14818), new ItemInfo(14819), new ItemInfo(14820) + + #endregion + }; + + private int m_Page; + + + + public AddPlantPt3Gump() + : this(0) + { } + + public AddPlantPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddPlantPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt4.cs new file mode 100644 index 000000000..512c1bfc1 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Non Tiled/Plants/PlantPt4.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddPlantPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddPlantPt4", AccessLevel.GameMaster, new CommandEventHandler(AddPlantPt4_OnCommand)); + } + + [Usage("AddPlantPt4")] + public static void AddPlantPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddPlantPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(14821), new ItemInfo(14822), new ItemInfo(14823), new ItemInfo(14824), new ItemInfo(14825), new ItemInfo(14826), new ItemInfo(14827), new ItemInfo(14828), + new ItemInfo(14829), new ItemInfo(14830), new ItemInfo(14831), new ItemInfo(14832), new ItemInfo(14833), new ItemInfo(14834), new ItemInfo(14835), new ItemInfo(14836), + new ItemInfo(14837), new ItemInfo(14838), new ItemInfo(14839), new ItemInfo(14840), new ItemInfo(14841), new ItemInfo(14842), new ItemInfo(14843), new ItemInfo(14844), + new ItemInfo(14845), new ItemInfo(14846), new ItemInfo(14847), new ItemInfo(14848), new ItemInfo(14849), new ItemInfo(14850), new ItemInfo(14851), new ItemInfo(14852), + new ItemInfo(14853), new ItemInfo(14854), new ItemInfo(14857), new ItemInfo(14858), new ItemInfo(14859), new ItemInfo(14860), new ItemInfo(14861), new ItemInfo(14862), + new ItemInfo(14863), new ItemInfo(14864), new ItemInfo(14865), new ItemInfo(14866), new ItemInfo(14867), new ItemInfo(14868), new ItemInfo(14869), new ItemInfo(14870), + new ItemInfo(14871), new ItemInfo(14872), new ItemInfo(14873), new ItemInfo(14874), new ItemInfo(14875), new ItemInfo(14876), new ItemInfo(14877), new ItemInfo(14878), + new ItemInfo(14879), new ItemInfo(14880), new ItemInfo(14881), new ItemInfo(14882), new ItemInfo(14883), new ItemInfo(14884), new ItemInfo(14885), new ItemInfo(14886), + new ItemInfo(14887), new ItemInfo(14888), new ItemInfo(14889), new ItemInfo(14890), new ItemInfo(14891), new ItemInfo(14892), new ItemInfo(14893), new ItemInfo(14894), + new ItemInfo(14895), new ItemInfo(14896), new ItemInfo(14897), new ItemInfo(14898), new ItemInfo(14899), new ItemInfo(14900), new ItemInfo(14901), new ItemInfo(14902), + new ItemInfo(14903), new ItemInfo(14904), new ItemInfo(14905), new ItemInfo(14906), new ItemInfo(14907), new ItemInfo(14908), new ItemInfo(14909), new ItemInfo(14910), + new ItemInfo(14911), new ItemInfo(14912), new ItemInfo(14913), new ItemInfo(14914), new ItemInfo(14915), new ItemInfo(14916), new ItemInfo(14917), new ItemInfo(14918), + new ItemInfo(14919), new ItemInfo(14920), new ItemInfo(14921), new ItemInfo(14922), new ItemInfo(14923), new ItemInfo(14924), new ItemInfo(14925), new ItemInfo(14926), + new ItemInfo(14927), new ItemInfo(14928), new ItemInfo(14929), new ItemInfo(14930), new ItemInfo(14931), new ItemInfo(14932), new ItemInfo(15004), new ItemInfo(15005), + new ItemInfo(15006), new ItemInfo(15007), new ItemInfo(15008), new ItemInfo(15009), new ItemInfo(15010), new ItemInfo(15011), new ItemInfo(15012), new ItemInfo(15013), + new ItemInfo(15014), new ItemInfo(15015), new ItemInfo(15016), new ItemInfo(15017), new ItemInfo(15018), new ItemInfo(15019), new ItemInfo(15020), new ItemInfo(15021), + new ItemInfo(15022), new ItemInfo(15023), new ItemInfo(15024), new ItemInfo(15025), new ItemInfo(15026), new ItemInfo(15027), new ItemInfo(15028), new ItemInfo(15029), + new ItemInfo(15030), new ItemInfo(15031), new ItemInfo(15032), new ItemInfo(15033), new ItemInfo(15034), new ItemInfo(15035), new ItemInfo(15036), new ItemInfo(15037), + new ItemInfo(15038), new ItemInfo(15039), new ItemInfo(15040), new ItemInfo(15041), new ItemInfo(15042), new ItemInfo(15043), new ItemInfo(15044), new ItemInfo(15045), + new ItemInfo(15046), new ItemInfo(15047), new ItemInfo(15048), new ItemInfo(15049), new ItemInfo(15050), new ItemInfo(15051), new ItemInfo(15052), new ItemInfo(15053), + new ItemInfo(15054), new ItemInfo(15055), new ItemInfo(15056), new ItemInfo(15057), new ItemInfo(15058), new ItemInfo(15059), new ItemInfo(15060), new ItemInfo(15061), + new ItemInfo(15062), new ItemInfo(15063), new ItemInfo(15064), new ItemInfo(15065), new ItemInfo(15066), new ItemInfo(15067), new ItemInfo(15068), new ItemInfo(15069), + new ItemInfo(15070), new ItemInfo(15071), new ItemInfo(15072), new ItemInfo(15073), new ItemInfo(15074), new ItemInfo(15075), new ItemInfo(15076), new ItemInfo(15077), + new ItemInfo(15078), new ItemInfo(15079), new ItemInfo(15080), new ItemInfo(15081), new ItemInfo(15082), new ItemInfo(15083), new ItemInfo(15084), new ItemInfo(15085), + new ItemInfo(15086), new ItemInfo(15087) + + #endregion + }; + + private int m_Page; + + + + public AddPlantPt4Gump() + : this(0) + { } + + public AddPlantPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}M Add Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddPlantPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddFence.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddFence.cs new file mode 100644 index 000000000..9a999ffe5 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddFence.cs @@ -0,0 +1,58 @@ +/* + * Oz'Thoth's Static Tool - Fence Selector Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting fence static items to tile. +/// +public sealed class AddFenceGump : StaticItemGumpBase +{ + private static readonly int[] FenceItemIds = + [ + 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, + 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, + 2099, 2101, 2102, 2103, 2104, 2105, 2106, 2107, + 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, + 2117, 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, + 2126, 2127, 2128, 2129, 2130, 2131, 2132, 2133, 2134, + 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, + 2144, 2145, 2146, 2147, 2148, 2149, 2150, 2151, 2152, + 2153, 2154, 2155, 2156, 2157, 2158, 2159, 2160, 2161, + 2162, 2163, 2164, 2165, 2167, 2168, 2174, 2175, 2176, + 2177, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, + 2186, 2187, 2222, 2223, 2224, 2225, 2226, 2227, 2228, + 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, + 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, + 2247, 2248, 2249, 2250, 2251, 2252, 2253, 2254, 2283, + 2284, 2285, 2286, 2287, 2288, 2289, 2290, 2291, 2292, + 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 20316, + 20317, 20318, 20319, 20320, 20321 + ]; + + protected override ReadOnlySpan ItemIds => FenceItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddFenceGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddFence", AccessLevel.GameMaster, AddFence_OnCommand); + } + + [Usage("AddFence")] + [Description("Displays a menu from which you can interactively add fences.")] + private static void AddFence_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFenceGump()); + } + + public AddFenceGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSign.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSign.cs new file mode 100644 index 000000000..bf48f66c6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSign.cs @@ -0,0 +1,52 @@ +/* + * Oz'Thoth's Static Tool - Sign Post Item Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting sign static items to tile. +/// +public sealed class AddSignStaticGump : StaticItemGumpBase +{ + private static readonly int[] SignItemIds = + [ + 2965, 2966, 2979, 2980, + 2981, 2982, 2983, 2984, 2985, 2986, 2987, 2988, 2989, 2990, + 2991, 2992, 2993, 2994, 2995, 2996, 2997, 2998, 2999, 3000, + 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, + 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, + 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, + 3031, 3032, 3033, 3034, 3035, 3036, 3037, 3038, 3039, 3040, + 3041, 3042, 3043, 3044, 3045, 3046, 3047, 3048, 3049, 3050, + 3051, 3052, 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, + 3061, 3062, 3063, 3064, 3065, 3066, 3067, 3068, 3069, 3070, + 3071, 3072, 3073, 3074, 3075, 3076, 3077, 3078, 3079, 3080, + 3081, 3082, 3083, 3084, 3085, 3086, 3039, 3040, 7976, 7977 + ]; + + protected override ReadOnlySpan ItemIds => SignItemIds; + protected override string CommandFormat => "{0}M Add Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddSignStaticGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddSignStatic", AccessLevel.GameMaster, AddSignStatic_OnCommand); + } + + [Usage("AddSignStatic")] + [Description("Displays a menu for adding sign statics.")] + private static void AddSignStatic_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddSignStaticGump()); + } + + public AddSignStaticGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSignPost.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSignPost.cs new file mode 100644 index 000000000..9de1f15e6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/AddSignPost.cs @@ -0,0 +1,42 @@ +/* + * Oz'Thoth's Static Tool - Sign Post Item Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting sign post static items to tile. +/// +public sealed class AddSignPStaticGump : StaticItemGumpBase +{ + private static readonly int[] SignPostItemIds = + [ + 2967, 2968, 2969, 2970, 2971, 2972, 2973, 2974, + 2975, 2976, 2977, 2978 + ]; + + protected override ReadOnlySpan ItemIds => SignPostItemIds; + protected override string CommandFormat => "{0}M Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddSignPStaticGump(page); + + public static void Initialize() + { + CommandSystem.Register("AddSignPStatic", AccessLevel.GameMaster, AddSignPStatic_OnCommand); + } + + [Usage("AddSignPStatic")] + [Description("Displays a menu for adding sign post statics.")] + private static void AddSignPStatic_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddSignPStaticGump()); + } + + public AddSignPStaticGump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt10.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt10.cs new file mode 100644 index 000000000..f503280d6 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt10.cs @@ -0,0 +1,62 @@ +/* + * Oz'Thoth's Static Tool - Floor Part 10 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting floor statics (Part 10). +/// +public sealed class AddFloorPt10Gump : StaticItemGumpBase +{ + private static readonly int[] FloorItemIds = + [ + 39693, 39694, 39695, 39696, 39697, 39698, 39699, 39700, + 39701, 39702, 39703, 39704, 39705, 39706, 39707, 39708, + 39709, 39710, 39711, 39712, 39713, 39714, 39715, 39716, + 39717, 39718, 39719, 39720, 39721, 39722, 39723, 39724, + 39725, 39726, 39727, 39728, 39729, 39730, 39731, 39732, + 39733, 39734, 39735, 39736, 39737, 39738, 39739, 39740, + 39741, 39742, 39743, 39744, 39745, 39746, 39747, 39748, + 39749, 39750, 39751, 39752, 39753, 39754, 39755, 39756, + 39757, 39758, 39759, 39760, 39761, 39762, 39763, 39764, + 39765, 39766, 39767, 39768, 39769, 39770, 39771, 39772, + 39773, 39774, 39775, 39776, 39777, 39778, 39779, 39780, + 39781, 39782, 39783, 39784, 39785, 39786, 39787, 39788, + 39789, 39790, 39791, 39792, 39793, 39794, 39795, 39796, + 39797, 39798, 39799, 39800, 39801, 39802, 39803, 39804, + 39805, 39806, 39807, 39808, 39809, 39810, 39811, 39812, + 39813, 39814, 39815, 39816, 39817, 39818, 39819, 39820, + 39821, 39822, 39823, 39824, 39825, 39826, 39827, 39828, + 39829, 39830, 39831, 39832, 39833, 39834, 39835, 39836, + 39837, 39838, 39839, 39840, 39841, 39842, 39843, 39844, + 39845, 39846, 39847, 39848, 39849, 39850, 39851, 39852, + 39853, 39854, 39855, 39856, 39857, 39858, 39859, 39860, + 39861, 39862, 39863, 39864, 39865, 39866, 39867, 39868 + ]; + + protected override ReadOnlySpan ItemIds => FloorItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddFloorPt10Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddFloorPt10", AccessLevel.GameMaster, AddFloorPt10_OnCommand); + } + + [Usage("AddFloorPt10")] + [Description("Displays a menu for adding floor statics (Part 10).")] + private static void AddFloorPt10_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt10Gump()); + } + + public AddFloorPt10Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt11.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt11.cs new file mode 100644 index 000000000..8176d397c --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt11.cs @@ -0,0 +1,62 @@ +/* + * Oz'Thoth's Static Tool - Floor Part 11 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting floor statics (Part 11). +/// +public sealed class AddFloorPt11Gump : StaticItemGumpBase +{ + private static readonly int[] FloorItemIds = + [ + 39869, 39870, 39871, 39872, 39873, 39874, 39875, 39876, + 39877, 39878, 39879, 39880, 39881, 39882, 39883, 39884, + 39885, 39886, 39887, 39888, 39889, 39890, 39891, 39892, + 39893, 39894, 39895, 39896, 39897, 39898, 39899, 39900, + 39901, 39902, 39903, 39904, 39905, 39906, 39907, 39908, + 39909, 39910, 39911, 39912, 39913, 39914, 39915, 39916, + 39917, 39918, 39919, 39920, 39921, 39922, 39923, 39924, + 39925, 39926, 39927, 39928, 39929, 39930, 39931, 39932, + 39933, 39934, 39935, 39936, 39937, 39938, 39939, 39940, + 39941, 39942, 39943, 39944, 39945, 39946, 39947, 39948, + 39949, 39950, 39951, 39952, 39953, 39954, 39955, 39956, + 39957, 39958, 39959, 39960, 39961, 39962, 39963, 39964, + 39965, 39966, 39967, 39968, 39969, 39970, 39971, 39972, + 39973, 39974, 39975, 39976, 39977, 39978, 39979, 39980, + 39981, 39982, 39983, 39984, 39985, 39986, 39987, 39988, + 39989, 39990, 39991, 39992, 39993, 39994, 39995, 39996, + 39997, 39998, 39999, 40000, 40001, 40002, 40003, 40004, + 40005, 40006, 40007, 40008, 40009, 40010, 40011, 40012, + 40013, 40014, 40015, 40016, 40017, 40018, 40019, 40020, + 40021, 40022, 40023, 40024, 40025, 40026, 40027, 40028, + 40035, 40036, 40037, 40038, 40039, 40040, 40041, 40042, + 40043, 40044, 40045, 40046, 40047, 40048, 40049, 40050 + ]; + + protected override ReadOnlySpan ItemIds => FloorItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddFloorPt11Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddFloorPt11", AccessLevel.GameMaster, AddFloorPt11_OnCommand); + } + + [Usage("AddFloorPt11")] + [Description("Displays a menu for adding floor statics (Part 11).")] + private static void AddFloorPt11_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt11Gump()); + } + + public AddFloorPt11Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt12.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt12.cs new file mode 100644 index 000000000..eff98f2b1 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt12.cs @@ -0,0 +1,62 @@ +/* + * Oz'Thoth's Static Tool - Floor Part 12 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting floor statics (Part 12). +/// +public sealed class AddFloorPt12Gump : StaticItemGumpBase +{ + private static readonly int[] FloorItemIds = + [ + 40051, 40052, 40053, 40054, 40055, 40056, 40057, 40058, + 40059, 40060, 40061, 40062, 40063, 40064, 40065, 40066, + 40067, 40068, 40069, 40070, 40071, 40072, 40073, 40074, + 40075, 40076, 40077, 40078, 40079, 40080, 40081, 40082, + 40083, 40084, 40085, 40086, 40087, 40088, 40089, 40090, + 40091, 40092, 40093, 40094, 40095, 40096, 40097, 40098, + 40099, 40100, 40101, 40102, 40103, 40104, 40105, 40106, + 40107, 40108, 40109, 40110, 40111, 40112, 40113, 40114, + 40115, 40116, 40117, 40118, 40119, 40120, 40121, 40122, + 40123, 40124, 40125, 40126, 40127, 40128, 40129, 40130, + 40131, 40132, 40133, 40134, 40135, 40136, 40137, 40138, + 40139, 40140, 40141, 40142, 40143, 40144, 40145, 40146, + 40147, 40148, 40149, 40150, 40151, 40152, 40153, 40154, + 40155, 40156, 40157, 40158, 40159, 40160, 40161, 40162, + 40163, 40164, 40165, 40166, 40167, 40168, 40169, 40170, + 40171, 40172, 40173, 40174, 40175, 40176, 40177, 40178, + 40179, 40180, 40181, 40182, 40183, 40184, 40185, 42338, + 42339, 42340, 42341, 43002, 43003, 43004, 43005, 43006, + 43007, 43008, 43009, 43010, 43011, 43012, 43013, 43014, + 43015, 43016, 43017, 43019, 43020, 43021, 43022, 43023, + 43024, 43025, 43026, 43027, 43028, 43029, 43030, 43031, + 43032, 43033, 43034, 43036, 43037, 43038, 43039, 43040 + ]; + + protected override ReadOnlySpan ItemIds => FloorItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddFloorPt12Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddFloorPt12", AccessLevel.GameMaster, AddFloorPt12_OnCommand); + } + + [Usage("AddFloorPt12")] + [Description("Displays a menu for adding floor statics (Part 12).")] + private static void AddFloorPt12_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt12Gump()); + } + + public AddFloorPt12Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt13.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt13.cs new file mode 100644 index 000000000..330e18810 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt13.cs @@ -0,0 +1,57 @@ +/* + * Oz'Thoth's Static Tool - Floor Part 13 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting floor statics (Part 13). +/// +public sealed class AddFloorPt13Gump : StaticItemGumpBase +{ + private static readonly int[] FloorItemIds = + [ + 43041, 43042, 43043, 43044, 43045, 43046, 43047, 43048, + 43049, 43050, 43051, 43052, 43053, 43054, 43055, 43056, + 43057, 43058, 43059, 43060, 43061, 43062, 43063, 43064, + 43065, 43066, 43067, 43068, 43069, 43070, 43071, 43072, + 43073, 43074, 43075, 43077, 43078, 43079, 43080, 43081, + 43082, 43083, 43084, 43085, 43086, 43087, 43088, 43089, + 43090, 43091, 43092, 43094, 43095, 43096, 43097, 43098, + 43099, 43100, 43101, 43102, 43103, 43104, 43105, 43106, + 43107, 43108, 43109, 43111, 43112, 43113, 43114, 43115, + 43116, 43117, 43118, 43119, 43120, 43121, 43122, 43123, + 43124, 43125, 43126, 43128, 43129, 43130, 43131, 43132, + 43133, 43134, 43135, 43136, 43137, 43138, 43139, 43140, + 43141, 43142, 43143, 43145, 43146, 43147, 43148, 43149, + 43150, 43151, 43152, 43153, 43154, 43155, 43156, 43157, + 43158, 43159, 43160, 43267, 43268, 43269, 43270, 43271, + 43272, 43273, 43274, 43275, 43276, 43277, 43278, 43279, + 43280, 43281, 43282 + ]; + + protected override ReadOnlySpan ItemIds => FloorItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddFloorPt13Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddFloorPt13", AccessLevel.GameMaster, AddFloorPt13_OnCommand); + } + + [Usage("AddFloorPt13")] + [Description("Displays a menu for adding floor statics (Part 13).")] + private static void AddFloorPt13_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt13Gump()); + } + + public AddFloorPt13Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt9.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt9.cs new file mode 100644 index 000000000..137bc265c --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/Custom/FloorPt9.cs @@ -0,0 +1,155 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt9Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt9", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt9_OnCommand)); + } + + [Usage("AddFloorPt9")] + + public static void AddFloorPt9_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt9Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(39517), new ItemInfo(39518), new ItemInfo(39519), new ItemInfo(39520), new ItemInfo(39521), new ItemInfo(39522), new ItemInfo(39523), new ItemInfo(39524), + new ItemInfo(39525), new ItemInfo(39526), new ItemInfo(39527), new ItemInfo(39528), new ItemInfo(39529), new ItemInfo(39530), new ItemInfo(39531), new ItemInfo(39532), + new ItemInfo(39533), new ItemInfo(39534), new ItemInfo(39535), new ItemInfo(39536), new ItemInfo(39537), new ItemInfo(39538), new ItemInfo(39539), new ItemInfo(39540), + new ItemInfo(39541), new ItemInfo(39542), new ItemInfo(39543), new ItemInfo(39544), new ItemInfo(39545), new ItemInfo(39546), new ItemInfo(39547), new ItemInfo(39548), + new ItemInfo(39549), new ItemInfo(39550), new ItemInfo(39551), new ItemInfo(39552), new ItemInfo(39553), new ItemInfo(39554), new ItemInfo(39555), new ItemInfo(39556), + new ItemInfo(39557), new ItemInfo(39558), new ItemInfo(39559), new ItemInfo(39560), new ItemInfo(39561), new ItemInfo(39562), new ItemInfo(39563), new ItemInfo(39564), + new ItemInfo(39565), new ItemInfo(39566), new ItemInfo(39567), new ItemInfo(39568), new ItemInfo(39569), new ItemInfo(39570), new ItemInfo(39571), new ItemInfo(39572), + new ItemInfo(39573), new ItemInfo(39574), new ItemInfo(39575), new ItemInfo(39576), new ItemInfo(39577), new ItemInfo(39578), new ItemInfo(39579), new ItemInfo(39580), + new ItemInfo(39581), new ItemInfo(39582), new ItemInfo(39583), new ItemInfo(39584), new ItemInfo(39585), new ItemInfo(39586), new ItemInfo(39587), new ItemInfo(39588), + new ItemInfo(39589), new ItemInfo(39590), new ItemInfo(39591), new ItemInfo(39592), new ItemInfo(39593), new ItemInfo(39594), new ItemInfo(39595), new ItemInfo(39596), + new ItemInfo(39597), new ItemInfo(39598), new ItemInfo(39599), new ItemInfo(39600), new ItemInfo(39601), new ItemInfo(39602), new ItemInfo(39603), new ItemInfo(39604), + new ItemInfo(39605), new ItemInfo(39606), new ItemInfo(39607), new ItemInfo(39608), new ItemInfo(39609), new ItemInfo(39610), new ItemInfo(39611), new ItemInfo(39612), + new ItemInfo(39613), new ItemInfo(39614), new ItemInfo(39615), new ItemInfo(39616), new ItemInfo(39617), new ItemInfo(39618), new ItemInfo(39619), new ItemInfo(39620), + new ItemInfo(39621), new ItemInfo(39622), new ItemInfo(39623), new ItemInfo(39624), new ItemInfo(39625), new ItemInfo(39626), new ItemInfo(39627), new ItemInfo(39628), + new ItemInfo(39629), new ItemInfo(39630), new ItemInfo(39631), new ItemInfo(39632), new ItemInfo(39633), new ItemInfo(39634), new ItemInfo(39635), new ItemInfo(39636), + new ItemInfo(39637), new ItemInfo(39638), new ItemInfo(39639), new ItemInfo(39640), new ItemInfo(39641), new ItemInfo(39642), new ItemInfo(39643), new ItemInfo(39644), + new ItemInfo(39645), new ItemInfo(39646), new ItemInfo(39647), new ItemInfo(39648), new ItemInfo(39649), new ItemInfo(39650), new ItemInfo(39651), new ItemInfo(39652), + new ItemInfo(39653), new ItemInfo(39654), new ItemInfo(39655), new ItemInfo(39656), new ItemInfo(39657), new ItemInfo(39658), new ItemInfo(39659), new ItemInfo(39660), + new ItemInfo(39661), new ItemInfo(39662), new ItemInfo(39663), new ItemInfo(39664), new ItemInfo(39665), new ItemInfo(39666), new ItemInfo(39667), new ItemInfo(39668), + new ItemInfo(39669), new ItemInfo(39670), new ItemInfo(39671), new ItemInfo(39672), new ItemInfo(39673), new ItemInfo(39674), new ItemInfo(39675), new ItemInfo(39676), + new ItemInfo(39677), new ItemInfo(39678), new ItemInfo(39679), new ItemInfo(39680), new ItemInfo(39681), new ItemInfo(39682), new ItemInfo(39683), new ItemInfo(39684), + new ItemInfo(39685), new ItemInfo(39686), new ItemInfo(39687), new ItemInfo(39688), new ItemInfo(39689), new ItemInfo(39690), new ItemInfo(39691), new ItemInfo(39692) + + #endregion + }; + + private int m_Page; + + + + public AddFloorPt9Gump() + : this(0) + { } + + public AddFloorPt9Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt9Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt1.cs new file mode 100644 index 000000000..b15a4fda9 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt1.cs @@ -0,0 +1,61 @@ +/* + * Oz'Thoth's Static Tool - Floor Part 1 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting floor static items (Part 1). +/// +public sealed class AddFloorPt1Gump : StaticItemGumpBase +{ + private static readonly int[] FloorItemIds = + [ + 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, + 1176, 1177, 1178, 1179, 1180, 1181, 1182, 1183, + 1184, 1185, 1186, 1187, 1188, 1189, 1190, 1191, + 1192, 1193, 1194, 1195, 1196, 1197, 1198, 1199, + 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, + 1208, 1209, 1210, 1211, 1212, 1213, 1214, 1215, + 1216, 1217, 1218, 1219, 1220, 1221, 1222, 1223, + 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1231, + 1232, 1233, 1234, 1235, 1236, 1237, 1238, 1239, + 1240, 1241, 1242, 1243, 1244, 1245, 1246, 1247, + 1248, 1249, 1250, 1251, 1252, 1253, 1254, 1255, + 1256, 1257, 1258, 1259, 1260, 1261, 1262, 1263, + 1264, 1265, 1266, 1267, 1268, 1269, 1270, 1271, + 1272, 1273, 1274, 1275, 1276, 1277, 1278, 1279, + 1280, 1281, 1282, 1283, 1284, 1285, 1286, 1287, + 1288, 1289, 1290, 1291, 1292, 1293, 1294, 1295, + 1296, 1297, 1298, 1299, 1300, 1301, 1302, 1303, + 1304, 1305, 1306, 1307, 1308, 1309, 1310, 1311, + 1312, 1313, 1314, 1315, 1316, 1317, 1318, 1319, + 1320, 1321, 1322, 1323, 1324, 1327, 1328, 1329, + 1330, 1331, 1332, 1333, 1334, 1335, 1336, 1337 + ]; + + protected override ReadOnlySpan ItemIds => FloorItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddFloorPt1Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddFloorPt1", AccessLevel.GameMaster, AddFloorPt1_OnCommand); + } + + [Usage("AddFloorPt1")] + [Description("Displays a menu for adding floor statics (Part 1).")] + private static void AddFloorPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt1Gump()); + } + + public AddFloorPt1Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt2.cs new file mode 100644 index 000000000..ca4435773 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt2.cs @@ -0,0 +1,156 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt2Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt2", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt2_OnCommand)); + } + + [Usage("AddFloorPt2")] + + public static void AddFloorPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt2Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(1338), new ItemInfo(1364), new ItemInfo(1365), new ItemInfo(1366), new ItemInfo(1367), new ItemInfo(1368), new ItemInfo(1369), new ItemInfo(1370), + new ItemInfo(1371), new ItemInfo(1372), new ItemInfo(1373), new ItemInfo(1374), new ItemInfo(1375), new ItemInfo(1376), new ItemInfo(1377), new ItemInfo(1378), + new ItemInfo(1379), new ItemInfo(1380), new ItemInfo(1381), new ItemInfo(1382), new ItemInfo(1383), new ItemInfo(1384), new ItemInfo(1385), new ItemInfo(1387), + new ItemInfo(1388), new ItemInfo(1389), new ItemInfo(1390), new ItemInfo(1391), new ItemInfo(1392), new ItemInfo(1393), new ItemInfo(1394), new ItemInfo(1395), + new ItemInfo(1396), new ItemInfo(1397), new ItemInfo(1398), new ItemInfo(1399), new ItemInfo(1400), new ItemInfo(1401), new ItemInfo(1402), new ItemInfo(1403), + new ItemInfo(1404), new ItemInfo(1405), new ItemInfo(1406), new ItemInfo(1407), new ItemInfo(1408), new ItemInfo(1409), new ItemInfo(1410), new ItemInfo(1411), + new ItemInfo(1412), new ItemInfo(1413), new ItemInfo(1579), new ItemInfo(1580), new ItemInfo(1581), new ItemInfo(1582), new ItemInfo(1583), new ItemInfo(1584), + new ItemInfo(1585), new ItemInfo(1586), new ItemInfo(1591), new ItemInfo(1592), new ItemInfo(1593), new ItemInfo(1594), new ItemInfo(1595), new ItemInfo(1596), + new ItemInfo(1597), new ItemInfo(1598), new ItemInfo(1993), new ItemInfo(1994), new ItemInfo(1995), new ItemInfo(1996), new ItemInfo(1997), new ItemInfo(1998), + new ItemInfo(1999), new ItemInfo(2000), new ItemInfo(9253), new ItemInfo(9254), new ItemInfo(9255), new ItemInfo(9256), new ItemInfo(9257), new ItemInfo(9258), + new ItemInfo(9259), new ItemInfo(9260), new ItemInfo(9261), new ItemInfo(9262), new ItemInfo(9263), new ItemInfo(9264), new ItemInfo(9265), new ItemInfo(9266), + new ItemInfo(9267), new ItemInfo(9268), new ItemInfo(9269), new ItemInfo(9270), new ItemInfo(9271), new ItemInfo(9272), new ItemInfo(9273), new ItemInfo(9274), + new ItemInfo(9275), new ItemInfo(9276), new ItemInfo(9277), new ItemInfo(9278), new ItemInfo(9279), new ItemInfo(9280), new ItemInfo(9281), new ItemInfo(9282), + new ItemInfo(9283), new ItemInfo(9284), new ItemInfo(9285), new ItemInfo(9286), new ItemInfo(9287), new ItemInfo(9288), new ItemInfo(9289), new ItemInfo(9290), + new ItemInfo(9291), new ItemInfo(9292), new ItemInfo(9293), new ItemInfo(9294), new ItemInfo(9295), new ItemInfo(9296), new ItemInfo(9297), new ItemInfo(9298), + new ItemInfo(10018), new ItemInfo(10019), new ItemInfo(10020), new ItemInfo(10021), new ItemInfo(10022), new ItemInfo(10023), new ItemInfo(10024), new ItemInfo(10025), + new ItemInfo(10026), new ItemInfo(10027), new ItemInfo(10028), new ItemInfo(10029), new ItemInfo(10030), new ItemInfo(10031), new ItemInfo(10032), new ItemInfo(10033), + new ItemInfo(10034), new ItemInfo(10035), new ItemInfo(10036), new ItemInfo(10037), new ItemInfo(10038), new ItemInfo(10039), new ItemInfo(10040), new ItemInfo(10041), + new ItemInfo(10042), new ItemInfo(10043), new ItemInfo(10044), new ItemInfo(10045), new ItemInfo(10046), new ItemInfo(10047), new ItemInfo(10048), new ItemInfo(10049), + new ItemInfo(10050), new ItemInfo(10051), new ItemInfo(10052), new ItemInfo(10053), new ItemInfo(10054), new ItemInfo(10055), new ItemInfo(10056), new ItemInfo(10057), + new ItemInfo(10058), new ItemInfo(10059), new ItemInfo(10060), new ItemInfo(10061), new ItemInfo(10062), new ItemInfo(10063), new ItemInfo(10064), new ItemInfo(10065), + new ItemInfo(10350), new ItemInfo(10351), new ItemInfo(10352), new ItemInfo(10353), new ItemInfo(10354), new ItemInfo(10355), new ItemInfo(10356), new ItemInfo(10357), + new ItemInfo(10358), new ItemInfo(10359), new ItemInfo(10360), new ItemInfo(10361), new ItemInfo(10362), new ItemInfo(10363), new ItemInfo(10364), new ItemInfo(10365), + new ItemInfo(10366), new ItemInfo(10367), new ItemInfo(10368), new ItemInfo(10369), new ItemInfo(10370), new ItemInfo(10371), new ItemInfo(10372), new ItemInfo(10373) + #endregion + }; + + private int m_Page; + + + + public AddFloorPt2Gump() + : this(0) + { } + + public AddFloorPt2Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt2Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt3.cs new file mode 100644 index 000000000..f021f8f4d --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt3.cs @@ -0,0 +1,155 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt3", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt3_OnCommand)); + } + + [Usage("AddFloorPt3")] + + public static void AddFloorPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(10404), new ItemInfo(10405), new ItemInfo(10406), new ItemInfo(10407), new ItemInfo(10408), new ItemInfo(10409), new ItemInfo(10410), new ItemInfo(10411), + new ItemInfo(10412), new ItemInfo(10413), new ItemInfo(10414), new ItemInfo(10415), new ItemInfo(10592), new ItemInfo(10593), new ItemInfo(10594), new ItemInfo(10595), + new ItemInfo(10596), new ItemInfo(10597), new ItemInfo(10598), new ItemInfo(10599), new ItemInfo(10600), new ItemInfo(10601), new ItemInfo(10602), new ItemInfo(10603), + new ItemInfo(10604), new ItemInfo(10605), new ItemInfo(10606), new ItemInfo(10607), new ItemInfo(10608), new ItemInfo(10609), new ItemInfo(10610), new ItemInfo(10611), + new ItemInfo(10612), new ItemInfo(10613), new ItemInfo(10614), new ItemInfo(10615), new ItemInfo(10616), new ItemInfo(10617), new ItemInfo(10618), new ItemInfo(10619), + new ItemInfo(10620), new ItemInfo(10621), new ItemInfo(10622), new ItemInfo(10623), new ItemInfo(10624), new ItemInfo(10625), new ItemInfo(10626), new ItemInfo(10627), + new ItemInfo(10628), new ItemInfo(10629), new ItemInfo(10630), new ItemInfo(10631), new ItemInfo(10632), new ItemInfo(10633), new ItemInfo(10634), new ItemInfo(10635), + new ItemInfo(10636), new ItemInfo(10637), new ItemInfo(10638), new ItemInfo(10639), new ItemInfo(10688), new ItemInfo(10689), new ItemInfo(10690), new ItemInfo(10691), + new ItemInfo(10692), new ItemInfo(10693), new ItemInfo(10694), new ItemInfo(10695), new ItemInfo(10696), new ItemInfo(10697), new ItemInfo(10698), new ItemInfo(10699), + new ItemInfo(10700), new ItemInfo(10701), new ItemInfo(10702), new ItemInfo(10703), new ItemInfo(10704), new ItemInfo(10705), new ItemInfo(10706), new ItemInfo(10707), + new ItemInfo(10708), new ItemInfo(10709), new ItemInfo(10710), new ItemInfo(10711), new ItemInfo(10712), new ItemInfo(10713), new ItemInfo(10714), new ItemInfo(10715), + new ItemInfo(10781), new ItemInfo(10782), new ItemInfo(10783), new ItemInfo(10784), new ItemInfo(10785), new ItemInfo(10786), new ItemInfo(10787), new ItemInfo(10788), + new ItemInfo(10789), new ItemInfo(10790), new ItemInfo(10791), new ItemInfo(10792), new ItemInfo(10793), new ItemInfo(10812), new ItemInfo(10813), new ItemInfo(10814), + new ItemInfo(10815), new ItemInfo(10816), new ItemInfo(10817), new ItemInfo(10818), new ItemInfo(10819), new ItemInfo(10820), new ItemInfo(11189), new ItemInfo(11190), + new ItemInfo(11191), new ItemInfo(11192), new ItemInfo(11215), new ItemInfo(11500), new ItemInfo(11501), new ItemInfo(11502), new ItemInfo(11576), new ItemInfo(11577), + new ItemInfo(11578), new ItemInfo(11579), new ItemInfo(11723), new ItemInfo(11724), new ItemInfo(11725), new ItemInfo(11726), new ItemInfo(11846), new ItemInfo(11847), + new ItemInfo(12292), new ItemInfo(12293), + new ItemInfo(12294), new ItemInfo(12295), new ItemInfo(13746), new ItemInfo(13747), new ItemInfo(13748), new ItemInfo(13749), new ItemInfo(13750), new ItemInfo(13751), + new ItemInfo(13752), new ItemInfo(13753), new ItemInfo(13754), new ItemInfo(13755), new ItemInfo(13756), new ItemInfo(13757), new ItemInfo(13850), new ItemInfo(13851), + new ItemInfo(13852), new ItemInfo(13853), new ItemInfo(13854), new ItemInfo(13855), new ItemInfo(13856), new ItemInfo(13857), new ItemInfo(13858), new ItemInfo(16510), + new ItemInfo(16511), new ItemInfo(16512), new ItemInfo(16513), new ItemInfo(16514), new ItemInfo(16515), new ItemInfo(16516), new ItemInfo(16517), new ItemInfo(16518), + new ItemInfo(16519), new ItemInfo(16520), new ItemInfo(16521), new ItemInfo(16522), new ItemInfo(16523), new ItemInfo(16524), new ItemInfo(16525), new ItemInfo(16526), + new ItemInfo(16527), new ItemInfo(16528), new ItemInfo(16529), new ItemInfo(16530), new ItemInfo(16531), new ItemInfo(16532), new ItemInfo(16533), new ItemInfo(16534) + #endregion + }; + + private int m_Page; + + + + public AddFloorPt3Gump() + : this(0) + { } + + public AddFloorPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt4.cs new file mode 100644 index 000000000..0ff0b0507 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt4.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt4", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt4_OnCommand)); + } + + [Usage("AddFloorPt4")] + + public static void AddFloorPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(16535), new ItemInfo(16536), new ItemInfo(16537), new ItemInfo(16538), new ItemInfo(16547), new ItemInfo(16548), new ItemInfo(16549), new ItemInfo(16550), + new ItemInfo(16551), new ItemInfo(16552), new ItemInfo(16553), new ItemInfo(16554), new ItemInfo(16555), new ItemInfo(16556), new ItemInfo(16557), new ItemInfo(16558), + new ItemInfo(16559), new ItemInfo(16560), new ItemInfo(16561), new ItemInfo(16562), new ItemInfo(16563), new ItemInfo(16564), new ItemInfo(16565), new ItemInfo(16566), + new ItemInfo(16567), new ItemInfo(16568), new ItemInfo(16569), new ItemInfo(16570), new ItemInfo(16571), new ItemInfo(16577), new ItemInfo(16578), new ItemInfo(16579), + new ItemInfo(16580), new ItemInfo(16581), new ItemInfo(16582), new ItemInfo(16583), new ItemInfo(16584), new ItemInfo(16585), new ItemInfo(16586), new ItemInfo(16587), + new ItemInfo(16588), new ItemInfo(16589), new ItemInfo(16590), new ItemInfo(16591), new ItemInfo(16592), new ItemInfo(16593), new ItemInfo(16594), new ItemInfo(16595), + new ItemInfo(16596), new ItemInfo(16597), new ItemInfo(16598), new ItemInfo(16599), new ItemInfo(16600), new ItemInfo(16601), new ItemInfo(16774), new ItemInfo(16775), + new ItemInfo(16776), new ItemInfo(16777), new ItemInfo(16778), new ItemInfo(16779), new ItemInfo(16780), new ItemInfo(16781), new ItemInfo(16782), new ItemInfo(16815), + new ItemInfo(16816), new ItemInfo(16817), new ItemInfo(16818), new ItemInfo(16821), new ItemInfo(16822), new ItemInfo(16823), new ItemInfo(16824), new ItemInfo(16825), + new ItemInfo(16826), new ItemInfo(16827), new ItemInfo(16828), new ItemInfo(16842), new ItemInfo(16843), new ItemInfo(16844), new ItemInfo(16855), new ItemInfo(16860), + new ItemInfo(16861), new ItemInfo(16862), new ItemInfo(16863), new ItemInfo(16864), new ItemInfo(16865), new ItemInfo(16866), new ItemInfo(16867), new ItemInfo(16868), + new ItemInfo(16872), new ItemInfo(16873), new ItemInfo(16874), new ItemInfo(16875), new ItemInfo(16876), new ItemInfo(16877), new ItemInfo(16878), new ItemInfo(16879), + new ItemInfo(16880), new ItemInfo(16881), new ItemInfo(16882), new ItemInfo(16883), new ItemInfo(16884), new ItemInfo(16885), new ItemInfo(16886), new ItemInfo(16887), + new ItemInfo(16888), new ItemInfo(16889), new ItemInfo(16890), new ItemInfo(16891), new ItemInfo(17192), new ItemInfo(17193), new ItemInfo(17194), new ItemInfo(17195), + new ItemInfo(17196), new ItemInfo(17197), new ItemInfo(17198), new ItemInfo(17199), new ItemInfo(17200), new ItemInfo(17201), new ItemInfo(17202), new ItemInfo(17203), + new ItemInfo(17204), new ItemInfo(17205), new ItemInfo(17206), new ItemInfo(17207), new ItemInfo(17208), new ItemInfo(17209), new ItemInfo(17210), new ItemInfo(17211), + new ItemInfo(17376), new ItemInfo(17377), new ItemInfo(17378), new ItemInfo(17379), new ItemInfo(17380), new ItemInfo(17381), new ItemInfo(17382), new ItemInfo(17383), + new ItemInfo(17384), new ItemInfo(17385), new ItemInfo(17386), new ItemInfo(17387), new ItemInfo(17388), new ItemInfo(17389), new ItemInfo(17390), new ItemInfo(17391), + new ItemInfo(17392), new ItemInfo(17393), new ItemInfo(17394), new ItemInfo(17395), new ItemInfo(17396), new ItemInfo(17397), new ItemInfo(17398), new ItemInfo(17399), + new ItemInfo(17400), new ItemInfo(17401), new ItemInfo(17402), new ItemInfo(17403), new ItemInfo(17404), new ItemInfo(17405), new ItemInfo(17406), new ItemInfo(17407), + new ItemInfo(17408), new ItemInfo(17409), new ItemInfo(17410), new ItemInfo(17411), new ItemInfo(17412), new ItemInfo(17413), new ItemInfo(17414), new ItemInfo(17415), + new ItemInfo(17416), new ItemInfo(17417), new ItemInfo(17418), new ItemInfo(17419), new ItemInfo(17420), new ItemInfo(17421), new ItemInfo(17422), new ItemInfo(17423) + #endregion + }; + + private int m_Page; + + + + public AddFloorPt4Gump() + : this(0) + { } + + public AddFloorPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt5.cs new file mode 100644 index 000000000..35818caa0 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt5.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt5", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt5_OnCommand)); + } + + [Usage("AddFloorPt5")] + + public static void AddFloorPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(17424), new ItemInfo(17425), new ItemInfo(17426), new ItemInfo(17427), new ItemInfo(17428), new ItemInfo(17429), new ItemInfo(17430), new ItemInfo(17431), + new ItemInfo(17432), new ItemInfo(17433), new ItemInfo(17434), new ItemInfo(17435), new ItemInfo(17436), new ItemInfo(17437), new ItemInfo(17438), new ItemInfo(17439), + new ItemInfo(17440), new ItemInfo(17441), new ItemInfo(17442), new ItemInfo(17443), new ItemInfo(17444), new ItemInfo(17445), new ItemInfo(17446), new ItemInfo(17447), + new ItemInfo(17448), new ItemInfo(17449), new ItemInfo(17450), new ItemInfo(17451), new ItemInfo(17452), new ItemInfo(17453), new ItemInfo(17454), new ItemInfo(17455), + new ItemInfo(17456), new ItemInfo(17457), new ItemInfo(17458), new ItemInfo(17459), new ItemInfo(17460), new ItemInfo(17461), new ItemInfo(17462), new ItemInfo(17463), + new ItemInfo(17464), new ItemInfo(17465), new ItemInfo(17466), new ItemInfo(17467), new ItemInfo(17468), new ItemInfo(17469), new ItemInfo(17470), new ItemInfo(17471), + new ItemInfo(17472), new ItemInfo(17473), new ItemInfo(17474), new ItemInfo(17475), new ItemInfo(17476), new ItemInfo(17477), new ItemInfo(17478), new ItemInfo(17479), + new ItemInfo(17480), new ItemInfo(17481), new ItemInfo(17482), new ItemInfo(17483), new ItemInfo(17484), new ItemInfo(17485), new ItemInfo(17486), new ItemInfo(17487), + new ItemInfo(17488), new ItemInfo(17489), new ItemInfo(17490), new ItemInfo(17491), new ItemInfo(17492), new ItemInfo(17493), new ItemInfo(17494), new ItemInfo(17495), + new ItemInfo(17496), new ItemInfo(17497), new ItemInfo(17498), new ItemInfo(17499), new ItemInfo(17500), new ItemInfo(17501), new ItemInfo(17502), new ItemInfo(17503), + new ItemInfo(17504), new ItemInfo(17505), new ItemInfo(17506), new ItemInfo(17507), new ItemInfo(17508), new ItemInfo(17509), new ItemInfo(17510), new ItemInfo(17511), + new ItemInfo(17512), new ItemInfo(17513), new ItemInfo(17514), new ItemInfo(17515), new ItemInfo(17516), new ItemInfo(17517), new ItemInfo(17518), new ItemInfo(17519), + new ItemInfo(17520), new ItemInfo(17521), new ItemInfo(17522), new ItemInfo(17523), new ItemInfo(17524), new ItemInfo(17525), new ItemInfo(17526), new ItemInfo(17527), + new ItemInfo(17528), new ItemInfo(17529), new ItemInfo(17530), new ItemInfo(17531), new ItemInfo(17532), new ItemInfo(17533), new ItemInfo(17534), new ItemInfo(17535), + new ItemInfo(17536), new ItemInfo(17537), new ItemInfo(17538), new ItemInfo(17539), new ItemInfo(17540), new ItemInfo(17541), new ItemInfo(17542), new ItemInfo(17543), + new ItemInfo(17544), new ItemInfo(17545), new ItemInfo(17546), new ItemInfo(17547), new ItemInfo(17548), new ItemInfo(17549), new ItemInfo(17550), new ItemInfo(17551), + new ItemInfo(17552), new ItemInfo(17553), new ItemInfo(17554), new ItemInfo(17555), new ItemInfo(17556), new ItemInfo(17557), new ItemInfo(17558), new ItemInfo(17559), + new ItemInfo(17560), new ItemInfo(17561), new ItemInfo(17562), new ItemInfo(17563), new ItemInfo(17564), new ItemInfo(17565), new ItemInfo(17566), new ItemInfo(17567), + new ItemInfo(17568), new ItemInfo(17569), new ItemInfo(17570), new ItemInfo(17571), new ItemInfo(17572), new ItemInfo(17573), new ItemInfo(17574), new ItemInfo(17575), + new ItemInfo(17576), new ItemInfo(17577), new ItemInfo(17578), new ItemInfo(17579), new ItemInfo(17580), new ItemInfo(17581), new ItemInfo(17582), new ItemInfo(17583), + new ItemInfo(17584), new ItemInfo(17585), new ItemInfo(17586), new ItemInfo(17587), new ItemInfo(17588), new ItemInfo(17589), new ItemInfo(17590), new ItemInfo(17591), + new ItemInfo(17592), new ItemInfo(17593), new ItemInfo(17594), new ItemInfo(17595), new ItemInfo(17596), new ItemInfo(17597), new ItemInfo(17598), new ItemInfo(17599) + #endregion + }; + + private int m_Page; + + + + public AddFloorPt5Gump() + : this(0) + { } + + public AddFloorPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt6.cs new file mode 100644 index 000000000..5955ae158 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt6.cs @@ -0,0 +1,153 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt6Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt6", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt6_OnCommand)); + } + + [Usage("AddFloorPt6")] + + public static void AddFloorPt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt6Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(17600), new ItemInfo(18124), new ItemInfo(18125), new ItemInfo(18126), new ItemInfo(18127), new ItemInfo(18326), new ItemInfo(18327), new ItemInfo(18328), + new ItemInfo(18329), new ItemInfo(18410), new ItemInfo(18411), new ItemInfo(18412), new ItemInfo(18413), new ItemInfo(18414), new ItemInfo(18415), new ItemInfo(18416), + new ItemInfo(18417), new ItemInfo(18418), new ItemInfo(18419), new ItemInfo(18420), new ItemInfo(18421), new ItemInfo(18422), new ItemInfo(18423), new ItemInfo(18424), + new ItemInfo(18425), new ItemInfo(18426), new ItemInfo(18427), new ItemInfo(18428), new ItemInfo(18429), new ItemInfo(18430), new ItemInfo(18431), new ItemInfo(18432), + new ItemInfo(18433), new ItemInfo(18434), new ItemInfo(18435), new ItemInfo(18436), new ItemInfo(18437), new ItemInfo(18438), new ItemInfo(18439), new ItemInfo(18440), + new ItemInfo(18441), new ItemInfo(18442), new ItemInfo(18443), new ItemInfo(18444), new ItemInfo(18445), new ItemInfo(18446), new ItemInfo(18447), new ItemInfo(18448), + new ItemInfo(18449), new ItemInfo(18450), new ItemInfo(18451), new ItemInfo(18452), new ItemInfo(18453), new ItemInfo(18454), new ItemInfo(18455), new ItemInfo(18456), + new ItemInfo(18457), new ItemInfo(18458), new ItemInfo(18459), new ItemInfo(18460), new ItemInfo(18461), new ItemInfo(18462), new ItemInfo(18463), new ItemInfo(18464), + new ItemInfo(18465), new ItemInfo(18466), new ItemInfo(18467), new ItemInfo(18468), new ItemInfo(18469), new ItemInfo(18470), new ItemInfo(18471), new ItemInfo(18472), + new ItemInfo(18473), new ItemInfo(18474), new ItemInfo(18475), new ItemInfo(18476), new ItemInfo(18477), new ItemInfo(18478), new ItemInfo(18479), new ItemInfo(18480), + new ItemInfo(18481), new ItemInfo(18482), new ItemInfo(18483), new ItemInfo(18484), new ItemInfo(18485), new ItemInfo(18486), new ItemInfo(18487), new ItemInfo(18488), + new ItemInfo(18489), new ItemInfo(18490), new ItemInfo(19755), new ItemInfo(19756), new ItemInfo(19757), new ItemInfo(19758), new ItemInfo(19942), new ItemInfo(19943), + new ItemInfo(19944), new ItemInfo(19945), new ItemInfo(19946), new ItemInfo(19947), new ItemInfo(19948), new ItemInfo(19949), new ItemInfo(19950), new ItemInfo(19951), + new ItemInfo(19952), new ItemInfo(19953), new ItemInfo(19954), new ItemInfo(20328), new ItemInfo(20329), new ItemInfo(20330), new ItemInfo(20331), new ItemInfo(20332), + new ItemInfo(20333), new ItemInfo(20334), new ItemInfo(20335), new ItemInfo(20336), new ItemInfo(20337), new ItemInfo(20338), new ItemInfo(20339), new ItemInfo(20340), + new ItemInfo(20341), new ItemInfo(20342), new ItemInfo(20343), new ItemInfo(20344), new ItemInfo(20345), new ItemInfo(20702), new ItemInfo(20703), new ItemInfo(20704), + new ItemInfo(20705), new ItemInfo(20706), new ItemInfo(20707), new ItemInfo(20708), new ItemInfo(20709), new ItemInfo(20710), new ItemInfo(20711), new ItemInfo(20712), + new ItemInfo(20713), new ItemInfo(20714), new ItemInfo(20715), new ItemInfo(20716), new ItemInfo(20717), new ItemInfo(20718), new ItemInfo(20719), new ItemInfo(20720), + new ItemInfo(20721), new ItemInfo(20722), new ItemInfo(20723), new ItemInfo(20724), new ItemInfo(20725), new ItemInfo(20726), new ItemInfo(20727), new ItemInfo(20810), + new ItemInfo(20811), new ItemInfo(20812), new ItemInfo(20813), new ItemInfo(20814), new ItemInfo(20815), new ItemInfo(20816), new ItemInfo(20817), new ItemInfo(20818), + new ItemInfo(20819), new ItemInfo(20820), new ItemInfo(20821), new ItemInfo(20822), new ItemInfo(20823), new ItemInfo(20824), new ItemInfo(20825), new ItemInfo(20826) + #endregion + }; + + private int m_Page; + + + + public AddFloorPt6Gump() + : this(0) + { } + + public AddFloorPt6Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt6Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt7.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt7.cs new file mode 100644 index 000000000..b43289efa --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt7.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt7Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt7", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt7_OnCommand)); + } + + [Usage("AddFloorPt7")] + + public static void AddFloorPt7_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt7Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(20827), new ItemInfo(20828), new ItemInfo(20829), new ItemInfo(20830), new ItemInfo(20831), new ItemInfo(20832), new ItemInfo(20833), new ItemInfo(20834), + new ItemInfo(20835), new ItemInfo(20836), new ItemInfo(20837), new ItemInfo(20838), new ItemInfo(20839), new ItemInfo(20840), new ItemInfo(20841), new ItemInfo(20842), + new ItemInfo(20843), new ItemInfo(20844), new ItemInfo(20845), new ItemInfo(20846), new ItemInfo(20728), new ItemInfo(20729), new ItemInfo(20730), new ItemInfo(20731), + new ItemInfo(20732), new ItemInfo(20771), new ItemInfo(20772), new ItemInfo(20773), new ItemInfo(20774), new ItemInfo(20802), new ItemInfo(20803), new ItemInfo(20804), + new ItemInfo(20805), new ItemInfo(20806), new ItemInfo(20807), new ItemInfo(20808), new ItemInfo(20809), new ItemInfo(20852), new ItemInfo(20853), new ItemInfo(20854), + new ItemInfo(20855), new ItemInfo(20856), new ItemInfo(20857), new ItemInfo(20858), new ItemInfo(20859), new ItemInfo(20860), new ItemInfo(20861), new ItemInfo(20862), + new ItemInfo(20863), new ItemInfo(20864), new ItemInfo(20865), new ItemInfo(20866), new ItemInfo(20867), new ItemInfo(20871), new ItemInfo(20872), new ItemInfo(20873), + new ItemInfo(20874), new ItemInfo(20875), new ItemInfo(20876), new ItemInfo(20877), new ItemInfo(20878), new ItemInfo(20879), new ItemInfo(20880), new ItemInfo(20881), + new ItemInfo(20882), new ItemInfo(20883), new ItemInfo(20884), new ItemInfo(20885), new ItemInfo(20886), new ItemInfo(20887), new ItemInfo(20888), new ItemInfo(20890), + new ItemInfo(20891), new ItemInfo(20892), new ItemInfo(20893), new ItemInfo(20894), new ItemInfo(20895), new ItemInfo(20896), new ItemInfo(20897), new ItemInfo(20898), + new ItemInfo(20899), new ItemInfo(20900), new ItemInfo(20901), new ItemInfo(20902), new ItemInfo(20903), new ItemInfo(20904), new ItemInfo(20905), new ItemInfo(20906), + new ItemInfo(20907), new ItemInfo(20908), new ItemInfo(20909), new ItemInfo(20910), new ItemInfo(20911), new ItemInfo(20912), new ItemInfo(20913), new ItemInfo(20914), + new ItemInfo(20915), new ItemInfo(20916), new ItemInfo(20917), new ItemInfo(20918), new ItemInfo(20919), new ItemInfo(20920), new ItemInfo(20921), new ItemInfo(20922), + new ItemInfo(20923), new ItemInfo(20924), new ItemInfo(20925), new ItemInfo(20926), new ItemInfo(20927), new ItemInfo(20928), new ItemInfo(20929), new ItemInfo(20930), + new ItemInfo(20931), new ItemInfo(20932), new ItemInfo(20933), new ItemInfo(20934), new ItemInfo(20935), new ItemInfo(20936), new ItemInfo(20937), new ItemInfo(20938), + new ItemInfo(20939), new ItemInfo(20940), new ItemInfo(20941), new ItemInfo(20942), new ItemInfo(20943), new ItemInfo(20944), new ItemInfo(20945), new ItemInfo(20946), + new ItemInfo(20947), new ItemInfo(20948), new ItemInfo(20949), new ItemInfo(20950), new ItemInfo(20951), new ItemInfo(20952), new ItemInfo(20953), new ItemInfo(20954), + new ItemInfo(20955), new ItemInfo(20956), new ItemInfo(20957), new ItemInfo(20958), new ItemInfo(20959), new ItemInfo(20960), new ItemInfo(20961), new ItemInfo(20962), + new ItemInfo(20963), new ItemInfo(20964), new ItemInfo(20965), new ItemInfo(20966), new ItemInfo(20967), new ItemInfo(20968), new ItemInfo(20969), new ItemInfo(20970), + new ItemInfo(20971), new ItemInfo(20972), new ItemInfo(20973), new ItemInfo(20974), new ItemInfo(20975), new ItemInfo(20976), new ItemInfo(20977), new ItemInfo(20978), + new ItemInfo(20979), new ItemInfo(20980), new ItemInfo(20981), new ItemInfo(20982), new ItemInfo(20983), new ItemInfo(20984), new ItemInfo(20985), new ItemInfo(20986), + new ItemInfo(20987), new ItemInfo(20988), new ItemInfo(20989), new ItemInfo(20990), new ItemInfo(20991), new ItemInfo(20992), new ItemInfo(20993), new ItemInfo(20994) + #endregion + }; + + private int m_Page; + + + + public AddFloorPt7Gump() + : this(0) + { } + + public AddFloorPt7Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt7Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt8.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt8.cs new file mode 100644 index 000000000..48505b203 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Floors/FloorPt8.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddFloorPt8Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddFloorPt8", AccessLevel.GameMaster, new CommandEventHandler(AddFloorPt8_OnCommand)); + } + + [Usage("AddFloorPt8")] + + public static void AddFloorPt8_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddFloorPt8Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Floors + new ItemInfo(20995), new ItemInfo(20996), new ItemInfo(20997), new ItemInfo(20998), new ItemInfo(20999), new ItemInfo(21000), new ItemInfo(21001), new ItemInfo(21002), + new ItemInfo(21003), new ItemInfo(21004), new ItemInfo(21005), new ItemInfo(21006), new ItemInfo(21007), new ItemInfo(21008), new ItemInfo(21009), new ItemInfo(21010), + new ItemInfo(21011), new ItemInfo(21012), new ItemInfo(21013), new ItemInfo(21014), new ItemInfo(21015), new ItemInfo(21016), new ItemInfo(21017), new ItemInfo(21018), + new ItemInfo(21019), new ItemInfo(21020), new ItemInfo(21021), new ItemInfo(21022), new ItemInfo(21023), new ItemInfo(21024), new ItemInfo(21025), new ItemInfo(21026), + new ItemInfo(21027), new ItemInfo(21028), new ItemInfo(21029), new ItemInfo(21030), new ItemInfo(21031), new ItemInfo(21032), new ItemInfo(21033), new ItemInfo(21034), + new ItemInfo(21035), new ItemInfo(21036), new ItemInfo(21037), new ItemInfo(21038), new ItemInfo(21039), new ItemInfo(21040), new ItemInfo(21041), new ItemInfo(21042), + new ItemInfo(21043), new ItemInfo(21044), new ItemInfo(21045), new ItemInfo(21046), new ItemInfo(21047), new ItemInfo(21048), new ItemInfo(21049), new ItemInfo(21050), + new ItemInfo(21051), new ItemInfo(21052), new ItemInfo(21053), new ItemInfo(21054), new ItemInfo(21055), new ItemInfo(21056), new ItemInfo(21057), new ItemInfo(21058), + new ItemInfo(21059), new ItemInfo(21060), new ItemInfo(21061), new ItemInfo(21062), new ItemInfo(21063), new ItemInfo(21064), new ItemInfo(21065), new ItemInfo(21066), + new ItemInfo(21067), new ItemInfo(21068), new ItemInfo(21069), new ItemInfo(21070), new ItemInfo(21071), new ItemInfo(21072), new ItemInfo(21073), new ItemInfo(21074), + new ItemInfo(21075), new ItemInfo(21076), new ItemInfo(21077), new ItemInfo(21078), new ItemInfo(21079), new ItemInfo(21080), new ItemInfo(21081), new ItemInfo(21082), + new ItemInfo(21083), new ItemInfo(21084), new ItemInfo(21085), new ItemInfo(21086), new ItemInfo(21087), new ItemInfo(21088), new ItemInfo(21089), new ItemInfo(21090), + new ItemInfo(21091), new ItemInfo(21092), new ItemInfo(21093), new ItemInfo(21094), new ItemInfo(21095), new ItemInfo(21096), new ItemInfo(21097), new ItemInfo(21098), + new ItemInfo(21099), new ItemInfo(21100), new ItemInfo(21101), new ItemInfo(21102), new ItemInfo(21103), new ItemInfo(21104), new ItemInfo(21105), new ItemInfo(21106), + new ItemInfo(21107), new ItemInfo(21108), new ItemInfo(21109), new ItemInfo(21110), new ItemInfo(21111), new ItemInfo(21112), new ItemInfo(21113), new ItemInfo(21114), + new ItemInfo(21115), new ItemInfo(21116), new ItemInfo(21117), new ItemInfo(21118), new ItemInfo(21119), new ItemInfo(21120), new ItemInfo(21121), new ItemInfo(21122), + new ItemInfo(21123), new ItemInfo(21124), new ItemInfo(21125), new ItemInfo(21126), new ItemInfo(21127), new ItemInfo(21128), new ItemInfo(21129), new ItemInfo(21131), + new ItemInfo(21132), new ItemInfo(21133), new ItemInfo(21134), new ItemInfo(21135), new ItemInfo(21136), new ItemInfo(21137), new ItemInfo(21138), new ItemInfo(21139), + new ItemInfo(21140), new ItemInfo(21141), new ItemInfo(21142), new ItemInfo(21143), new ItemInfo(21144), new ItemInfo(21145), new ItemInfo(21146), new ItemInfo(21147), + new ItemInfo(21148), new ItemInfo(21152), new ItemInfo(21153), new ItemInfo(21154), new ItemInfo(21155), new ItemInfo(21156), new ItemInfo(21157), new ItemInfo(21158), + new ItemInfo(21159), new ItemInfo(21160), new ItemInfo(21161), new ItemInfo(21162), new ItemInfo(21163), new ItemInfo(21164), new ItemInfo(21165), new ItemInfo(21166), + new ItemInfo(21167), new ItemInfo(21173), new ItemInfo(21174), new ItemInfo(21175), new ItemInfo(21176), new ItemInfo(21177), new ItemInfo(21178), new ItemInfo(21179), + new ItemInfo(21180), new ItemInfo(21181), new ItemInfo(21182), new ItemInfo(21183), new ItemInfo(21184), new ItemInfo(21185), new ItemInfo(21186), new ItemInfo(21194), + new ItemInfo(21195), new ItemInfo(21196), new ItemInfo(21197), new ItemInfo(21198), new ItemInfo(21199), new ItemInfo(21200), new ItemInfo(21201), new ItemInfo(21202), + new ItemInfo(21203), new ItemInfo(21204), new ItemInfo(21205) + #endregion + }; + + private int m_Page; + + + + public AddFloorPt8Gump() + : this(0) + { } + + public AddFloorPt8Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddFloorPt8Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt1.cs new file mode 100644 index 000000000..96162d698 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt1.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGroundStPt1Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGroundStPt1", AccessLevel.GameMaster, new CommandEventHandler(AddGroundStPt1_OnCommand)); + } + + [Usage("AddGroundStPt1")] + + public static void AddGroundStPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGroundStPt1Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region GroundSts + new ItemInfo(1339), new ItemInfo(1340), new ItemInfo(1341), new ItemInfo(1342), new ItemInfo(1343), new ItemInfo(1344), new ItemInfo(1345), new ItemInfo(1346), + new ItemInfo(1347), new ItemInfo(1348), new ItemInfo(1349), new ItemInfo(1350), new ItemInfo(1351), new ItemInfo(1352), new ItemInfo(1353), new ItemInfo(1354), + new ItemInfo(1355), new ItemInfo(1356), new ItemInfo(1357), new ItemInfo(1358), new ItemInfo(1359), new ItemInfo(1386), new ItemInfo(4846), new ItemInfo(4847), + new ItemInfo(4848), new ItemInfo(4849), new ItemInfo(4850), new ItemInfo(4852), new ItemInfo(4853), new ItemInfo(4854), new ItemInfo(4855), new ItemInfo(4856), + new ItemInfo(4857), new ItemInfo(4858), new ItemInfo(4859), new ItemInfo(4860), new ItemInfo(4861), new ItemInfo(4862), new ItemInfo(4864), new ItemInfo(4865), + new ItemInfo(4866), new ItemInfo(4867), new ItemInfo(4868), new ItemInfo(4870), new ItemInfo(4871), new ItemInfo(4872), new ItemInfo(4873), new ItemInfo(4874), + new ItemInfo(4876), new ItemInfo(4877), new ItemInfo(4878), new ItemInfo(4879), new ItemInfo(4880), new ItemInfo(4882), new ItemInfo(4883), new ItemInfo(4884), + new ItemInfo(4885), new ItemInfo(4886), new ItemInfo(4888), new ItemInfo(4889), new ItemInfo(4890), new ItemInfo(4891), new ItemInfo(4892), new ItemInfo(4894), + new ItemInfo(4895), new ItemInfo(4896), new ItemInfo(4897), new ItemInfo(4898), new ItemInfo(4899), new ItemInfo(4900), new ItemInfo(4901), new ItemInfo(4902), + new ItemInfo(4903), new ItemInfo(4904), new ItemInfo(4905), new ItemInfo(4906), new ItemInfo(4907), new ItemInfo(4908), new ItemInfo(4909), new ItemInfo(4910), + new ItemInfo(4911), new ItemInfo(4912), new ItemInfo(4913), new ItemInfo(4914), new ItemInfo(4915), new ItemInfo(4916), new ItemInfo(4917), new ItemInfo(4918), + new ItemInfo(4919), new ItemInfo(4920), new ItemInfo(4921), new ItemInfo(4922), new ItemInfo(4923), new ItemInfo(4924), new ItemInfo(4925), new ItemInfo(4926), + new ItemInfo(4927), new ItemInfo(4928), new ItemInfo(4929), new ItemInfo(4930), new ItemInfo(4931), new ItemInfo(4932), new ItemInfo(4933), new ItemInfo(4934), + new ItemInfo(4935), new ItemInfo(4936), new ItemInfo(4937), new ItemInfo(4938), new ItemInfo(4939), new ItemInfo(4940), new ItemInfo(4941), new ItemInfo(4974), + new ItemInfo(4990), new ItemInfo(4992), new ItemInfo(4994), new ItemInfo(6013), new ItemInfo(6014), new ItemInfo(6015), new ItemInfo(6016), new ItemInfo(6017), + new ItemInfo(6018), new ItemInfo(6019), new ItemInfo(6020), new ItemInfo(6021), new ItemInfo(6022), new ItemInfo(6023), new ItemInfo(6024), new ItemInfo(6025), + new ItemInfo(6038), new ItemInfo(6039), new ItemInfo(6040), new ItemInfo(6041), new ItemInfo(6042), new ItemInfo(6043), new ItemInfo(6044), new ItemInfo(6045), + new ItemInfo(6046), new ItemInfo(6047), new ItemInfo(6048), new ItemInfo(6049), new ItemInfo(6050), new ItemInfo(6051), new ItemInfo(6052), new ItemInfo(6053), + new ItemInfo(6054), new ItemInfo(6055), new ItemInfo(6056), new ItemInfo(6057), new ItemInfo(6058), new ItemInfo(6059), new ItemInfo(6060), new ItemInfo(6061), + new ItemInfo(6062), new ItemInfo(6063), new ItemInfo(6064), new ItemInfo(6065), new ItemInfo(6066), new ItemInfo(6077), new ItemInfo(6078), new ItemInfo(6079), + new ItemInfo(6080), new ItemInfo(6081), new ItemInfo(6082), new ItemInfo(6083), new ItemInfo(6084), new ItemInfo(6085), new ItemInfo(6086), new ItemInfo(6087), + new ItemInfo(6088), new ItemInfo(6089), new ItemInfo(6090), new ItemInfo(6091), new ItemInfo(6092), new ItemInfo(11070), new ItemInfo(11071), new ItemInfo(11073) + #endregion + }; + + private int m_Page; + + + + public AddGroundStPt1Gump() + : this(0) + { } + + public AddGroundStPt1Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGroundStPt1Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt2.cs new file mode 100644 index 000000000..ee15e7c7c --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt2.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGroundStPt2Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGroundStPt2", AccessLevel.GameMaster, new CommandEventHandler(AddGroundStPt2_OnCommand)); + } + + [Usage("AddGroundStPt2")] + + public static void AddGroundStPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGroundStPt2Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region GroundSts + new ItemInfo(11075), new ItemInfo(11078), new ItemInfo(11082), new ItemInfo(11084), new ItemInfo(11085), new ItemInfo(11087), new ItemInfo(11088), new ItemInfo(11090), + new ItemInfo(11091), new ItemInfo(11092), new ItemInfo(11094), new ItemInfo(11096), new ItemInfo(11100), new ItemInfo(11102), new ItemInfo(11104), new ItemInfo(11105), + new ItemInfo(11106), new ItemInfo(11107), new ItemInfo(11108), new ItemInfo(11109), new ItemInfo(11778), new ItemInfo(11779), new ItemInfo(11780), new ItemInfo(11781), + new ItemInfo(11782), new ItemInfo(11783), new ItemInfo(11784), new ItemInfo(11785), new ItemInfo(11786), new ItemInfo(11787), new ItemInfo(11788), new ItemInfo(11789), + new ItemInfo(11790), new ItemInfo(11791), new ItemInfo(11792), new ItemInfo(11793), new ItemInfo(11794), new ItemInfo(11795), new ItemInfo(11796), new ItemInfo(11797), + new ItemInfo(11798), new ItemInfo(11799), new ItemInfo(11800), new ItemInfo(11801), new ItemInfo(11802), new ItemInfo(11803), new ItemInfo(11804), new ItemInfo(11805), + new ItemInfo(11806), new ItemInfo(11807), new ItemInfo(11808), new ItemInfo(11809), new ItemInfo(11810), new ItemInfo(11811), new ItemInfo(11812), new ItemInfo(11813), + new ItemInfo(11814), new ItemInfo(11815), new ItemInfo(11816), new ItemInfo(11817), new ItemInfo(11818), new ItemInfo(11819), new ItemInfo(11820), new ItemInfo(11821), + new ItemInfo(11822), new ItemInfo(11823), new ItemInfo(11824), new ItemInfo(11825), new ItemInfo(11826), new ItemInfo(11827), new ItemInfo(11828), new ItemInfo(11829), + new ItemInfo(11830), new ItemInfo(11831), new ItemInfo(11832), new ItemInfo(11833), new ItemInfo(11834), new ItemInfo(11835), new ItemInfo(11840), new ItemInfo(11841), + new ItemInfo(11842), new ItemInfo(11843), new ItemInfo(11844), new ItemInfo(11845), new ItemInfo(11881), new ItemInfo(11882), new ItemInfo(11883), new ItemInfo(11884), + new ItemInfo(11885), new ItemInfo(11886), new ItemInfo(11887), new ItemInfo(11888), new ItemInfo(11889), new ItemInfo(11890), new ItemInfo(11891), new ItemInfo(11892), + new ItemInfo(11893), new ItemInfo(11894), new ItemInfo(11895), new ItemInfo(11896), new ItemInfo(11897), new ItemInfo(11898), new ItemInfo(11899), new ItemInfo(11900), + new ItemInfo(11901), new ItemInfo(11902), new ItemInfo(11903), new ItemInfo(11904), new ItemInfo(11905), new ItemInfo(11906), new ItemInfo(11907), new ItemInfo(11908), + new ItemInfo(11909), new ItemInfo(11910), new ItemInfo(11911), new ItemInfo(11912), new ItemInfo(11913), new ItemInfo(11914), new ItemInfo(11915), new ItemInfo(11916), + new ItemInfo(11917), new ItemInfo(11918), new ItemInfo(11919), new ItemInfo(11920), new ItemInfo(11921), new ItemInfo(11922), new ItemInfo(11923), new ItemInfo(11924), + new ItemInfo(11925), new ItemInfo(11926), new ItemInfo(11927), new ItemInfo(11928), new ItemInfo(11929), new ItemInfo(11930), new ItemInfo(11931), new ItemInfo(11932), + new ItemInfo(11933), new ItemInfo(11934), new ItemInfo(11935), new ItemInfo(11936), new ItemInfo(11937), new ItemInfo(11938), new ItemInfo(11939), new ItemInfo(11940), + new ItemInfo(11941), new ItemInfo(11942), new ItemInfo(11943), new ItemInfo(11944), new ItemInfo(11945), new ItemInfo(11946), new ItemInfo(11947), new ItemInfo(11948), + new ItemInfo(11949), new ItemInfo(11950), new ItemInfo(11951), new ItemInfo(11952), new ItemInfo(11953), new ItemInfo(11954), new ItemInfo(11955), new ItemInfo(11956), + new ItemInfo(11957), new ItemInfo(11958), new ItemInfo(11959), new ItemInfo(11960), new ItemInfo(11961), new ItemInfo(11962), new ItemInfo(11963), new ItemInfo(11964), + new ItemInfo(11965), new ItemInfo(11966), new ItemInfo(11967), new ItemInfo(11968), new ItemInfo(11969), new ItemInfo(11970), new ItemInfo(11971), new ItemInfo(11972) + #endregion + }; + + private int m_Page; + + + + public AddGroundStPt2Gump() + : this(0) + { } + + public AddGroundStPt2Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGroundStPt2Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt3.cs new file mode 100644 index 000000000..b3de57dcb --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt3.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGroundStPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGroundStPt3", AccessLevel.GameMaster, new CommandEventHandler(AddGroundStPt3_OnCommand)); + } + + [Usage("AddGroundStPt3")] + + public static void AddGroundStPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGroundStPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region GroundSts + new ItemInfo(11973), new ItemInfo(11974), new ItemInfo(11975), new ItemInfo(11976), new ItemInfo(11977), new ItemInfo(11978), new ItemInfo(11979), new ItemInfo(11980), + new ItemInfo(11981), new ItemInfo(11982), new ItemInfo(11983), new ItemInfo(11984), new ItemInfo(11985), new ItemInfo(11986), new ItemInfo(11987), new ItemInfo(11988), + new ItemInfo(11989), new ItemInfo(11990), new ItemInfo(11991), new ItemInfo(11992), new ItemInfo(11993), new ItemInfo(11994), new ItemInfo(11995), new ItemInfo(12001), + new ItemInfo(12002), new ItemInfo(12003), new ItemInfo(12004), new ItemInfo(12005), new ItemInfo(12006), new ItemInfo(12007), new ItemInfo(12008), new ItemInfo(12009), + new ItemInfo(12010), new ItemInfo(12011), new ItemInfo(12012), new ItemInfo(12013), new ItemInfo(12014), new ItemInfo(12015), new ItemInfo(12016), new ItemInfo(12017), + new ItemInfo(12018), new ItemInfo(12019), new ItemInfo(12020), new ItemInfo(12021), new ItemInfo(12022), new ItemInfo(12023), new ItemInfo(12024), new ItemInfo(12025), + new ItemInfo(12026), new ItemInfo(12027), new ItemInfo(12028), new ItemInfo(12029), new ItemInfo(12030), new ItemInfo(12031), new ItemInfo(12032), new ItemInfo(12033), + new ItemInfo(12034), new ItemInfo(12035), new ItemInfo(12036), new ItemInfo(12037), new ItemInfo(12038), new ItemInfo(12039), new ItemInfo(12040), new ItemInfo(12041), + new ItemInfo(12042), new ItemInfo(12043), new ItemInfo(12044), new ItemInfo(12045), new ItemInfo(12046), new ItemInfo(12130), new ItemInfo(12131), new ItemInfo(12132), + new ItemInfo(12133), new ItemInfo(12134), new ItemInfo(12135), new ItemInfo(12136), new ItemInfo(12137), new ItemInfo(12138), new ItemInfo(12139), new ItemInfo(12140), + new ItemInfo(12141), new ItemInfo(12142), new ItemInfo(12143), new ItemInfo(12144), new ItemInfo(12145), new ItemInfo(12146), new ItemInfo(12147), new ItemInfo(12148), + new ItemInfo(12149), new ItemInfo(12150), new ItemInfo(12151), new ItemInfo(12152), new ItemInfo(12153), new ItemInfo(12154), new ItemInfo(12155), new ItemInfo(12156), + new ItemInfo(12157), new ItemInfo(12158), new ItemInfo(12159), new ItemInfo(12160), new ItemInfo(12161), new ItemInfo(12162), new ItemInfo(12163), new ItemInfo(12164), + new ItemInfo(12165), new ItemInfo(12166), new ItemInfo(12167), new ItemInfo(12168), new ItemInfo(12169), new ItemInfo(12170), new ItemInfo(12171), new ItemInfo(12172), + new ItemInfo(12173), new ItemInfo(12174), new ItemInfo(12175), new ItemInfo(12176), new ItemInfo(12177), new ItemInfo(12178), new ItemInfo(12179), new ItemInfo(12180), + new ItemInfo(12181), new ItemInfo(12182), new ItemInfo(12183), new ItemInfo(12184), new ItemInfo(12185), new ItemInfo(12186), new ItemInfo(12187), new ItemInfo(12188), + new ItemInfo(12189), new ItemInfo(12190), new ItemInfo(12191), new ItemInfo(12192), new ItemInfo(12193), new ItemInfo(12194), new ItemInfo(12195), new ItemInfo(12196), + new ItemInfo(12197), new ItemInfo(12198), new ItemInfo(12199), new ItemInfo(12200), new ItemInfo(12201), new ItemInfo(12202), new ItemInfo(12203), new ItemInfo(12204), + new ItemInfo(12205), new ItemInfo(12206), new ItemInfo(12207), new ItemInfo(12208), new ItemInfo(12209), new ItemInfo(12210), new ItemInfo(12211), new ItemInfo(12212), + new ItemInfo(12213), new ItemInfo(12519), new ItemInfo(12520), new ItemInfo(12521), new ItemInfo(12522), new ItemInfo(12523), new ItemInfo(12524), new ItemInfo(12525), + new ItemInfo(12526), new ItemInfo(12527), new ItemInfo(12528), new ItemInfo(12529), new ItemInfo(12530), new ItemInfo(12531), new ItemInfo(12532), new ItemInfo(12533), + new ItemInfo(12534), new ItemInfo(12535), new ItemInfo(12536), new ItemInfo(12537), new ItemInfo(12538), new ItemInfo(12539), new ItemInfo(12540), new ItemInfo(12541) + #endregion + }; + + private int m_Page; + + + + public AddGroundStPt3Gump() + : this(0) + { } + + public AddGroundStPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGroundStPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt4.cs new file mode 100644 index 000000000..026af2f6f --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt4.cs @@ -0,0 +1,155 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGroundStPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGroundStPt4", AccessLevel.GameMaster, new CommandEventHandler(AddGroundStPt4_OnCommand)); + } + + [Usage("AddGroundStPt4")] + + public static void AddGroundStPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGroundStPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region GroundSts + new ItemInfo(12542), new ItemInfo(12543), new ItemInfo(12544), new ItemInfo(12545), new ItemInfo(12546), new ItemInfo(12547), new ItemInfo(12548), new ItemInfo(12549), + new ItemInfo(12550), new ItemInfo(12551), new ItemInfo(12552), new ItemInfo(12553), new ItemInfo(12554), new ItemInfo(12788), new ItemInfo(12789), new ItemInfo(12790), + new ItemInfo(12791), new ItemInfo(12792), new ItemInfo(12793), new ItemInfo(12794), new ItemInfo(12795), new ItemInfo(12809), new ItemInfo(12810), new ItemInfo(12813), + new ItemInfo(12814), new ItemInfo(12815), new ItemInfo(12816), new ItemInfo(12817), new ItemInfo(12819), new ItemInfo(12820), new ItemInfo(12821), new ItemInfo(12822), + new ItemInfo(12823), new ItemInfo(12824), new ItemInfo(12826), new ItemInfo(12827), new ItemInfo(12828), new ItemInfo(12829), new ItemInfo(12830), new ItemInfo(12832), + new ItemInfo(12833), new ItemInfo(12834), new ItemInfo(12835), new ItemInfo(12836), new ItemInfo(12838), new ItemInfo(12839), new ItemInfo(12840), new ItemInfo(12841), + new ItemInfo(12842), new ItemInfo(12844), new ItemInfo(12845), new ItemInfo(12846), new ItemInfo(12847), new ItemInfo(12848), new ItemInfo(12849), new ItemInfo(12850), + new ItemInfo(12851), new ItemInfo(12852), new ItemInfo(12854), new ItemInfo(12855), new ItemInfo(12856), new ItemInfo(12857), new ItemInfo(12858), new ItemInfo(12859), + new ItemInfo(12860), new ItemInfo(12861), new ItemInfo(12862), new ItemInfo(12863), new ItemInfo(12865), new ItemInfo(12866), new ItemInfo(12867), new ItemInfo(12868), + new ItemInfo(12869), new ItemInfo(12870), new ItemInfo(12871), new ItemInfo(12872), new ItemInfo(12873), new ItemInfo(12874), new ItemInfo(12875), new ItemInfo(12876), + new ItemInfo(12877), new ItemInfo(12878), new ItemInfo(12879), new ItemInfo(12880), new ItemInfo(12881), new ItemInfo(12882), new ItemInfo(12883), new ItemInfo(12884), + new ItemInfo(12885), new ItemInfo(12886), new ItemInfo(12887), new ItemInfo(12888), new ItemInfo(12889), new ItemInfo(12890), new ItemInfo(12891), new ItemInfo(12892), + new ItemInfo(12893), new ItemInfo(12894), new ItemInfo(12895), new ItemInfo(12896), new ItemInfo(12897), new ItemInfo(12898), new ItemInfo(12899), new ItemInfo(12900), + new ItemInfo(12901), new ItemInfo(12902), new ItemInfo(12903), new ItemInfo(12904), new ItemInfo(12905), new ItemInfo(12906), new ItemInfo(12907), new ItemInfo(12908), + new ItemInfo(12909), new ItemInfo(12910), new ItemInfo(12911), new ItemInfo(12912), new ItemInfo(12913), new ItemInfo(12914), new ItemInfo(12915), new ItemInfo(12916), + new ItemInfo(12917), new ItemInfo(12918), new ItemInfo(12919), new ItemInfo(12920), new ItemInfo(12921), new ItemInfo(12922), new ItemInfo(12923), new ItemInfo(12924), + new ItemInfo(12925), new ItemInfo(12926), new ItemInfo(12927), new ItemInfo(12928), new ItemInfo(12929), new ItemInfo(12930), new ItemInfo(12931), new ItemInfo(12932), + new ItemInfo(12933), new ItemInfo(12934), new ItemInfo(12935), new ItemInfo(12936), new ItemInfo(12937), new ItemInfo(12938), new ItemInfo(12939), new ItemInfo(12940), + new ItemInfo(12941), new ItemInfo(12942), new ItemInfo(12943), new ItemInfo(12944), new ItemInfo(12945), new ItemInfo(12946), new ItemInfo(12947), new ItemInfo(12948), + new ItemInfo(12949), new ItemInfo(12950), new ItemInfo(12951), new ItemInfo(12952), new ItemInfo(12953), new ItemInfo(12954), new ItemInfo(12955), new ItemInfo(12956), + new ItemInfo(12957), new ItemInfo(12958), new ItemInfo(12959), new ItemInfo(12960), new ItemInfo(12961), new ItemInfo(12962), new ItemInfo(12963), new ItemInfo(12964), + new ItemInfo(12965), new ItemInfo(12966), new ItemInfo(12967), new ItemInfo(12968), new ItemInfo(12969), new ItemInfo(12970), new ItemInfo(12971), new ItemInfo(12972), + new ItemInfo(12973), new ItemInfo(12974), new ItemInfo(12975), new ItemInfo(12976), new ItemInfo(12977), new ItemInfo(13001), new ItemInfo(13002), new ItemInfo(13371) + #endregion + }; + + private int m_Page; + + + + public AddGroundStPt4Gump() + : this(0) + { } + + public AddGroundStPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGroundStPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt5.cs new file mode 100644 index 000000000..2811e64c9 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Ground/GroundPt5.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddGroundStPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddGroundStPt5", AccessLevel.GameMaster, new CommandEventHandler(AddGroundStPt5_OnCommand)); + } + + [Usage("AddGroundStPt5")] + + public static void AddGroundStPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddGroundStPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region GroundSts + new ItemInfo(13372), new ItemInfo(13373), new ItemInfo(13374), new ItemInfo(13375), new ItemInfo(13376), new ItemInfo(13377), new ItemInfo(13378), new ItemInfo(13379), + new ItemInfo(13380), new ItemInfo(13381), new ItemInfo(13384), new ItemInfo(13385), new ItemInfo(13386), new ItemInfo(13387), new ItemInfo(13388), new ItemInfo(13390), + new ItemInfo(13391), new ItemInfo(13392), new ItemInfo(13393), new ItemInfo(13394), new ItemInfo(13395), new ItemInfo(13396), new ItemInfo(13397), new ItemInfo(13398), + new ItemInfo(13399), new ItemInfo(13401), new ItemInfo(13402), new ItemInfo(13403), new ItemInfo(13404), new ItemInfo(13405), new ItemInfo(13406), new ItemInfo(13407), + new ItemInfo(13408), new ItemInfo(13410), new ItemInfo(13411), new ItemInfo(13412), new ItemInfo(13413), new ItemInfo(13414), new ItemInfo(13415), new ItemInfo(13416), + new ItemInfo(13417), new ItemInfo(13418), new ItemInfo(13419), new ItemInfo(13420), new ItemInfo(13422), new ItemInfo(13423), new ItemInfo(13424), new ItemInfo(13425), + new ItemInfo(13426), new ItemInfo(13427), new ItemInfo(13428), new ItemInfo(13429), new ItemInfo(13430), new ItemInfo(13431), new ItemInfo(13432), new ItemInfo(13433), + new ItemInfo(13434), new ItemInfo(13435), new ItemInfo(13436), new ItemInfo(13437), new ItemInfo(13438), new ItemInfo(13439), new ItemInfo(13440), new ItemInfo(13441), + new ItemInfo(13442), new ItemInfo(13443), new ItemInfo(13444), new ItemInfo(13445), new ItemInfo(13456), new ItemInfo(13457), new ItemInfo(13458), new ItemInfo(13459), + new ItemInfo(13460), new ItemInfo(13461), new ItemInfo(13462), new ItemInfo(13463), new ItemInfo(13464), new ItemInfo(13465), new ItemInfo(13466), new ItemInfo(13467), + new ItemInfo(13468), new ItemInfo(13469), new ItemInfo(13470), new ItemInfo(13471), new ItemInfo(13472), new ItemInfo(13473), new ItemInfo(13474), new ItemInfo(13475), + new ItemInfo(13476), new ItemInfo(13477), new ItemInfo(13478), new ItemInfo(13479), new ItemInfo(13480), new ItemInfo(13481), new ItemInfo(13482), new ItemInfo(13483), + new ItemInfo(13493), new ItemInfo(13494), new ItemInfo(13495), new ItemInfo(13496), new ItemInfo(13497), new ItemInfo(13498), new ItemInfo(13499), new ItemInfo(13501), + new ItemInfo(13502), new ItemInfo(13503), new ItemInfo(13504), new ItemInfo(13506), new ItemInfo(13507), new ItemInfo(13508), new ItemInfo(13509), new ItemInfo(13511), + new ItemInfo(13512), new ItemInfo(13513), new ItemInfo(13514), new ItemInfo(13521), new ItemInfo(13522), new ItemInfo(13523), new ItemInfo(13524), new ItemInfo(13525), + new ItemInfo(13613), new ItemInfo(13614), new ItemInfo(13615), new ItemInfo(13616), new ItemInfo(13638), new ItemInfo(13639), new ItemInfo(13640), new ItemInfo(13641), + new ItemInfo(13642), new ItemInfo(13643), new ItemInfo(13644), new ItemInfo(13645), new ItemInfo(13646), new ItemInfo(13647), new ItemInfo(13648), new ItemInfo(13649), + new ItemInfo(13650), new ItemInfo(13651), new ItemInfo(13652), new ItemInfo(13653), new ItemInfo(13654), new ItemInfo(13655), new ItemInfo(13656), new ItemInfo(13657), + new ItemInfo(13658), new ItemInfo(13659), new ItemInfo(13660), new ItemInfo(13661), new ItemInfo(13662), new ItemInfo(13663), new ItemInfo(13664), new ItemInfo(13665), + new ItemInfo(15088), new ItemInfo(15089), new ItemInfo(15090), new ItemInfo(15091), new ItemInfo(15092), new ItemInfo(15093), new ItemInfo(15094), new ItemInfo(15095), + new ItemInfo(15096), new ItemInfo(15126), new ItemInfo(15127), new ItemInfo(15128), new ItemInfo(15129), new ItemInfo(15130), new ItemInfo(15131), new ItemInfo(15132), + new ItemInfo(15133), new ItemInfo(15134), new ItemInfo(15135), new ItemInfo(15136), new ItemInfo(15137), new ItemInfo(15138), new ItemInfo(15139), new ItemInfo(15140), + new ItemInfo(15141), new ItemInfo(15142), new ItemInfo(15143), new ItemInfo(15144), new ItemInfo(15145), new ItemInfo(15146), new ItemInfo(15147), new ItemInfo(15148), + new ItemInfo(15149), new ItemInfo(15150), new ItemInfo(15151), new ItemInfo(15152), new ItemInfo(15153), new ItemInfo(15154), new ItemInfo(15155), new ItemInfo(15156), + new ItemInfo(15157), new ItemInfo(15158), new ItemInfo(15159) + #endregion + }; + + private int m_Page; + + + + public AddGroundStPt5Gump() + : this(0) + { } + + public AddGroundStPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddGroundStPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/Customs/RoofsPt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/Customs/RoofsPt5.cs new file mode 100644 index 000000000..72f7d6377 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/Customs/RoofsPt5.cs @@ -0,0 +1,142 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddRoofPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddRoofPt5", AccessLevel.GameMaster, new CommandEventHandler(AddRoofPt5_OnCommand)); + } + + [Usage("AddRoofPt5")] + + public static void AddRoofPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddRoofPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Roofs + new ItemInfo(1789), new ItemInfo(1790), new ItemInfo(1791), new ItemInfo(1792), + new ItemInfo(40297), new ItemInfo(40298), + new ItemInfo(40299), new ItemInfo(40300), new ItemInfo(40301), new ItemInfo(40302), new ItemInfo(40303), new ItemInfo(40304), new ItemInfo(40305), new ItemInfo(40306), + new ItemInfo(40307), new ItemInfo(40308), new ItemInfo(40309), new ItemInfo(40310), new ItemInfo(40311), new ItemInfo(40312), new ItemInfo(40313), new ItemInfo(40314), + new ItemInfo(40315), new ItemInfo(40316), new ItemInfo(40317), new ItemInfo(40318), new ItemInfo(40319), new ItemInfo(40320), new ItemInfo(40321), new ItemInfo(40322), + new ItemInfo(40323), new ItemInfo(40324), new ItemInfo(40325), new ItemInfo(40326), new ItemInfo(40327), new ItemInfo(40328), new ItemInfo(40329), new ItemInfo(40330), + new ItemInfo(40331), new ItemInfo(40332), new ItemInfo(40333), new ItemInfo(40334), new ItemInfo(40335), new ItemInfo(40336), new ItemInfo(40337), new ItemInfo(40338), + new ItemInfo(40339), new ItemInfo(40340), new ItemInfo(40341), new ItemInfo(40342), new ItemInfo(40343), new ItemInfo(40344), new ItemInfo(40345), new ItemInfo(40346), + new ItemInfo(40347), new ItemInfo(40348), new ItemInfo(40349), new ItemInfo(40350), new ItemInfo(40351), new ItemInfo(40352), new ItemInfo(40353), new ItemInfo(40354), + new ItemInfo(40355), new ItemInfo(40356) + #endregion + }; + + private int m_Page; + + + + public AddRoofPt5Gump() + : this(0) + { } + + public AddRoofPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddRoofPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt1.cs new file mode 100644 index 000000000..1328988cf --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt1.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddRoofPt1Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddRoofPt1", AccessLevel.GameMaster, new CommandEventHandler(AddRoofPt1_OnCommand)); + } + + [Usage("AddRoofPt1")] + + public static void AddRoofPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddRoofPt1Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Roofs + new ItemInfo(1414), new ItemInfo(1415), new ItemInfo(1416), new ItemInfo(1417), new ItemInfo(1418), new ItemInfo(1419), new ItemInfo(1420), new ItemInfo(1421), + new ItemInfo(1422), new ItemInfo(1423), new ItemInfo(1424), new ItemInfo(1425), new ItemInfo(1426), new ItemInfo(1427), new ItemInfo(1428), new ItemInfo(1429), + new ItemInfo(1430), new ItemInfo(1431), new ItemInfo(1432), new ItemInfo(1433), new ItemInfo(1434), new ItemInfo(1435), new ItemInfo(1436), new ItemInfo(1437), + new ItemInfo(1438), new ItemInfo(1439), new ItemInfo(1440), new ItemInfo(1441), new ItemInfo(1442), new ItemInfo(1443), new ItemInfo(1444), new ItemInfo(1445), + new ItemInfo(1446), new ItemInfo(1447), new ItemInfo(1448), new ItemInfo(1449), new ItemInfo(1450), new ItemInfo(1451), new ItemInfo(1452), new ItemInfo(1453), + new ItemInfo(1454), new ItemInfo(1455), new ItemInfo(1456), new ItemInfo(1457), new ItemInfo(1458), new ItemInfo(1459), new ItemInfo(1460), new ItemInfo(1461), + new ItemInfo(1462), new ItemInfo(1463), new ItemInfo(1464), new ItemInfo(1465), new ItemInfo(1466), new ItemInfo(1467), new ItemInfo(1468), new ItemInfo(1469), + new ItemInfo(1470), new ItemInfo(1471), new ItemInfo(1472), new ItemInfo(1473), new ItemInfo(1474), new ItemInfo(1475), new ItemInfo(1476), new ItemInfo(1477), + new ItemInfo(1478), new ItemInfo(1479), new ItemInfo(1480), new ItemInfo(1481), new ItemInfo(1482), new ItemInfo(1483), new ItemInfo(1484), new ItemInfo(1485), + new ItemInfo(1486), new ItemInfo(1487), new ItemInfo(1488), new ItemInfo(1489), new ItemInfo(1490), new ItemInfo(1491), new ItemInfo(1492), new ItemInfo(1494), + new ItemInfo(1495), new ItemInfo(1496), new ItemInfo(1497), new ItemInfo(1498), new ItemInfo(1499), new ItemInfo(1500), new ItemInfo(1501), new ItemInfo(1502), + new ItemInfo(1503), new ItemInfo(1504), new ItemInfo(1505), new ItemInfo(1506), new ItemInfo(1507), new ItemInfo(1508), new ItemInfo(1509), new ItemInfo(1510), + new ItemInfo(1511), new ItemInfo(1512), new ItemInfo(1513), new ItemInfo(1514), new ItemInfo(1515), new ItemInfo(1516), new ItemInfo(1519), new ItemInfo(1520), + new ItemInfo(1521), new ItemInfo(1522), new ItemInfo(1523), new ItemInfo(1524), new ItemInfo(1525), new ItemInfo(1526), new ItemInfo(1527), new ItemInfo(1528), + new ItemInfo(1529), new ItemInfo(1530), new ItemInfo(1531), new ItemInfo(1532), new ItemInfo(1533), new ItemInfo(1534), new ItemInfo(1535), new ItemInfo(1536), + new ItemInfo(1537), new ItemInfo(1538), new ItemInfo(1539), new ItemInfo(1540), new ItemInfo(1541), new ItemInfo(1542), new ItemInfo(1543), new ItemInfo(1544), + new ItemInfo(1545), new ItemInfo(1546), new ItemInfo(1547), new ItemInfo(1548), new ItemInfo(1549), new ItemInfo(1550), new ItemInfo(1551), new ItemInfo(1552), + new ItemInfo(1553), new ItemInfo(1554), new ItemInfo(1555), new ItemInfo(1556), new ItemInfo(1557), new ItemInfo(1558), new ItemInfo(1559), new ItemInfo(1560), + new ItemInfo(1561), new ItemInfo(1562), new ItemInfo(1563), new ItemInfo(1564), new ItemInfo(1565), new ItemInfo(1566), new ItemInfo(1567), new ItemInfo(1568), + new ItemInfo(1569), new ItemInfo(1570), new ItemInfo(1571), new ItemInfo(1572), new ItemInfo(1573), new ItemInfo(1574), new ItemInfo(1575), new ItemInfo(1576), + new ItemInfo(1577), new ItemInfo(1578), new ItemInfo(1587), new ItemInfo(1588), new ItemInfo(1589), new ItemInfo(1590), new ItemInfo(1608), new ItemInfo(1609), + new ItemInfo(1610), new ItemInfo(1611), new ItemInfo(1612), new ItemInfo(1613), new ItemInfo(1614), new ItemInfo(1615), new ItemInfo(1616), new ItemInfo(1617) + #endregion + }; + + private int m_Page; + + + + public AddRoofPt1Gump() + : this(0) + { } + + public AddRoofPt1Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddRoofPt1Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt2.cs new file mode 100644 index 000000000..b974803ea --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt2.cs @@ -0,0 +1,154 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddRoofPt2Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddRoofPt2", AccessLevel.GameMaster, new CommandEventHandler(AddRoofPt2_OnCommand)); + } + + [Usage("AddRoofPt2")] + + public static void AddRoofPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddRoofPt2Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Roofs + new ItemInfo(1630), new ItemInfo(1631), new ItemInfo(1632), new ItemInfo(1633), new ItemInfo(1634), new ItemInfo(1635), new ItemInfo(1636), new ItemInfo(1637), + new ItemInfo(1638), new ItemInfo(1639), new ItemInfo(1640), new ItemInfo(1641), new ItemInfo(1642), new ItemInfo(1643), new ItemInfo(1644), new ItemInfo(1645), + new ItemInfo(1646), new ItemInfo(1647), new ItemInfo(1648), new ItemInfo(1649), new ItemInfo(1650), new ItemInfo(1651), new ItemInfo(1652), new ItemInfo(6457), + new ItemInfo(6458), new ItemInfo(6459), new ItemInfo(6460), new ItemInfo(6461), new ItemInfo(6462), new ItemInfo(9946), new ItemInfo(9947), new ItemInfo(9948), + new ItemInfo(9949), new ItemInfo(9950), new ItemInfo(9951), new ItemInfo(9952), new ItemInfo(9953), new ItemInfo(9954), new ItemInfo(9955), new ItemInfo(9956), + new ItemInfo(9957), new ItemInfo(9958), new ItemInfo(9959), new ItemInfo(9960), new ItemInfo(9961), new ItemInfo(9962), new ItemInfo(9963), new ItemInfo(9964), + new ItemInfo(9976), new ItemInfo(9977), new ItemInfo(9978), new ItemInfo(9979), new ItemInfo(9980), new ItemInfo(9981), new ItemInfo(9982), new ItemInfo(9983), + new ItemInfo(9984), new ItemInfo(9985), new ItemInfo(9986), new ItemInfo(9987), new ItemInfo(9988), new ItemInfo(9989), new ItemInfo(9990), new ItemInfo(9991), + new ItemInfo(9992), new ItemInfo(9993), new ItemInfo(9994), new ItemInfo(9995), new ItemInfo(9996),new ItemInfo(10416), new ItemInfo(10417), new ItemInfo(10418), + new ItemInfo(10419), new ItemInfo(10420), new ItemInfo(10421), new ItemInfo(10422), new ItemInfo(10423), new ItemInfo(10424), new ItemInfo(10425), new ItemInfo(10426), + new ItemInfo(10427), new ItemInfo(10428), new ItemInfo(10429), new ItemInfo(10430), new ItemInfo(10431), new ItemInfo(10432), new ItemInfo(10433), new ItemInfo(10434), + new ItemInfo(10435), new ItemInfo(10436), new ItemInfo(10437), new ItemInfo(10438), new ItemInfo(10439), new ItemInfo(10440), new ItemInfo(10441), new ItemInfo(10442), + new ItemInfo(10443), new ItemInfo(10444), new ItemInfo(10445), new ItemInfo(10446), new ItemInfo(10447), new ItemInfo(10448), new ItemInfo(10449), new ItemInfo(10450), + new ItemInfo(10451), new ItemInfo(10452), new ItemInfo(10453), new ItemInfo(10454), new ItemInfo(10455), new ItemInfo(10456), new ItemInfo(10457), new ItemInfo(10458), + new ItemInfo(10459), new ItemInfo(10468), new ItemInfo(10469), new ItemInfo(10470), new ItemInfo(10471), new ItemInfo(10472), new ItemInfo(10473), new ItemInfo(10474), + new ItemInfo(10475), new ItemInfo(10476), new ItemInfo(10477), new ItemInfo(10478), new ItemInfo(10480), new ItemInfo(10481), new ItemInfo(10482), new ItemInfo(10483), + new ItemInfo(10484), new ItemInfo(10485), new ItemInfo(10486), new ItemInfo(10487), new ItemInfo(10488), new ItemInfo(10489), new ItemInfo(10490), new ItemInfo(10491), + new ItemInfo(10492), new ItemInfo(10493), new ItemInfo(10494), new ItemInfo(10495), new ItemInfo(10496), new ItemInfo(10497), new ItemInfo(10498), new ItemInfo(10499), + new ItemInfo(10500), new ItemInfo(10501), new ItemInfo(10502), new ItemInfo(10503), new ItemInfo(10504), new ItemInfo(10505), new ItemInfo(10506), new ItemInfo(10507), + new ItemInfo(10508), new ItemInfo(10509), new ItemInfo(10510), new ItemInfo(10511), new ItemInfo(10512), new ItemInfo(10513), new ItemInfo(10514), new ItemInfo(10515), + new ItemInfo(10516), new ItemInfo(10517), new ItemInfo(10518), new ItemInfo(10519), new ItemInfo(10520), new ItemInfo(10521), new ItemInfo(10522), new ItemInfo(10523), + new ItemInfo(10528), new ItemInfo(10529), new ItemInfo(10530), new ItemInfo(10531), new ItemInfo(10532), new ItemInfo(10533), new ItemInfo(10534), new ItemInfo(10535) + #endregion + }; + + private int m_Page; + + + + public AddRoofPt2Gump() + : this(0) + { } + + public AddRoofPt2Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddRoofPt2Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt3.cs new file mode 100644 index 000000000..ae50270a1 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt3.cs @@ -0,0 +1,157 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddRoofPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddRoofPt3", AccessLevel.GameMaster, new CommandEventHandler(AddRoofPt3_OnCommand)); + } + + [Usage("AddRoofPt3")] + + public static void AddRoofPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddRoofPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Roofs + new ItemInfo(10536), new ItemInfo(10537), new ItemInfo(10538), new ItemInfo(10539), new ItemInfo(10540), new ItemInfo(10541), new ItemInfo(10542), new ItemInfo(10543), + new ItemInfo(10544), new ItemInfo(10545), new ItemInfo(10546), new ItemInfo(10547), new ItemInfo(10548), new ItemInfo(10549), new ItemInfo(11137), new ItemInfo(11138), + new ItemInfo(11139), new ItemInfo(11140), new ItemInfo(11141), new ItemInfo(11142), new ItemInfo(11143), new ItemInfo(11144), new ItemInfo(11145), new ItemInfo(11146), + new ItemInfo(11147), new ItemInfo(11148), new ItemInfo(11149), new ItemInfo(11150), new ItemInfo(11151), new ItemInfo(11152), new ItemInfo(11153), new ItemInfo(11154), + new ItemInfo(11155), new ItemInfo(11156), new ItemInfo(11157), new ItemInfo(11158), new ItemInfo(11159), new ItemInfo(11160), new ItemInfo(11161), new ItemInfo(11162), + new ItemInfo(11163), new ItemInfo(11164), new ItemInfo(11165), new ItemInfo(11166), new ItemInfo(11167), new ItemInfo(11168), new ItemInfo(11169), new ItemInfo(11170), + new ItemInfo(11171), new ItemInfo(11172), new ItemInfo(11173), new ItemInfo(11174), new ItemInfo(11175), new ItemInfo(11176), new ItemInfo(11300), new ItemInfo(11301), + new ItemInfo(11302), new ItemInfo(11303), new ItemInfo(11304), new ItemInfo(11305), new ItemInfo(11306), new ItemInfo(11307), new ItemInfo(11308), new ItemInfo(11309), + new ItemInfo(11310), new ItemInfo(11311), new ItemInfo(11312), new ItemInfo(11313), new ItemInfo(11314), new ItemInfo(11315), new ItemInfo(11316), new ItemInfo(11317), + new ItemInfo(11318), new ItemInfo(11319), new ItemInfo(11320), new ItemInfo(11321), new ItemInfo(11322), new ItemInfo(11323), new ItemInfo(11324), new ItemInfo(11325), + new ItemInfo(11326), new ItemInfo(11327), new ItemInfo(11328), new ItemInfo(11329), new ItemInfo(11330), new ItemInfo(11331), new ItemInfo(11332), new ItemInfo(11333), + new ItemInfo(11334), new ItemInfo(11335), new ItemInfo(11336), new ItemInfo(11337), new ItemInfo(11338), new ItemInfo(11339), new ItemInfo(11340), new ItemInfo(11341), + new ItemInfo(11342), new ItemInfo(11343), new ItemInfo(11344), new ItemInfo(11345), new ItemInfo(11346), new ItemInfo(11347), new ItemInfo(11348), new ItemInfo(11349), + new ItemInfo(11350), new ItemInfo(11351), new ItemInfo(11352), new ItemInfo(11353), new ItemInfo(11354), new ItemInfo(11355), new ItemInfo(11356), new ItemInfo(11357), + new ItemInfo(11358), new ItemInfo(11359), new ItemInfo(11360), new ItemInfo(11361), new ItemInfo(11362), new ItemInfo(11363), new ItemInfo(11364), new ItemInfo(11365), + new ItemInfo(11366), new ItemInfo(11367), new ItemInfo(11368), new ItemInfo(11369), new ItemInfo(11370), new ItemInfo(11371), new ItemInfo(11372), new ItemInfo(11373), + new ItemInfo(11374), new ItemInfo(11375), new ItemInfo(11376), new ItemInfo(11377), new ItemInfo(11378), new ItemInfo(11379), new ItemInfo(11380), new ItemInfo(11381), + new ItemInfo(11382), new ItemInfo(11383), new ItemInfo(11384), new ItemInfo(11385), new ItemInfo(11386), new ItemInfo(11387), new ItemInfo(11388), new ItemInfo(11389), + new ItemInfo(12063), new ItemInfo(12064), new ItemInfo(12065), new ItemInfo(12066), new ItemInfo(12067), new ItemInfo(12068), new ItemInfo(12069), new ItemInfo(12070), + new ItemInfo(12071), new ItemInfo(12072), new ItemInfo(12758), new ItemInfo(12759), new ItemInfo(12760), new ItemInfo(12761), new ItemInfo(12762), new ItemInfo(12763), + new ItemInfo(12764), new ItemInfo(12765), new ItemInfo(12766), new ItemInfo(12767), new ItemInfo(12768), new ItemInfo(12769), new ItemInfo(12770), new ItemInfo(12771), + new ItemInfo(12772), new ItemInfo(12773), new ItemInfo(12774), new ItemInfo(12775), new ItemInfo(12776), new ItemInfo(12777), new ItemInfo(13859), new ItemInfo(13860), + new ItemInfo(13861), new ItemInfo(13862), new ItemInfo(13863), new ItemInfo(13864), new ItemInfo(13865), new ItemInfo(13866), new ItemInfo(13867), new ItemInfo(13868), + new ItemInfo(13869), new ItemInfo(13870), new ItemInfo(13871), new ItemInfo(13872), new ItemInfo(13873), new ItemInfo(13874), new ItemInfo(13875), new ItemInfo(13876), + new ItemInfo(13877) + #endregion + }; + + private int m_Page; + + + + public AddRoofPt3Gump() + : this(0) + { } + + public AddRoofPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddRoofPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt4.cs new file mode 100644 index 000000000..9603f27b4 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Roofs/RoofsPt4.cs @@ -0,0 +1,176 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddRoofPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddRoofPt4", AccessLevel.GameMaster, new CommandEventHandler(AddRoofPt4_OnCommand)); + } + + [Usage("AddRoofPt4")] + + public static void AddRoofPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddRoofPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Roofs + new ItemInfo(19955), new ItemInfo(19956), new ItemInfo(19957), new ItemInfo(19958), new ItemInfo(19959), new ItemInfo(19960), new ItemInfo(19961), new ItemInfo(19962), + new ItemInfo(19963), new ItemInfo(19964), new ItemInfo(19965), new ItemInfo(19966), new ItemInfo(19967), new ItemInfo(19968), new ItemInfo(19969), new ItemInfo(19970), + new ItemInfo(19971), new ItemInfo(19972), new ItemInfo(19973), new ItemInfo(19974), new ItemInfo(19975), new ItemInfo(19976), new ItemInfo(19977), new ItemInfo(19978), + new ItemInfo(19979), new ItemInfo(19980), new ItemInfo(19981), new ItemInfo(19982), new ItemInfo(19983), new ItemInfo(19984), new ItemInfo(19985), new ItemInfo(19986), + new ItemInfo(19987), new ItemInfo(19988), new ItemInfo(19989), new ItemInfo(19990), new ItemInfo(19991), new ItemInfo(19992), new ItemInfo(19993), new ItemInfo(19994), + new ItemInfo(19995), new ItemInfo(19996), new ItemInfo(19997), new ItemInfo(19998), new ItemInfo(19999), new ItemInfo(20000), new ItemInfo(20001), new ItemInfo(20002), + new ItemInfo(20003), new ItemInfo(20004), new ItemInfo(20005), new ItemInfo(20006), new ItemInfo(20007), new ItemInfo(20008), new ItemInfo(20009), new ItemInfo(20010), + new ItemInfo(20011), new ItemInfo(20012), new ItemInfo(20013), new ItemInfo(20014), new ItemInfo(20015), new ItemInfo(20016), new ItemInfo(20017), new ItemInfo(20018), + new ItemInfo(20019), new ItemInfo(20020), new ItemInfo(20021), new ItemInfo(20022), new ItemInfo(20023), new ItemInfo(20024), new ItemInfo(20025), new ItemInfo(20026), + new ItemInfo(20027), new ItemInfo(20028), new ItemInfo(20029), new ItemInfo(20030), new ItemInfo(20031), new ItemInfo(20032), new ItemInfo(20033), new ItemInfo(20034), + new ItemInfo(20035), new ItemInfo(20036), new ItemInfo(20037), new ItemInfo(20038), new ItemInfo(20039), new ItemInfo(20040), new ItemInfo(20041), new ItemInfo(20042), + new ItemInfo(20043), new ItemInfo(20044), new ItemInfo(20045), new ItemInfo(20046), new ItemInfo(20047), new ItemInfo(20048), new ItemInfo(20049), new ItemInfo(20050), + new ItemInfo(20051), new ItemInfo(20052), new ItemInfo(20053), new ItemInfo(20054), new ItemInfo(20055), new ItemInfo(20056), new ItemInfo(20057), new ItemInfo(20058), + new ItemInfo(20059), new ItemInfo(20060), new ItemInfo(20061), new ItemInfo(20062), new ItemInfo(20063), new ItemInfo(20064), new ItemInfo(20065), new ItemInfo(20066), + new ItemInfo(20067), new ItemInfo(20068), new ItemInfo(20069), new ItemInfo(20070), new ItemInfo(20071), new ItemInfo(20072), new ItemInfo(20073), new ItemInfo(20074), + new ItemInfo(20075), new ItemInfo(20076), new ItemInfo(20077), new ItemInfo(20078), new ItemInfo(20079), new ItemInfo(20080), new ItemInfo(20081), new ItemInfo(20082), + new ItemInfo(20083), new ItemInfo(20084), new ItemInfo(20085), new ItemInfo(20086), new ItemInfo(20087), new ItemInfo(20088), new ItemInfo(20089), new ItemInfo(20090), + new ItemInfo(20091), new ItemInfo(20092), new ItemInfo(20093), new ItemInfo(20094), new ItemInfo(20095), new ItemInfo(20096), new ItemInfo(20097), new ItemInfo(20098), + new ItemInfo(20099), new ItemInfo(20100), new ItemInfo(20101), new ItemInfo(20102), new ItemInfo(20103), new ItemInfo(20104), new ItemInfo(20105), new ItemInfo(20106), + new ItemInfo(20107), new ItemInfo(20108), new ItemInfo(20109), new ItemInfo(20110), new ItemInfo(20111), new ItemInfo(20112), new ItemInfo(20113), new ItemInfo(20114), + new ItemInfo(20115), new ItemInfo(20116), new ItemInfo(20117), new ItemInfo(20118), new ItemInfo(20119), new ItemInfo(20120), new ItemInfo(20121), new ItemInfo(20122), + new ItemInfo(20123), new ItemInfo(20124), new ItemInfo(20125), new ItemInfo(20126), new ItemInfo(20127), new ItemInfo(20128), new ItemInfo(20129), new ItemInfo(20130), + new ItemInfo(20131), new ItemInfo(20132), new ItemInfo(20133), new ItemInfo(20134), new ItemInfo(20135), new ItemInfo(20136), new ItemInfo(20137), new ItemInfo(20138), + new ItemInfo(20139), new ItemInfo(20140), new ItemInfo(20141), new ItemInfo(20142), new ItemInfo(20143), new ItemInfo(20144), new ItemInfo(20145), new ItemInfo(20146), + new ItemInfo(20147), new ItemInfo(20148), new ItemInfo(20149), new ItemInfo(20150), new ItemInfo(20151), new ItemInfo(20152), new ItemInfo(20153), new ItemInfo(20154), + new ItemInfo(20155), new ItemInfo(20156), new ItemInfo(20157), new ItemInfo(20158), new ItemInfo(20159), new ItemInfo(20160), new ItemInfo(20161), new ItemInfo(20162), + new ItemInfo(20163), new ItemInfo(20164), new ItemInfo(20165), new ItemInfo(20166), new ItemInfo(20167), new ItemInfo(20168), new ItemInfo(20169), new ItemInfo(20170), + new ItemInfo(20171), new ItemInfo(20172), new ItemInfo(20173), new ItemInfo(20174), new ItemInfo(20175), new ItemInfo(20176), new ItemInfo(20177), new ItemInfo(20178), + new ItemInfo(20179), new ItemInfo(20180), new ItemInfo(20181), new ItemInfo(20182), new ItemInfo(20183), new ItemInfo(20184), new ItemInfo(20185), new ItemInfo(20186), + new ItemInfo(20187), new ItemInfo(20188), new ItemInfo(20189), new ItemInfo(20190), new ItemInfo(20191), new ItemInfo(20192), new ItemInfo(20193), new ItemInfo(20194), + new ItemInfo(20195), new ItemInfo(20196), new ItemInfo(20197), new ItemInfo(20198), new ItemInfo(20199), new ItemInfo(20200), new ItemInfo(20201), new ItemInfo(20202), + new ItemInfo(20203), new ItemInfo(20204), new ItemInfo(20205), new ItemInfo(20206), new ItemInfo(20207), new ItemInfo(20208), new ItemInfo(20209), new ItemInfo(20210), + new ItemInfo(20211), new ItemInfo(20212), new ItemInfo(20213), new ItemInfo(20214), new ItemInfo(20215), new ItemInfo(20216), new ItemInfo(20217), new ItemInfo(20218), + new ItemInfo(20219), new ItemInfo(20220), new ItemInfo(20221), new ItemInfo(20222), new ItemInfo(20223), new ItemInfo(20224), new ItemInfo(20225), new ItemInfo(20226), + new ItemInfo(20227), new ItemInfo(20228), new ItemInfo(20229), new ItemInfo(20230), new ItemInfo(20231), new ItemInfo(20232), new ItemInfo(20233), new ItemInfo(20234), + new ItemInfo(20235), new ItemInfo(20236), new ItemInfo(20237), new ItemInfo(20238), new ItemInfo(20239), new ItemInfo(20240), new ItemInfo(20241), new ItemInfo(20242), + new ItemInfo(20243), new ItemInfo(20244), new ItemInfo(20245), new ItemInfo(20246), new ItemInfo(20247), new ItemInfo(20248), new ItemInfo(20249), new ItemInfo(20250), + new ItemInfo(20251), new ItemInfo(20252), new ItemInfo(20253), new ItemInfo(20254), new ItemInfo(20255), new ItemInfo(20256), new ItemInfo(20257), new ItemInfo(20258), + new ItemInfo(20259), new ItemInfo(20260), new ItemInfo(20261), new ItemInfo(20262), new ItemInfo(20263), new ItemInfo(20264), new ItemInfo(20265), new ItemInfo(20266), + new ItemInfo(20267), new ItemInfo(20268), new ItemInfo(20269), new ItemInfo(20270), new ItemInfo(20271), new ItemInfo(20272), new ItemInfo(20273), new ItemInfo(20274), + new ItemInfo(20275), new ItemInfo(20276), new ItemInfo(20277), new ItemInfo(20278), new ItemInfo(20279), new ItemInfo(20280), new ItemInfo(20281), new ItemInfo(20282), + new ItemInfo(20283), new ItemInfo(20284), new ItemInfo(20285), new ItemInfo(20286), new ItemInfo(20287), new ItemInfo(20289), new ItemInfo(20290), new ItemInfo(20291), + new ItemInfo(20292), new ItemInfo(20293), new ItemInfo(20294), new ItemInfo(20295), new ItemInfo(20298), new ItemInfo(20299), new ItemInfo(20300), new ItemInfo(20301), + new ItemInfo(20302), new ItemInfo(20303), new ItemInfo(20307), new ItemInfo(20308), new ItemInfo(20309), new ItemInfo(20310), new ItemInfo(20311) + #endregion + }; + + private int m_Page; + + + + public AddRoofPt4Gump() + : this(0) + { } + + public AddRoofPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddRoofPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt7.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt7.cs new file mode 100644 index 000000000..4609325b2 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt7.cs @@ -0,0 +1,177 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddWallPt7Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddWallPt7", AccessLevel.GameMaster, new CommandEventHandler(AddWallPt7_OnCommand)); + } + + [Usage("AddWallPt7")] + + public static void AddWallPt7_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt7Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(39214), new ItemInfo(39215), new ItemInfo(39216), new ItemInfo(39217), new ItemInfo(39218), new ItemInfo(39219), new ItemInfo(39220), new ItemInfo(39221), + new ItemInfo(39222), new ItemInfo(39223), new ItemInfo(39224), new ItemInfo(39225), new ItemInfo(39226), new ItemInfo(39227), new ItemInfo(39228), new ItemInfo(39229), + new ItemInfo(39230), new ItemInfo(39231), new ItemInfo(39232), new ItemInfo(39233), new ItemInfo(39234), new ItemInfo(39235), new ItemInfo(39236), new ItemInfo(39237), + new ItemInfo(39238), new ItemInfo(39239), new ItemInfo(39240), new ItemInfo(39241), new ItemInfo(39242), new ItemInfo(39243), new ItemInfo(39244), new ItemInfo(39245), + new ItemInfo(39246), new ItemInfo(39247), new ItemInfo(39248), new ItemInfo(39249), new ItemInfo(39250), new ItemInfo(39251), new ItemInfo(39252), new ItemInfo(39253), + new ItemInfo(39254), new ItemInfo(39255), new ItemInfo(39256), new ItemInfo(39257), new ItemInfo(39258), new ItemInfo(39259), new ItemInfo(39260), new ItemInfo(39261), + new ItemInfo(39262), new ItemInfo(39263), new ItemInfo(39264), new ItemInfo(39265), new ItemInfo(39266), new ItemInfo(39267), new ItemInfo(39268), new ItemInfo(39269), + new ItemInfo(39270), new ItemInfo(39271), new ItemInfo(39272), new ItemInfo(39273), new ItemInfo(39274), new ItemInfo(39275), new ItemInfo(39276), new ItemInfo(39277), + new ItemInfo(39278), new ItemInfo(39279), new ItemInfo(39280), new ItemInfo(39281), new ItemInfo(39282), new ItemInfo(39283), new ItemInfo(39284), new ItemInfo(39285), + new ItemInfo(39286), new ItemInfo(39287), new ItemInfo(39288), new ItemInfo(39289), new ItemInfo(39290), new ItemInfo(39299), new ItemInfo(39300), new ItemInfo(39301), + new ItemInfo(39302), new ItemInfo(39303), new ItemInfo(39304), new ItemInfo(39305), new ItemInfo(39306), new ItemInfo(39307), new ItemInfo(39308), new ItemInfo(39309), + new ItemInfo(39310), new ItemInfo(39311), new ItemInfo(39312), new ItemInfo(39313), new ItemInfo(39314), new ItemInfo(39315), new ItemInfo(39316), new ItemInfo(39317), + new ItemInfo(39318), new ItemInfo(39319), new ItemInfo(39320), new ItemInfo(39321), new ItemInfo(39322), new ItemInfo(39323), new ItemInfo(39324), new ItemInfo(39325), + new ItemInfo(39326), new ItemInfo(39327), new ItemInfo(39328), new ItemInfo(39329), new ItemInfo(39330), new ItemInfo(39331), new ItemInfo(39332), new ItemInfo(39333), + new ItemInfo(39334), new ItemInfo(39335), new ItemInfo(39336), new ItemInfo(39337), new ItemInfo(39338), new ItemInfo(39339), new ItemInfo(39340), new ItemInfo(39341), + new ItemInfo(39342), new ItemInfo(39343), new ItemInfo(39344), new ItemInfo(39345), new ItemInfo(39346), new ItemInfo(39347), new ItemInfo(39348), new ItemInfo(39349), + new ItemInfo(39350), new ItemInfo(39351), new ItemInfo(39352), new ItemInfo(39353), new ItemInfo(39354), new ItemInfo(39355), new ItemInfo(39356), new ItemInfo(39357), + new ItemInfo(39358), new ItemInfo(39359), new ItemInfo(39360), new ItemInfo(39361), new ItemInfo(39362), new ItemInfo(39363), new ItemInfo(39364), new ItemInfo(39365), + new ItemInfo(39366), new ItemInfo(39367), new ItemInfo(39368), new ItemInfo(39369), new ItemInfo(39370), new ItemInfo(39371), new ItemInfo(39372), new ItemInfo(39373), + new ItemInfo(39374), new ItemInfo(39375), new ItemInfo(39376), new ItemInfo(39377), new ItemInfo(39378), new ItemInfo(39379), new ItemInfo(39380), new ItemInfo(39381), + new ItemInfo(39382), new ItemInfo(39383), new ItemInfo(39384), new ItemInfo(39385), new ItemInfo(39386), new ItemInfo(39387), new ItemInfo(39388), new ItemInfo(39389), + new ItemInfo(39390), new ItemInfo(39391), new ItemInfo(39392), new ItemInfo(39393), new ItemInfo(39394), new ItemInfo(39395), new ItemInfo(39396), new ItemInfo(39397), + new ItemInfo(39398), new ItemInfo(39399), new ItemInfo(39400), new ItemInfo(39401), new ItemInfo(39402), new ItemInfo(39403), new ItemInfo(39404), new ItemInfo(39405), + new ItemInfo(39406), new ItemInfo(39407), new ItemInfo(39408), new ItemInfo(39409), new ItemInfo(39410), new ItemInfo(39411), new ItemInfo(39412), new ItemInfo(39413), + new ItemInfo(39414), new ItemInfo(39415), new ItemInfo(39416), new ItemInfo(39417), new ItemInfo(39418), new ItemInfo(39419), new ItemInfo(39420), new ItemInfo(39421), + new ItemInfo(39422), new ItemInfo(39423), new ItemInfo(39424), new ItemInfo(39425), new ItemInfo(39426), new ItemInfo(39427), new ItemInfo(39428), new ItemInfo(39429), + new ItemInfo(39430), new ItemInfo(39431), new ItemInfo(39432), new ItemInfo(39433), new ItemInfo(39434), new ItemInfo(39435), new ItemInfo(39436), new ItemInfo(39437), + new ItemInfo(39438), new ItemInfo(39439), new ItemInfo(39440), new ItemInfo(39441), new ItemInfo(39442), new ItemInfo(39443), new ItemInfo(39444), new ItemInfo(39445), + new ItemInfo(39446), new ItemInfo(39447), new ItemInfo(39448), new ItemInfo(39449), new ItemInfo(39450), new ItemInfo(39451), new ItemInfo(39452), new ItemInfo(39453), + new ItemInfo(39454), new ItemInfo(39455), new ItemInfo(39456), new ItemInfo(39457), new ItemInfo(39458), new ItemInfo(39459), new ItemInfo(39460), new ItemInfo(39461), + new ItemInfo(39462), new ItemInfo(39463), new ItemInfo(39464), new ItemInfo(39465), new ItemInfo(39466), new ItemInfo(39467), new ItemInfo(39468), new ItemInfo(39469), + new ItemInfo(39470), new ItemInfo(39471), new ItemInfo(39472), new ItemInfo(39473), new ItemInfo(39474), new ItemInfo(39475), new ItemInfo(39476), new ItemInfo(39477), + new ItemInfo(39499), new ItemInfo(39500), new ItemInfo(39501), new ItemInfo(39502), new ItemInfo(39503), new ItemInfo(39504), new ItemInfo(39505), new ItemInfo(39506), + new ItemInfo(39507), new ItemInfo(39508), new ItemInfo(39509), new ItemInfo(39510), new ItemInfo(39511), new ItemInfo(39512), new ItemInfo(39513), new ItemInfo(39514), + new ItemInfo(39515), new ItemInfo(40194), new ItemInfo(40195), new ItemInfo(40196), new ItemInfo(40197), new ItemInfo(40198), new ItemInfo(40199), new ItemInfo(40200), + new ItemInfo(40201), new ItemInfo(40202), new ItemInfo(40203), new ItemInfo(40204), new ItemInfo(40205), new ItemInfo(40206), new ItemInfo(40207), new ItemInfo(40208), + new ItemInfo(40209), new ItemInfo(40210), new ItemInfo(40211), new ItemInfo(40212), new ItemInfo(40213), new ItemInfo(40214), new ItemInfo(40215), new ItemInfo(40216), + new ItemInfo(40217), new ItemInfo(40218), new ItemInfo(40231), new ItemInfo(40232), new ItemInfo(40233), new ItemInfo(40234), new ItemInfo(40235), new ItemInfo(40236), + new ItemInfo(40237), new ItemInfo(40238), new ItemInfo(40239), new ItemInfo(40240), new ItemInfo(40241), new ItemInfo(40242), new ItemInfo(40243), new ItemInfo(40244), + new ItemInfo(40245), new ItemInfo(40246), new ItemInfo(40247), new ItemInfo(40248), new ItemInfo(40249), new ItemInfo(40250), new ItemInfo(40251), new ItemInfo(40252), + new ItemInfo(40253), new ItemInfo(40256), new ItemInfo(40257), new ItemInfo(40258), new ItemInfo(40259), new ItemInfo(40260), new ItemInfo(40261), new ItemInfo(40262), + new ItemInfo(40263), new ItemInfo(41691), new ItemInfo(41692), new ItemInfo(41693), new ItemInfo(41694), new ItemInfo(41695), new ItemInfo(41696), new ItemInfo(41697), + new ItemInfo(41698), new ItemInfo(41699), new ItemInfo(41700), new ItemInfo(41701), new ItemInfo(41702), new ItemInfo(41703), new ItemInfo(41704), new ItemInfo(41705), + new ItemInfo(41706), new ItemInfo(41707), new ItemInfo(41708), new ItemInfo(41709), new ItemInfo(41710), new ItemInfo(41711), new ItemInfo(41712), new ItemInfo(41713) + + #endregion + }; + + private int m_Page; + + + + public AddWallPt7Gump() + : this(0) + { } + + public AddWallPt7Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddWallPt7Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt8.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt8.cs new file mode 100644 index 000000000..fbd014ac7 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/Custom/WallPt8.cs @@ -0,0 +1,174 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddWallPt8Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddWallPt8", AccessLevel.GameMaster, new CommandEventHandler(AddWallPt8_OnCommand)); + } + + [Usage("AddWallPt8")] + + public static void AddWallPt8_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt8Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(41714), new ItemInfo(41715), new ItemInfo(41716), new ItemInfo(41717), new ItemInfo(41718), new ItemInfo(41719), new ItemInfo(41720), new ItemInfo(41723), + new ItemInfo(41724), new ItemInfo(41725), new ItemInfo(41726), new ItemInfo(41727), new ItemInfo(42370), new ItemInfo(42371), new ItemInfo(42372), new ItemInfo(42373), + new ItemInfo(42374), new ItemInfo(42375), new ItemInfo(42376), new ItemInfo(42377), new ItemInfo(42378), new ItemInfo(42379), new ItemInfo(42380), new ItemInfo(42381), + new ItemInfo(42448), new ItemInfo(42449), new ItemInfo(42450), new ItemInfo(42451), new ItemInfo(42452), new ItemInfo(42453), new ItemInfo(42454), new ItemInfo(42455), + new ItemInfo(42456), new ItemInfo(42457), new ItemInfo(42458), new ItemInfo(42459), new ItemInfo(42460), new ItemInfo(42461), new ItemInfo(42462), new ItemInfo(42463), + new ItemInfo(42464), new ItemInfo(42465), new ItemInfo(42466), new ItemInfo(42467), new ItemInfo(42468), new ItemInfo(42469), new ItemInfo(42470), new ItemInfo(42471), + new ItemInfo(42473), new ItemInfo(42474), new ItemInfo(42475), new ItemInfo(42476), new ItemInfo(42477), new ItemInfo(42478), new ItemInfo(42479), new ItemInfo(42480), + new ItemInfo(42481), new ItemInfo(42482), new ItemInfo(42483), new ItemInfo(42484), new ItemInfo(42485), new ItemInfo(42486), new ItemInfo(42487), new ItemInfo(42488), + new ItemInfo(42489), new ItemInfo(42490), new ItemInfo(42491), new ItemInfo(42492), new ItemInfo(42493), new ItemInfo(42494), new ItemInfo(42495), new ItemInfo(42496), + new ItemInfo(42497), new ItemInfo(42498), new ItemInfo(42499), new ItemInfo(42500), new ItemInfo(42501), new ItemInfo(42502), new ItemInfo(42503), new ItemInfo(42504), + new ItemInfo(42505), new ItemInfo(42506), new ItemInfo(42507), new ItemInfo(42508), new ItemInfo(42509), new ItemInfo(42510), new ItemInfo(42511), new ItemInfo(42516), + new ItemInfo(42517), new ItemInfo(42518), new ItemInfo(42519), new ItemInfo(42520), new ItemInfo(42521), new ItemInfo(42522), new ItemInfo(42523), new ItemInfo(42524), + new ItemInfo(42525), new ItemInfo(42526), new ItemInfo(42527), new ItemInfo(42528), new ItemInfo(42529), new ItemInfo(42530), new ItemInfo(42531), new ItemInfo(42532), + new ItemInfo(42533), new ItemInfo(42534), new ItemInfo(42535), new ItemInfo(42536), new ItemInfo(42537), new ItemInfo(42538), new ItemInfo(42539), new ItemInfo(42540), + new ItemInfo(42541), new ItemInfo(42542), new ItemInfo(42543), new ItemInfo(42544), new ItemInfo(42545), new ItemInfo(42546), new ItemInfo(42547), new ItemInfo(42548), + new ItemInfo(42549), new ItemInfo(42550), new ItemInfo(42551), new ItemInfo(42552), new ItemInfo(42553), new ItemInfo(42554), new ItemInfo(42555), new ItemInfo(42556), + new ItemInfo(42557), new ItemInfo(42558), new ItemInfo(42559), new ItemInfo(42560), new ItemInfo(42561), new ItemInfo(42562), new ItemInfo(42563), new ItemInfo(42564), + new ItemInfo(42582), new ItemInfo(42583), new ItemInfo(42584), new ItemInfo(42585), new ItemInfo(42586), new ItemInfo(42587), new ItemInfo(42588), new ItemInfo(42589), + new ItemInfo(42590), new ItemInfo(42591), new ItemInfo(42592), new ItemInfo(42593), new ItemInfo(42594), new ItemInfo(42595), new ItemInfo(42596), new ItemInfo(42597), + new ItemInfo(42598), new ItemInfo(42599), new ItemInfo(42600), new ItemInfo(42601), new ItemInfo(42602), new ItemInfo(42603), new ItemInfo(42604), new ItemInfo(42605), + new ItemInfo(42606), new ItemInfo(42607), new ItemInfo(42608), new ItemInfo(42609), new ItemInfo(42610), new ItemInfo(42611), new ItemInfo(42612), new ItemInfo(42613), + new ItemInfo(42614), new ItemInfo(42615), new ItemInfo(42616), new ItemInfo(42617), new ItemInfo(42618), new ItemInfo(42619), new ItemInfo(42620), new ItemInfo(42621), + new ItemInfo(42622), new ItemInfo(42623), new ItemInfo(42624), new ItemInfo(42625), new ItemInfo(42626), new ItemInfo(42627), new ItemInfo(42628), new ItemInfo(42629), + new ItemInfo(42630), new ItemInfo(42631), new ItemInfo(42632), new ItemInfo(42633), new ItemInfo(42634), new ItemInfo(42635), new ItemInfo(42636), new ItemInfo(42637), + new ItemInfo(42638), new ItemInfo(42639), new ItemInfo(42640), new ItemInfo(42641), new ItemInfo(42642), new ItemInfo(42643), new ItemInfo(42644), new ItemInfo(42645), + new ItemInfo(42646), new ItemInfo(42647), new ItemInfo(42648), new ItemInfo(42649), new ItemInfo(42650), new ItemInfo(42651), new ItemInfo(42652), new ItemInfo(42653), + new ItemInfo(43162), new ItemInfo(43163), new ItemInfo(43164), new ItemInfo(43165), new ItemInfo(43166), new ItemInfo(43167), new ItemInfo(43168), new ItemInfo(43169), + new ItemInfo(43170), new ItemInfo(43171), new ItemInfo(43172), new ItemInfo(43173), new ItemInfo(43174), new ItemInfo(43175), new ItemInfo(43176), new ItemInfo(43177), + new ItemInfo(43178), new ItemInfo(43179), new ItemInfo(43180), new ItemInfo(43181), new ItemInfo(43182), new ItemInfo(43183), new ItemInfo(43184), new ItemInfo(43185), + new ItemInfo(43186), new ItemInfo(43187), new ItemInfo(43193), new ItemInfo(43194), new ItemInfo(43195), new ItemInfo(43196), new ItemInfo(43197), new ItemInfo(43198), + new ItemInfo(43199), new ItemInfo(43200), new ItemInfo(43201), new ItemInfo(43202), new ItemInfo(43203), new ItemInfo(43204), new ItemInfo(43205), new ItemInfo(43206), + new ItemInfo(43207), new ItemInfo(43208), new ItemInfo(43209), new ItemInfo(43210), new ItemInfo(43211), new ItemInfo(43212), new ItemInfo(43213), new ItemInfo(43214), + new ItemInfo(43215), new ItemInfo(43216), new ItemInfo(43217), new ItemInfo(43218), new ItemInfo(43219), new ItemInfo(43220), new ItemInfo(43221), new ItemInfo(43222), + new ItemInfo(43223), new ItemInfo(43224), new ItemInfo(43225), new ItemInfo(43226), new ItemInfo(43227), new ItemInfo(43228), new ItemInfo(43229), new ItemInfo(43230), + new ItemInfo(43231), new ItemInfo(43232), new ItemInfo(43233), new ItemInfo(43234), new ItemInfo(43235), new ItemInfo(43236), new ItemInfo(43237), new ItemInfo(43238), + new ItemInfo(43239), new ItemInfo(43240), new ItemInfo(43241), new ItemInfo(43242), new ItemInfo(43243), new ItemInfo(43244), new ItemInfo(43245), new ItemInfo(43246), + new ItemInfo(43247), new ItemInfo(43248), new ItemInfo(43249), new ItemInfo(43250), new ItemInfo(43251), new ItemInfo(43252), new ItemInfo(43253), new ItemInfo(43254), + new ItemInfo(43255), new ItemInfo(43256), new ItemInfo(43257), new ItemInfo(43258), new ItemInfo(43259), new ItemInfo(43260), new ItemInfo(43261), new ItemInfo(43262), + new ItemInfo(43263), new ItemInfo(43264), new ItemInfo(43265), new ItemInfo(43283), new ItemInfo(43284), new ItemInfo(43285), new ItemInfo(43286), new ItemInfo(43287), + new ItemInfo(43288), new ItemInfo(43289), new ItemInfo(43290), new ItemInfo(43291), new ItemInfo(43292), new ItemInfo(43293), new ItemInfo(43294), new ItemInfo(43295), + new ItemInfo(43296), new ItemInfo(43297), new ItemInfo(43298) + + #endregion + }; + + private int m_Page; + + + + public AddWallPt8Gump() + : this(0) + { } + + public AddWallPt8Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddWallPt8Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt1.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt1.cs new file mode 100644 index 000000000..f91819f82 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt1.cs @@ -0,0 +1,84 @@ +/* + * Oz'Thoth's Static Tool - Wall Part 1 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting wall static items (Part 1). +/// +public sealed class AddWallPt1Gump : StaticItemGumpBase +{ + private static readonly int[] WallItemIds = + [ + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, + 61, 62, 63, 64, 65, 66, 67, 68, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, + 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, + 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, + 106, 107, 108, 128, 129, 130, 131, 132, 133, 140, + 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, + 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, + 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, + 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, + 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, + 191, 192, 193, 194, 197, 199, 200, 201, 202, 203, + 204, 248, 249, 250, 251, 252, 253, 254, 255, 256, + 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, + 267, 268, 269, 270, 271, 272, 273, 283, 284, 285, + 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, + 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, + 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, + 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, + 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, + 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, + 362, 363, 369, 370, 371, 372, 373, 374, 375, 376, + 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, + 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, + 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, + 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, + 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, + 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, + 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, + 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, + 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, + 467, 468, 480, 481, 482, 483, 484, 485, 486, 487, + 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, + 498, 499, 500, 501, 502, 503, 504, 505, 511, 512, + 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, + 523, 524, 527, 528, 529, 530, 531, 532, 533, 534, + 535, 536, 537, 538, 541, 542, 543, 544, 545, 546, + 547, 550, 551, 552, 553, 554, 555, 556, 557, 558, + 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, + 569, 577, 578, 579, 580, 588, 589, 590, 591, 592 + ]; + + protected override ReadOnlySpan ItemIds => WallItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddWallPt1Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddWallPt1", AccessLevel.GameMaster, AddWallPt1_OnCommand); + } + + [Usage("AddWallPt1")] + [Description("Displays a menu for adding wall statics (Part 1).")] + private static void AddWallPt1_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt1Gump()); + } + + public AddWallPt1Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt2.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt2.cs new file mode 100644 index 000000000..627d62102 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt2.cs @@ -0,0 +1,67 @@ +/* + * Oz'Thoth's Static Tool - Wall Part 2 Gump + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; + +namespace Server.Gumps.OzThoth; + +/// +/// Gump for selecting wall static items (Part 2). +/// +public sealed class AddWallPt2Gump : StaticItemGumpBase +{ + private static readonly int[] WallItemIds = + [ + 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, + 603, 631, 632, 633, 634, 635, 636, 641, 642, 657, + 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, + 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, + 678, 679, 680, 681, 682, 683, 684, 685, 686, 693, + 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, + 704, 711, 712, 713, 714, 715, 716, 717, 718, 719, + 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, + 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, + 744, 745, 746, 747, 748, 761, 762, 763, 764, 765, + 766, 767, 768, 872, 873, 874, 875, 876, 877, 878, + 879, 880, 881, 895, 896, 897, 898, 899, 900, 901, + 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, + 912, 913, 914, 915, 916, 917, 918, 947, 948, 949, + 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, + 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, + 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, + 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, + 990, 991, 992, 993, 994, 8584, 8585, 8586, 8587, 8588, + 8589, 8590, 8591, 8592, 8593, 8594, 8595, 8596, 8597, 8598, + 8599, 8613, 8614, 8615, 8616, 8617, 8618, 8619, 8620, 8621, + 8622, 8623, 8624, 8625, 8626, 8627, 8628, 8629, 8630, 8631, + 8632, 8637, 8638, 8639, 8640, 8641, 8642, 8643, 8644, 8645, + 8646, 8647, 8648, 8649, 8650, 8651, 8652, 8653, 8654, 8655, + 8656, 8657, 8658, 8659, 8660, 8661, 8662, 8663, 8664, 8665, + 8666, 8667, 8668, 8669, 8670, 8671, 8672, 8673, 8674, 8675, + 8676, 8677, 8678, 8679, 8680 + ]; + + protected override ReadOnlySpan ItemIds => WallItemIds; + protected override string CommandFormat => "{0}Tile Static {1}"; + protected override StaticItemGumpBase CreateInstance(int page) => new AddWallPt2Gump(page); + + public static void Initialize() + { + CommandSystem.Register("AddWallPt2", AccessLevel.GameMaster, AddWallPt2_OnCommand); + } + + [Usage("AddWallPt2")] + [Description("Displays a menu for adding wall statics (Part 2).")] + private static void AddWallPt2_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt2Gump()); + } + + public AddWallPt2Gump(int page = 0) : base(page) + { + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt3.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt3.cs new file mode 100644 index 000000000..e4d18e0be --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt3.cs @@ -0,0 +1,183 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddWallPt3Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddWallPt3", AccessLevel.GameMaster, new CommandEventHandler(AddWallPt3_OnCommand)); + } + + [Usage("AddWallPt3")] + + public static void AddWallPt3_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt3Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(9343), new ItemInfo(9344), new ItemInfo(9345), new ItemInfo(9346), new ItemInfo(9347), new ItemInfo(9348), new ItemInfo(9349), new ItemInfo(9350), new ItemInfo(9351), + new ItemInfo(9352), new ItemInfo(9353), new ItemInfo(9354), new ItemInfo(9355), new ItemInfo(9356), new ItemInfo(9357), new ItemInfo(9358), new ItemInfo(9359), new ItemInfo(9360), + new ItemInfo(9361), new ItemInfo(9362), new ItemInfo(9363), new ItemInfo(9364), new ItemInfo(9365), new ItemInfo(9366), new ItemInfo(9367), new ItemInfo(9368), new ItemInfo(9369), + new ItemInfo(9370), new ItemInfo(9371), new ItemInfo(9372), new ItemInfo(9373), new ItemInfo(9374), new ItemInfo(9375), new ItemInfo(9376), new ItemInfo(9377), new ItemInfo(9378), + new ItemInfo(9379), new ItemInfo(9380), new ItemInfo(9381), new ItemInfo(9382), new ItemInfo(9383), new ItemInfo(9384), new ItemInfo(9385), new ItemInfo(9386), new ItemInfo(9387), + new ItemInfo(9388), new ItemInfo(9460), new ItemInfo(9461), new ItemInfo(9462), new ItemInfo(9463), new ItemInfo(9464), new ItemInfo(9465), new ItemInfo(9466), new ItemInfo(9467), + new ItemInfo(9468), new ItemInfo(9469), new ItemInfo(9470), new ItemInfo(9471), new ItemInfo(9472), new ItemInfo(9473), new ItemInfo(9474), new ItemInfo(9475), new ItemInfo(9476), + new ItemInfo(9477), new ItemInfo(9478), new ItemInfo(9479), new ItemInfo(9480), new ItemInfo(9481), new ItemInfo(9482), new ItemInfo(9483), new ItemInfo(9484), new ItemInfo(9485), + new ItemInfo(9486), new ItemInfo(9487), new ItemInfo(9488), new ItemInfo(9489), new ItemInfo(9490), new ItemInfo(9491), new ItemInfo(9492), new ItemInfo(9493), new ItemInfo(9494), + new ItemInfo(9495), new ItemInfo(9496), new ItemInfo(9497), new ItemInfo(9498), new ItemInfo(9499), new ItemInfo(9500), new ItemInfo(9501), new ItemInfo(9502), new ItemInfo(9503), + new ItemInfo(9504), new ItemInfo(9505), new ItemInfo(9506), new ItemInfo(9507), new ItemInfo(9508), new ItemInfo(9509), new ItemInfo(9510), new ItemInfo(9511), new ItemInfo(9512), + new ItemInfo(9513), new ItemInfo(9514), new ItemInfo(9515), new ItemInfo(9516), new ItemInfo(9517), new ItemInfo(9518), new ItemInfo(9519), new ItemInfo(9520), new ItemInfo(9521), + new ItemInfo(9522), new ItemInfo(9523), new ItemInfo(9524), new ItemInfo(9525), new ItemInfo(9526), new ItemInfo(9527), new ItemInfo(9528), new ItemInfo(9529), new ItemInfo(9530), + new ItemInfo(9531), new ItemInfo(9532), new ItemInfo(9533), new ItemInfo(9534), new ItemInfo(9535), new ItemInfo(9536), new ItemInfo(9537), new ItemInfo(9538), new ItemInfo(9539), + new ItemInfo(9540), new ItemInfo(9541), new ItemInfo(9543), new ItemInfo(9544), new ItemInfo(9545), new ItemInfo(9546), new ItemInfo(9547), new ItemInfo(9548), new ItemInfo(9549), + new ItemInfo(9550), new ItemInfo(9551), new ItemInfo(9552), new ItemInfo(9553), new ItemInfo(9554), new ItemInfo(9555), new ItemInfo(9936), new ItemInfo(9937), new ItemInfo(9938), + new ItemInfo(9939), new ItemInfo(9940), new ItemInfo(9941), new ItemInfo(9942), new ItemInfo(9943), new ItemInfo(9944), new ItemInfo(9945), new ItemInfo(10006), new ItemInfo(10007), + new ItemInfo(10008), new ItemInfo(10009), new ItemInfo(10010), new ItemInfo(10011), new ItemInfo(10012), new ItemInfo(10013), new ItemInfo(10014), new ItemInfo(10015), new ItemInfo(10067), + new ItemInfo(10068), new ItemInfo(10069), new ItemInfo(10070), new ItemInfo(10071), new ItemInfo(10072), new ItemInfo(10073), new ItemInfo(10074), new ItemInfo(10075), new ItemInfo(10076), + new ItemInfo(10077), new ItemInfo(10078), new ItemInfo(10079), new ItemInfo(10080), new ItemInfo(10081), new ItemInfo(10082), new ItemInfo(10335), new ItemInfo(10336), new ItemInfo(10337), + new ItemInfo(10338), new ItemInfo(10339), new ItemInfo(10340), new ItemInfo(10341), new ItemInfo(10342), new ItemInfo(10343), new ItemInfo(10344), new ItemInfo(10345), new ItemInfo(10346), + new ItemInfo(10347), new ItemInfo(10348), new ItemInfo(10349), new ItemInfo(10376), new ItemInfo(10377), new ItemInfo(10378), new ItemInfo(10379), new ItemInfo(10380), new ItemInfo(10381), + new ItemInfo(10382), new ItemInfo(10383), new ItemInfo(10384), new ItemInfo(10385), new ItemInfo(10386), new ItemInfo(10387), new ItemInfo(10388), new ItemInfo(10389), new ItemInfo(10390), + new ItemInfo(10391), new ItemInfo(10392), new ItemInfo(10393), new ItemInfo(10394), new ItemInfo(10395), new ItemInfo(10396), new ItemInfo(10397), new ItemInfo(10398), new ItemInfo(10399), + new ItemInfo(10400), new ItemInfo(10401), new ItemInfo(10402), new ItemInfo(10403), new ItemInfo(10552), new ItemInfo(10553), new ItemInfo(10554), new ItemInfo(10555), new ItemInfo(10556), + new ItemInfo(10557), new ItemInfo(10558), new ItemInfo(10559), new ItemInfo(10560), new ItemInfo(10561), new ItemInfo(10562), new ItemInfo(10563), new ItemInfo(10564), new ItemInfo(10565), + new ItemInfo(10566), new ItemInfo(10567), new ItemInfo(10568), new ItemInfo(10569), new ItemInfo(10570), new ItemInfo(10571), new ItemInfo(10572), new ItemInfo(10573), new ItemInfo(10574), + new ItemInfo(10575), new ItemInfo(10576), new ItemInfo(10577), new ItemInfo(10578), new ItemInfo(10579), new ItemInfo(10580), new ItemInfo(10581), new ItemInfo(10582), new ItemInfo(10583), + new ItemInfo(10584), new ItemInfo(10585), new ItemInfo(10586), new ItemInfo(10587), new ItemInfo(10640), new ItemInfo(10641), new ItemInfo(10642), new ItemInfo(10643), new ItemInfo(10644), + new ItemInfo(10645), new ItemInfo(10646), new ItemInfo(10647), new ItemInfo(10648), new ItemInfo(10649), new ItemInfo(10650), new ItemInfo(10651), new ItemInfo(10652), new ItemInfo(10653), + new ItemInfo(10654), new ItemInfo(10655), new ItemInfo(10656), new ItemInfo(10657), new ItemInfo(10658), new ItemInfo(10659), new ItemInfo(10660), new ItemInfo(10661), new ItemInfo(10662), + new ItemInfo(10663), new ItemInfo(10664), new ItemInfo(10665), new ItemInfo(10666), new ItemInfo(10667), new ItemInfo(10668), new ItemInfo(10669), new ItemInfo(10670), new ItemInfo(10671), + new ItemInfo(10672), new ItemInfo(10673), new ItemInfo(10674), new ItemInfo(10675), new ItemInfo(10676), new ItemInfo(10677), new ItemInfo(10678), new ItemInfo(10679), new ItemInfo(10680), + new ItemInfo(10681), new ItemInfo(10682), new ItemInfo(10683), new ItemInfo(10684), new ItemInfo(10685), new ItemInfo(10686), new ItemInfo(10687), new ItemInfo(10726), new ItemInfo(10727), + new ItemInfo(10728), new ItemInfo(10729), new ItemInfo(10730), new ItemInfo(10731), new ItemInfo(10732), new ItemInfo(10733), new ItemInfo(10734), new ItemInfo(10735), new ItemInfo(10736), + new ItemInfo(10737), new ItemInfo(10738), new ItemInfo(10739), new ItemInfo(10740), new ItemInfo(10741), new ItemInfo(10742), new ItemInfo(10743), new ItemInfo(10744), new ItemInfo(10745), + new ItemInfo(10746), new ItemInfo(10747), new ItemInfo(10748), new ItemInfo(10800), new ItemInfo(10801), new ItemInfo(10802), new ItemInfo(10803), new ItemInfo(10804), new ItemInfo(10805), + new ItemInfo(10806), new ItemInfo(10807), new ItemInfo(10808), new ItemInfo(10809), new ItemInfo(10810), new ItemInfo(10811), new ItemInfo(11182), new ItemInfo(11183), new ItemInfo(11184), + new ItemInfo(11185), new ItemInfo(11186), new ItemInfo(11187), new ItemInfo(11188), new ItemInfo(11193), new ItemInfo(11194), new ItemInfo(11195), new ItemInfo(11196), new ItemInfo(11197), + new ItemInfo(11198), new ItemInfo(11199), new ItemInfo(11200), new ItemInfo(11201), new ItemInfo(11202), new ItemInfo(11207), new ItemInfo(11208), new ItemInfo(11209), new ItemInfo(11210), + new ItemInfo(11211), new ItemInfo(11212), new ItemInfo(11213), new ItemInfo(11214), new ItemInfo(11503), new ItemInfo(11504), new ItemInfo(11505), new ItemInfo(11506), new ItemInfo(11507), + new ItemInfo(11508), new ItemInfo(11509), new ItemInfo(11510), new ItemInfo(11511), new ItemInfo(11512), new ItemInfo(11544), new ItemInfo(11545), new ItemInfo(11546), new ItemInfo(11547), + new ItemInfo(11548), new ItemInfo(11549), new ItemInfo(11580), new ItemInfo(11581), new ItemInfo(11582), new ItemInfo(11583), new ItemInfo(11584), new ItemInfo(11585), new ItemInfo(11586), + new ItemInfo(11587), new ItemInfo(11588), new ItemInfo(11589), new ItemInfo(11715), new ItemInfo(11716), new ItemInfo(11717), new ItemInfo(11718), new ItemInfo(11719), new ItemInfo(11720), + new ItemInfo(11721), new ItemInfo(11722), new ItemInfo(11727), new ItemInfo(11728), new ItemInfo(11729), new ItemInfo(11767), new ItemInfo(11768), new ItemInfo(11769), new ItemInfo(11770), + new ItemInfo(11771), new ItemInfo(11772), new ItemInfo(11773), new ItemInfo(11774), new ItemInfo(11775), new ItemInfo(11776), new ItemInfo(12555), new ItemInfo(12556), new ItemInfo(12557), + new ItemInfo(12558), new ItemInfo(12559), new ItemInfo(12560), new ItemInfo(12561), new ItemInfo(12562), new ItemInfo(12563), new ItemInfo(12564), new ItemInfo(12565), new ItemInfo(12566), + new ItemInfo(12567), new ItemInfo(12568), new ItemInfo(12569), new ItemInfo(13783), new ItemInfo(13784), new ItemInfo(13785), new ItemInfo(13786), new ItemInfo(13787), new ItemInfo(13788), + new ItemInfo(13789), new ItemInfo(13790), new ItemInfo(13791), new ItemInfo(13792), new ItemInfo(13793), new ItemInfo(13794), new ItemInfo(13795), new ItemInfo(13796), new ItemInfo(13797), + new ItemInfo(13798), new ItemInfo(13843), new ItemInfo(13844), new ItemInfo(13845), new ItemInfo(13846), new ItemInfo(13847), new ItemInfo(13848), new ItemInfo(13849), new ItemInfo(13936), + new ItemInfo(13937), new ItemInfo(13938), new ItemInfo(13939), new ItemInfo(13940), new ItemInfo(13941), new ItemInfo(13942), new ItemInfo(13943) + #endregion + }; + + private int m_Page; + + + + public AddWallPt3Gump() + : this(0) + { } + + public AddWallPt3Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddWallPt3Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt4.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt4.cs new file mode 100644 index 000000000..9d54666a4 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt4.cs @@ -0,0 +1,188 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddWallPt4Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddWallPt4", AccessLevel.GameMaster, new CommandEventHandler(AddWallPt4_OnCommand)); + } + + [Usage("AddWallPt4")] + + public static void AddWallPt4_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt4Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(16660), new ItemInfo(16661), new ItemInfo(16662), new ItemInfo(16663), new ItemInfo(16664), new ItemInfo(16665), new ItemInfo(16666), + new ItemInfo(16675), new ItemInfo(16676), new ItemInfo(16677), new ItemInfo(16718), new ItemInfo(16719), new ItemInfo(16720), new ItemInfo(16721), + new ItemInfo(16722), new ItemInfo(16723), new ItemInfo(16724), new ItemInfo(16725), new ItemInfo(16730), new ItemInfo(16731), new ItemInfo(16732), + new ItemInfo(16733), new ItemInfo(16734), new ItemInfo(16735), new ItemInfo(16736), new ItemInfo(16737), new ItemInfo(16738), new ItemInfo(16739), + new ItemInfo(16742), new ItemInfo(16743), new ItemInfo(16744), new ItemInfo(16745), new ItemInfo(16746), new ItemInfo(16747), new ItemInfo(16756), new ItemInfo(16757), + new ItemInfo(16758), new ItemInfo(16759), new ItemInfo(16760), new ItemInfo(16761), new ItemInfo(16762), new ItemInfo(16763), new ItemInfo(16764), + new ItemInfo(16765), new ItemInfo(16766), new ItemInfo(16767), new ItemInfo(16768), new ItemInfo(16769), new ItemInfo(16770), new ItemInfo(16771), + new ItemInfo(16772), new ItemInfo(16773), new ItemInfo(16784), new ItemInfo(16785), new ItemInfo(16786), new ItemInfo(16787), new ItemInfo(16788), + new ItemInfo(16789), new ItemInfo(16790), new ItemInfo(16791), new ItemInfo(16792), new ItemInfo(16793), new ItemInfo(16794), new ItemInfo(16795), + new ItemInfo(16796), new ItemInfo(16797), new ItemInfo(16798), new ItemInfo(16799), new ItemInfo(16805), new ItemInfo(16806), new ItemInfo(16807), + new ItemInfo(16808), new ItemInfo(16809), new ItemInfo(16810), new ItemInfo(16811), new ItemInfo(16812), new ItemInfo(17172), new ItemInfo(17173), + new ItemInfo(17174), new ItemInfo(17175), new ItemInfo(17176), new ItemInfo(17177), new ItemInfo(17178), new ItemInfo(17179), new ItemInfo(17180), + new ItemInfo(17181), new ItemInfo(17182), new ItemInfo(17183), new ItemInfo(17184), new ItemInfo(17185), new ItemInfo(17186), new ItemInfo(17187), + new ItemInfo(17188), new ItemInfo(17189), new ItemInfo(17190), new ItemInfo(17191), new ItemInfo(17224), new ItemInfo(17225), new ItemInfo(17226), + new ItemInfo(17227), new ItemInfo(17228), new ItemInfo(17229), new ItemInfo(17230), new ItemInfo(17231), new ItemInfo(17232), new ItemInfo(17233), + new ItemInfo(17234), new ItemInfo(17235), new ItemInfo(17344), new ItemInfo(17345), new ItemInfo(17346), new ItemInfo(17347), new ItemInfo(17348), + new ItemInfo(17349), new ItemInfo(17350), new ItemInfo(17351), new ItemInfo(17352), new ItemInfo(17353), new ItemInfo(17354), new ItemInfo(17355), + new ItemInfo(17356), new ItemInfo(17357), new ItemInfo(17358), new ItemInfo(17359), new ItemInfo(17360), new ItemInfo(17361), new ItemInfo(17362), + new ItemInfo(17363), new ItemInfo(17364), new ItemInfo(17365), new ItemInfo(17366), new ItemInfo(17367), new ItemInfo(17368), new ItemInfo(17369), + new ItemInfo(17370), new ItemInfo(17371), new ItemInfo(17372), new ItemInfo(17373), new ItemInfo(17374), new ItemInfo(17375), new ItemInfo(17657), + new ItemInfo(17658), new ItemInfo(17659), new ItemInfo(17660), new ItemInfo(17661), new ItemInfo(17662), new ItemInfo(17663), new ItemInfo(17664), + new ItemInfo(17665), new ItemInfo(17666), new ItemInfo(17667), new ItemInfo(17668), new ItemInfo(17669), new ItemInfo(17670), new ItemInfo(17671), + new ItemInfo(17672), new ItemInfo(17673), new ItemInfo(17674), new ItemInfo(17675), new ItemInfo(17676), new ItemInfo(17679), new ItemInfo(17680), + new ItemInfo(17681), new ItemInfo(17682), new ItemInfo(17688), new ItemInfo(17689), new ItemInfo(17690), new ItemInfo(17691), new ItemInfo(17692), + new ItemInfo(17693), new ItemInfo(17694), new ItemInfo(17695), new ItemInfo(17696), new ItemInfo(17697), new ItemInfo(17698), new ItemInfo(17699), + new ItemInfo(17700), new ItemInfo(17701), new ItemInfo(17702), new ItemInfo(17703), new ItemInfo(17704), new ItemInfo(17705), new ItemInfo(17706), + new ItemInfo(17707), new ItemInfo(17708), new ItemInfo(17709), new ItemInfo(17710), new ItemInfo(17711), new ItemInfo(17712), new ItemInfo(17713), + new ItemInfo(17714), new ItemInfo(17715), new ItemInfo(17716), new ItemInfo(17717), new ItemInfo(17718), new ItemInfo(17719), new ItemInfo(17720), + new ItemInfo(17721), new ItemInfo(17722), new ItemInfo(17723), new ItemInfo(17724), new ItemInfo(17725), new ItemInfo(17726), new ItemInfo(17727), + new ItemInfo(17728), new ItemInfo(17729), new ItemInfo(17730), new ItemInfo(17731), new ItemInfo(17732), new ItemInfo(17733), new ItemInfo(17734), + new ItemInfo(17735), new ItemInfo(17736), new ItemInfo(17737), new ItemInfo(17738), new ItemInfo(17739), new ItemInfo(17740), new ItemInfo(17741), + new ItemInfo(17742), new ItemInfo(17743), new ItemInfo(17744), new ItemInfo(17745), new ItemInfo(17746), new ItemInfo(17747), new ItemInfo(17748), + new ItemInfo(17749), new ItemInfo(17750), new ItemInfo(17751), new ItemInfo(17752), new ItemInfo(17753), new ItemInfo(17754), new ItemInfo(17755), + new ItemInfo(17756), new ItemInfo(17757), new ItemInfo(17758), new ItemInfo(17759), new ItemInfo(17760), new ItemInfo(17761), new ItemInfo(17762), + new ItemInfo(17763), new ItemInfo(17764), new ItemInfo(17765), new ItemInfo(17766), new ItemInfo(17767), new ItemInfo(17768), new ItemInfo(17769), + new ItemInfo(17770), new ItemInfo(17771), new ItemInfo(17772), new ItemInfo(17773), new ItemInfo(17794), new ItemInfo(17795), new ItemInfo(17796), + new ItemInfo(17797), new ItemInfo(17798), new ItemInfo(17799), new ItemInfo(17800), new ItemInfo(17801), new ItemInfo(17802), new ItemInfo(17803), + new ItemInfo(17804), new ItemInfo(17805), new ItemInfo(17806), new ItemInfo(17807), new ItemInfo(17808), new ItemInfo(17809), new ItemInfo(17810), + new ItemInfo(17811), new ItemInfo(17812), new ItemInfo(17813), new ItemInfo(17814), new ItemInfo(17815), new ItemInfo(17816), new ItemInfo(17817), + new ItemInfo(17818), new ItemInfo(17819), new ItemInfo(17820), new ItemInfo(17821), new ItemInfo(17822), new ItemInfo(17823), new ItemInfo(17824), + new ItemInfo(17825), new ItemInfo(17826), new ItemInfo(17827), new ItemInfo(17832), new ItemInfo(17833), new ItemInfo(17834), new ItemInfo(17835), + new ItemInfo(17836), new ItemInfo(17837), new ItemInfo(17838), new ItemInfo(17839), new ItemInfo(17840), new ItemInfo(17842), new ItemInfo(18109), + new ItemInfo(18110), new ItemInfo(18111), new ItemInfo(18112), new ItemInfo(18113), new ItemInfo(18114), new ItemInfo(18115), new ItemInfo(18116), + new ItemInfo(18117), new ItemInfo(18118), new ItemInfo(18119), new ItemInfo(18120), new ItemInfo(18121), new ItemInfo(18122), new ItemInfo(18123), + new ItemInfo(18128), new ItemInfo(18129), new ItemInfo(18130), new ItemInfo(18131), new ItemInfo(18132), new ItemInfo(18133), new ItemInfo(18134), + new ItemInfo(18135), new ItemInfo(18136), new ItemInfo(18138), new ItemInfo(18139), new ItemInfo(18140), new ItemInfo(18301), new ItemInfo(18302), + new ItemInfo(18303), new ItemInfo(18304), new ItemInfo(18305), new ItemInfo(18306), new ItemInfo(18307), new ItemInfo(18308), new ItemInfo(18309), + new ItemInfo(18310), new ItemInfo(18311), new ItemInfo(18312), new ItemInfo(18313), new ItemInfo(18314), new ItemInfo(18315), new ItemInfo(18316), + new ItemInfo(18317), new ItemInfo(18318), new ItemInfo(18319), new ItemInfo(19189), new ItemInfo(19190), new ItemInfo(19191), new ItemInfo(19192), + new ItemInfo(19193), new ItemInfo(19194), new ItemInfo(19195), new ItemInfo(19196), new ItemInfo(19197), new ItemInfo(19200), new ItemInfo(19206), + new ItemInfo(19207), new ItemInfo(19208), new ItemInfo(19209), new ItemInfo(19210), new ItemInfo(19211), new ItemInfo(19212), new ItemInfo(19213), + new ItemInfo(19214), new ItemInfo(19215), new ItemInfo(19216), new ItemInfo(19217), new ItemInfo(19218), new ItemInfo(19219), new ItemInfo(19220), + new ItemInfo(19221), new ItemInfo(19222), new ItemInfo(19223), new ItemInfo(19224), new ItemInfo(19225), new ItemInfo(19226), new ItemInfo(19227), + new ItemInfo(19243), new ItemInfo(19244), new ItemInfo(19245), new ItemInfo(19246), new ItemInfo(19247), new ItemInfo(19253), new ItemInfo(19254), + new ItemInfo(19255), new ItemInfo(19256), new ItemInfo(19257), new ItemInfo(19258), new ItemInfo(19259), new ItemInfo(19260), new ItemInfo(19266), + new ItemInfo(19267) + #endregion + }; + + private int m_Page; + + + + public AddWallPt4Gump() + : this(0) + { } + + public AddWallPt4Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddWallPt4Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt5.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt5.cs new file mode 100644 index 000000000..7c79c1db3 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt5.cs @@ -0,0 +1,165 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddWallPt5Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddWallPt5", AccessLevel.GameMaster, new CommandEventHandler(AddWallPt5_OnCommand)); + } + + [Usage("AddWallPt5")] + public static void AddWallPt5_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt5Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(19759), new ItemInfo(19760), new ItemInfo(19761), new ItemInfo(19762), new ItemInfo(19763), new ItemInfo(19764), new ItemInfo(19765), new ItemInfo(19766), + new ItemInfo(19767), new ItemInfo(19768), new ItemInfo(19769), new ItemInfo(19770), new ItemInfo(19771), new ItemInfo(19772), new ItemInfo(19773), new ItemInfo(19774), + new ItemInfo(19775), new ItemInfo(19776), new ItemInfo(19777), new ItemInfo(19778), new ItemInfo(19779), new ItemInfo(19780), new ItemInfo(19781), new ItemInfo(19782), + new ItemInfo(19783), new ItemInfo(19784), new ItemInfo(19785), new ItemInfo(19786), new ItemInfo(19787), new ItemInfo(19788), new ItemInfo(19789), new ItemInfo(19790), + new ItemInfo(19791), new ItemInfo(19792), new ItemInfo(19793), new ItemInfo(19794), new ItemInfo(19795), new ItemInfo(19796), new ItemInfo(19797), new ItemInfo(19798), + new ItemInfo(19799), new ItemInfo(19800), new ItemInfo(19801), new ItemInfo(19802), new ItemInfo(19803), new ItemInfo(19804), new ItemInfo(19805), new ItemInfo(19806), + new ItemInfo(19807), new ItemInfo(19808), new ItemInfo(19809), new ItemInfo(19810), new ItemInfo(19811), new ItemInfo(19812), new ItemInfo(19813), new ItemInfo(19814), + new ItemInfo(19815), new ItemInfo(19816), new ItemInfo(19817), new ItemInfo(19818), new ItemInfo(19819), new ItemInfo(19820), new ItemInfo(19821), new ItemInfo(19822), + new ItemInfo(19823), new ItemInfo(19824), new ItemInfo(19825), new ItemInfo(19826), new ItemInfo(19827), new ItemInfo(19828), new ItemInfo(19829), new ItemInfo(19830), + new ItemInfo(19831), new ItemInfo(19832), new ItemInfo(19833), new ItemInfo(19834), new ItemInfo(19835), new ItemInfo(19836), new ItemInfo(19837), new ItemInfo(19838), + new ItemInfo(19839), new ItemInfo(19840), new ItemInfo(19841), new ItemInfo(19842), new ItemInfo(19843), new ItemInfo(19844), new ItemInfo(19845), new ItemInfo(19846), + new ItemInfo(19847), new ItemInfo(19848), new ItemInfo(19849), new ItemInfo(19850), new ItemInfo(19851), new ItemInfo(19852), new ItemInfo(19853), new ItemInfo(19854), + new ItemInfo(19855), new ItemInfo(19856), new ItemInfo(19857), new ItemInfo(19858), new ItemInfo(19859), new ItemInfo(19860), new ItemInfo(19861), new ItemInfo(19862), + new ItemInfo(19863), new ItemInfo(19864), new ItemInfo(19865), new ItemInfo(19866), new ItemInfo(19867), new ItemInfo(19868), new ItemInfo(19869), new ItemInfo(19870), + new ItemInfo(19871), new ItemInfo(19872), new ItemInfo(19873), new ItemInfo(19874), new ItemInfo(19875), new ItemInfo(19876), new ItemInfo(19877), new ItemInfo(19878), + new ItemInfo(19879), new ItemInfo(19880), new ItemInfo(19881), new ItemInfo(19882), new ItemInfo(19883), new ItemInfo(19884), new ItemInfo(19885), new ItemInfo(19886), + new ItemInfo(19887), new ItemInfo(19888), new ItemInfo(19889), new ItemInfo(19890), new ItemInfo(19891), new ItemInfo(19892), new ItemInfo(19893), new ItemInfo(19894), + new ItemInfo(19895), new ItemInfo(19896), new ItemInfo(19897), new ItemInfo(19898), new ItemInfo(19899), new ItemInfo(19900), new ItemInfo(19901), new ItemInfo(19902), + new ItemInfo(19903), new ItemInfo(19904), new ItemInfo(19905), new ItemInfo(19906), new ItemInfo(19907), new ItemInfo(19908), new ItemInfo(19909), new ItemInfo(19910), + new ItemInfo(19911), new ItemInfo(19912), new ItemInfo(19913), new ItemInfo(19914), new ItemInfo(19915), new ItemInfo(19916), new ItemInfo(19917), new ItemInfo(19918), + new ItemInfo(19919), new ItemInfo(19920), new ItemInfo(19921), new ItemInfo(19922), new ItemInfo(19923), new ItemInfo(19924), new ItemInfo(19925), new ItemInfo(19926), + new ItemInfo(19927), new ItemInfo(19928), new ItemInfo(19929), new ItemInfo(19930), new ItemInfo(19931), new ItemInfo(19932), new ItemInfo(19933), new ItemInfo(19934), + new ItemInfo(19935), new ItemInfo(20698), new ItemInfo(20699), new ItemInfo(20700), new ItemInfo(20701), new ItemInfo(20733), new ItemInfo(20734), new ItemInfo(20735), + new ItemInfo(20736), new ItemInfo(20737), new ItemInfo(20738), new ItemInfo(20739), new ItemInfo(20740), new ItemInfo(20741), new ItemInfo(20742), new ItemInfo(20743), + new ItemInfo(20744), new ItemInfo(20745), new ItemInfo(20746), new ItemInfo(20747), new ItemInfo(20748), new ItemInfo(20749), new ItemInfo(20750), new ItemInfo(20751), + new ItemInfo(20752), new ItemInfo(20753), new ItemInfo(20754), new ItemInfo(20755), new ItemInfo(20756), new ItemInfo(20757), new ItemInfo(20758), new ItemInfo(20759), + new ItemInfo(20760), new ItemInfo(20761), new ItemInfo(20762), new ItemInfo(20763), new ItemInfo(20764), new ItemInfo(20765), new ItemInfo(20766), new ItemInfo(20767), + new ItemInfo(20768), new ItemInfo(20769), new ItemInfo(20770), new ItemInfo(20775), new ItemInfo(20776), new ItemInfo(20777), new ItemInfo(20778), new ItemInfo(20779), + new ItemInfo(20780), new ItemInfo(20781), new ItemInfo(20782), new ItemInfo(20783), new ItemInfo(20784), new ItemInfo(20785), new ItemInfo(20786), new ItemInfo(20787), + new ItemInfo(20788), new ItemInfo(20789), new ItemInfo(20790), new ItemInfo(20791), new ItemInfo(20792), new ItemInfo(20793), new ItemInfo(20794), new ItemInfo(20795), + new ItemInfo(20796), new ItemInfo(20797), new ItemInfo(20798), new ItemInfo(20799), new ItemInfo(20800), new ItemInfo(20801), new ItemInfo(30694), new ItemInfo(30695), + new ItemInfo(30696), new ItemInfo(30697), new ItemInfo(30698), new ItemInfo(30699), new ItemInfo(30700), new ItemInfo(30701), new ItemInfo(30702), new ItemInfo(30703), + new ItemInfo(30704), new ItemInfo(30710), new ItemInfo(30711), new ItemInfo(30712), new ItemInfo(30713), new ItemInfo(30714), new ItemInfo(30723), new ItemInfo(30724), + new ItemInfo(30725), new ItemInfo(30726), new ItemInfo(30736), new ItemInfo(30737) + #endregion + }; + + private int m_Page; + + + + public AddWallPt5Gump() + : this(0) + { } + + public AddWallPt5Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddWallPt5Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt6.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt6.cs new file mode 100644 index 000000000..55f2dc544 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/Side Gumps/Tiled/Walls/WallPt6.cs @@ -0,0 +1,165 @@ +using System; +using Server; +using Server.Commands; +using Server.Gumps; +using Server.Network; + +namespace Server.Gumps +{ + public class AddWallPt6Gump : Gump + { + public static void Initialize() + { + CommandSystem.Register("AddWallPt6", AccessLevel.GameMaster, new CommandEventHandler(AddWallPt6_OnCommand)); + } + + [Usage("AddWallPt6")] + public static void AddWallPt6_OnCommand(CommandEventArgs e) + { + e.Mobile.CloseGump(); + e.Mobile.SendGump(new AddWallPt6Gump()); + } + + public static ItemInfo[] m_Types = new ItemInfo[] + { + #region Walls + new ItemInfo(19759), new ItemInfo(19760), new ItemInfo(19761), new ItemInfo(19762), new ItemInfo(19763), new ItemInfo(19764), new ItemInfo(19765), new ItemInfo(19766), + new ItemInfo(19767), new ItemInfo(19768), new ItemInfo(19769), new ItemInfo(19770), new ItemInfo(19771), new ItemInfo(19772), new ItemInfo(19773), new ItemInfo(19774), + new ItemInfo(19775), new ItemInfo(19776), new ItemInfo(19777), new ItemInfo(19778), new ItemInfo(19779), new ItemInfo(19780), new ItemInfo(19781), new ItemInfo(19782), + new ItemInfo(19783), new ItemInfo(19784), new ItemInfo(19785), new ItemInfo(19786), new ItemInfo(19787), new ItemInfo(19788), new ItemInfo(19789), new ItemInfo(19790), + new ItemInfo(19791), new ItemInfo(19792), new ItemInfo(19793), new ItemInfo(19794), new ItemInfo(19795), new ItemInfo(19796), new ItemInfo(19797), new ItemInfo(19798), + new ItemInfo(19799), new ItemInfo(19800), new ItemInfo(19801), new ItemInfo(19802), new ItemInfo(19803), new ItemInfo(19804), new ItemInfo(19805), new ItemInfo(19806), + new ItemInfo(19807), new ItemInfo(19808), new ItemInfo(19809), new ItemInfo(19810), new ItemInfo(19811), new ItemInfo(19812), new ItemInfo(19813), new ItemInfo(19814), + new ItemInfo(19815), new ItemInfo(19816), new ItemInfo(19817), new ItemInfo(19818), new ItemInfo(19819), new ItemInfo(19820), new ItemInfo(19821), new ItemInfo(19822), + new ItemInfo(19823), new ItemInfo(19824), new ItemInfo(19825), new ItemInfo(19826), new ItemInfo(19827), new ItemInfo(19828), new ItemInfo(19829), new ItemInfo(19830), + new ItemInfo(19831), new ItemInfo(19832), new ItemInfo(19833), new ItemInfo(19834), new ItemInfo(19835), new ItemInfo(19836), new ItemInfo(19837), new ItemInfo(19838), + new ItemInfo(19839), new ItemInfo(19840), new ItemInfo(19841), new ItemInfo(19842), new ItemInfo(19843), new ItemInfo(19844), new ItemInfo(19845), new ItemInfo(19846), + new ItemInfo(19847), new ItemInfo(19848), new ItemInfo(19849), new ItemInfo(19850), new ItemInfo(19851), new ItemInfo(19852), new ItemInfo(19853), new ItemInfo(19854), + new ItemInfo(19855), new ItemInfo(19856), new ItemInfo(19857), new ItemInfo(19858), new ItemInfo(19859), new ItemInfo(19860), new ItemInfo(19861), new ItemInfo(19862), + new ItemInfo(19863), new ItemInfo(19864), new ItemInfo(19865), new ItemInfo(19866), new ItemInfo(19867), new ItemInfo(19868), new ItemInfo(19869), new ItemInfo(19870), + new ItemInfo(19871), new ItemInfo(19872), new ItemInfo(19873), new ItemInfo(19874), new ItemInfo(19875), new ItemInfo(19876), new ItemInfo(19877), new ItemInfo(19878), + new ItemInfo(19879), new ItemInfo(19880), new ItemInfo(19881), new ItemInfo(19882), new ItemInfo(19883), new ItemInfo(19884), new ItemInfo(19885), new ItemInfo(19886), + new ItemInfo(19887), new ItemInfo(19888), new ItemInfo(19889), new ItemInfo(19890), new ItemInfo(19891), new ItemInfo(19892), new ItemInfo(19893), new ItemInfo(19894), + new ItemInfo(19895), new ItemInfo(19896), new ItemInfo(19897), new ItemInfo(19898), new ItemInfo(19899), new ItemInfo(19900), new ItemInfo(19901), new ItemInfo(19902), + new ItemInfo(19903), new ItemInfo(19904), new ItemInfo(19905), new ItemInfo(19906), new ItemInfo(19907), new ItemInfo(19908), new ItemInfo(19909), new ItemInfo(19910), + new ItemInfo(19911), new ItemInfo(19912), new ItemInfo(19913), new ItemInfo(19914), new ItemInfo(19915), new ItemInfo(19916), new ItemInfo(19917), new ItemInfo(19918), + new ItemInfo(19919), new ItemInfo(19920), new ItemInfo(19921), new ItemInfo(19922), new ItemInfo(19923), new ItemInfo(19924), new ItemInfo(19925), new ItemInfo(19926), + new ItemInfo(19927), new ItemInfo(19928), new ItemInfo(19929), new ItemInfo(19930), new ItemInfo(19931), new ItemInfo(19932), new ItemInfo(19933), new ItemInfo(19934), + new ItemInfo(19935), new ItemInfo(20698), new ItemInfo(20699), new ItemInfo(20700), new ItemInfo(20701), new ItemInfo(20733), new ItemInfo(20734), new ItemInfo(20735), + new ItemInfo(20736), new ItemInfo(20737), new ItemInfo(20738), new ItemInfo(20739), new ItemInfo(20740), new ItemInfo(20741), new ItemInfo(20742), new ItemInfo(20743), + new ItemInfo(20744), new ItemInfo(20745), new ItemInfo(20746), new ItemInfo(20747), new ItemInfo(20748), new ItemInfo(20749), new ItemInfo(20750), new ItemInfo(20751), + new ItemInfo(20752), new ItemInfo(20753), new ItemInfo(20754), new ItemInfo(20755), new ItemInfo(20756), new ItemInfo(20757), new ItemInfo(20758), new ItemInfo(20759), + new ItemInfo(20760), new ItemInfo(20761), new ItemInfo(20762), new ItemInfo(20763), new ItemInfo(20764), new ItemInfo(20765), new ItemInfo(20766), new ItemInfo(20767), + new ItemInfo(20768), new ItemInfo(20769), new ItemInfo(20770), new ItemInfo(20775), new ItemInfo(20776), new ItemInfo(20777), new ItemInfo(20778), new ItemInfo(20779), + new ItemInfo(20780), new ItemInfo(20781), new ItemInfo(20782), new ItemInfo(20783), new ItemInfo(20784), new ItemInfo(20785), new ItemInfo(20786), new ItemInfo(20787), + new ItemInfo(20788), new ItemInfo(20789), new ItemInfo(20790), new ItemInfo(20791), new ItemInfo(20792), new ItemInfo(20793), new ItemInfo(20794), new ItemInfo(20795), + new ItemInfo(20796), new ItemInfo(20797), new ItemInfo(20798), new ItemInfo(20799), new ItemInfo(20800), new ItemInfo(20801), new ItemInfo(30694), new ItemInfo(30695), + new ItemInfo(30696), new ItemInfo(30697), new ItemInfo(30698), new ItemInfo(30699), new ItemInfo(30700), new ItemInfo(30701), new ItemInfo(30702), new ItemInfo(30703), + new ItemInfo(30704), new ItemInfo(30710), new ItemInfo(30711), new ItemInfo(30712), new ItemInfo(30713), new ItemInfo(30714), new ItemInfo(30723), new ItemInfo(30724), + new ItemInfo(30725), new ItemInfo(30726), new ItemInfo(30736), new ItemInfo(30737) + #endregion + }; + + private int m_Page; + + + + public AddWallPt6Gump() + : this(0) + { } + + public AddWallPt6Gump(int page) + : base(0, 0) + { + int pageCount = 1 + (m_Types.Length / 12); + + if (page >= pageCount) + page = pageCount - 1; + else if (page < 0) + page = 0; + + m_Page = page; + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + + AddBackground(0, 0, 720, 180, 3500); + + AddHtmlLocalized(15, 15, 60, 20, 1042971, page.ToString(), 0x1, false, false); // # + + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + + if (page + 1 < pageCount) + AddButton(15, 55, 0xFA5, 0xFA7, 10000 + (page + 1), GumpButtonType.Reply, 0); + else + AddButton(15, 55, 0xFA5, 0xFA7, 10000, GumpButtonType.Reply, 0); + + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + + if (page > 0) + AddButton(15, 110, 0xFAE, 0xFB0, 10000 + (page - 1), GumpButtonType.Reply, 0); + else + AddButton(15, 110, 0xFAE, 0xFB0, 10000, GumpButtonType.Reply, 0); + + for (int i = 0; i < 12; ++i) + { + int index = (page * 12) + i; + if(index >= m_Types.Length) break; + + int button = 1000000 + index; + int offset = (i + 1) * 50; + + if (m_Types[index].m_BaseID > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, button, GumpButtonType.Reply, m_Types[index].m_BaseID); + AddItem(50 + offset, 40, m_Types[index].m_BaseID); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + Mobile from = sender.Mobile; + + int button = info.ButtonID; + + if (button <= 0) + return; + + int page = m_Page; + + if (button >= 1000000) + { + button -= 1000000; + + CommandSystem.Handle(from, String.Format("{0}Tile Static {1}", CommandSystem.Prefix, m_Types[button].m_BaseID)); + } + else if (button >= 10000) + { + button -= 10000; + + page = button; + } + + from.SendGump(new AddWallPt6Gump(page)); + } + + public class ItemInfo + { + public int m_BaseID; + + public ItemInfo(int baseID) + { + m_BaseID = baseID; + } + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticGump.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticGump.cs new file mode 100644 index 000000000..2c3514d55 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticGump.cs @@ -0,0 +1,333 @@ +/* + * Oz'Thoth's Static Tool v.4 + * + * Original credits: + * - Vorspire: Page persistence functionality + * - Espcevan: Original AddWall and AddStair commands + * - Pyro: Text entries and command button improvements + * - TheArt/Oz'Thoth: Original tool creation + * + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; +using Server.Network; + +namespace Server.Gumps.OzThoth; + +/// +/// Represents a command button with display name and command to execute. +/// +/// The display name shown on the button. +/// The command to execute (without prefix). +public readonly record struct CommandPair(string Name, string Command); + +/// +/// Main Static Tool gump for GM building operations. +/// +public sealed class OzStaticToolGump : Gump +{ + private const int SeparatorLineHue = 1461; + private const string FontStyle = ""; + private const string SignLabel = "
Oz'Thoth's Static Tool v.4"; + + private static readonly CommandPair[] CommonCommands = + [ + new("Item ID", "Get ItemID"), + new("Props", "Props"), + new("Wipe", "Wipe"), + new("Delete", "Delete") + ]; + + private static readonly CommandPair[] StaticItemCommands = + [ + new("Arches", "AddArch"), + new("Doors", "AddDoor"), + new("Fences", "AddFence"), + new("Floors", "AddFloor"), + new("Food", "AddCookingStatic"), + new("Furniture", "AddFurniture"), + new("Gear", "AddGearStatic"), + new("Ground", "AddGroundSt"), + new("Light", "AddLightsStatic"), + new("Plants", "AddPlants"), + new("Rocks", "AddRock"), + new("Roofs", "AddRoof"), + new("Sign Post", "AddSignPStatic"), + new("Signs", "AddSignStatic"), + new("Stairs", "AddStair"), + new("Walls", "AddWall"), + new("Misc 1", "AddMiscStatic1"), + new("Misc 2", "AddMiscStatic2"), + new("Custom", "AddCustomsStatic"), + new("Anim", "AddAnimationStatic") + ]; + + private int _heightSingle; + private int _heightArea; + private int _directionSingle; + private int _directionArea; + + public static void Initialize() + { + CommandSystem.Register("StaticsTool", AccessLevel.GameMaster, OzThothsStatic_OnCommand); + CommandSystem.Register("STool", AccessLevel.GameMaster, OzThothsStatic_OnCommand); + CommandSystem.Register("ST", AccessLevel.GameMaster, OzThothsStatic_OnCommand); + } + + [Usage("StaticTool")] + [Description("Opens Oz'Thoth's in-game static building tool.")] + private static void OzThothsStatic_OnCommand(CommandEventArgs e) + { + var from = e.Mobile; + from.CloseGump(); + from.SendGump(new OzStaticToolGump()); + } + + public OzStaticToolGump(int heightSingle = 1, int heightArea = 1, int directionSingle = 1, int directionArea = 1) + : base(0, 0) + { + _heightSingle = heightSingle; + _heightArea = heightArea; + _directionSingle = directionSingle; + _directionArea = directionArea; + + Closable = false; + Disposable = false; + Draggable = true; + Resizable = false; + + AddPage(0); + BuildTitleBar(); + BuildCenterPanel(); + BuildRightPanel(); + BuildLeftPanel(); + } + + private void BuildTitleBar() + { + AddImageTiled(49, 46, 570, 376, 2524, 170, 112, 796); + + // Sign with signature + AddImage(469, 66, 100, 1938); + AddImage(474, 66, 100, 1938); + AddHtml(492, 87, 99, 59, $"{SignLabel}", false, false); + AddHtml(493, 88, 99, 59, $"{SignLabel}", false, false); + AddHtml(494, 89, 99, 59, $"{SignLabel}", false, false); + + // Minimize and close buttons + AddButton(578, 47, 2710, 2711, 1, GumpButtonType.Reply, 0); + AddButton(598, 47, 2708, 2709, 0, GumpButtonType.Reply, 0); + } + + private void BuildCenterPanel() + { + AddBackground(282, 65, 198, 355, 9350); + + // Height section + AddHtml(345, 82, 62, 26, $"{FontStyle}Height", false, false); + AddImageTiled(311, 99, 131, 16, 58, 16, 16, SeparatorLineHue); + + // Height Single + AddHtml(306, 109, 57, 26, $"{FontStyle}
Single", false, false); + AddButton(326, 137, 5600, 5604, 2, GumpButtonType.Reply, 0); // Up + AddImageTiled(318, 154, 32, 20, 9304); + AddButton(326, 177, 5602, 5606, 3, GumpButtonType.Reply, 0); // Down + AddTextEntry(315, 153, 36, 20, _directionArea == 0 ? 1461 : 0, 0, $"{_heightSingle}"); + + // Height Area + AddHtml(396, 110, 44, 26, $"{FontStyle}
Area", false, false); + AddButton(411, 138, 5600, 5604, 4, GumpButtonType.Reply, 0); // Up + AddImageTiled(402, 154, 32, 20, 9304); + AddButton(411, 178, 5602, 5606, 5, GumpButtonType.Reply, 0); // Down + AddTextEntry(400, 154, 36, 20, _directionArea == 0 ? 1461 : 0, 1, $"{_heightArea}"); + + // Direction section + AddImageTiled(311, 199, 131, 16, 58, 16, 16, SeparatorLineHue); + AddHtml(289, 212, 174, 26, $"{FontStyle}
Direction", false, false); + AddImageTiled(311, 229, 131, 16, 58, 16, 16, SeparatorLineHue); + + // Direction Single + AddHtml(306, 239, 57, 26, $"{FontStyle}
Single", false, false); + AddButton(326, 270, 5600, 5604, 9, GumpButtonType.Reply, 0); // North + AddButton(295, 294, 5603, 5607, 7, GumpButtonType.Reply, 0); // West + AddImageTiled(318, 292, 32, 20, 9304); + AddButton(354, 294, 5601, 5605, 8, GumpButtonType.Reply, 0); // East + AddButton(326, 319, 5602, 5606, 6, GumpButtonType.Reply, 0); // South + AddTextEntry(316, 292, 36, 20, _directionArea == 0 ? 1461 : 0, 2, $"{_directionSingle}"); + + // Direction Area + AddHtml(396, 239, 44, 26, $"{FontStyle}
Area", false, false); + AddButton(411, 270, 5600, 5604, 13, GumpButtonType.Reply, 0); // North + AddButton(382, 294, 5603, 5607, 11, GumpButtonType.Reply, 0); // West + AddImageTiled(402, 292, 32, 20, 9304); + AddButton(437, 294, 5601, 5605, 12, GumpButtonType.Reply, 0); // East + AddButton(411, 319, 5602, 5606, 10, GumpButtonType.Reply, 0); // South + AddTextEntry(400, 292, 36, 20, _directionArea == 0 ? 1461 : 0, 3, $"{_directionArea}", 5); + + // Common commands + const int start = 14; + for (int i = 0; i < CommonCommands.Length; i++) + { + int columnSpacing = i % 2 == 1 ? 90 : 0; + int rowSpacing = i / 2 == 1 ? 30 : 0; + int imageOffset = i / 2 == 1 ? -2 : 0; + + AddButton(300 + columnSpacing, 353 + rowSpacing, 22153 + imageOffset, 22155 + (imageOffset == -2 ? -3 : 0), start + i, GumpButtonType.Reply, 0); + AddHtml(318 + columnSpacing, 351 + rowSpacing, 62, 26, $"{FontStyle}{CommonCommands[i].Name}", false, false); + } + } + + private void BuildRightPanel() + { + AddBackground(469, 161, 150, 260, 9300); + + AddHtml(471, 173, 145, 26, $"{FontStyle}
Helpful Tips", false, false); + AddImageTiled(474, 196, 140, 16, 58, 16, 16, SeparatorLineHue); + AddHtml(471, 212, 145, 192, + $"{FontStyle}" + + "[Add Static ItemID
" + + "[Tile Static ItemID
" + + "[TileZ # Static ItemID for Height
" + + "To Randomize statics add number after ItemID
" + + "To do multiple Deletes:
" + + "[M Delete", + false, false); + } + + private void BuildLeftPanel() + { + AddBackground(48, 65, 243, 357, 3500); + + const int startButtonId = 14 + 4; // After common commands + int x = 65; + int startY = 84; + int y = startY; + + for (int i = 0; i < StaticItemCommands.Length; i++) + { + if (i > 0 && i % 11 == 0) + { + x += 110; + y = startY; + } + + AddButton(x, y, 5601, 5605, startButtonId + i, GumpButtonType.Reply, 0); + AddHtml(x + 21, y - 2, 84, 26, $"{FontStyle}{StaticItemCommands[i].Name}", false, false); + y += 30; + } + } + + private void AddImageTiled(int x, int y, int width, int height, int gumpID, int gumpWidth, int gumpHeight, int hue) + { + for (int xi = 0; xi < width; xi += gumpWidth) + { + for (int yi = 0; yi < height; yi += gumpHeight) + { + AddImage(Math.Min(x + xi, x + width - gumpWidth), Math.Min(y + yi, y + height - gumpHeight), gumpID, hue); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + var from = sender.Mobile; + int buttonId = info.ButtonID; + + if (buttonId == 0 || from.AccessLevel < AccessLevel.GameMaster) + { + from.CloseGump(); + return; + } + + // Parse text entries + _heightSingle = ParseTextEntry(info, 0, 1); + _heightArea = ParseTextEntry(info, 1, 1); + _directionSingle = ParseTextEntry(info, 2, 1); + _directionArea = ParseTextEntry(info, 3, 1); + + string prefix = CommandSystem.Prefix; + + switch (buttonId) + { + case 1: // Minimize + from.SendGump(new MinimizedOzGump()); + return; + + // Height adjustment + case 2: CommandSystem.Handle(from, $"{prefix}Inc z {_heightSingle}"); break; + case 3: CommandSystem.Handle(from, $"{prefix}Inc z -{_heightSingle}"); break; + case 4: CommandSystem.Handle(from, $"{prefix}Area Inc z {_heightArea}"); break; + case 5: CommandSystem.Handle(from, $"{prefix}Area Inc z -{_heightArea}"); break; + + // Direction adjustment + case 6: CommandSystem.Handle(from, $"{prefix}Inc y {_directionSingle}"); break; + case 7: CommandSystem.Handle(from, $"{prefix}Inc x -{_directionSingle}"); break; + case 8: CommandSystem.Handle(from, $"{prefix}Inc x {_directionSingle}"); break; + case 9: CommandSystem.Handle(from, $"{prefix}Inc y -{_directionSingle}"); break; + case 10: CommandSystem.Handle(from, $"{prefix}Area Inc y {_directionArea}"); break; + case 11: CommandSystem.Handle(from, $"{prefix}Area Inc x -{_directionArea}"); break; + case 12: CommandSystem.Handle(from, $"{prefix}Area Inc x {_directionArea}"); break; + case 13: CommandSystem.Handle(from, $"{prefix}Area Inc y -{_directionArea}"); break; + + default: + HandleCommandButton(from, buttonId, prefix); + break; + } + + from.SendGump(new OzStaticToolGump(_heightSingle, _heightArea, _directionSingle, _directionArea)); + } + + private static void HandleCommandButton(Mobile from, int buttonId, string prefix) + { + const int commonStart = 14; + const int staticStart = commonStart + 4; + + if (buttonId >= commonStart && buttonId < staticStart) + { + int index = buttonId - commonStart; + CommandSystem.Handle(from, $"{prefix}{CommonCommands[index].Command}"); + } + else if (buttonId >= staticStart && buttonId < staticStart + StaticItemCommands.Length) + { + int index = buttonId - staticStart; + CommandSystem.Handle(from, $"{prefix}{StaticItemCommands[index].Command}"); + } + } + + private static int ParseTextEntry(RelayInfo info, int id, int defaultValue) + { + string text = info.GetTextEntry(id); + return int.TryParse(text, out int result) ? result : defaultValue; + } +} + +/// +/// Minimized version of the Static Tool gump. +/// +public sealed class MinimizedOzGump : Gump +{ + public MinimizedOzGump() : base(0, 0) + { + Closable = false; + Disposable = false; + Draggable = true; + Resizable = false; + + AddPage(0); + AddBackground(16, 11, 110, 26, 9350); + AddButton(106, 17, 2118, 2117, 1, GumpButtonType.Reply, 0); + AddHtml(19, 16, 83, 16, "Static Tool", false, false); + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + if (info.ButtonID == 1) + { + var from = sender.Mobile; + from.SendGump(new OzStaticToolGump()); + from.CloseGump(); + } + } +} diff --git a/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticItemGumpBase.cs b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticItemGumpBase.cs new file mode 100644 index 000000000..ca7097646 --- /dev/null +++ b/Projects/UOContent/Gumps/Oz'Thoth's Static Gump/StaticItemGumpBase.cs @@ -0,0 +1,121 @@ +/* + * Base class for Oz'Thoth's Static Tool item selection gumps. + * Modernized for .NET 10 / ModernUO + */ + +using System; +using Server.Commands; +using Server.Network; + +namespace Server.Gumps.OzThoth; + +/// +/// Base class for paginated item selection gumps. +/// Subclasses define the item IDs and the command to execute on selection. +/// +public abstract class StaticItemGumpBase : Gump +{ + private const int ItemsPerPage = 12; + private const int PageButtonOffset = 10000; + private const int ItemButtonOffset = 1000000; + + private readonly int _page; + + /// + /// Gets the item IDs to display in this gump. + /// + protected abstract ReadOnlySpan ItemIds { get; } + + /// + /// Gets the command format string. Use {0} for command prefix and {1} for item ID. + /// Example: "{0}Tile Static {1}" or "{0}M Add Static {1}" + /// + protected abstract string CommandFormat { get; } + + /// + /// Creates a new instance of this gump type with the specified page. + /// + protected abstract StaticItemGumpBase CreateInstance(int page); + + protected StaticItemGumpBase(int page = 0) : base(0, 0) + { + var itemIds = ItemIds; + int pageCount = (itemIds.Length + ItemsPerPage - 1) / ItemsPerPage; + + _page = Math.Clamp(page, 0, Math.Max(0, pageCount - 1)); + + Closable = true; + Disposable = true; + Draggable = true; + Resizable = false; + + AddPage(0); + AddBackground(0, 0, 720, 180, 3500); + + // Page number display + AddHtmlLocalized(15, 15, 60, 20, 1042971, _page.ToString(), 0x1, false, false); // # + + // Next button + AddHtmlLocalized(20, 38, 60, 20, 1043353, 0x1, false, false); // Next + int nextPage = _page + 1 < pageCount ? _page + 1 : 0; + AddButton(15, 55, 0xFA5, 0xFA7, PageButtonOffset + nextPage, GumpButtonType.Reply, 0); + + // Back button + AddHtmlLocalized(20, 93, 60, 20, 1011393, 0x1, false, false); // Back + int prevPage = _page > 0 ? _page - 1 : 0; + AddButton(15, 110, 0xFAE, 0xFB0, PageButtonOffset + prevPage, GumpButtonType.Reply, 0); + + // Items + for (int i = 0; i < ItemsPerPage; i++) + { + int index = (_page * ItemsPerPage) + i; + if (index >= itemIds.Length) + { + break; + } + + int itemId = itemIds[index]; + int offset = (i + 1) * 50; + + if (itemId > 0) + { + AddButton(45 + offset, 20, 0x2624, 0x2625, ItemButtonOffset + index, GumpButtonType.Reply, itemId); + AddItem(50 + offset, 40, itemId); + } + else + { + AddImage(25 + offset, 20, 0x2625, 900); + } + } + } + + public override void OnResponse(NetState sender, in RelayInfo info) + { + var from = sender.Mobile; + int button = info.ButtonID; + + if (button <= 0) + { + return; + } + + int page = _page; + var itemIds = ItemIds; + + if (button >= ItemButtonOffset) + { + int index = button - ItemButtonOffset; + if (index >= 0 && index < itemIds.Length) + { + string command = string.Format(CommandFormat, CommandSystem.Prefix, itemIds[index]); + CommandSystem.Handle(from, command); + } + } + else if (button >= PageButtonOffset) + { + page = button - PageButtonOffset; + } + + from.SendGump(CreateInstance(page)); + } +}