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

[Request] Its posible make a table [Resolved]

Evangelion

New Member
Joined
May 8, 2008
Messages
13
Reaction score
0
If u can make i put Repp ++ :p

@ quas : Sorry man my script its bad, but now its ok. check again plx

Lua:
function onUse(cid, item, frompos, item2, topos)

queststatus1 = getPlayerStorageValue(cid, 1111)
queststatus2 = getPlayerStorageValue(cid, 1112)
queststatus3 = getPlayerStorageValue(cid, 1113)
queststatus4 = getPlayerStorageValue(cid, 1114)
queststatus5 = getPlayerStorageValue(cid, 1115)

if item.uid == 11111 and queststatus1 == -1 then
	    doPlayerSendTextMessage(cid, 22, "Obtuviste Hunter Addon.")
            doPlayerAddOutfit(cid, 137, 1)
            doPlayerAddOutfit(cid, 129, 1)
	    setPlayerStorageValue(cid, 1111, 1)
	    doSendMagicEffect(getCreaturePosition(cid),13)		

elseif item.uid == 11112 and queststatus2 == -1 then
	    doPlayerSendTextMessage(cid, 22, "Obtuviste Mage Addon.")
            doPlayerAddOutfit(cid, 138, 1)
            doPlayerAddOutfit(cid, 130, 1)
	    setPlayerStorageValue(cid, 1112, 1)
	    doSendMagicEffect(getCreaturePosition(cid),13)		
      
elseif item.uid == 11113 and queststatus3 == -1 then
	    doPlayerSendTextMessage(cid, 22, "Obtuviste Knight Addon.")
            doPlayerAddOutfit(cid, 139, 1)
            doPlayerAddOutfit(cid, 131, 1)
	    setPlayerStorageValue(cid, 1113, 1)
	    doSendMagicEffect(getCreaturePosition(cid),13)		
      
elseif item.uid == 11114 and queststatus4 == -1 then
	    doPlayerSendTextMessage(cid, 22, "Obtuviste Summoner Addon.")
            doPlayerAddOutfit(cid, 141, 1)
            doPlayerAddOutfit(cid, 133, 1)
	    setPlayerStorageValue(cid, 1114, 1)
	    doSendMagicEffect(getCreaturePosition(cid),13)		
      
elseif item.uid == 11115 and queststatus5 == -1 then
	    doPlayerSendTextMessage(cid, 22, "Obtuviste Warrior Addon.")
            doPlayerAddOutfit(cid, 142, 1)
            doPlayerAddOutfit(cid, 134, 1)
	    setPlayerStorageValue(cid, 1115, 1)
	    doSendMagicEffect(getCreaturePosition(cid),13)		
        else
            doPlayerSendTextMessage(cid, 22, "Cofre Vacio.")
      end
      return 1
      end
 
Last edited:
propably i made huge bug...

Lua:
function onUse(cid, item, frompos, item2, topos)
	local storages = 
	{
		[11111] = {storage = 1111},
		[11112] = {storage = 1112},
		[11113] = {storage = 1113},
		[11114] = {storage = 1114},
		[11115] = {storage = 1115}
	}
	
	if getPlayerStorageValue(cid,storages[item.uid].storage) == -1 then
		doPlayerSendTextMessage(cid, 22, "Obtuviste Demon Hunter Addon.")
		doPlayerAddOutfit(cid, 288, 1)
		doPlayerAddOutfit(cid, 289, 1)
		doPlayerAddOutfit(cid, 288, 2)
		doPlayerAddOutfit(cid, 289, 2)
		setPlayerStorageValue(cid, storages[item.uid].storage, 1)
		doSendMagicEffect(getCreaturePosition(cid),13)             			
	else
            doPlayerSendTextMessage(cid, 22, "Cofre Vacio.")
	end
	return true
end
 
om nom nom?

Lua:
  function onUse(cid, item, frompos, item2, topos)
        local storages =
        {
                [11111] = {storage = 1111, name = "Hunter", addon1 =137, addon2 =129},
                [11112] = {storage = 1112, name = "Mage", addon1 =138, addon2 =130},
                [11113] = {storage = 1113, name = "Knight", addon1 =139, addon2 =131},
                [11114] = {storage = 1114, name = "Summoner", addon1 =141, addon2 =133},
                [11115] = {storage = 1115, name = "Warrior", addon1 =142, addon2 =134}
        }
       
        if getPlayerStorageValue(cid,storages[item.uid].storage) == -1 then
                doPlayerSendTextMessage(cid, 22, "Obtuviste "..storages[item.uid].name.." Addon.") --not sure about it.
                doPlayerAddOutfit(cid, storages[item.uid].addon1, 1)
                doPlayerAddOutfit(cid, storages[item.uid].addon2, 1)
                setPlayerStorageValue(cid, storages[item.uid].storage, 1)
                doSendMagicEffect(getCreaturePosition(cid),13)                                 
        else
            doPlayerSendTextMessage(cid, 22, "Cofre Vacio.")
        end
        return true
end
 
Last edited:
Back
Top