ond
Veteran OT User
Hi there, i need help with this script. First of all I want to get a backpack with rope, shovel, 10 brown mushroom.
Here's the script:
Thanks.
Here's the script:
Lua:
local firstItems =
{
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2464, 1)
else
doPlayerAddItem(cid, 2464, 1)
end
local backpack = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(backpack, 2789, 10)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
Thanks.