Jump to content

HearthstoneToGoToTown.cs for 1.12.1


Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

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