Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Original function :
- function c_selectitem:evaluate()
- if (Now() < ml_task_hub:ThisTask().networkLatency or Player.cp.current < tonumber(gCraftMinCP)) then
- return false
- end
- local synth = Crafting:SynthInfo()
- if ( not synth and Crafting:IsCraftingLogOpen()) then
- if ( Crafting:CanCraftSelectedItem() ) then
- return true
- end
- end
- return false
- end
- --Custom :
- function c_selectitem:evaluate()
- if (Now() < ml_task_hub:ThisTask().networkLatency or Player.cp.current < tonumber(gCraftMinCP)) then
- return false
- end
- local synth = Crafting:SynthInfo()
- if ( not synth and Crafting:IsCraftingLogOpen()) then
- if ( Crafting:CanCraftSelectedItem() ) then
- local neededfound=true;
- for prio,skill in pairs(SkillMgr.SkillProfile) do
- if ( skill.needed == "1" ) then
- local realskilldata2 = ActionList:Get(skill.id)
- local skid2 = skill.id
- if (not realskilldata2) then
- for skillname,data in pairs(SkillMgr.MatchingCraftSkills) do
- for job, skillid in pairs(data) do
- if (skillid == skill.id) then
- skid2 = data[Player.job]
- realskilldata2 = ActionList:Get(skid2)
- end
- if (realskilldata2) then
- break
- end
- end
- if (realskilldata2) then
- break
- end
- end
- end
- if (not realskilldata2) then
- d("Missing :"..tostring(skill.name))
- neededfound=false;
- end
- end
- end
- if (neededfound==false) then
- return false
- end
- return true
- end
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement