What am I doing wrong?
{
"type":"lineedit",
"name":"melee",
"description":"Id of the weapon without imbuement.",
"text":"Name of the weapon without imbuement:",
"value":"Crude Umbral Hammer"
},
{
"type":"lineedit",
"name":"imbued",
"description":"Id of the weapon with imbuement.",
"text":"Name of the weapon with imbuement:",
"value":"Umbral Master Hammer"
},
__________________________________________________ ____
--Equip Weapon
auto(1000)
local weapon = string.lower(getuseroption('melee'))
local weaponimbued = string.lower(getuseroption('imbued'))
if $rhand == weapon then
equipitem(weaponimbued,'rhand')
waitping(2,3)
end