Rinah

Untitled

Mar 26th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. import itertools
  2.  
  3.  
  4. ########################################################################################
  5. #Edit this section then click run and paste the output into simc
  6. ########################################################################################
  7. #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
  8. source_profile = "/profiles/Tier19M/Mage_Frost_T19M.simc"
  9. #Base weapon ilvl
  10. artifact_ilevel=926;
  11. # This is the WoWhead Simc artifact string with no relic you wish to sim
  12. 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";
  13. ########################################################################################
  14. ########################################################################################
  15.  
  16.  
  17.  
  18.  
  19.  
  20. artifact=artifact_base
  21. profile = "##############################################################\n#Paste Your own import between here if you did not edit in script\n" + source_profile + "\n"
  22. profile += "##############################################################\ndefault_actions=1\n"
  23.  
  24. print(profile + "artifact=" + artifact + "\nmain_hand=ebonchill,id=128862,ilevel=" + str(artifact_ilevel) + "\nname=no_trait\n")
  25.  
  26. frostRelics = [
  27. ['LetItGo','137272','786'],
  28. ['Veins','139250','788'],
  29. ['Clarity','137380','789'],
  30. ['IceAge','137308','785'],
  31. ['Caress','133683','784'],
  32. ]
  33. arcRelics = [
  34. ['_LetItGo','140827','786'],
  35. ['_Veins','140812','788'],
  36. ['_Clarity','139269','789'],
  37. ['_IceAge','138227','785'],
  38. ['_Caress','137420','784'],
  39. ]
  40. label=''
  41.  
  42. def editStrings(index, relicSlot, artifact, label) :
  43. if (relicSlot==0) :
  44. artifact=artifact.replace(':0:',':' + frostRelics[index][1] + ':',1)
  45. label=label+frostRelics[index][0]
  46. if (relicSlot==1) :
  47. artifact=artifact.replace(':0:',':' + arcRelics[index][1] + ':',1)
  48. label=label+arcRelics[index][0]
  49. if (relicSlot==2) :
  50. artifact=artifact.replace(':0:',':' + frostRelics[index][1] + ':',1)
  51. label=label+'_'+frostRelics[index][0]
  52.  
  53. relicindex=artifact.find(frostRelics[index][2])
  54. if (relicindex != -1) :
  55. if (artifact[relicindex+4] == '5' ) :
  56. artifact = artifact.replace(frostRelics[index][2] + ':5',frostRelics[index][2] + ':6',1)
  57. if (artifact[relicindex+4] == '4' ) :
  58. artifact = artifact.replace(frostRelics[index][2] + ':4',frostRelics[index][2] + ':5',1)
  59. if (artifact[relicindex+4] == '3' ) :
  60. artifact = artifact.replace(frostRelics[index][2] + ':3',frostRelics[index][2] + ':4',1)
  61. if (artifact[relicindex+4] == '2' ) :
  62. artifact = artifact.replace(frostRelics[index][2] + ':2',frostRelics[index][2] + ':3',1)
  63. if (artifact[relicindex+4] == '1' ) :
  64. artifact = artifact.replace(frostRelics[index][2] + ':1',frostRelics[index][2] + ':2',1)
  65. if (relicindex == -1) : artifact = artifact + ':' + frostRelics[index][2] + ':1';
  66. iterated = [ artifact , label ]
  67. return iterated
  68.  
  69. for combination in itertools.combinations_with_replacement(range(len(frostRelics)),3):
  70. settemp = editStrings(combination[0],0, artifact, label)
  71. settemp = editStrings(combination[1],1, settemp[0], settemp[1])
  72. settemp = editStrings(combination[2],2, settemp[0], settemp[1])
  73. print('copy='+settemp[1])
  74. print('distance=11')
  75. print('artifact='+settemp[0])
  76. artifact = artifact_base
  77. label=''
Advertisement
Add Comment
Please, Sign In to add comment