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

Command Requeriment [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 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 :wub::thumbup:
THANKS!
 
try something like this

add in talkactions.xml
Code:
<talkaction words="!set" event="script" value="set.lua"/>

set.lua
Code:
local items = {{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, 29876) == -1 then
        local bp = doPlayerAddItem(cid, 2000,1)
        for i=1, #items do
            doAddContainerItem(bp, items[i][1], items[i][2])
        end
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have received your items.")
        setPlayerStorageValue(cid, 29876, 1)
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have already received your items.")
    end
    return true
end
 
Back
Top