Posts: 46
Threads: 11
Joined: Jul 2014
I'm finally starting to get the hang of making my own quests but now i'm stumped on main story quest 1183 "Crate go kaboom".
Is it possible for the bot to use ground targeting to destroy the crates. the crates are non-clickable and I'm not sure if I'm wasting my time trying to get the bot to do something it can't do atm.
Posts: 875
Threads: 20
Joined: Aug 2013
01-23-2015, 08:03 PM
(This post was last modified: 01-23-2015, 08:08 PM by Latty79.)
Yes, the bot can do it. Here's an example from that quest you are doing.
itemid is obviously the id of the bomb. You can find this in devmonitor. ["pos"] is the position where you stand when you use the item and ["usepos"] is where the reticle gets placed.
Code:
[2] = {
["itemid"] = 2001079;
["itemreward"] = false;
["mapid"] = 156;
["meshname"] = "Mor Dhona";
["pos"] = {
["x"] = -468.94815063477;
["y"] = -3.9981083869934;
["z"] = -252.04335021973;
};
["type"] = "useitem";
["usepos"] = {
["x"] = -469.13143920898;
["y"] = -3.9999837875366;
["z"] = -256.74459838867;
};
};
Posts: 46
Threads: 11
Joined: Jul 2014
Thanks for the quick reply Latty. I'll try this out tonight after work.