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

First items help plz

affe963

Banned User
Joined
Apr 11, 2009
Messages
68
Reaction score
0
I cant get how to make the first items to knight druid sorcerer and knight plz help me i would be really greatful + that i need some good gm/scripter that coult help me :)
 
Give different items to your sample characters or change firstitems.xml file in /mods folder.


Sample firstitems.xml file, numbers 1, 2, 3, and 4 correspond to different vocations.

HTML:
<?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 = {7461, 2518, 2661} -- what all vocations get
        }
    ]]></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

            doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2789, 10)
           
            for _, id in ipairs(config.items) do
                doPlayerAddItem(cid, id, 1)
            end
           
            if (getPlayerVocation(cid) == 1) then
				doPlayerAddItem(cid, 8870)	
                doPlayerAddItem(cid, 2428)				
				doPlayerAddItem(cid, 2152, 10)				
				doPlayerAddItem(cid, 2647, 1)
				doPlayerAddItem(cid, 2643, 1) 
				doPlayerAddItem(cid, 2120, 1) 
				doPlayerAddItem(cid, 2201, 1)							
				doPlayerAddItem(cid, 8900, 1)
				doPlayerAddItem(cid, 2190, 1)	
            elseif (getPlayerVocation(cid) == 2) then
				doPlayerAddItem(cid, 8870)				
                doPlayerAddItem(cid, 2428)				
				doPlayerAddItem(cid, 2152, 10)				
				doPlayerAddItem(cid, 2647, 1)
				doPlayerAddItem(cid, 2643, 1)
				doPlayerAddItem(cid, 2120, 1) 
				doPlayerAddItem(cid, 2201, 1)								
				doPlayerAddItem(cid, 8900, 1)
                doPlayerAddItem(cid, 2182, 1)							
            elseif (getPlayerVocation(cid) == 3) then
				doPlayerAddItem(cid, 2476)				
				doPlayerAddItem(cid, 2389, 1)
				doPlayerAddItem(cid, 2152, 10)
				doPlayerAddItem(cid, 7368, 50)
				doPlayerAddItem(cid, 2477, 1)
				doPlayerAddItem(cid, 2643, 1)
				doPlayerAddItem(cid, 2120, 1)	
				doPlayerAddItem(cid, 2201, 1)											
            elseif (getPlayerVocation(cid) == 4) then	
				doPlayerAddItem(cid, 2476)				
                doPlayerAddItem(cid, 2383)
				doPlayerAddItem(cid, 2152, 10)
                doPlayerAddItem(cid, 2428)
				doPlayerAddItem(cid, 2417)
				doPlayerAddItem(cid, 2477, 1)
				doPlayerAddItem(cid, 2643, 1)
				doPlayerAddItem(cid, 2120, 1)
				doPlayerAddItem(cid, 2201, 1)								
            end
           
            setPlayerStorageValue(cid, config.storage, 1)
           
            setPlayerStorageValue(cid, 19732, 100)
            return true
        end
    ]]></event>
</mod>
 
Back
Top