Jump to content

Recommended Posts

Hello, there is many ways to do what you are asking, C# and lua.

Take your pick of one that works for you.

1st :
string ItemName = ItemsManager.GetNameById(50259);
Lua.LuaDoString("UseItemByName('" + ItemName+ "')");

2nd :
ItemsManager.UseItemByNameOrId("50259");

3rd:
ItemsManager.UseItem(555);

4th : 
ItemsManager.UseContainerItem("Name here");

5th : 
Lua.LuaDoString("UseItemByName('ItemName Here')");

 

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
×
×
  • Create New...