Jump to content
NOX

Check Temp Bag

Recommended Posts

5 hours ago, NOX said:

Is there any function to check if a player already have an item inside temporary bag?

Hi!

BagTempHasItem(role, item, qty)

  • Like 2

Share this post


Link to post
Share on other sites
52 minutes ago, Faller said:

Hi!

BagTempHasItem(role, item, qty)

 

Is it possible for you to send me an example function, for a better understanding?

Share this post


Link to post
Share on other sites
On 1/16/2019 at 2:39 AM, NOX said:

 

Is it possible for you to send me an example function, for a better understanding?

u can use it like this
 

local id = 855
local coins = BagTempHasItem(role,id,1)
if coins >= 1 then
SystemNotice(role, "Please, remove [fairy Coin] from your inventory!")	
return 0
end

 

Edited by mkhzaleh
  • Like 2

Share this post


Link to post
Share on other sites
5 hours ago, mkhzaleh said:

u can use it like this
 


local id = 855
local coins = BagTempHasItem(role,id,1)
if coins >= 1 then
SystemNotice(role, "Please, remove [fairy Coin] from your inventory!")	
return 0
end

but seems qty not work :) if u try to change 1 to 99 as example won't work

 

Thanks mate, it served perfectly for what I was needing

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...