oste 0 Posted November 9, 2017 Share Posted November 9, 2017 Hi been using HearthstoneToGoToTown.cs for tbc 2.4.3 works fine. but when i try using it in vanilla 1.12.1 i get this error [string"epsqkdd.lua"]:1:attempt to call global `runmacrotext'(a nil value) and the plugin dosent hearthstone me, when it needs to sell items. Is there a workaround for 1.12.1? thx:) Link to comment https://wrobot.eu/forums/topic/7612-hearthstonetogototowncs-for-1121/ Share on other sites More sharing options...
Droidz 2738 Posted November 10, 2017 Share Posted November 10, 2017 Hello, If you use this: https://wrobot.eu/forums/topic/4721-use-hearthstone-when-bags-are-full/?do=findComment&comment=21875 edit plugin with notepad and replace: Lua.LuaDoString("local itemName, _, _, _, _, _, _, _ = GetItemInfo(6948); RunMacroText('/use ' .. itemName);"); by wManager.Wow.Helpers.ItemsManager.UseItem(6948); Link to comment https://wrobot.eu/forums/topic/7612-hearthstonetogototowncs-for-1121/#findComment-34764 Share on other sites More sharing options...
oste 0 Posted November 10, 2017 Author Share Posted November 10, 2017 thx it tries using the hearthstone now. but sinc i'm a druid i just says "cant use items when shapeshifted", and just starts running. can you add a line so it drops cat/bear form before it uses the hearthstone? Link to comment https://wrobot.eu/forums/topic/7612-hearthstonetogototowncs-for-1121/#findComment-34780 Share on other sites More sharing options...
Droidz 2738 Posted November 12, 2017 Share Posted November 12, 2017 Add this line (before use item): wManager.Wow.Bot.Tasks.MountTask.DismountMount(); Link to comment https://wrobot.eu/forums/topic/7612-hearthstonetogototowncs-for-1121/#findComment-34849 Share on other sites More sharing options...
oste 0 Posted November 12, 2017 Author Share Posted November 12, 2017 thx. is will dismount now but it will try to cast heartstone at the same time as dismount so it just starts running. is it possible to put in some delay between dismount and useitem? Link to comment https://wrobot.eu/forums/topic/7612-hearthstonetogototowncs-for-1121/#findComment-34868 Share on other sites More sharing options...
Matenia 628 Posted November 12, 2017 Share Posted November 12, 2017 2 hours ago, oste said: thx. is will dismount now but it will try to cast heartstone at the same time as dismount so it just starts running. is it possible to put in some delay between dismount and useitem? System.Threading.Thread.Sleep(2000); inbetween those two lines Link to comment https://wrobot.eu/forums/topic/7612-hearthstonetogototowncs-for-1121/#findComment-34875 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