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

[REQ] Where to change first items

I couldn't get it too so I made a storage check at login and that gives first items.
 
This is mine:

Lua:
function onLogin(cid)
	if getPlayerStorageValue(cid, 35725) ~= 1 then
		doPlayerAddItem(cid, 1987, 1)
		doPlayerAddItem(cid, 2480, 1)
		doPlayerAddItem(cid, 2483, 1)
		doPlayerAddItem(cid, 2511, 1)
		if (getPlayerVocation(cid) == 1) then
			doPlayerAddItem(cid, 2190, 1)
		elseif (getPlayerVocation(cid) == 2) then
			doPlayerAddItem(cid, 2182, 1)
		elseif (getPlayerVocation(cid) == 3) then
			doPlayerAddItem(cid, 2389, 8)
		else
			doPlayerAddItem(cid, 2439, 1)
			doPlayerAddItem(cid, 2383, 1)
			doPlayerAddItem(cid, 2428, 1)
		end	
		doPlayerAddItem(cid, 2478, 1)
		doPlayerAddItem(cid, 2674, 1)
		doPlayerAddItem(cid, 2152, 5)
		setPlayerStorageValue(cid, 35725, 1)
	end
	return true
end

Just read the script, it is really friendly.
 
Depending on what TFS version you're using, you can find a script named firstitems.xml at mods folder.

You should edit it with the items u want lol
 
There are sample chars for that. "Sample Sorcerer", "Sample Druid", ...
exactly go to ur data base and set save to 1 for all the sample characters. then log in them and put w.e starting EQ you want on them. then log out and set save back to 0
 
save 0 = dont save
save 1 = save
So what he means give them the items if they have save 1
then save it and put save 0
 
Back
Top