Kam
d0dc8a4578
Trader System + Stocks Implemented
...
- Removed Auction System Temporarily for Full Rebase
2026-01-22 12:38:56 -05:00
Kam
04e2a57cb4
Auction Merge
2026-01-20 21:07:18 -05:00
bigguy345
60af203165
Renamed to moveFromGlobalToLocal
2026-01-05 20:32:18 +02:00
bigguy345
e8ef60deb4
Important IAnimation takeTasksFrom global instance in AnimationController to local instance in entity AnimationData
2026-01-05 20:25:34 +02:00
bigguy345
db0aa94a3a
IAnimation instead of Animation
2026-01-05 20:17:55 +02:00
bigguy345
eb660b38ae
Added IAnimation consumers to API
2026-01-05 17:14:45 +02:00
bigguy345
68681931f8
Animation Data Store (for cross event/frame data handling)
2026-01-05 16:53:58 +02:00
bigguy345
a33acee117
Added Animation task consumers (much better than animation events)
2026-01-05 16:49:48 +02:00
Kam
d657bab73c
Harden auction display and trader stock init
2026-01-04 15:21:11 -05:00
Claude
740c2852e5
Refactor auction system: consolidate controllers, add lang keys, remove categories
...
- Consolidate AuctionLogger and AuctionNotificationController into AuctionController
- Add inline logging and notification methods to AuctionController
- Add comprehensive LANG keys for all auction GUI strings
- Update EnumAuctionSort and EnumAuctionDuration to use lang keys
- Remove category filtering system (EnumAuctionCategory deleted)
- Update AuctionFilter to remove category references
- Update GuiAuction and all sub-GUIs to use StatCollector.translateToLocal()
- Update AuctionListing to remove category field and NBT serialization
2026-01-04 10:26:56 +00:00
Claude
d09c6b0c81
Add auction filtering and sorting system
...
New files:
- EnumAuctionSort: Sorting options (price, time, name, bids, etc.)
- AuctionFilter: Search/filter criteria with builder pattern
- AuctionDataPacket: Large packet for server->client listing data
AuctionController changes:
- getFilteredListings(): Main filtering/pagination method
- sortListings(): Comprehensive sorting by various criteria
- quickSearch(): Convenience method for simple searches
- FilterResult: Pagination result container
AuctionListing changes:
- Added bidCount field with NBT persistence
- Added creationTime alias methods
AuctionActionPacket changes:
- QueryListings: Filter-based search
- QueryMyListings: Player's own listings
- QueryMyBids: Player's active bids
- QueryClaimable: Items ready to claim
NoppesUtil changes:
- Auction data storage and IAuctionData interface
- Client-side data handling for GUI integration
2026-01-04 09:33:29 +00: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
60b985d33d
Fix currency storage to use main PlayerData file
...
- Currency now stored in main player save file, not separate file
- Currency excluded from getNBT/setNBT (slot-specific data)
- Currency saved in save() after getNBT(), loaded before setNBT()
- This ensures currency is preserved during profile slot changes
- Removed loadCurrency() and saveCurrency() separate file methods
- Updated VaultHelper to call save() instead of saveCurrency()
2026-01-04 08:23:50 +00:00
Claude
7e6b17c106
Implement Phase 1: Currency System foundation
...
- Add ConfigMarket.java with separate market.cfg config file
- Currency settings (name, starting balance, max balance, Vault integration)
- Auction settings (durations, fees, snipe protection, claim expiration)
- Trader settings (stock system defaults)
- Add PlayerCurrencyData.java for balance storage
- NOT profile slot bound - shared across all slots
- Tracks balance, lifetime earned, and lifetime spent
- Deposit/withdraw with overflow protection
- Add VaultHelper.java for Bukkit hybrid server integration
- Reflection-based VaultAPI integration
- Falls back to internal currency when Vault unavailable
- Supports getBalance, deposit, withdraw, transfer operations
- Add CurrencyController.java for currency operations
- Claims system for auction refunds and NPC payments
- Claim expiration with configurable days
- Persistence via currency_claims.dat
- Update PlayerData.java to integrate currency
- Separate loadCurrency/saveCurrency methods
- Currency file stored separately from slot data
- Add scripting API methods to ScriptPlayer.java
- getCurrencyBalance(), addCurrency(), removeCurrency()
- canAffordCurrency(), getCurrencyName(), formatCurrency()
- hasPendingClaims(), getPendingClaimsTotal(), claimAllCurrency()
2026-01-04 08:14:29 +00:00
Kam
592a910cbc
Add some more Attack Speed Handling
2025-12-30 19:29:44 -05:00
Kam
2065d5dde5
Merge branch 'mount-movement-fix' into dev
2025-12-30 17:49:27 -05:00
lonewolf8351
0b2bf5fd04
added attack speed parameter to linked Items
2025-12-03 13:44:56 -05:00
Kam
9744209938
Refactor mount helpers and expose NPC flight state
2025-11-07 20:15:49 -05:00
Kam
db09c9a44f
Handle null results in conditional actions
2025-10-31 17:57:13 -04:00
bigguy345
111f16647d
ActionManager.scheduleParallel not feeding name arg properly
2025-10-15 23:09:20 +03:00
Kam
b6b4b20ba8
Prevent NPE when party leader name missing
2025-07-28 13:27:57 -04:00
Kam
9c541999f3
Optimize Imports
2025-07-23 14:22:52 -04:00
Kam
b60d6f8eb5
Fix Logging
2025-07-23 05:13:11 -04:00
Kam
bacfb5eba0
Create First Push of Recipe Events
2025-07-09 15:40:31 -04:00
Kam
1b76f1ab7e
IActionListener Comments
2025-07-08 16:34:34 -04:00
Kam
131815ff06
Oof
2025-07-08 14:38:51 -04:00
bigguy345
994cadfc3b
IActionListener W.I.P
2025-07-08 21:31:55 +03:00
bigguy345
91dc56bf87
Moved NpcAPI.actionManager to ActionManager.GLOBAL
2025-07-08 14:34:39 +03:00
bigguy345
70f0ab1e6f
ActionQueue.stopWhenEmpty
2025-07-08 14:22:49 +03:00
bigguy345
b37f9a7ea4
Added Action.getIdentifier
2025-07-08 12:00:37 +03:00
bigguy345
b6ac84d4c4
oops
2025-07-08 11:59:22 +03:00
bigguy345
7c24caf004
More ActionLogger and ActionThread optimisations
2025-07-08 11:34:32 +03:00
bigguy345
fe786babc6
IAction optimisations
2025-07-07 22:41:58 +03:00
bigguy345
d58b4bb905
ActionLogger !!
2025-07-07 21:22:34 +03:00
bigguy345
e186bb0bd0
Implemented debug mode for ActionQueue and ActionManager
2025-07-07 13:39:45 +03:00
bigguy345
e6d4e1f3fd
ActionManager name
2025-07-07 13:21:39 +03:00
bigguy345
5cb5e3da85
ActionManager DEBUG MODE
...
Implemented for Actions
2025-07-07 13:08:51 +03:00
bigguy345
25ab7b2f71
IActionQueue ticking Optimisations
2025-07-07 12:23:34 +03:00
bigguy345
3e6b37ac05
action.copyDataTo(IAction copyTo)
2025-07-07 00:21:51 +03:00
bigguy345
835b32daa1
Added onStart(task) and onDone(task) for IAction
2025-07-06 23:59:31 +03:00
bigguy345
8d63134a72
Improved debugging
2025-07-06 23:57:20 +03:00
bigguy345
ffd331fbc5
More debugging stuff
2025-07-06 23:29:25 +03:00
bigguy345
5e48063311
Added print debugging dump methods for most IAction framework components
2025-07-06 10:56:29 +03:00
bigguy345
253bfd7e17
Revamped before() and after() chaining of unscheduled IActions
2025-07-05 22:50:38 +03:00
bigguy345
7786d8e271
a buncha IAction adjustments
2025-07-05 10:19:11 +03:00
bigguy345
44d76b638d
Minor changes
2025-07-04 00:10:12 +03:00
bigguy345
50aedd8f56
IActionQueue methods to IActionManager
2025-07-03 23:52:05 +03:00
bigguy345
c147250784
Renamed killAfter to killWhenEmptyAfter
2025-07-03 23:45:16 +03:00
bigguy345
a8a8094d7e
oops
2025-07-03 23:17:25 +03:00