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

Characters

anubis131

New Member
Joined
Nov 4, 2009
Messages
117
Reaction score
0
Location
england
Hello
I Made My Server Today Mainly Finished It All
But For Some Odd Reason When Ever I Put Equipment On

Knight Sample
Paladin Sample

It Never Stays On When I Log Out So Players Would Log In With Nothing..

Can Someone Help.
 
Last edited:
First Items.xml
XML:
<?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,
			knight = {2480, 2464, 2530, 2398, 2468, 2643, 2120},
	                sorcerer = {2480, 2464, 2530, 2190, 2468, 2643, 2120},
	                druid = {2480, 2464, 2530, 2182, 2468, 2643, 2120},
	                paladin = {2480, 2464, 2530, 2389, 2468, 2643, 2120}
		}
	]]></config>
	<event type="login" name="FirstItems" event="script"><![CDATA[
		domodlib('firstitems_config')

		function onLogin(cid)
			if(getPlayerStorageValue(cid, config.storage) > 0) then
				return true
			end
			
			
			if isKnight(cid) == TRUE then
		for i = 1, table.maxn(config.knight) do
			doPlayerAddItem(cid, config.knight[i], 1)
		end
	elseif isSorcerer(cid) == TRUE then
		for i = 1, table.maxn(config.sorcerer) do
			doPlayerAddItem(cid, config.sorcerer[i], 1)
		end
	elseif isDruid(cid) == TRUE then
		for i = 1, table.maxn(config.druid) do
			doPlayerAddItem(cid, config.druid[i], 1)
		end
	elseif isPaladin(cid) == TRUE then
		for i = 1, table.maxn(config.paladin) do
			doPlayerAddItem(cid, config.paladin[i], 1)
		end
	end


    doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2554, 1)
			setPlayerStorageValue(cid, config.storage, 1)
			return true
		end
	]]></event>
</mod>

Put this in your mods folder, change the ID's to your liking.
 
Back
Top