Question Regarding PQR Scripts menu

User Tag List

Results 1 to 4 of 4
  1. #1
    rantas's Avatar Member
    Reputation
    1
    Join Date
    Mar 2015
    Posts
    2
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Regarding PQR Scripts

    Hello Everyone, I want to modify one of the available pve ret paladin scripts to auto cleanse the character when it gets a debuff on it. Can someone tell me how this can be done. Thank you.

    Question Regarding PQR Scripts
  2. #2
    Numba1stunna1's Avatar Active Member
    Reputation
    70
    Join Date
    Dec 2013
    Posts
    182
    Thanks G/R
    1/34
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    -- make a list of debuffs
    local cleanseDebuffs = {123, 436, 56756} -- insert debuff spellid's here, you can also put names
    for _,v in pairs(cleanseDebuffs) do --iterate
    if UnitDebuff("player",GetSpellInfo(v)) then -- if you have the debuff in the table above
    CastSpellByID(*your cleanse spellID here*,"player") -- cast cleanse on yourself
    end 
    end
    you can also do spell names

    Code:
    -- make a list of debuffs
    local cleanseDebuffs = {"Crippling Poison", "Wound Poison", "stuffs"}
    for _,v in pairs(cleanseDebuffs) do 
    if UnitDebuff("player",GetSpellInfo(v)) then -- if you have the debuff in the table above
    CastSpellByName(*your cleanse NAME here*,"player") -- cast cleanse on yourself
    end 
    end

  3. Thanks rantas (1 members gave Thanks to Numba1stunna1 for this useful post)
  4. #3
    rantas's Avatar Member
    Reputation
    1
    Join Date
    Mar 2015
    Posts
    2
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Numba1stunna1, thanks. I thought it was a simple thing. I guess I have to read on PQR scripting.

  5. #4
    Numba1stunna1's Avatar Active Member
    Reputation
    70
    Join Date
    Dec 2013
    Posts
    182
    Thanks G/R
    1/34
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's all Lua, the "--" means I added a comment to the script for each line (to help you understand). Without the comments, the script should look like:

    Code:
    local cleanseDebuffs = {123, 436, 56756} 
    for _,v in pairs(cleanseDebuffs) do
    if UnitDebuff("player",GetSpellInfo(v)) then 
    CastSpellByID(*your cleanse spellID here*,"player")
    end 
    end
    There are two things you need to learn to properly write profiles: Lua language and WoW API. WoW API are simply functions to return information pertaining to WoW. http://wowprogramming.com/docs/api_categories Keep in mind, different WoW versions have different return values. A good way to try to find these return values is to print them (non-nil values). Lua can be learned here: http://www.lua.org/ A majority of time used when making a profile is debugging, efficiency, and data. PvE profiles are very easy to make, whereas a good PvP profile requires logistics and are much more time consuming.
    Last edited by Numba1stunna1; 11-09-2015 at 03:25 AM.

Similar Threads

  1. Quick question regarding scripting.
    By jimmy2222 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-23-2008, 05:54 PM
  2. Question regarding Warden and Model Edit.
    By thrass in forum WoW ME Questions and Requests
    Replies: 10
    Last Post: 09-15-2007, 02:47 PM
  3. Question regarding scamming on EU servers
    By Cinder in forum World of Warcraft General
    Replies: 1
    Last Post: 08-02-2007, 03:49 PM
  4. Another question regarding Title Screens
    By Naravus in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-17-2007, 05:27 PM
  5. Question Regarding Naming a Mod.
    By Omega in forum World of Warcraft General
    Replies: 0
    Last Post: 08-15-2006, 11:45 AM
All times are GMT -5. The time now is 04:00 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