Back to "forensics" skill

Yet Another Skinning Script by arnakk2424

Description: Combine jaseowns skinning blue corpse and gray

Bind this script to a key. Will skin blue corpse in range when you press it then will loop skinning gray corpse.

1#Yet Another Skinning Script
2#Combine Jaseowns skinning blue and skinning gray in 1 script 
3#by Arnakk
4#Reactivate the script to force skinning blue corpse on ground then will no longer skin blue corpse
5@setvar! cdSkinningCheck 500
6@setvar! minimumWaitForPing 200
7@clearignore
8while findtype "Elven Spellblade" backpack and findtype 8198 ground -1 -1 2 as jorpse
9    getlabel jorpse desc
10    if "the remains" in desc
11        // do nothing
12        @ignore jorpse
13    else
14        while not targetexists 
15            useskill 'forensicevaluation'
16        endwhile
17        if targetexists 
18            target jorpse
19            @ignore jorpse
20        endif
21    endif
22endwhile
23
24
25while not dead
26    if not timerexists skinningCheckTimer
27        settimer skinningCheckTimer cdSkinningCheck
28  endif
29    
30
31      if findtype "corpse" ground -1 -1 2 as jorpse
32        if findtype "Elven Spellblade" backpack any any 1 and timer skinningCheckTimer >= cdSkinningCheck 
33            while not targetexists 
34                useskill 'forensicevaluation'
35            endwhile
36            if targetexists 
37                hotkey "Target Self"
38                wait minimumWaitForPing
39                settimer skinningCheckTimer 0
40                @ignore jorpse
41            endif
42        endif
43    endif
44    endwhile