catalin87
Members
-
Joined
-
Last visited
Solutions
-
catalin87's post in 2 Daily quests annoy me was marked as the answerUPDATE:
Managed to get everything working . I know you said I have an old version , still I'm posting this because it might help someone.
As I mentioned in my first post , the quests required you to use an item on an elite so it becomes weaker.
I tried overriding the pulse method (I'm coming from java so it might be called function) with no success. I have no idea how the original thing looks so I decided to give up on that.
Then I revisited my original plan to modify my fight class so it includes those items and i will describe the steps:
1. Add code like this to the Add Spell field :
RunMocroText("/use Sonic Disruption Fork") 2. You might want to add a distance condition so it doesn't use the item when the target is too far.
3. Add a Lua Script condition that looks something like this:
local npcId = tonumber((UnitGUID("target")):sub(6, 10), 16); isSTarget=false; if ((npcId == 64717 ) or (npcId == 64720)) then isSTarget= true; end 4. Fill the Return value research with the value: true .
5. Fill the Return value var with the value: isSTarget .
6. Go to Spell Settings list and change the field: Not spell, is lua script to True
7. Now you have to options to use the item on the intended target without spamming the item.
If the item leaves a debuff on the target you can add a Target buff condition . If the item doesn't leave a debuff go to Spell Settings list and change the field: Once per Target to True 8. Finally you can add the quest as a normal grinder quest.
Hope this helps !