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

Need a first items script!

Henkos

New Member
Joined
Jun 29, 2008
Messages
2,989
Reaction score
4
Hello!
I would like to have a first item script for tfs 0.3.4.
the items should vare from vocation to vocation.
example; A knight should get a plate set,a axe,a sword,a club,a dwarven shield
All vocations should also start with 10k and 100 mushrooms.

I will rep the one who get's this for me :)
 
Lua:
  function onLogin(cid)
    if getPlayerStorageValue(cid, 30001) == -1 then
if getPlayerVocation(cid) == 1 then
        local head = doPlayerAddItem(cid, 2175, 1)
        local left = doPlayerAddItem(cid, 2190, 1)
            doPlayerAddItem(cid, 7730, 1)    
        local armor = doPlayerAddItem(cid, 8870, 1)
            doPlayerAddItem(cid, 2323, 1)
        local feed = doPlayerAddItem(cid, 2643, 1)
            local bag = doPlayerAddItem(cid, 1999, 1)
            doAddContainerItem(bag, 7620, 1)
            doAddContainerItem(bag, 5710, 1)
            doAddContainerItem(bag, 2120, 1)
        setPlayerStorageValue(cid, 30001, 1)
elseif getPlayerVocation(cid) == 2 then    
            doPlayerAddItem(cid, 2175, 1)
            doPlayerAddItem(cid, 2182, 1)
            doPlayerAddItem(cid, 7730, 1)
            doPlayerAddItem(cid, 8870, 1)
            doPlayerAddItem(cid, 2323, 1)
            doPlayerAddItem(cid, 2643, 1)
            local bag = doPlayerAddItem(cid, 3940, 1)
        doAddContainerItem(bag, 7620, 1)
        doAddContainerItem(bag, 5710, 1)
        doAddContainerItem(bag, 2120, 1)
        setPlayerStorageValue(cid, 30001, 1)
elseif getPlayerVocation(cid) == 3 then  
            doPlayerAddItem(cid, 2455, 1)
            doPlayerAddItem(cid, 2457, 1)
            doPlayerAddItem(cid, 8872, 1)
            doPlayerAddItem(cid, 7730, 1)
            doPlayerAddItem(cid, 2643, 1)
            doPlayerAddItem(cid, 2543, 1)
            local bag = doPlayerAddItem(cid, 7342, 1)
        doAddContainerItem(bag, 7618, 1)
        doAddContainerItem(bag, 5710, 1)
        doAddContainerItem(bag, 2120, 1)
        setPlayerStorageValue(cid, 30001, 1)
elseif getPlayerVocation(cid) == 4 then    
            doPlayerAddItem(cid, 2533, 1)
            doPlayerAddItem(cid, 2383, 1)
            doPlayerAddItem(cid, 2481, 1)
        local armor    = doPlayerAddItem(cid, 2478, 1)
        local armor    = doPlayerAddItem(cid, 3968, 1)
            doPlayerAddItem(cid, 2643, 1)
        local bag = doPlayerAddItem(cid, 1998, 1)
            doAddContainerItem(bag, 7618, 1)
            doAddContainerItem(bag, 2383, 1)
            doAddContainerItem(bag, 2428, 1)
            doAddContainerItem(bag, 2394, 1)
            doAddContainerItem(bag, 5710, 1)
            doAddContainerItem(bag, 2120, 1)
        setPlayerStorageValue(cid, 30001, 1)

        end


end
     return TRUE
end

Should work, if helped +REP
 
Back
Top