A part of my script currently removes the users headwear and puts a Mask of Orcish Kin on for a little while. After such time has passed, the Mask is removed and the headpiece originally on is placed back on. This very last part is giving me problems. Here's a snippet:
set %headwear YVI_GZH_HZH_NJL_BWI_KWI_IWI_EWI_QJL_JWI_XVI_CZH_HWI_JJN_NZH_BZH_TDI_OZH_VSH_WVI
+_VVI_QSH_KZH_PZH_DZH_MIN_DSH_ASH_TSH_ESH_YPH_GSH_OSH_ZPH_ZRH_IWL_CSH_BSH_FSH_DPH_LKO_NWL_MKH
event macro 8 1
wait 20
set %pdollcontid #contid
finditem %headwear C_ , %pdollcontid
if #findkind = 0
{
set %currheadwearid #findid
exevent drag %currheadwearid
wait 20
exevent dropc #backpackid
wait 20
}
finditem VSH C_ , #backpackid ; Orc mask
if #findkind = 0
{
set %orcmask #findid
set #findmod 17_10 ;(x_y)
click #findx #findy g
wait 20
click 915 120 mc
wait 20
set #findmod 0_0
}
finditem %orcmask C_ , %pdollcontid
if #findkind = 0
{
exevent drag %orcmask
wait 20
exevent dropc #backpackid
wait 20
;set #findmod 100_190
exevent drag %currheadwearid
wait 15
click 915 120 mc d
}
The trick is, I have no idea what the user may be wearing, therefor, know what the findmod could possibly be. Additionally, the script as is won't put first hat back on. everything else works good. I'd like this to be able to pick up the headwear no matter the type without altering the findmod, or ask for user input about it.