need help on lua code~~ menu

User Tag List

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

    need help on lua code~~

    Now I can realize these functions through the following lua code(provide by @Phanx,thanks to him)

    1.hide and replace player name to "newplayername"
    2.hide and replace pet name to "newpetname"
    3.hide and replace target of target name
    4.hide and replace target of focus name
    5.replace friend and enemy player name to their classic name

    the following lua code:
    Code:
     local CUSTOM_PLAYER_TEXT = "newplayername"
     local CUSTOM_PET_TEXT = "newpetname"
     
    local function SetCustomName(unit, fontString)
     if UnitIsUnit(unit, "player") then
     fontString:SetText(CUSTOM_PLAYER_TEXT)
     elseif UnitIsPlayer(unit) then
     fontString:SetText(strupper(UnitClass(unit)))
     else
     fontString:SetText(CUSTOM_PET_TEXT)
     end
     end
     
    hooksecurefunc("UnitFrame_Update", function(frame, isParty)
     if frame.name then
     SetCustomName(frame.overrideName or frame.unit, frame.name)
     end
     end)
     
    hooksecurefunc("CompactUnitFrame_UpdateName", function(frame)
     SetCustomName(frame.unit, frame.name)
     end)

    but can i ask two questions more,how can i :

    1.how to hide and replace my name on scoreboard in arean/BG/RBG?also replace friend and enemy player name to their classic name

    2.how to hide and replace my name on addon"recount/skada"?also replace friend and enemy player name to their classic name

    tyyyyyyyyyyyyyyyyyyvm!

    need help on lua code~~

Similar Threads

  1. Need help with LUA Hearthstone 3.1.1
    By andreasv18_2005 in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 05-16-2009, 08:13 AM
  2. Need help with LUA
    By marcelo_20xx in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 11-29-2008, 11:22 AM
  3. Need help about [Lua Scripting]
    By Ollox in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 11-01-2008, 01:56 PM
  4. need help adding lua timers!
    By raggo in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 09-06-2008, 05:20 PM
  5. Need help with LUA
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 02-28-2008, 12:54 PM
All times are GMT -5. The time now is 02:27 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search