Skip to content

#LSpell

VariableLast actionRead / writeNumberNeeds client
uo.dll
LSpell

Also searchable as: #LSpell · LSpell · last spell · cast spell

#LSpell is the number of the spell you cast last. Set it and run event Macro 16 (Last Spell) to cast that spell.

The numbers are the client’s own. They are the ones listed for casting on the event Macro page, except in three schools: Magery counts from 1 (Clumsy) to 64 (Water Elemental) here, one more than event Macro 15 takes, Bushido from 401 and Ninjitsu from 501. Necromancy from 101, Chivalry from 201 and the other schools are the same in both.

The value lives in the client, not in the script: setting it changes it for every script attached to that client, and the client changes it too as you play. Save the old value and put it back if other scripts may rely on it.

set #LSpell 29 ; Greater Heal (event Macro 15 28)
event Macro 16 0
target 3s
event Macro 23 0 ; target self
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.