• 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] simple items script [script]

Sublime

11.12.11
Joined
Mar 18, 2010
Messages
1,427
Reaction score
61
Location
Mexico
As the titles says, who can make me a command for example this,
!set

And with that command you will recieve by just 1 time this items in 1 purple backpack ItemID: [2001].

- Steel Helmet
- Plate Armor ItemID: [2463].
- Plate Legs ItemID: [2647].
- Leather Boots ItemID: [2643].
- 50 Platinum Coins ItemID: [2152].
- Dark Shield ItemID: [2521].
- Northwind Rod ItemID: [8911].
- Wand of Draconia ItemID: [8921].
- Rope ItemID: [2120].
- Shovel ItemID: [2554].
- And 100 Royal Spears ItemID: [7378].

Ofc ill REP+ for the person who could make me this
THANKS!
 
Code:
local t = {
	storage = 9001,
	bpID = 2001,
	items = {
		{2457, 1}, {2463, 1}, {2647, 1}, {2643, 1},
		{2152, 50}, {2521, 1}, {8911, 1}, {8921, 1},
		{2120, 1}, {2554, 1}, {7378, 100}
	}
}
function onSay(cid, words, param, channel)
	if getPlayerStorageValue(cid, t.storage) < 1 then
		local container = doCreateItemEx(t.bpID, 1)
		for i = 1, #t.items do
			local k = t.items[i]
			doAddContainerItem(container, k[1], k[2])
		end

		if doPlayerAddItemEx(cid, container) == RETURNVALUE_NOERROR then
			setPlayerStorageValue(cid, t.storage, 1)
		else
			doPlayerSendCancel(cid, 'You don\'t have enough capacity or free space.')
		end
	else
		doPlayerSendCancel(cid, 'You can only use this comamnd once.')
	end
	return true
end
 
Back
Top