A simple automated 1v1 arena system for AzerothCore with Eluna. Players can queue up and get matched for fair 1v1 duels automatically!
This script creates an NPC that lets players:
- Join a queue for 1v1 fights
- Get matched with another player automatically
- Fight in Gurubashi Arena (best of 3 rounds)
- Get teleported back when the match ends
Add this NPC to your database:
INSERT INTO creature_template (entry, name, subname, minlevel, maxlevel, faction, npcflag, scale)
VALUES (1000000, 'Arena Master', '1v1 Queue', 80, 80, 35, 1, 1);
INSERT INTO creature_template_model(CreatureID, CreatureDisplayID, DisplayScale) VALUES(1000000, 987, 1);
Spawn the NPC where players can find it easily (like in a major city):
.npc add 1000000
- Put the
1v1_core.lua
file in your server's lua_scripts folder - Restart your server or reload Eluna
That's it! Players can now use the NPC to queue for 1v1 matches.
Open 1v1_core.lua
and look at the top section. You can easily change:
NPC_ID
- Change this if you use a different NPC ID (default: 1000000)
MSG_JOINED
- Message when joining queueMSG_LEFT
- Message when leaving queueMSG_MATCH_FOUND
- Message when match startsCOLOR_CODE
- Change the color of messages
WINNING_SCORE
- How many rounds to win (default: 2 for best of 3)COUNTDOWN_DURATION
- Seconds before fight starts (default: 5)
The script uses Gurubashi Arena by default. If you want to use a different arena:
- Go to your arena location in-game
- Type
.gps
to get coordinates - Replace the ARENA coordinates in the config
- Talk to the Arena Master NPC
- Click "Join 1v1 Queue"
- Wait for another player to queue
- Get teleported to arena when matched
- Fight! (Best of 3 rounds)
- Get sent back after the match
Players can leave the queue anytime by talking to the NPC again.
NPC won't appear:
- Check the NPC ID matches in both the database and script
- Make sure Eluna is installed and working
Players stuck in arena:
- The script should teleport them back automatically
- If not, they can use hearthstone
Match not starting:
- Need at least 2 players in queue
- Check both players are online and not in combat
Want to change the arena:
- Use
.gps
at your desired location - Update the ARENA coordinates in the config section
- Restart the server
- This is a fair fight system - both players get full health/mana between rounds
- Players can't interfere with other matches
- The queue is first-come, first-served
- No rewards are given by default (TBA)
- Works with any level players (they keep their gear/stats)
Created by PrivateDonut for the AzerothCore community. Having issues? Create An Issue on Github