PQR lua Help menu

User Tag List

Thread: PQR lua Help

Results 1 to 7 of 7
  1. #1
    f2p's Avatar Member
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    15
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PQR lua Help

    Hey guys, very new when it comes to lua code and writing my own pqr profiles but thought I would give it ago.

    I've got everything working fine, though just need to know how you got about casting a spell that shares the same cooldown with something else. I did try and use PQR_AddToSpellDelayList(id, blah, blah) but didn't work, it's for crusader strike and hammer of the righteous.

    Hope I am writing in the right forum and sorry for being noobish when it comes to this, I am learning, slowly but surely, and thought this would be the best place to ask for help.

    Love the ownedcore forums been a fan for over a year now, keep up the good work guys.

    Thanks.
    Last edited by f2p; 07-26-2013 at 05:08 AM.

    PQR lua Help
  2. #2
    f2p's Avatar Member
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    15
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    btw I've got it working with a recast delay, but wanted to know how to code it in lua.

  3. #3
    Kinky's Avatar Banned CoreCoins Purchaser
    Reputation
    481
    Join Date
    Nov 2008
    Posts
    500
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The spell delay list only pauses the rotation for å given timeframe until it successfully executes the spell or item given. Is that what you are typing to do?

    Sent from my HTC One using Tapatalk 4 Beta

  4. #4
    f2p's Avatar Member
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    15
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, just a simple delay as currently one spell in the rotation will be skipped as both share the same cooldown.

  5. #5
    crystal_tech's Avatar Elite User
    Reputation
    468
    Join Date
    Feb 2008
    Posts
    1,033
    Thanks G/R
    1/6
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could check for the debuff that the hammer gives, look something like this:

    PHP Code:
    if not select(7UnitDebuffID(id,"target")) then --get the remaining time of the hammer debuff 
         
    if PQR_SpellAvailable(idthen --id of hammer
              CastSpellByName
    (GetSpellInfo(id)) --id of hammer
              
    return true
         end
    elseif select(7UnitDebuffID(id"target") - GetTime() <= 2 then --refresh debuff
         
    if PQR_SpellAvailable(idthen --id of hammer
              CastSpellByName
    (GetSpellInfo(id)) --id of hammer
              
    return true
         end
    else
         if 
    PQR_SpellAvailable(idthen --id of strike
              CastSpellByName
    (GetSpellInfo(id)) --id of strike
              
    return true
         end
    end 
    you could/should add in melee checks combat checks, etc

    hope this helps ya, you don't have to have it as one ability and you can break it up just remove the elseif and use ifs and make sure to add the end statements.

    Please if someone helped you donate rep to them.

  6. #6
    f2p's Avatar Member
    Reputation
    1
    Join Date
    Jul 2013
    Posts
    15
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just what I needed, thanks.

  7. #7
    crystal_tech's Avatar Elite User
    Reputation
    468
    Join Date
    Feb 2008
    Posts
    1,033
    Thanks G/R
    1/6
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    glad to help

    Please if someone helped you donate rep to them.

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
  3. LUA help
    By stoneharry in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 02-25-2008, 03:27 PM
  4. Lua help
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-18-2008, 07:03 PM
  5. Lua help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-04-2008, 12:17 PM
All times are GMT -5. The time now is 04:50 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