Skip to content

Instantly share code, notes, and snippets.

@EncodeTheCode
Created January 27, 2026 21:01
Show Gist options
  • Select an option

  • Save EncodeTheCode/6db476418b147fa1c6193b07705031e9 to your computer and use it in GitHub Desktop.

Select an option

Save EncodeTheCode/6db476418b147fa1c6193b07705031e9 to your computer and use it in GitHub Desktop.
/run local n=UnitName("player"); local g=UnitGUID("player"); local _,sid,pid=strsplit("-",g); local realm=GetNormalizedRealmName() or "Unknown"; local _,_,_,_,_,_,_,iid=GetInstanceInfo(); print("User:",n,"| ID: Player (#"..pid.."), | Realm:",realm,"(#"..sid..") | Layer:",iid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment