Player wont cast spell. menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Rock Lee's Avatar Banned
    Reputation
    41
    Join Date
    Jul 2010
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Player wont cast spell.

    Could somebody please tell me what is wrong with my macro?
    Code:
    /run local h=UnitHealth("player")*100/UnitHealthMax("player") if h<=75 then /cast [target=player] Lesser Heal end

    Player wont cast spell.
  2. #2
    Twinzlol's Avatar Member
    Reputation
    12
    Join Date
    Apr 2009
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    should there be percentiles? like 100% and 75% instead of whole numbers?

  3. #3
    Rock Lee's Avatar Banned
    Reputation
    41
    Join Date
    Jul 2010
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. 75%. Forgot to mention that.

  4. #4
    Ssateneth's Avatar Contributor
    Reputation
    142
    Join Date
    May 2008
    Posts
    866
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    /run local h=UnitHealth("player")*100/UnitHealthMax("player") if h<=75 then /cast [target=player] Lesser Heal end
    Change to...

    Code:
    /run if UnitHealth("player")/UnitHealthMax("player")<=0.75 then CastSpellByName("Lesser Heal","player") end
    I'm assuming you want your macro to cast Lesser Heal on yourself if you are at 75% hp or less. If you want to do this for another person, you'll have to put "target" where it says "player" and have them manually targeted. If you want to automate healing for a party/raid, though, then you'll need to do something more complicated, possibly something with a while and do.

    Note: This only works if you have protection disabled for protection LUA functions, either from NoAddiction or LuaPulse, but LuaPulse will be unable to run the macro ingame as far as I know.
    Last edited by Ssateneth; 08-08-2010 at 06:04 PM.

Similar Threads

  1. Why wont my Boss cast spells?
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 05-19-2009, 01:40 AM
  2. LUA Player Cast Spell
    By Bapesy in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 06-01-2008, 01:32 AM
  3. Creature wont cast his spells [Lua Script]
    By bill45 in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 05-26-2008, 08:29 PM
  4. Player Cast Spell?
    By Ballwinkle in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 02-06-2008, 06:06 PM
  5. [GUIDE] - Scripting for Antrix, Making Mobs Talk, Cast Spells, etc
    By Greed in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 12-10-2007, 07:51 PM
All times are GMT -5. The time now is 12:56 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search