wierd group / horse bug

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

Moderator: MacroQuest Developers

kazan
a lesser mummy
a lesser mummy
Posts: 36
Joined: Wed Sep 04, 2002 6:56 pm

wierd group / horse bug

Post by kazan » Fri Jan 17, 2003 4:40 pm

Code: Select all

Sub Main
        /echo $spawn($group(0),name)
/return
that *should* return MY name seeing as im the first person in the group, and when run outside of a macro, it does, but when inside a macro the echo is Kazan`s Mount00.

both $group(0) and $char(id) return my mounts id when run within a macro. not that big a deal, but i thought i would bring it to your guys' attention.

anyway, heres the spew

Macro - Loading macro: test.mac
Macro - Starting macro with '/call Main'
Call - Calling subroutine Main with params
DetermineWhoFirst: '/echo' will try EQ's commands first
$spawn(): id=912 (.....), rest=name) (len=5)
Echo - [MacroQuest] Kazan`s_Mount00
CChatHook::Detour([MacroQuest] Kazan`s_Mount00)
DetermineWhoFirst: '/return' will try EQ's commands first
Return - At top of stack, ending macro
CChatHook::Detour(Cleared the following: Timers Vars Arrays)
EndMacro - Ended
CChatHook::Detour(The current macro has ended.)
DetermineWhoFirst: '/spew' will try EQ's commands first



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

Re: wierd group / horse bug

Post by xyilla » Wed Jan 14, 2026 12:36 pm