Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- ########################################################################################
- #Edit this section then click run and paste the output into simc
- ########################################################################################
- #Either a path to the simc file you want to sim, an armory= line or overwrite the first line in output with import method of choice
- source_profile = "/profiles/Tier19M/Mage_Frost_T19M.simc"
- #Base weapon ilvl
- artifact_ilevel=926;
- # This is the WoWhead Simc artifact string with no relic you wish to sim
- artifact_base = "53:0:0:0:0:783:1:784:3:785:3:786:3:787:3:788:3:789:3:790:3:791:3:792:3:793:1:794:1:795:1:796:1:797:1:798:1:1296:1:1373:1:1537:4:1641:1";
- ########################################################################################
- ########################################################################################
- artifact=artifact_base
- profile = "##############################################################\n#Paste Your own import between here if you did not edit in script\n" + source_profile + "\n"
- profile += "##############################################################\ndefault_actions=1\n"
- print(profile + "artifact=" + artifact + "\nmain_hand=ebonchill,id=128862,ilevel=" + str(artifact_ilevel) + "\nname=no_trait\n")
- frostRelics = [
- ['LetItGo','137272','786'],
- ['Veins','139250','788'],
- ['Clarity','137380','789'],
- ['IceAge','137308','785'],
- ['Caress','133683','784'],
- ]
- arcRelics = [
- ['_LetItGo','140827','786'],
- ['_Veins','140812','788'],
- ['_Clarity','139269','789'],
- ['_IceAge','138227','785'],
- ['_Caress','137420','784'],
- ]
- label=''
- def editStrings(index, relicSlot, artifact, label) :
- if (relicSlot==0) :
- artifact=artifact.replace(':0:',':' + frostRelics[index][1] + ':',1)
- label=label+frostRelics[index][0]
- if (relicSlot==1) :
- artifact=artifact.replace(':0:',':' + arcRelics[index][1] + ':',1)
- label=label+arcRelics[index][0]
- if (relicSlot==2) :
- artifact=artifact.replace(':0:',':' + frostRelics[index][1] + ':',1)
- label=label+'_'+frostRelics[index][0]
- relicindex=artifact.find(frostRelics[index][2])
- if (relicindex != -1) :
- if (artifact[relicindex+4] == '5' ) :
- artifact = artifact.replace(frostRelics[index][2] + ':5',frostRelics[index][2] + ':6',1)
- if (artifact[relicindex+4] == '4' ) :
- artifact = artifact.replace(frostRelics[index][2] + ':4',frostRelics[index][2] + ':5',1)
- if (artifact[relicindex+4] == '3' ) :
- artifact = artifact.replace(frostRelics[index][2] + ':3',frostRelics[index][2] + ':4',1)
- if (artifact[relicindex+4] == '2' ) :
- artifact = artifact.replace(frostRelics[index][2] + ':2',frostRelics[index][2] + ':3',1)
- if (artifact[relicindex+4] == '1' ) :
- artifact = artifact.replace(frostRelics[index][2] + ':1',frostRelics[index][2] + ':2',1)
- if (relicindex == -1) : artifact = artifact + ':' + frostRelics[index][2] + ':1';
- iterated = [ artifact , label ]
- return iterated
- for combination in itertools.combinations_with_replacement(range(len(frostRelics)),3):
- settemp = editStrings(combination[0],0, artifact, label)
- settemp = editStrings(combination[1],1, settemp[0], settemp[1])
- settemp = editStrings(combination[2],2, settemp[0], settemp[1])
- print('copy='+settemp[1])
- print('distance=11')
- print('artifact='+settemp[0])
- artifact = artifact_base
- label=''
Advertisement
Add Comment
Please, Sign In to add comment