Welcome to Ac-Web AC-Web

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Ask a Question

Ask Questions and Get Answers from Our Community

Ac-Web Official Repacks !

Here you will find all our official repacks

Contact Us

Contact a Staff member if needed

AzerothCore | Let players start with bags on character creation

blaze131

Registered
joined: Jul 25, 2022
messages: 6
Reaction score: 0
Points: 0
Credits: 0
Hello guys,

is there a way to implement a module that allows you to directly set bags to players on the first login after the character creation.

I know i did that stuff once back in the days with a DBC editor i guess.
Do you guys have any idea how the class name is to realize something like that.

Best regards,
blaze131
 

PrivateDonut

Content Creator
Spu
joined: Mar 9, 2011
messages: 12,045
Reaction score: 800
Points: 113
Location: United States
Website privatedonut.com
Credits: 698
It's been awhile since I messed around with WoW Emulation besides the bare min, but couldn't you just add the bags to characters using the playercreateinfo_item database table under the world database? Not sure if AzerothCore has it or not, but this allows trinity core to add items to players based on class/race when they first create their character.
 

DickFiddler

Registered
joined: Feb 2, 2020
messages: 42
Reaction score: 2
Points: 8
Credits: 11
If your core supports LUA...
You could try saving this script to /server/Scripts/startgear.lua

Code:
--[[
For Trinity Core2 Eluna
by slp13at420 of EmuDevs
Gives new characters (class based) gear on first time login.
just edit the entries with real item id's. add more ore take some away .. its dynamic .. it WILL adapt.
]]--
local StartGear = {
		[1] = {42949, 48685, 42991, 42945}, -- Warrior
		[2] = {42949, 48685, 42991, 42945}, -- Paladin
		[3] = {42950, 48677, 42991, 42943, 42946}, -- Hunter
		[4] = {42952, 42991, 42944, 42944}, -- Rogue
		[5] = {42985, 48691, 42992, 42947}, -- Priest
		[6] = {42949, 48685, 42991, 42945}, -- Death Knight
		[7] = {42951, 48683, 42992, 42948}, -- Shaman
		[8] = {42985, 48691, 42992, 42947}, -- Mage
		[9] = {42985, 48691, 42992, 42947}, -- Warlock
		[10] = {}, -- class 10 is nil non-existing
		[11] = {42984, 48687, 42992, 42948}; -- Druid
					};

function Class_Gear(event, player)
	for _, v in ipairs(StartGear[player:GetClass()]) do
		if((player:GetItemCount(v)) == (0 or nil))then
			player:AddItem(v, 1)
		end
	end
end
		
RegisterPlayerEvent(30, Class_Gear) -- event 30 == on first login.
 

blaze131

Registered
joined: Jul 25, 2022
messages: 6
Reaction score: 0
Points: 0
Credits: 0
@ PrivateDonut Yea. I already did that, but i don't like that it is just in the default bag. Especially if i want to add further stuff.

What i try to do since it is a WotLK Server, that you can decide whether you play from one to 80, or start at 68 and do the northrend stuff already.

But thank you for your reply.

@DickFiddler I'll try that later, since azerothcore does support Eluna
 
Back
Top