Script loaded on certain class menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    plopek's Avatar Private
    Reputation
    1
    Join Date
    Aug 2014
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script loaded on certain class

    Hello guys,

    I'm playing few classes and I'd like to run a script only for a certain class, in this case for my Paladin.
    It's an InterruptBar script

    I would avoid things like making new addon, and uncheking it in game.

    Do you have any ideas?

    That's the code:

    Code:
    -- Interupt Bar
    li={2139,19647,47528,1766,80965,96231,6552,57994,116705,34490}cd={24,24,15,15,15,15,15,12,15,24}
    
    fl=0;ic=30;xp=-157;yp=-255;n=11;sfc=CooldownFrame_SetTimer;crf=CreateFrame;ce=math.ceil;ih=IsInInstance;gsi=GetSpellInfo;up=UIParent pe="PLAYER_ENTERING_WORLD"cdf="Cooldown"
    
    function cf(i,s,x,y)local _,_,t=gsi(s)local f=crf("Frame",nil,up)f:SetPoint("CENTER",x,y)f:SetSize(ic,ic)f.t = f:CreateTexture(nil,"BORDER")f.t:SetAllPoints(true)f.t:SetTexture(t)f.c=CreateFrame(cdf,nil,f)f.c:SetAllPoints(f)return f;end
    
    function ud(f,ls,lc)f:SetScript("OnEvent",function(_,_,_,e,_,_,_,b,_,_,_,_,_,s)if((bit.band(b,0x40) == 0x40)and e=="SPELL_CAST_SUCCESS"and s==ls)then sfc(f.c,GetTime(),lc,1)end end)f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")end
    
    for i,s in ipairs(li)do _G["ib"..i] = cf(i,s,xp+(ic+5)*ce((i-1)%n),yp-(ic+5)*ce(i/n))ud(_G["ib"..i],s,cd[i])end
    
    ik=crf("Frame")ik:SetScript("OnEvent",function()local _,t=ih()for i,s in ipairs(li)do local f=_G["ib"..i]if(t=="arena"or fl==0)then f:Show()f.c:Show()else f:Hide()f.c:Hide()end end end)ik:RegisterEvent(pe)

    Script loaded on certain class

Similar Threads

  1. [Question] NPC Gossip Spell Learning Script Help + Replacing All Class Resources
    By iamdudelee in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 10-09-2014, 12:15 AM
  2. [Repack] Lua script loaded but no change in game
    By Gix85 in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 03-08-2011, 01:05 PM
  3. 3.0.2 Over Powers Certain Classes?
    By Devilsadvocate in forum World of Warcraft General
    Replies: 21
    Last Post: 10-24-2008, 02:59 AM
  4. How do i make a vendor only open up to a Certain Class?
    By meepy in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-16-2008, 08:09 PM
  5. Script for 1-Button-Classes
    By Chiyu in forum World of Warcraft Bots and Programs
    Replies: 4
    Last Post: 03-29-2008, 10:07 AM
All times are GMT -5. The time now is 04:45 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