Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Custom script to check inventory EO3


Justin Knight
 Share

Recommended Posts

I need to know if they player has room for an item that they will only have the chance to get once from an event. 

So far I have **this** but I need it to just out of the event process after doing the check and finding that there isn't room for anymore items.

Public Sub CustomScript(index As Long, caseID As Long)

    Select Case caseID
        **Case 1**
**If FindOpenInvSlot(index, GetPlayerEquipment(index, EqSlot)) < 1 Then**
**                 PlayerMsg index, "You do not have enough room in your inventory.", BrightRed   **
**            End If**
        Case Else

            PlayerMsg index, "You just activated custom script " & caseID & ". This script is not yet programmed.", BrightRed
    End Select
End Sub

Thanks for any help you can provide.
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...