Bonjour à tous,
Merci beaucoup pour ce tuto que j'aimerais faire fonctionner mais malheureusement il m'est impossible de l'utilise car je trouve pas le fichier ou plutôt je suis pas sur que se soit le bon.
Voici mon parcoure :
-CorePlusField V8.1
-lib
-clic droit sur settings puis "edit Script"
-et je fais le copier coller de ton message plus haut à la suite, se qui donne :
Func loadConfigs($profilFile = "settings.ini", $creation = 0)
;; windows informations
;$winName = IniRead($profilFile,"windows info","winName","Diablo III")
;$gamePath = IniRead($profilFile,"windows info","gameExecFullPath",0)
;; Account info
$d3pass = IniRead($profilFile, "Account info", "pass", 0)
$ftpserver = IniRead($profilFile, "Account info", "ftpserver", $ftpserver)
$ftpusername = IniRead($profilFile, "Account info", "ftpusername", $ftpusername)
$ftppass = IniRead($profilFile, "Account info", "ftppass", $ftppass)
$ftpfilename = IniRead($profilFile, "Account info", "ftpfilename", $ftpfilename)
;; Run info
$monsterList = IniRead($profilFile, "Run info", "monsterList", $monsterList)
$SpecialmonsterList = IniRead($profilFile, "Run info", "SpecialmonsterList", $SpecialmonsterList)
$grabListFile = IniRead($profilFile, "Run info", "grabListFile", $grabListFile)
$QualityLevel = IniRead($profilFile, "Run info", "QualiteItem", $QualityLevel)
$a_range = IniRead($profilFile, "Run info", "attackRange", $a_range)
$g_range = IniRead($profilFile, "Run info", "grabRange", $g_range)
$a_time = IniRead($profilFile, "Run info", "attacktimeout", $a_time)
$g_time = IniRead($profilFile, "Run info", "grabtimeout", $g_time)
$repairafterxxgames = IniRead($profilFile, "Run info", "repairafterxxgames", $repairafterxxgames)
$maxgamelength = IniRead($profilFile, "Run info", "maxgamelength", $maxgamelength)
$Potions = IniRead($profilFile, "Run info", "Potions", $Potions)
$PreBuff1 = IniRead($profilFile, "Run info", "PreBuff1", $PreBuff1)
$ToucheBuff1 = IniRead($profilFile, "Run info", "ToucheBuff1", $ToucheBuff1)
$delaiBuff1 = IniRead($profilFile, "Run info", "delaiBuff1", $delaiBuff1)
$PreBuff2 = IniRead($profilFile, "Run info", "PreBuff2", $PreBuff2)
$ToucheBuff2 = IniRead($profilFile, "Run info", "ToucheBuff2", $ToucheBuff2)
$delaiBuff2 = IniRead($profilFile, "Run info", "delaiBuff2", $delaiBuff2)
$PreBuff3 = IniRead($profilFile, "Run info", "PreBuff3", $PreBuff3)
$ToucheBuff3 = IniRead($profilFile, "Run info", "ToucheBuff3", $ToucheBuff3)
$delaiBuff3 = IniRead($profilFile, "Run info", "delaiBuff3", $delaiBuff3)
$PreBuff4 = IniRead($profilFile, "Run info", "PreBuff4", $PreBuff4)
$ToucheBuff4 = IniRead($profilFile, "Run info", "ToucheBuff4", $ToucheBuff4)
$delaiBuff4 = IniRead($profilFile, "Run info", "delaiBuff4", $delaiBuff4)
$LifeForPotion = IniRead($profilFile, "Run info", "LifeForPotion", $LifeForPotion)
$PotionStock = IniRead($profilFile, "Run info", "PotionStock", $PotionStock)
$TakeShrines = IniRead($profilFile, "Run info", "TakeShrines", $TakeShrines)
$MonsterTri = IniRead($profilFile, "Run info", "MonsterTri", $MonsterTri)
$MonsterRefresh = IniRead($profilFile, "Run info", "MonsterRefresh", $MonsterRefresh)
$ItemRefresh = IniRead($profilFile, "Run info", "ItemRefresh", $ItemRefresh)
$MonsterPriority = IniRead($profilFile, "Run info", "MonsterPriority", $MonsterPriority)
$Unidentified = IniRead($profilFile, "Run info", "Unidentified", $Unidentified)
;~ $MaximumHatred = IniRead($profilFile, "Run info", "MaximumHatred", $MaximumHatred)
;~ $MaximumDiscipline = IniRead($profilFile, "Run info", "MaximumDiscipline", $MaximumDiscipline)
;~ $MaximumSpirit = IniRead($profilFile, "Run info", "MaximumSpirit", $MaximumSpirit)
;~ $MaximumFury = IniRead($profilFile, "Run info", "MaximumFury", $MaximumFury)
;~ $MaximumArcane = IniRead($profilFile, "Run info", "MaximumArcane", $MaximumArcane)
;~ $MaximumMana = IniRead($profilFile, "Run info", "MaximumMana", $MaximumMana)
$UsePath = StringLower(IniRead($profilFile, "Run info", "UsePath", $UsePath))
$ResActivated = StringLower(IniRead($profilFile, "Run info", "ResActivated", $ResActivated))
$ResLife = IniRead($profilFile, "Run info", "ResLife", $ResLife)
$File_Sequence = IniRead($profilFile, "Run info", "SequenceFile", $File_Sequence)
$Skill_conf1[0] = IniRead($profilFile, "Run info", "SpellOnLeft", $Skill_conf1[0])
$Skill_conf1[1] = IniRead($profilFile, "Run info", "SpellDelayLeft", $Skill_conf1[1])
$Skill_conf1[2] = IniRead($profilFile, "Run info", "SpellTypeLeft", $Skill_conf1[2])
$Skill_conf1[3] = IniRead($profilFile, "Run info", "SpellEnergyNeedsLeft", $Skill_conf1[3])
$Skill_conf1[4] = IniRead($profilFile, "Run info", "SpellLifeLeft", $Skill_conf1[4])
$Skill_conf1[5] = IniRead($profilFile, "Run info", "SpellDistanceLeft", $Skill_conf1[5])
$Skill_conf2[0] = IniRead($profilFile, "Run info", "SpellOnRight", $Skill_conf2[0])
$Skill_conf2[1] = IniRead($profilFile, "Run info", "SpellDelayRight", $Skill_conf2[1])
$Skill_conf2[2] = IniRead($profilFile, "Run info", "SpellTypeRight", $Skill_conf2[2])
$Skill_conf2[3] = IniRead($profilFile, "Run info", "SpellEnergyNeedsRight", $Skill_conf2[3])
$Skill_conf2[4] = IniRead($profilFile, "Run info", "SpellLifeRight", $Skill_conf2[4])
$Skill_conf2[5] = IniRead($profilFile, "Run info", "SpellDistanceRight", $Skill_conf2[5])
$Skill_conf3[0] = IniRead($profilFile, "Run info", "SpellOn1", $Skill_conf3[0])
$Skill_conf3[1] = IniRead($profilFile, "Run info", "SpellDelay1", $Skill_conf3[1])
$Skill_conf3[2] = IniRead($profilFile, "Run info", "SpellType1", $Skill_conf3[2])
$Skill_conf3[3] = IniRead($profilFile, "Run info", "SpellEnergyNeeds1", $Skill_conf3[3])
$Skill_conf3[4] = IniRead($profilFile, "Run info", "SpellLife1", $Skill_conf3[4])
$Skill_conf3[5] = IniRead($profilFile, "Run info", "SpellDistance1", $Skill_conf3[5])
$Skill_conf4[0] = IniRead($profilFile, "Run info", "SpellOn2", $Skill_conf4[0])
$Skill_conf4[1] = IniRead($profilFile, "Run info", "SpellDelay2", $Skill_conf4[1])
$Skill_conf4[2] = IniRead($profilFile, "Run info", "SpellType2", $Skill_conf4[2])
$Skill_conf4[3] = IniRead($profilFile, "Run info", "SpellEnergyNeeds2", $Skill_conf4[3])
$Skill_conf4[4] = IniRead($profilFile, "Run info", "SpellLife2", $Skill_conf4[4])
$Skill_conf4[5] = IniRead($profilFile, "Run info", "SpellDistance2", $Skill_conf4[5])
$Skill_conf5[0] = IniRead($profilFile, "Run info", "SpellOn3", $Skill_conf5[0])
$Skill_conf5[1] = IniRead($profilFile, "Run info", "SpellDelay3", $Skill_conf5[1])
$Skill_conf5[2] = IniRead($profilFile, "Run info", "SpellType3", $Skill_conf5[2])
$Skill_conf5[3] = IniRead($profilFile, "Run info", "SpellEnergyNeeds3", $Skill_conf5[3])
$Skill_conf5[4] = IniRead($profilFile, "Run info", "SpellLife3", $Skill_conf5[4])
$Skill_conf5[5] = IniRead($profilFile, "Run info", "SpellDistance3", $Skill_conf5[5])
$Skill_conf6[0] = IniRead($profilFile, "Run info", "SpellOn4", $Skill_conf6[0])
$Skill_conf6[1] = IniRead($profilFile, "Run info", "SpellDelay4", $Skill_conf6[1])
$Skill_conf6[2] = IniRead($profilFile, "Run info", "SpellType4", $Skill_conf6[2])
$Skill_conf6[3] = IniRead($profilFile, "Run info", "SpellEnergyNeeds4", $Skill_conf6[3])
$Skill_conf6[4] = IniRead($profilFile, "Run info", "SpellLife4", $Skill_conf6[4])
$Skill_conf6[5] = IniRead($profilFile, "Run info", "SpellDistance4", $Skill_conf6[5])
$Key1 = IniRead($profilFile, "Run info", "Key1", $Key1)
$Key2 = IniRead($profilFile, "Run info", "Key2", $Key2)
$Key3 = IniRead($profilFile, "Run info", "Key3", $Key3)
$Key4 = IniRead($profilFile, "Run info", "Key4", $Key4)
$BanAffixList=iniread($profilFile,"Run info","BanAffixList",$BanAffixList)
$gestion_affixe=iniread($profilFile,"Run info","gestion_affixe",$gestion_affixe)
$gestion_affixe_loot=iniread($profilFile,"Run info","gestion_affixe_loot",$gestion_affixe_loot)
$Life_Arcane=iniread($profilFile,"Run info","Life_Arcane",$Life_Arcane)
$Life_Peste=iniread($profilFile,"Run info","Life_Peste",$Life_Peste)
$Life_Profa=iniread($profilFile,"Run info","Life_Profa",$Life_Profa)
$Life_Ice=iniread($profilFile,"Run info","Life_Ice",$Life_Ice)
$Life_Explo=iniread($profilFile,"Run info","Life_Explo",$Life_Explo)
$Life_Arm=iniread($profilFile,"Run info","Life_Arm",$Life_Arm)
$Life_Lave=iniread($profilFile,"Run info","Life_Lave",$Life_Lave)
$Life_Poison=iniread($profilFile,"Run info","Life_Poison",$Life_Poison)
$Life_Spore=iniread($profilFile,"Run info","Life_Spore",$Life_Spore)
$Life_Mine=iniread($profilFile,"Run info","Life_Mine",$Life_Mine)
$Gest_affixe_ByClass=iniread($profilFile,"Run info","Gest_affixe_ByClass",$Gest_affixe_ByClass)
$InventoryCheck = IniRead($profilFile, "Run info", "InventoryCheck", $InventoryCheck)
;$Act = IniRead($profilFile,"Run info","Act", $Act)
$Devmode = IniRead($profilFile, "Run info", "Devmode", $Devmode)
#cs
If $RightClickSpellEnergy <> "" And $RightClickSpellEnergy <> "discipline" And $RightClickSpellEnergy <> "hatred" And $RightClickSpellEnergy <> "spirit" And $RightClickSpellEnergy <> "arcane" And $RightClickSpellEnergy <> "mana" And $RightClickSpellEnergy <> "fury" Then
MsgBox(0, "Erreur non de variable", "La variable '$RightClickSpellEnergy' initialisé dans le setting.ini est mal écrite")
Terminate()
EndIf
If $EnergySpell1 <> "" And $EnergySpell1 <> "discipline" And $EnergySpell1 <> "hatred" And $EnergySpell1 <> "spirit" And $EnergySpell1 <> "arcane" And $EnergySpell1 <> "mana" And $EnergySpell1 <> "fury" Then
MsgBox(0, "Erreur non de variable", "La variable '$EnergySpell1' initialisé dans le setting.ini est mal écrite")
Terminate()
EndIf
If $EnergySpell2 <> "" And $EnergySpell2 <> "discipline" And $EnergySpell2 <> "hatred" And $EnergySpell2 <> "spirit" And $EnergySpell2 <> "arcane" And $EnergySpell2 <> "mana" And $EnergySpell2 <> "fury" Then
MsgBox(0, "Erreur non de variable", "La variable '$EnergySpell2' initialisé dans le setting.ini est mal écrite")
Terminate()
EndIf
If $EnergySpell3 <> "" And $EnergySpell3 <> "discipline" And $EnergySpell3 <> "hatred" And $EnergySpell3 <> "spirit" And $EnergySpell3 <> "arcane" And $EnergySpell3 <> "mana" And $EnergySpell3 <> "fury" Then
MsgBox(0, "Erreur non de variable", "La variable '$EnergySpell3' initialisé dans le setting.ini est mal écrite")
Terminate()
EndIf
If $EnergySpell4 <> "" And $EnergySpell4 <> "discipline" And $EnergySpell4 <> "hatred" And $EnergySpell4 <> "spirit" And $EnergySpell4 <> "arcane" And $EnergySpell4 <> "mana" And $EnergySpell4 <> "fury" Then
MsgBox(0, "Erreur non de variable", "La variable '$EnergySpell4' initialisé dans le setting.ini est mal écrite")
Terminate()
EndIf
#ce
EndFunc ;==>loadConfigs
Func FilterBackpack()
Local $__ACDACTOR = triBackPack(IterateBackpack(0))
Local $iMax = UBound($__ACDACTOR)
If $iMax > 0 Then
Local $return[$iMax][4]
Send("{SPACE}") ; make sure we close everything
Send("i") ; open the inventory
Sleep(100)
CheckWindowD3Size()
_checkbackpacksize()
For $i = 0 To $iMax - 1
$ACD = GetACDOffsetByACDGUID($__ACDACTOR[$i][0])
$CurrentIdAttrib = _memoryread($ACD + 0x120, $d3, "ptr")
$quality = GetAttribute($CurrentIdAttrib, $Atrib_Item_Quality_Level)
$itemDestination = CheckItem($__ACDACTOR[$i][0], $__ACDACTOR[$i][1], 1)
If ($quality >= 6 and $quality < 9 And _MemoryRead($__ACDACTOR[$i][7] + 0x164, $d3, 'int') > 0 And ($itemDestination <> "Stash" Or trim(StringLower($Unidentified_Rare)) = "false")) OR ($quality >= 9 And _MemoryRead($__ACDACTOR[$i][7] + 0x164, $d3, 'int') > 0 And ($itemDestination <> "Stash" Or trim(StringLower($Unidentified_Leg)) = "false")) Then
InventoryMove($__ACDACTOR[$i][3], $__ACDACTOR[$i][4])
If IterateActorAtribs($__ACDACTOR[$i][0], $Atrib_Item_Quality_Level) > 8 Then
Sleep(Random(250, 400))
MouseClick("Right")
Sleep(Random(4000, 4500))
Else
Sleep(Random(250, 400))
MouseClick("Right")
Sleep(Random(1000, 1500))
EndIf
EndIf
$return[$i][0] = $__ACDACTOR[$i][3] ;definit la collone de l'item
$return[$i][1] = $__ACDACTOR[$i][4] ;definit la ligne de l'item
$return[$i][3] = $quality
If $itemDestination = "Stash_Filtre" And (($quality>=6 and $quality<9 and trim(StringLower($Unidentified_Rare)) = "false") or ($quality>=9 and trim(StringLower($Unidentified_Leg)) = "false")) Then
If checkFiltreFromtable($GrabListTab, $__ACDACTOR[$i][1], $CurrentIdAttrib) Then ;on lance le filtre sur l'item
_log('valide', 1)
_log(' - ', 1)
$return[$i][2] = "Stash"
Else
$return[$i][2] = "Trash"
_log('invalide', 1)
_log(' - ', 1)
EndIf
Else
$return[$i][2] = $itemDestination ;row
EndIf
Next
Send("{SPACE}") ; make sure we close everything
Return $return
EndIf
Return False
EndFunc ;==>FilterBackpack
Ça se termine ici, ceci est qu'un extrait bien sur.
Il y a possibilité de m'aider ?
Merci à vous.
Bonne après midi.