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

[Resolved][EO/EA] To do an action when item is unequiped


Calalin
 Share

Recommended Posts

Hi all,

How I can do an action when a player unequip an item ?

I have make this script :

```

If itemnum = 6 Then

Call SetPlayerStat(index, Strength, GetPlayerStat(index, Strength) - 5)

Call PlayerMsg(index, "You lose strength !", Yellow)

End If

```

But I don't know where to put it… ^^

Thanks for your help !

PS : Sorry for my bad English ^^
Link to comment
Share on other sites

Thanks for your help, but it's not ok in my house :

I have created an item and I call It "Admin"

This is my code :

```
If Item(GetPlayerInvItemNum(MyIndex, invNum)).Name = "Admin" Then

Call SayMsg("Test")

End If
```

Have you got an idea ?

Thanks !! ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)
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...