• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Need Help With Starter Items

Obito

0x1337
Joined
Jun 4, 2008
Messages
399
Solutions
12
Reaction score
221
When The New Character Is Made There Are No Items With IT Need Help With That
And Thanks For Your Time
 
a mod for firstitems.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<config name="firstitems_config"><![CDATA[
		config = {
			storage = 30001,
			items = {2050, 2382}
		}
	]]></config>
	<event type="login" name="FirstItems" event="script"> <![CDATA[
		domodlib('firstitems_config')
 
		function onLogin(cid)
	local config = {
		voc_items = {
			{ -- SORC
				{2190}, -- wand of vortex
				{2175}, -- spellbook
				{2323}, -- hat of the mad
				{8871}, -- focus cape
				{2647} -- plate legs
			},
			{ -- DRUID
				{2182}, -- snakebite rod
				{2175}, -- spellbook
				{2323}, -- helmet
				{8871}, -- plate robe
				{2647} -- plate legs
			},
			{ -- PALADIN
				{2389}, -- throwing knife
				{2525}, -- dwarven shield
				{2457}, -- steel helmet
				{2660}, -- ranger armor
				{8923} -- ranger legs
			},
			{ -- KNIGHT
				{2383}, -- spike sword
				{2428}, -- orcish axe
				{2422}, -- iron hammer
				{2525}, -- dwarven shield
				{2457}, -- steel helmet
				{2463}, -- plate armor
				{2647} -- plate legs
			}
		},
		all_items = {			
			{2643}, -- leather boots
			{2661} -- Necklace
		},
		extra_items = {
			{2789, 20},			
			{2120},
			{2554},
			{7620,10}, -- small hp
			{7618,10}, -- hp
			
		},
		knight_weapons = {
			{2394}, -- morning star
			{2428} -- orcish axe
		}
	}
	if getPlayerGroupId(cid) < 3 then
		if getPlayerStorageValue(cid, storage) == -1 then
			local common = config.voc_items[getPlayerVocation(cid)]
			if common ~= nil then
				for _, v in ipairs(common) do
					doPlayerAddItem(cid, v[1], v[2] or 1)
				end
			end
 
			local all = config.all_items
			if all ~= nil then
				for _, v in ipairs(all) do
					doPlayerAddItem(cid, v[1], v[2] or 1)
				end
			end
 
			local extra = config.extra_items
			local bp = doPlayerAddItem(cid, 1988, 1)
			if extra ~= nil then
				for _, v in ipairs(extra) do
					doAddContainerItem(bp, v[1], v[2] or 1)
				end
			end
 
			local weapons = config.knight_weapons
			if weapons ~= nil then
				for _, w in ipairs(weapons) do
					if isKnight(cid) then
						doAddContainerItem(bp, w[1], w[2] or 1)
					end
				end
			end
 
			setPlayerStorageValue(cid, storage, 1)
		end
	end
	return true
end
	]]></event>
</mod>
 
I need Help With another thing
I cant install gesior aac
give me error
and i made a modern aac and works but doesnt wrok with anyone else how do i fix that problem
 
What error? Check config.lua in case you have additional comments in top like this:

LUA:
-- The Forgotten Server Config
-- CUSTOM OTOTOTOTOT

	-- Account manager
	accountManager = true
	namelockManager = true
.....

Change to:

LUA:
-- The Forgotten Server Config

	-- Account manager
	accountManager = true
	namelockManager = true
.....
 
i have this

-- We Do OTS Config

-- Account manager
accountManager = true
namelockManager = true
newPlayerChooseVoc = true
newPlayerSpawnPosX = 32360
newPlayerSpawnPosY = 31782
newPlayerSpawnPosZ = 7
newPlayerTownId = 2
newPlayerLevel = 8
newPlayerMagicLevel = 2
generateAccountNumber = false
 
Back
Top