## [TH] รายละเอียดสคริปต์ NEXTCODE Lootbox Premium
**NEXTCODE Lootbox Premium (v1.0.0)** คือระบบกล่องสุ่มไอเทมระดับพรีเมียมสำหรับเซิร์ฟเวอร์ RedDead Redemption (VORP Core) ที่ออกแบบมาให้ใช้งานง่าย ปรับแต่งได้ละเอียด และมีระบบการันตีเพื่อเอาใจผู้เล่น
### 🌟 คุณสมบัติเด่น (Features)
* **ระบบการันตี (Pity System):** สามารถตั้งค่าจำนวนครั้งในการเปิดเพื่อรับรางวัลพิเศษที่กำหนดไว้ได้ (Guarantee Reward)
* **ปรับแต่งอัตราดรอปได้ละเอียด:** รองรับทศนิยมเพื่อให้ความแม่นยำสูงสุด แบ่งระดับความหายากได้ถึง 5 ระดับ (Common, Rare, Epic, Unique, Legendary)
* **รองรับรางวัลหลากหลาย:** สามารถสุ่มได้ทั้ง ไอเทม (Items), อาวุธ (Weapons), เงิน (Cash) และ ทอง (Gold)
* **ระบบเสียงประกอบ:** มี Sound Effect ขณะเปิดกล่อง เพิ่มความตื่นเต้น (รองรับ .mp3, .wav, .ogg)
* **การแจ้งเตือนแบบ Webhook:** แยก Log การได้รับไอเทมตามระดับความหายากไปยัง Discord Webhook (แยก URL ตาม Tier ได้)
* **ระบบประกาศ (Broadcast):** ประกาศชื่อผู้เล่นที่สุ่มได้ไอเทมระดับสูงให้คนทั้งเซิร์ฟเวอร์รับรู้
* **คำสั่ง Admin สำหรับทดสอบ:** มี Admin Command (`/testlootbox`) สำหรับเสกกล่องออกมาทดสอบระบบได้ทันที
### 🛠️ การตั้งค่า (Configuration)
* สามารถเปลี่ยน Source รูปภาพไอเทมจาก Inventory หลักได้
* ตั้งค่าระดับเสียง (Volume) และไฟล์เสียงได้ตามต้องการ
* กำหนดระดับ Admin ที่สามารถใช้คำสั่งทดสอบได้ (เช่น admin, superadmin)
* ปรับแต่งข้อความแจ้งเตือน (Notification) และข้อความในระบบได้ทั้งหมด
---------------------------------------------------------------------------------------------------------------
## [EN] NEXTCODE Lootbox Premium - Script Description
**NEXTCODE Lootbox Premium (v1.0.0)** is a high-quality, professional lootbox system for RedDead Redemption (VORP Core). It offers a smooth experience for players with a robust configuration for server owners.
### 🌟 Key Features
* **Guaranteed Reward System (Pity):** Set a threshold for guaranteed rewards after a specific number of opens to keep your players engaged.
* **Precision Drop Rates:** Supports decimal values for fine-tuned probability. Categorized into 5 Rarity Tiers: Common, Rare, Epic, Unique, and Legendary.
* **Diverse Rewards:** Give out Items, Weapons, Cash, or Gold Nuggets directly from the box.
* **Immersive Sound Effects:** Built-in audio support for opening boxes (supports .mp3, .wav, .ogg) with adjustable volume.
* **Discord Webhook Integration:** Detailed logs sent to Discord, organized by rarity tiers with customizable colors and separate webhook URLs.
* **Global Broadcast:** Automatically announce to the whole server when a player wins a high-tier reward.
* **Admin Test Tools:** Includes an easy-to-use command (`/testlootbox`) for admins to test rates and rewards.
### 🛠️ Configuration Options
* **Image Source:** Fully compatible with your existing inventory images.
* **Custom Notifications:** Adaptable to any notification system (Default: VORP TipRight).
* **Flexible Setup:** Easy to add new items, modify tiers, and change system messages.
* **Permission Based:** Secure admin commands limited to specific groups (e.g., admin, superadmin).
----------------------------------------------------------------------------------------------------------------
**Compatible with:** VORP Core
**Language:** Lua / HTML / JS
**Author:** NextCode
YouTube https://youtu.be/H6ovNhLG4pA