• 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!

Changing start EQ with ingame AAC?

Code:
local firstItems =
{
	2526 (or any itemID you wish),	-- Right Hand Slot
	itemID,				-- Left Hand Slot
	itemID, 			-- Legs Slot
	itemID, 			-- Helmet Slot
	itemID,				-- Boots Slot
	itemID,				-- AOL
	itemID,       			-- Arrow Slot

}

function onLogin(cid)
	if getPlayerStorageValue(cid, 30001) == -1 then
		for i = 1, table.maxn(firstItems) do
			doPlayerAddItem(cid, firstItems[i], 1)
		end
		if getPlayerSex(cid) == 0 then
			doPlayerAddItem(cid, 9808, 1)		-- Armor if Woman
		else
			doPlayerAddItem(cid, 2650, 1)		-- Armor if Man
		end
	if getPlayerVocation(cid) == 1 then								-- sorc
        local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2690, 50)	-- 50 rolls
			doAddContainerItem(bag, 2160, 5)	-- 5 crystals
			doAddContainerItem(bag, 10011, 1)	-- newbie wand			
        setPlayerStorageValue(cid, 30001, 1)
    elseif getPlayerVocation(cid) == 2 then							-- druid
        local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2690, 50)	-- 50 rolls			
			doAddContainerItem(bag, 2160, 5)	-- 5 crystals
			doAddContainerItem(bag, 10012, 1)	-- newbie rod
        setPlayerStorageValue(cid, 30001, 1)
    elseif getPlayerVocation(cid) == 3 then							-- paladin
        local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2690, 50)	-- 50 rolls			
			doAddContainerItem(bag, 2160, 5)	-- 5 crystals
			doAddContainerItem(bag, 2389, 1)	-- newbie spear
        setPlayerStorageValue(cid, 30001, 1)
    elseif getPlayerVocation(cid) == 4 then							-- knight
        local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2690, 50)	-- 50 rolls			
			doAddContainerItem(bag, 2160, 5)	-- 5 crystals
			doAddContainerItem(bag, 2416, 1)	-- newbie club
			doAddContainerItem(bag, 2403, 1)	-- newbie sword
			doAddContainerItem(bag, 2405, 1)	-- newbie axe			
        setPlayerStorageValue(cid, 30001, 1)

    elseif getPlayerVocation(cid) == 0 then							-- none
        local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2690, 50)	-- 50 rolls
        setPlayerStorageValue(cid, 30001, 1)
	end
	end
 	return TRUE
end

Thats a script I use to set first items depending on the vocation choosen, in case you need it.

I did NOT make the script from scratch, so credits to whoever did (dont remember right now), I just modified some stuff, but credits go to that person not to me.

Cheers~
 
Back
Top