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

What's wrong here - firstitems

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
PHP:
	if getPlayerStorageValue(cid, 35721) != 1 then
			doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1, 2152, 5)
			doPlayerAddItem(cid, 2480, 1)
			doPlayerAddItem(cid, 2483, 1)
			doPlayerAddItem(cid, 2511, 1)
			doPlayerAddItem(cid, 2478, 1)
			
			if (getPlayerVocation(cid) == 1) then
				doPlayerAddItem(cid, 2190, 1)
			elseif (getPlayerVocation(cid) == 2) then
				doPlayerAddItem(cid, 2182, 1)
			elseif (getPlayerVocation(cid) == 3) then
				doPlayerAddItem(cid, 2389, 3)
			else
				doPlayerAddItem(cid, 2439, 1)
				doPlayerAddItem(cid, 2383, 1)
				doPlayerAddItem(cid, 2428, 1)
			end	
		setPlayerStorageValue(cid, 35721, 1)
	end
 
LUA:
    if getPlayerStorageValue(cid, 35721) >= 1 then
			bag = doPlayerAddItem(cid, 1987, 1)
            doAddContainerItem(bag, 2674, 1)
			doAddContainerItem(bag, 2152, 5)
            doPlayerAddItem(cid, 2480, 1)
            doPlayerAddItem(cid, 2483, 1)
            doPlayerAddItem(cid, 2511, 1)
            doPlayerAddItem(cid, 2478, 1)
            
            if (getPlayerVocation(cid) == 1) then
                doPlayerAddItem(cid, 2190, 1)
            elseif (getPlayerVocation(cid) == 2) then
                doPlayerAddItem(cid, 2182, 1)
            elseif (getPlayerVocation(cid) == 3) then
                doPlayerAddItem(cid, 2389, 3)
            else
                doPlayerAddItem(cid, 2439, 1)
                doPlayerAddItem(cid, 2383, 1)
                doPlayerAddItem(cid, 2428, 1)
            end    
        setPlayerStorageValue(cid, 35721, 1)
    end
Don't forget the function + rep me ^^
 
Back
Top