Jump to content

Droidz

Administrators
  • Posts

    12586
  • Joined

  • Last visited

Everything posted by Droidz

  1. Hello, You can use script lua similar at (with option no spell is lua code): local nameSpell = GetSpellInfo(44614); if (not nameSpell) then return; end TargetNearestEnemy(); CastSpellByName(nameSpell); Replace 44614 by your spell id (this script works with mage level 1). You can add condition unit "Unit attack Player near" to limit number of targets.
  2. Hi. Try this: SUB TEST 4 FIXED.xml (I haven't test it tell me if this works)
  3. Can you send me your log and your mammoth mount name please.
  4. You can test your lua script with "Development Tools" in tab "Tools".
  5. You need to use UnitDebuff: ret = 0; local nameSpell = GetSpellInfo(1943); if (not nameSpell) then return; end local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff("target", nameSpell); if (not expirationTime) then return; end local expireTimeLeft = expirationTime-GetTime(); if expireTimeLeft <= 2 then ret = 1 end ps: I have also added codes to avoid lua error ("if (not nameSpell) then return; end" and "if (not expirationTime) then return; end") this var can be nil.
  6. Try it: local nameSpell = GetSpellInfo(5171); local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("player", nameSpell); local expireTimeLeft = expirationTime-GetTime(); ret = 0; if expireTimeLeft <= 3 then ret = 1 end (replace 5171 by your spell id) Others sample http://wrobot.eu/page/bug_tracker.html/_/buffspell-reuse-after-r156.
  7. The first c# code checking if you rotation is similar at target rotation. The second c# code checking if your character see (facing) target. If you have similar rotation and the target is in facing you are behind the target.
  8. Hello, 'Use lua to move' is in General settings advanced (activate this option).
  9. Thank for video, but use wow trial account (for avoid ban) (or hide character name).
  10. Droidz

    UnitBuff Problem

    Ok np Ohren. Thank you for help and time given at WRobot.
  11. You can get NPC information directly in window "NPC quest giver editor" (select target ingame en click on button "This NPC is my target" of http://wrobot.eu/uploads/monthly_02_2014/post-1-0-70745300-1391508842.png). I have fixed your profile (NPC quests givers positions), the profile works fine: Bloodelf 1-5 FIXED.xml
  12. 0.35 radian is equal at 20 degree (left or right, therefore 40 degree). for 180 degree (90 degree left and 90 degree right) try to use 1.57 radian. (System.Math.Abs(ObjectManager.Me.Rotation - ObjectManager.Target.Rotation) < 1.57f) The problem, this checking only if your character rotation is similary at target rotation (if you are before the target with similar rotation this works also). You can try to add this C# code condtion for solve problem: wManager.Wow.Helpers.MovementManager.IsFacing(ObjectManager.Me.Position, ObjectManager.Me.Rotation, ObjectManager.Target.Position, 1.57f) testRotation2.xml
  13. Reply here:
  14. Do you use last update of WRobot (I have fixed an problem with HL target he has not long time). And look this sample fightclass (this fightclass write in the chat if you are back or not): testRotation.xml
  15. Hello, First problem is with quest "Frost Nova" you haven't added hotspot/target entry. And the real problem of your profile is the NPC quest giver position: ps: When you click on the button "This npc is my target" do you have in position a "." or ","?
  16. For it: Lua Script: local nameSpell = GetSpellInfo(114015); local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("player", nameSpell); ret = 0; if count < 5 then ret = 1 end Return value research: 1 Return value var: ret in lua code replace "if count < 5 then ret = 1 end" ligne by "count <= 3" for smaller or egal at 3, "count < 2" for smaller at 2, "count > 1" for bigger at 1, ...
  17. Hello, I use Windows 8.1 and not problem, the problem is not caused by Windows 8.1. Can you try to reinstall Frameworks 4.0. Can you also send me your logs please.
  18. The problem is that the destination (position) is not correct. Please share your profile (upload xml file, no copy/past xml code).
  19. WRobot clean this variable, and you can use others name (name like "result" used on many addon or macro).
  20. reply here for the moment:
  21. ps: I haven't HL rogue I cannot test it.
  22. Hello, If you can try this "Lua Script" condition (instead of "buff stack" condition) Lua Script: local nameSpell = GetSpellInfo(114015); local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("player", nameSpell); ret = count; Return value research: 5 (if you need 5 buffstack) Return value var: ret
  23. There are no voice for multilingual support (and my english is not very good ^^).
  24. Hello, You can use spell option "Not a spell, is lua script" and use timer (all 1000 or 2000 ms for avoid spamming) (or others conditions). But good code, and if this works you can keep your code.
  25. Hello, retV need to be global.
×
×
  • Create New...