Question about the CleanName function

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Question about the CleanName function

Post by MacroFiend » Mon Sep 08, 2003 11:14 am

Is there a reason why we don't remove the # from special mob names in the CleanName function?

Does not having it removed prevent the "a ", "an ", "the " comparison/reversals not to work?

Are there benefits to having it removed?

I would answer question #2 myself if I was able to run EQ at work but my curiosity has gotten the better of me and I wanted to ask.

Shin Noir
a ghoul
a ghoul
Posts: 90
Joined: Tue Aug 05, 2003 8:18 pm

Post by Shin Noir » Mon Sep 08, 2003 11:17 am

You're talking like,
$target(name,clean) displaying "#an uber orc pawn" ?
or $spawn($idvar,name,clean) displaying # in it's return?

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Yes ...

Post by MacroFiend » Mon Sep 08, 2003 11:20 am

Does it end up skipping the name adjustment at the end of the function because the # is the first characater ...

From your example, "#an uber orc pawn" with the # removed would end up "uber orc pawn, an"










xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Question about the CleanName function

Post by xyilla » Sat Jan 24, 2026 9:00 am