• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

add iten in certain container

foxkbt

Member
Joined
Sep 29, 2009
Messages
290
Reaction score
7
Location
Salvador
would like a function
like this

if player get special bag
add item special armor inside the special bag

ps: the special bag is inside another bag

thx for advanced
rep++
 
dosent work!

23/09/2010 10:48:55] [Error - LuaScriptInterface::loadFile] data/actions/scripts/test drop.lua:3: ')' expected near ','
[23/09/2010 10:48:55] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/test drop.lua)
[23/09/2010 10:48:55] data/actions/scripts/test drop.lua:3: ')' expected near ','

function onUse(cid, item, frompos, item2, topos)
if getPlayerItemCount(cid, 1991) == 1 then
backpack = (cid, 1991, 1)
doAddContainerItem(backpack, 2366, 1)
end
end
 
wops, sorry, I'll fix it, give me a minute

edit:
here
LUA:
function onUse(cid, item, frompos, item2, topos)
if getPlayerItemCount(cid, 1991) == 1 then
backpack = doPlayerAddItem(cid, 1991, 1)
doAddContainerItem(backpack, 2366, 1)
end
end
 
Back
Top