79135 4 Posted June 29, 2018 Share Posted June 29, 2018 Why cannot use int idMount in next command: ItemsManager.UseItem(idMount); If I do it Ive error: Link to comment https://wrobot.eu/forums/topic/9666-error/ Share on other sites More sharing options...
Droidz 2738 Posted June 29, 2018 Share Posted June 29, 2018 Hello, Can you share your code (line where you use UseItem()) Link to comment https://wrobot.eu/forums/topic/9666-error/#findComment-44920 Share on other sites More sharing options...
79135 4 Posted June 29, 2018 Author Share Posted June 29, 2018 int idMount = 0; if(ObjectManager.Me.PlayerRace == PlayerFactions.Human || ObjectManager.Me.PlayerRace == PlayerFactions.Dwarf|| ObjectManager.Me.PlayerRace == PlayerFactions.NightElf || ObjectManager.Me.PlayerRace == PlayerFactions.Gnome) idMount = 25472; //use mount id for add it in the spellbook for(int i = 0; i < 4; i++) { ItemsManager.UseItem(idMount); Thread.Sleep(Usefuls.Latency + 1000); } It's one of the parts a code Link to comment https://wrobot.eu/forums/topic/9666-error/#findComment-44937 Share on other sites More sharing options...
Droidz 2738 Posted June 29, 2018 Share Posted June 29, 2018 use like this ItemsManager.UseItem((uint)idMount); (or uint idMount = 0;) Link to comment https://wrobot.eu/forums/topic/9666-error/#findComment-44940 Share on other sites More sharing options...
79135 4 Posted June 29, 2018 Author Share Posted June 29, 2018 7 minutes ago, Droidz said: use like this ItemsManager.UseItem((uint)idMount); (or uint idMount = 0;) Thank you , Droidz Link to comment https://wrobot.eu/forums/topic/9666-error/#findComment-44941 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now