• 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 Character starting gear

skifft92

New Member
Joined
May 26, 2011
Messages
29
Reaction score
0
How do I make a character start with certain equipment when they are newly created and also with a desired skill or mlvl?
 
In the database set the desired character sample to save="1" and log in with the character sample ingame and give him EQ from your god char. Then log out and it should work!
 
I am not sure, tho try this out. Forget those sample things and get this inside mods folder:
You can modify these items and put the ones you want:)
Tell me if this works!
Oh and the xml must be called: firstitems_voc

XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Kaiser" contact="[EMAIL][email protected][/EMAIL]" enabled="yes">
    <description><![CDATA[
        Custom Fist Items
    ]]></description>
    <config name="firstitems_config"><![CDATA[
        config = {
            storage = 40046,
            items = {}
        }
    ]]></config>
    <event type="login" name="FirstItems" event="buffer"><![CDATA[
        domodlib('firstitems_config')
        if(getPlayerStorageValue(cid, config.storage) > 0) then
            return
        end

        for _, id in ipairs(config.items) do
            doPlayerAddItem(cid, id, 1)
        end

        -- All Vocation
            -- BackPack -- Rope -- in Backpack
            doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1)
            -- Steel Helmet -- Head
            doPlayerAddItem(cid, 2457, 1)
            -- Bonelord Shield -- Right Hand
            doPlayerAddItem(cid, 2518, 1)

        -- Sorcerer (Weapon) -- Hand
        if isSorcerer(cid) then
        -- Magician's Robe -- Body
            doPlayerAddItem(cid, 8819, 1)
            doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Druid (Weapon) -- Hand
            elseif isDruid(cid) then
        -- Magician's Robe -- Body
            doPlayerAddItem(cid, 8819, 1)
            doPlayerAddItem(cid, 2182, 1) -- Snake Bite Rod -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Paladin - Warrior (Weapon) -- Hand
                elseif isPaladin(cid) then
                -- Belted Cape -- Body
            doPlayerAddItem(cid, 8872, 1)
            doPlayerAddItem(cid, 2389, 3) -- Spear -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")

        -- Knight (Weapon) -- Hand
                elseif isKnight(cid) then
                -- Mammoth fur cape -- Body
            doPlayerAddItem(cid, 7463, 1)
            doPlayerAddItem(cid, 8602, 1) -- Jagged Sword -- Left Hand
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
        end

        -- All Vocation
            -- Brass Legs -- in Feet
            doPlayerAddItem(cid, 2478, 1)
            -- Leather Boots -- in Boots
            doPlayerAddItem(cid, 2643, 1)
            -- Amulet of Loss -- in Necklacke
            doPlayerAddItem(cid, 2173, 1)
            -- Crystal Coin -- in Arrows
            doPlayerAddItem(cid, 2160, 1)
            -- Health Potion -- in Backpack
            doPlayerAddItem(cid, 7618, 10)
            -- Shovel -- in Backpack
            doPlayerAddItem(cid, 2554, 1)
            -- Crystal Ring -- in Ring
            doPlayerAddItem(cid, 2124, 1)
            -- Mana Potion -- in Backpack
            doPlayerAddItem(cid, 7620, 15)

        -- Knight (Weapon) -- in Backpack
        if isKnight(cid) then
            doPlayerAddItem(cid, 8601, 1) -- Steel Axe
            doPlayerAddItem(cid, 3966, 1) -- Banana Staff
        end

    setPlayerStorageValue(cid, config.storage, 1)
    ]]></event>
</mod>
 
it works now!!! I had a space in the begging of the document lol :p

thanks alot for your help, I would rep u but I dont know how I do so ;)
 
Back
Top