I have solved this problem in the following way:
I bind a script like this:
Code:
Sub Global()
if uo.getglobal('macro') == 'off' then
uo.setglobal('macro', 'on')
uo.print('Macros ON!, fight!)
else
uo.setglobal('lmacro', 'off')
uo.print('Macros OFF, speak!')
endif
endsub
And bind it, for example on the key F7.
Then all of my PVP macros look like this:
Code:
Sub Light()
if uo.getglobal('macro') == 'on' then
uo.cast('Lightning', 'lastattack')
endif
endsub
And I bind all of those PVP macros in UO options this way:
say: ,exec Light
Then if I wont to talk, I use the Global macro (F7), and all PVP macros are disabled.