Getting Started
Rules
Character Mover
Optimization Guide
EZ Wiki
EZ Guide
Magelo
Zone List
Spell Recipes
T10.5 Spell Recipes
Crafting Recipes
Donate
EZ Player Discord
EZ Server Files
EZ Client Downloads
Custom UF MiniMap
Custom UF Inventory
EQEmulator Home
Allakhazam Home
UFMissingFilesList
TwitchTV
|==== Sub LootCorpse Sub LootCorpse(int CorpseNumber) /declare i int local 1 /declare cID string local /declare ItemsOnCorpse int local /if (${Target.ID}) { /if (${Target.DistanceU}>30) /say #corpsefix /delay 2 /loot /delay 20 ${Window[LootWnd].Open} /if (${Corpse.Items}) { /bc Looting corpse ${CorpseNumber} of ${CorpseCount}: ${Corpse.ID} /varset cID ${Corpse.ID} /delay 2 /if (${Window[LootWnd].Open} && ${Corpse.Items}) { /varset ItemsOnCorpse ${Corpse.Items} /delay 2 /for i 1 to ${ItemsOnCorpse} :KeepLootingItems /if (${Ini[${EZLootIni},${Corpse.Item[${i}].Name.Left[1]},${Corpse.Item[${i}]}].Equal[Keep]} || ${Corpse.Item[${i}].Name.Find[,000]}) { /shiftkey /notify LootWnd LW_LootSlot${Int[${Math.Calc[${i}-1]}]} rightmouseup /delay 2 /if (${Window[ConfirmationDialogBox].Open}) /notify ConfirmationDialogBox CD_Yes_Button leftmouseup /delay 2 /doevents LootRoundList } else /if (${Ini[${EZLootIni},${Corpse.Item[${i}].Name.Left[1]},${Corpse.Item[${i}]}].Equal[Announce]}) { /bc ${Corpse.Item[${i}]} found! ID: ${cID} ${Target} /if (${Raid.Members}) /bc ${Corpse.Item[${i}]} found! ID: ${cID} ${Target} /bc Checking EZRLoot.ini to see if this is something in there /call RLCheckForIni /if (${Ini[EZRLoot.ini].Length} && ${Ini[EZRLoot.ini,${Corpse.Item[${i}].Name.Left[1]},${Corpse.Item[${i}].Name}].Length}) { /if (${Ini[EZRLoot.ini,${Corpse.Item[${i}].Name.Left[1]},${Corpse.Item[${i}].Name}].NotEqual[${Me}]}) { /declare tempName string local ${Ini[EZRLoot.ini,${Corpse.Item[${i}].Name.Left[1]},${Corpse.Item[${i}].Name}]} /if (${Spawn[${tempName} pc].ID} && 300 > ${Spawn[${tempName} pc].Distance}) { /bc Sending tell to ${tempName} /tell ${tempName} @ loot ${Corpse.Item[${i}].Name} from ${Corpse.ID} } } } } else /if (${Ini[${EZLootIni},${Corpse.Item[${i}].Name.Left[1]},${Corpse.Item[${i}]}].Equal[Destroy]}) { /shiftkey /notify LootWnd LW_LootSlot${Int[${Math.Calc[${i}-1]}]} leftmouseup /delay 2 /if (${Window[ConfirmationDialogBox].Open}) /notify ConfirmationDialogBox CD_Yes_Button leftmouseup /delay 2 /destroy } /delay 2 /if (${Corpse.Items}>${i}) { /varcalc i ${i}+1 /goto :KeepLootingItems } /delay 2 /next i } } else /return <====================================================== This line here } /if (${Window[LootWnd].Open}) /notify LootWnd LW_DoneButton leftmouseup /cleanup /delay 2 /return|==== End Sub LootCorpse