bou_ray

inventory check before player additem

2 posts in this topic

Hello,

I was wonder if there was a inventory check script for the player additem.

Like if I wanted the server to player additem "gasmask";

but if the inventory was full the player would never get it, and no message.

I was wondering if it was possible to put a inventory space check before the additem.

like

If (inventory == full)

then (_htext "Your inventory is full!")

else

(_htext "You recieved a gas mask!");

player additem "gasmask";

 

something like that.

Any help would be appreciated thank you in advance.

Share this post


Link to post
Share on other sites

Look at ExileClient_util_playerCargo_canAdd, ExileClient_util_playerEquipment_canAdd, and ExileClient_util_cargoContainer_canAdd.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.