Git Product home page Git Product logo

wholist_staff's Introduction

Latest AzerothCore Revision 2023/10/08 MiscHandler.cpp File

WhoList_Staff

Azerothcore Edit that show Staff rank in Who List Credits to me [Hypnos] mithras_0 / [Revision - noisiver] Revision#2262 (Help on the script) / [Trojan] Trojan#1312 (Help & Fix on the script) & [Dandi] Dandi#2828 (Help & Fix on the script + Making it to work with the final touch)

Last credits to the old Owner script idea from 2013 "Wise" on TrinityCore

https://www.mmopro.org/archive/index.php/t-20022.html?s=15ac4afca3652733d91263db694e3c2a&fbclid=IwAR2VyHRFWFit5VSHKydMyAPztjMuijQ7Z9nKqx3L9v4qSPPQe7JV88CQEVo

Just Download the "MiscHandler.cpp" & put it in your Source Folder ...src\server\game\Handlers

or

Copy the Code & replace it at line 398 in "MiscHandler.cpp".*

Remove the line 398 by Pasting the code on it

Line 398 in MiscHandler.cpp

data << target.GetPlayerName(); // player name

Code to Paste On line 398

std::string playerName = ""; //temp storage

//definition of playerName depending on the (player/GM)'s rank
if (target.GetSecurity() >= 1) //if the rank is 1 or above
    playerName = "|cffFFFFFF[|r|cffFA8258Staff|cffffffff]|r  " + target.GetPlayerName();
else
    playerName = target.GetPlayerName();

//data << target.GetPlayerName();                 // player name - commented out to be replaced with the new playerName
data << playerName;                               //player name - with Staff indicator

& Then it should show like that ingame Screenshot

wholist_staff's People

Contributors

hypnosqc avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.