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

How i can give new player to plate set?

losmeter

New Member
Joined
Dec 10, 2008
Messages
30
Reaction score
0
I use gesior web system. and when i give plate armor knight sample or etc , after relog its removed please help me
 
Use a script instead, i dont take any credits for this, ok
make a file in creature scriptes called firstitems
then put this in
Code:
function onLogin(cid)
    if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50002) == -1 then
        if isSorcerer(cid) then
            local bag = doPlayerAddItem(cid, 1988, 1)
 
            doAddContainerItem(bag, 2120, 1) -- Rope
            doAddContainerItem(bag, 2554, 1) -- shovel
            doAddContainerItem(bag, 2270, 1) -- mage mana
            doAddContainerItem(bag, 2160, 20) -- 50 platinum coints
            doAddContainerItem(bag, 7620, 20) -- 20 mana potions
     
            doPlayerAddItem(cid, 2175, 1) -- spellbook
            doPlayerAddItem(cid, 2190, 1) -- wand of wortex
            doPlayerAddItem(cid, 8871, 1) -- p armor
            doPlayerAddItem(cid, 2490, 1) -- dark helmet
            doPlayerAddItem(cid, 2507, 1) -- p legs
            doPlayerAddItem(cid, 2643, 1) -- leather boots
            doPlayerAddItem(cid, 2173, 1) -- amulet of loss
            doPlayerAddItem(cid, 2672, 5) -- DHam
         
            setPlayerStorageValue(cid, 50002, 1)

        elseif isDruid(cid) then
            local bag = doPlayerAddItem(cid, 1988, 1)
            doAddContainerItem(bag, 2120, 1) -- rope
            doAddContainerItem(bag, 2554, 1) -- shovel
            doAddContainerItem(bag, 2270, 1) -- mage mana
            doAddContainerItem(bag, 2160, 20) -- 50 platinum coins
     
            doPlayerAddItem(cid, 2175, 1) -- spellbook
            doPlayerAddItem(cid, 2182, 1) -- snakebite rod
            doPlayerAddItem(cid, 8871, 1) -- p armor
            doPlayerAddItem(cid, 2490, 1) -- dark helmet
            doPlayerAddItem(cid, 2507, 1) -- p legs
            doPlayerAddItem(cid, 2643, 1) -- leather boots
            doPlayerAddItem(cid, 2173, 1) -- amulet of loss
            doPlayerAddItem(cid, 2672, 5) -- DHam

            setPlayerStorageValue(cid, 50002, 1)

        elseif isPaladin(cid) then
            local bag = doPlayerAddItem(cid, 1988, 1)
            doAddContainerItem(bag, 2120, 1) -- rope
            doAddContainerItem(bag, 2300, 1) -- pally mana
            doAddContainerItem(bag, 2554, 1) -- shovel
            doAddContainerItem(bag, 2160, 20) -- 50 platinum coins
     
            doPlayerAddItem(cid, 2389, 1) -- spear
            doPlayerAddItem(cid, 2525, 1) -- dwarven shield
            doPlayerAddItem(cid, 7463, 1) -- p armor
            doPlayerAddItem(cid, 2490, 1) -- dark helmet
            doPlayerAddItem(cid, 8923, 1) -- p legs
            doPlayerAddItem(cid, 2643, 1) -- leather boots
            doPlayerAddItem(cid, 2173, 1) -- amulet of loss

            setPlayerStorageValue(cid, 50002, 1)

        elseif isKnight(cid) then
            local bag = doPlayerAddItem(cid, 1988, 1)
            doAddContainerItem(bag, 2120, 1) -- rope
            doAddContainerItem(bag, 2306, 1) -- knight mana
            doAddContainerItem(bag, 2554, 1) -- shovel
            doAddContainerItem(bag, 2160, 20) -- 50 platinum coins
     
            doPlayerAddItem(cid, 2513, 1) --
            doPlayerAddItem(cid, 8602, 1) -- jagged sword
            doPlayerAddItem(cid, 7463, 1) -- p armor
            doPlayerAddItem(cid, 2490, 1) -- dark helmet
            doPlayerAddItem(cid, 2647, 1) -- p legs
            doPlayerAddItem(cid, 2643, 1) -- leather boots
            doPlayerAddItem(cid, 2173, 1) -- amulet of loss

            setPlayerStorageValue(cid, 50002, 1)
        end
    end
    return TRUE
end
then goto login.lua and put this in registerCreatureEvent(cid, "FirstItems")
then goto creaturescripts.xml and put this in
Code:
      <event type="login" name="FirstItems" event="script" value="firstitems.lua"/>
again,you have to reconfigrate for your settings,but im not the owner,the owner i think is named domini something
 
Back
Top