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

Solved Firstitems help

wishy85

GOD Smokey
Joined
May 10, 2010
Messages
150
Reaction score
3
Location
Australia
hello im tryin to change my firstitems so everyone starts off with plate set and steel helmet with dwarven shield and of course there vocation starter weapon can someone help me please my server is reading the firstitems from my mods file can anyone help me plz here is wat i have atm ive tried putting different scripts in but it doesnt register them :/

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)
            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, 2651, 1)
            else
                doPlayerAddItem(cid, 2650, 1)
            end

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

Im using NaxedOt 8.6
 
Solved i deleted it out of mods now its working through creaturescripts all good :/ stupid thing lol was in both didnt realise but SOLVED
 
he was have 2 scripts for first items with one storge id he removed one from both " he was have one im mods and othere in creaturescript"
 
Back
Top