
The code like this
Code: Select all
<EnchantCenter>
<Initialize>
(block (itemType)
(setq gItem (scrGetItem gScreen))
(setq itemType (itmGetUNID gItem))
)
</Initialize>
<Actions>
<Action name="Enchant" key="E" >
(switch
(eq itemType 0x0100 0;)
(block (intEnhanceWeaponUse)
(intEnhanceWeaponUse 0x0100 0 "is more powerful")
)
)
(eq itemType 0x0100 1;)
(block (intEnhanceWeaponUse)
(intEnhanceWeaponUse 0x0100 1 "is more powerful")
)
)
(eq itemType 0x0100 2;)
(block (intEnhanceWeaponUse)
(intEnhanceWeaponUse 0x0100 2 "is more powerful")
)
)
(eq itemType 0x0100 3;)
(block (intEnhanceWeaponUse)
(intEnhanceWeaponUse 0x0100 3 "is more powerful")
)
)
(eq itemType 0x0100 4;)
(block (intEnhanceWeaponUse)
(intEnhanceWeaponUse 0x0100 4 "is more powerful")
)
)
(eq itemType 0x0100 5;)
(block (intEnhanceWeaponUse)
(intEnhanceWeaponUse 0x0100 5 "is more powerful")
)
)
)
)
</Action>
<Action name="Done" cancel="1" key="N">
<ShowPane pane="Default"/>
</Action>
</Actions>
</EnchantCenter>