(10-26-2015, 12:13 AM)snowolf69 Wrote: I'm trying to make a fisher profile for the level 60 legendary fish quest. I have most everything I need to make it. It requires weather and time checks but I need help with a buff check. I want 2 tasks, task 1 use topwater frog if player has buff Fisher's Intuition and weather is Thunder and task 2 to use glowworm if player missing buff Fisher's Intuition and weather is Thunder. I tried ["pbuff"] and ["pnbuff"] to check for buff but its not working. I plugged in 805 (Collector's Glove) and 763 (Chum) and played around with it but it didn't change tasks based on pbuff. Here's what I have so far. Am I putting the buff check in the wrong place? I am missing an idle task but I'll figure that out later.
Example only
Code:
local obj1 = {
["setup"] = {
["gearsetmining"] = 11;
["gearsetbotany"] = 12;
["gearsetfishing"]= 21;
};
["tasks"] = {
--- Namitaro
[1] = {
["condition"] = {
["HasBuff(Player.id,568)"] = true;
};
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 153;
["pos"] = {
["x"] = 631.10876464844;
["y"] = 22.665870666504;
["z"] = 73.57494354248;
["h"] = 2.2479648590088;
};
["weathernow"] = "Thunder";
["usestealth"] = false;
["usemooch"] = false;
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Topwater Frog";
};
[2] = {
["condition"] = {
["HasBuff(Player.id,568)"] = true;
};
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 153;
["pos"] = {
["x"] = 631.10876464844;
["y"] = 22.665870666504;
["z"] = 73.57494354248;
["h"] = 2.2479648590088;
};
["weathernow"] = "Thunderstorms";
["usestealth"] = false;
["usemooch"] = false;
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Topwater Frog";
};
[3] = {
["condition"] = {
["HasBuff(Player.id,568)"] = false;
};
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 153;
["pos"] = {
["x"] = 631.10876464844;
["y"] = 22.665870666504;
["z"] = 73.57494354248;
["h"] = 2.2479648590088;
};
["weathernow"] = "Thunder";
["usestealth"] = false;
["usemooch"] = false;
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Glowworm";
};
[4] = {
["condition"] = {
["HasBuff(Player.id,568)"] = false;
};
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 153;
["pos"] = {
["x"] = 631.10876464844;
["y"] = 22.665870666504;
["z"] = 73.57494354248;
["h"] = 2.2479648590088;
};
["weathernow"] = "Thunderstorms";
["usestealth"] = false;
["usemooch"] = false;
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Glowworm";
};
--- Endoceras
[5] = {
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 138;
["pos"] = {
["x"] = -489.67672729492;
["y"] = -37.874256134033;
["z"] = 760.76922607422;
["h"] = -0.56210470199585;
};
["weathernow"] = "Clear";
["weathernext"] = "Fog";
["eorzeaminhour"] = 22;
["eorzeamaxhour"] = 4;
["usestealth"] = true;
["dangerousarea"] = true;
["usemooch"] = true;
["whitelisthq"] = "Fullmoon Sardine";
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Spoon Worm";
};
[6] = {
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 138;
["pos"] = {
["x"] = -489.67672729492;
["y"] = -37.874256134033;
["z"] = 760.76922607422;
["h"] = -0.56210470199585;
};
["weatherlast"] = "Clear";
["weathernow"] = "Fog";
["eorzeaminhour"] = 22;
["eorzeamaxhour"] = 4;
["usestealth"] = true;
["dangerousarea"] = true;
["usemooch"] = true;
["whitelisthq"] = "Fullmoon Sardine";
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Spoon Worm";
};
--- Helicoprion
[7] = {
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 146;
["pos"] = {
["x"] = -446.57244873047;
["y"] = -0.92587280273438;
["z"] = 705.78350830078;
["h"] = -1.8485631942749;
};
["weathernow"] = "Fog";
["weathernext"] = "Heat Wave";
["eorzeaminhour"] = 8;
["eorzeamaxhour"] = 20;
["usestealth"] = false;
["usemooch"] = true;
["whitelisthq"] = "Storm Rider";
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Sand Leech";
};
[8] = {
["type"] = "fishing";
["minlevel"] = 60;
["maxlevel"] = 60;
["mapid"] = 146;
["pos"] = {
["x"] = -446.57244873047;
["y"] = -0.92587280273438;
["z"] = 705.78350830078;
["h"] = -1.8485631942749;
};
["weatherlast"] = "Fog";
["weathernow"] = "Heat Wave";
["eorzeaminhour"] = 8;
["eorzeamaxhour"] = 20;
["usestealth"] = false;
["usemooch"] = true;
["whitelisthq"] = "Storm Rider";
["usepatience"] = true;
["usepatience2"] = false;
["usechum"] = true;
["usesnagging"] = false;
["baitname"] = "Sand Leech";
};
};
}
return obj1
Skill profile code is different to task conditions and selecting where to fish
Also a max time isnt required
i removed them