Jump to content

Impossible to send LUA on MOP server


n0ne

Recommended Posts

Hi,

 

I'm trying to develop some quester profile.for 5.4.8 server (Helios)

It seems any LUA the quester tries to send to the client doesnt work.

 

I tried to send /target Training Dummy  and /cast Steady Shot with the  "UseScriptOn" and "InteractWIthNPC"  quest type, "CastSpellOn" doesnt work either.

https://www.wowhead.com/quest=25139/steady-shot

(I deblacklisted the Training Dummy before)

 

So i bypassed this quest, and i have a problem with the UseItemOn for the quest https://www.wowhead.com/quest=25134/lazy-peons , it just wont use the item form my inventory , in any way.

I even tried with wManager.Wow.Helpers.Lua.RunMacroText("/target Training Dummy"); 

 

Is there a lock on LUA on post-WOTLK clients?

 

Any help is welcome. No log include because, quester just goes to waypoint and does nothing.

Thanks

 

Link to comment
Share on other sites

34 minutes ago, Droidz said:

Hello, by default WRobot blacklists the dummies. Try to disable this option :

wManager.wManagerSetting.CurrentSetting.BlackListTrainingDummy = false;

 

 

19 hours ago, n0ne said:

(I deblacklisted the Training Dummy before)

Doesnt seem to be the problem, it seems cant even send a "print" lua call to the wow client

Link to comment
Share on other sites

Can you target Training Dummy and share here result of "Target info" (in "dev... tools", you can found it tab tools). Same for Lazy Peon.

If you can also share your log and profile (or bugged quests xml code).

On UseScriptOn, you must use Lua code, and not Lua macro, but in any case, maybe they block RunMacroText.

Try to use the Lua code : 

TargetUnit("Training Dummy")

or 

RunMacroText("/target Training Dummy")

I found a sample for your second quest.

https://github.com/droidzfr/WRobot_Packages/blob/fccc740c611b6447361d401c2aa35bb401d6f638/Old paid files/enraged/001053_Horde[01-12]Vanilla(Durotar).xml#L2498

Link to comment
Share on other sites

Ok ,i made it work.

First quest had an hidden objective (learn steady shot) which is automatically validated on the server, so the pulse wasnt really "pulsing".

I couldnt make "UseItemOn" work for the second quest so i made a UseScriptOn with 

RunMacroText("/use Foreman's Blackjack")

Pretty strange, the UseItemOn is not working , maybe the api call is not good on mop server..

 

Thanks for your time ! @Droidz

 

btw is there an api to control the "Chose Character Screen" , i would like to automatically delete and create my char with the same name at some point.

I need to farm guild xp.

Link to comment
Share on other sites

No WRobot doesn't have an API for that.

You must use Lua code, it is not possible to have a value return from Lua (to the bot) when character is not in game, which makes things more complicated. It's poorly documented, you have to read the game's interface code to find the functions to use  https://github.com/tomrus88/BlizzardInterfaceCode/tree/bb430dbf9511eae926219d9548398f58b0012497

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...