aboutsummaryrefslogtreecommitdiff
path: root/gamemode/config/sv_newplayer.lua
blob: 229c11e80fe612129c10e92733420d115f59efe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local np = {}
local inv = nrequire("inventory/inventory.lua")
nrequire("inventorysystem/equipment/sh_equipment.lua")
nrequire("inventorysystem/shapedinventory/sh_shaped.lua")
nrequire("inventorysystem/prayers/sh_prayers.lua")
nrequire("inventorysystem/skills/sh_skills.lua")
nrequire("inventorysystem/quests/sh_quests.lua")
local log = nrequire("log.lua")
--local itm = nrequire("inventory/item.lua")

local data = {
	inventories = {
		{"Equipment", inv.CreateInventory("Equipment"):Serialize()},
		{"Shaped Inventory",inv.CreateInventory("Shaped Inventory"):Serialize()},
		{"Prayers",inv.CreateInventory("Prayers"):Serialize()},
		{"Skills",inv.CreateInventory("Skills"):Serialize()},
		{"Quests",inv.CreateInventory("Quests"):Serialize()},
	},
}

np.newdata = function()
	log.debug("newdata asked for")
	log.debug(table.ToString(data,"data",true))
	return data
end

np.newmeta = function()
	log.debug("newmeta asked for")
	return {
		lastserver = "67.163.245.187:27015",
		lastlocation = "-1209 1544 -1770"
	}
end

return np