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

Huge problem Firstitem.xml?

Dylanaw

Godly Member
Joined
Feb 18, 2009
Messages
473
Reaction score
10
SOLVED








Hello Otlanders.

I got a huge problem,
When i set up the Firstitem.xml and create new character and log-in on the game all items goes on the ground.

Also when i try to open a box (backpack reward in it) it says i don't got enough space or cap, even i don't wear anything.

This is a major bug for me on my server.


Server: TheForgottenServer8.60V3 Edited by Otswe

Firstitem.xml:
LUA:
<?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 = {2160}
		}
	]]></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
 
			for _, id in ipairs(config.items) do
				doPlayerAddItem(cid, id, 1)
			end
 
			if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
				doPlayerAddItem(cid, 2493, 1)
				doPlayerAddItem(cid, 2494, 1)
				doPlayerAddItem(cid, 2495, 1)
				doPlayerAddItem(cid, 2643, 1)
			else
				doPlayerAddItem(cid, 2493, 1)
				doPlayerAddItem(cid, 2494, 1)
				doPlayerAddItem(cid, 2495, 1)
				doPlayerAddItem(cid, 2643, 1)
			end
 
			doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2160, 25)
			doPlayerAddItem(cid, 2543, 1)
			doPlayerAddItem(cid, 2268, 1)
			doPlayerAddItem(cid, 2455, 1)
			doPlayerAddItem(cid, 2273, 1)
			doPlayerAddItem(cid, 2276, 1)
			doPlayerAddItem(cid, 2186, 1)
			doPlayerAddItem(cid, 2191, 1)
			doPlayerAddItem(cid, 2544, 1)
			doPlayerAddItem(cid, 2456, 1)
			setPlayerStorageValue(cid, config.storage, 1)
			return true
		end
	]]></event>
</mod>

I don't think it's not the firstitem.xml, but i have no clue what it should be then.
I hope someone can help me.

if u need any lua just say so ill post it.


Yours,







________________________
Edit:

I got another major bug,
Anyone who eats a food (doesn't matter what it is), it regenerate 200-300 mana each second. how can i change that?
 
Last edited:
Fixed, i just had to make 4 characters names : Sample druid, Sample knight, Sample paladin, Sample sorcerer
and put there the items on it.
And done, then u don't need firsitems.xml

I hope i help people if they got the same problem as me.
 
Back
Top