Commit Graph
89 Commits
Author SHA1 Message Date
Kam 5700899beb Fix Job Spawner 2026-03-09 15:26:39 -04:00
Kam 3577701edf Auction Fixes + Auction API Hookup 2026-01-24 15:11:50 -05:00
Kam 5afa1c8959 Auction System Implementation 2026-01-23 21:53:12 -05:00
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
Kam d0dc8a4578 Trader System + Stocks Implemented
- Removed Auction System Temporarily for Full Rebase
2026-01-22 12:38:56 -05:00
Kam d657bab73c Harden auction display and trader stock init 2026-01-04 15:21:11 -05:00
Claude c1dc58ae54 Implement Phase 4: Auction House core system
- Add auction enums:
  - EnumAuctionDuration.java - configurable auction durations (SHORT/MEDIUM/LONG/VERY_LONG)
  - EnumAuctionStatus.java - listing statuses (ACTIVE/SOLD/EXPIRED/CANCELLED/CLAIMED)
  - EnumAuctionCategory.java - auto-categorization of items for browsing

- Add AuctionListing.java data class:
  - Complete auction listing with seller/bidder tracking
  - Pricing with starting price, buyout price, current bid
  - Timing with snipe protection (extends TO X minutes, not by)
  - Item validation (checks trade restrictions and blacklist)
  - Previous bidder tracking for refund notifications
  - NBT serialization for persistence

- Add AuctionController.java:
  - Global auction house management
  - Create/cancel/finalize listings
  - Bid placement with automatic outbid refunds via claims system
  - Buyout support with immediate sale
  - Claim system for sellers (proceeds) and buyers (items)
  - Search and filter by category/name
  - Periodic expiration processing
  - Persistence via auctions.dat

- Add RoleAuctioneer.java NPC role:
  - Configurable tabs (listings, my listings, my bids, claims)
  - Configurable permissions (create, bid, buyout)
  - Custom welcome/disabled messages
  - Opens auction GUI on interaction

- Update ConfigMarket.java:
  - Duration-specific settings (hours and fees)
  - Removed deprecated AvailableDurations string

- Update EnumRoleType.java - add Auctioneer
- Update EnumGuiType.java - add PlayerAuction, SetupAuctioneer
- Update DataAdvanced.java - handle Auctioneer role creation
- Update CustomNpcs.java - initialize AuctionController
2026-01-04 08:43:55 +00:00
Claude c9f77bed05 Implement Phase 2: Trader Enhancements with stock and currency system
- Add EnumStockReset.java for stock reset timing types
  - NONE, MCDAILY, MCWEEKLY, MCCUSTOM (MC time)
  - RLDAILY, RLWEEKLY, RLCUSTOM (real time)
  - Helper methods for interval calculation and display formatting

- Add TraderStock.java for stock management
  - Per-slot stock limits with -1 for unlimited
  - Per-player vs per-server stock tracking modes
  - Automatic reset timer with configurable intervals
  - PlayerTraderStock inner class for per-player tracking
  - NBT serialization for persistence

- Modify RoleTrader.java to support stock and currency
  - Add TraderStock instance for stock management
  - Add useCurrency flag and slotPrices array for virtual currency
  - Auto-check for stock reset on interact()
  - Helper methods: hasStock(), getAvailableStock(), consumeStock()
  - Helper methods: getSlotPrice(), setSlotPrice(), hasSlotPrice()
  - getTimeUntilResetFormatted() for GUI display

- Modify ContainerNPCTrader.java for transactions
  - Check stock availability before purchase
  - Handle virtual currency purchases via CurrencyController
  - Fall back to item-based currency when useCurrency disabled
  - Consume stock after successful purchase
2026-01-04 08:29:03 +00:00
Claude de8c317023 Add mount edge case handling for dismount scenarios
- Player logout: Dismount from NPC mount before logout to prevent
  orphaned mount state (ServerTickHandler)
- Teleportation: Dismount before cross-dimension teleport to prevent
  mount being left behind in old dimension (NoppesUtilPlayer)
- Dead rider: Validate rider is alive, dismount dead/invalid riders
  to prevent stuck mount state (NPCMountUtil)
- Role disable: Dismount rider when mount role is disabled to prevent
  mounted player on non-mount NPC (RoleMount)
2025-12-30 23:20:54 +00:00
Kam 9744209938 Refactor mount helpers and expose NPC flight state 2025-11-07 20:15:49 -05:00
Kam bed60002c3 Restrict mount riders and expose jump controls 2025-11-06 02:14:11 -05:00
Kam d00c1cf156 Refine mount role rider positioning and home behavior 2025-11-06 01:42:55 -05:00
Kam 11e326de48 Add mount role for NPCs with rider controls 2025-11-06 00:20:22 -05:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
Kam cc148c02d7 Convert all getPlayerData() to PlayerData.get() 2025-04-08 22:48:32 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Kam 43c940f7ed Merge branch 'dev' into dev 2025-03-06 02:19:17 -05:00
Kam 79955f549e Complete Some Todos and Remove Some 2025-02-18 04:45:47 -05:00
Kam 7d37670494 Rename to NPC AI to NPC AIs 2025-02-10 21:32:55 -05:00
Kam 20a46e6007 Custom Effect [WIP] 2025-02-10 14:58:45 -05:00
Mark Zharkov 37ad1755fd fix loss of the block 2025-02-06 22:38:44 +03:00
Luis C.M. a88f814c7a Fixed bard music bug where music would keep playing, unattached to a particular NPC. 2024-05-16 02:01:04 -05:00
luisc f6244434f7 Fixed background music not cancelling when moving within another bard NPC's range 2024-05-14 19:17:21 -05:00
luisc 56bb6751b1 Made more adjustments to the off range of music, and made the music properly repeat. Background bard music always plays at the player. 2024-05-14 18:32:30 -05:00
luisc 2d9063cf24 Changed entity check for bards 2024-05-14 18:05:25 -05:00
luisc 2637d9de26 Adjusted bard distance calc 2024-05-14 18:00:27 -05:00
luisc a291b4d49d Fixed bard lag 2024-05-14 17:52:19 -05:00
Kam 6f6d4c041b Remove Weird Global Item Givers / Fixes Item Givers 2024-03-05 13:51:03 -05:00
Kam 6f5fd25a24 Prevent Music Overlapping Memory Leak 2024-02-20 20:30:18 -05:00
Kam 3507cb85c5 Multithread Market Saving + Record History for Markets 2024-02-20 20:29:49 -05:00
Kam 32aca44443 Fix Spawn when Summoner Dies and not Respawnable 2024-02-20 00:50:07 -05:00
Kam e46b78ff71 Optimize Imports 2024-02-15 17:54:28 -05:00
Kam 0039f062f0 IRoleFollower New Functions
- [SET/GET] Rate
- [SET/GET] DialogHire
- [SET/GET] DialogFarewell
2024-02-10 18:50:52 -05:00
Kam 6d0df76447 Allow Spawns to Naturally Despawn always 2023-08-01 17:14:24 -04:00
Kam 50ef7aef62 Fix Job Spawner Jumping and Spawning Issue 2023-08-01 17:11:40 -04:00
Kam 4f1a9cefb7 Despawn Spawns when Summoner Dies 2023-07-31 11:38:59 -04:00
Kam 1a9b9645d5 Add Job Spawner to Spawn on Death Option 2023-07-30 19:28:06 -04:00
Luis C.M 978358e827 JobSpawner:
-Fixed strange entity bobbing and increased speed when NPCs are spawned through a spawner NPC.
2023-07-28 00:21:55 -05:00
Kam da313f6d0a Compatibility Helper DBC 2023-07-19 11:17:11 -04:00
Kam 491e377a3e CAPITAL I cause it looks cool 2023-06-05 22:12:48 -04:00
Kam 54b46129a9 Capital "I" for Instance 2023-06-05 19:35:27 -04:00
Kam 16d02f93e1 Capital "I" for Instance 2023-06-05 19:35:06 -04:00
KAMKEEL 7bd14b06dd Move InnDoorData to proper directory 2023-03-21 19:37:04 -04:00
Luis C.M f0b33cf913 Moved model scale parts into a single ModelScale class, similar to ModelRotate.
Added NPC model data interfaces to the API.
2023-03-17 02:36:28 -05:00
Luis C.M df069c82c2 Added a quest alert toggle for each quest in the quest log.
Fixed instant complete quests not finishing sometimes.
2023-03-16 23:37:57 -05:00
KAMKEEL bda76bafe6 Optimize Imports 2023-01-12 21:33:06 -05:00
Luis C.M 54d53041ac Animation Data overhaul 2023-01-12 15:07:45 -06:00
KAMKEEL 8f62daba3e Refactor JobPuppet and PartConfig 2023-01-11 22:42:36 -05:00
Luis C.M 8905f5f42e Moved NPC puppet data to display data.
Improved mixin functionality, offsets and rotations always reset if the puppet "job" (not a job anymore, always in display) is disabled.
2023-01-11 19:12:53 -06:00
Luis C.M 6897512a01 Removed redundant client-side fields from puppet parts. 2023-01-10 15:21:58 -06:00