bpm91
Advanced OT User
- Joined
- May 23, 2019
- Messages
- 1,046
- Solutions
- 7
- Reaction score
- 180
- Location
- Brazil
- YouTube
- caruniawikibr
hello, i'm new with this version of tfs and i would like to know how do i add a bag with items inside?
LUA:
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 4000) == -1 then
if getPlayerFreeCap(cid) >= 68 then
doPlayerAddItem(cid,2545,7)
doPlayerAddItem(cid,2006,7,1)
doPlayerAddItem(cid,2006,10,1)
doPlayerAddItem(cid,2148,12)
setPlayerStorageValue(cid,4000,1)
doPlayerSendTextMessage(cid,22,"You have found a bow, manafluid, lifefluid, 7 poison arrow and 12 gold coins!")
else
doPlayerSendTextMessage(cid,22,"You need capacity!")
end
else
doPlayerSendTextMessage(cid,22,"It's empty.")
end
return TRUE
end