# Porte Clés Act 2

**URL:** <https://forum.gmstemple.com/t/porte-cla-s-act-2/11550>\
**Category:** Assistance Bot & Programmes\
**Created:** [Mars 10, 2013, 1:02 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550 "2013-03-10T13:02:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![otakey49](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@otakey49](https://forum.gmstemple.com/u/otakey49)\
**Post date:** [Mars 10, 2013, 1:02 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/1 "2013-03-10T13:02:43Z")

</div>

Salut a tous et merci pour ce fabuleux Programme.  
  
j'ai testé toutes les manip décrite dans le post Act2 oasis Dahlgur, et malgrés tout je n'arrive pas le faire taper le porte clé. Pouvez vous m'aider ?  
  
Merci

---

<div class="post-metadata">

**Author:** ![qcrepresent](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/qcrepresent/32/4512_2.png) [@qcrepresent](https://forum.gmstemple.com/u/qcrepresent)\
**Post date:** [Mars 10, 2013, 8:20 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/2 "2013-03-10T20:20:36Z")

</div>

> yop !  
>   
> Dans la fonction Attack() (dans le toolkit.au3 ^^)  
> Rajoutez or StringInStr($item[1],"dunedervish\_") Then dans la ligne avec If checkFromList  
>   
>   
> donc cette ligne:
> 
> ```
> If checkFromList($monsterList, $item[1]) And $item[6] <> -1 And $item[9] < $range Or (checkFromList($monsterList, $item[1]) And (StringInStr($item[1], "brickhouse_") Or StringInStr($item[1], "goblin") Or StringInStr($item[1], "woodwraith_")) And $item[9] < $range) Then
> ```
> 
>   
> devient:  
>   
> 
> ```
> If checkFromList($monsterList, $item[1]) And $item[6] <> -1 And $item[9] < $range Or (checkFromList($monsterList, $item[1]) And (StringInStr($item[1], "brickhouse_") Or StringInStr($item[1], "goblin") Or StringInStr($item[1], "woodwraith_") Or StringInStr($item[1],"dunedervish_")) And $item[9] < $range) Then
> ```
> 
>   
> Enjoy ![:D](https://forum.gmstemple.com/uploads/default/original/2X/4/4e279733a789da83bda5b44aedcf6a0d5178edcb.gif)  
>   
> P.S:j'ai ajouté ça dans ma monsterlist=SnakeMan|DuneDervish\_B\_Unique\_Uber|DuneDervish\_|DuneDervish\_A|DuneDervish-B|DuneDervish\_C  
>   
> J'imagine qu'ils sont pas tous nécessaire mais j'ai pas eu le temps de tester lequel suffisait.

  
Et voilà.

---

<div class="post-metadata">

**Author:** ![otakey49](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@otakey49](https://forum.gmstemple.com/u/otakey49)\
**Post date:** [Mars 11, 2013, 10:18 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/3 "2013-03-11T10:18:51Z")

</div>

MErci, mais je n'ai pas cette ligne dans toolkit :/ étrange je vais chercher encore.

---

<div class="post-metadata">

**Author:** ![gmsMath](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/gmsmath/32/4457_2.png) [@gmsMath](https://forum.gmstemple.com/u/gmsMath)\
**Post date:** [Mars 11, 2013, 10:40 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/4 "2013-03-11T10:40:16Z")

</div>

otakey,  
  
tu as essayé de rajouter "dunedervish\_" dans le specialmonsterList du fichier settings.ini  
(qui semble être consulté dans la fonction Is\_Mob($item) de toolkit.au3)   
  
++Mathieu

---

<div class="post-metadata">

**Author:** ![otakey49](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@otakey49](https://forum.gmstemple.com/u/otakey49)\
**Post date:** [Mars 11, 2013, 8:44 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/5 "2013-03-11T20:44:19Z")

</div>

gmsMath, oui je l'ai mis mais sans effet. je comprends pas.  
  
merci

---

<div class="post-metadata">

**Author:** ![BertrandGMS](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/b/b38774/32.png) [@BertrandGMS](https://forum.gmstemple.com/u/BertrandGMS)\
**Post date:** [Mars 12, 2013, 3:34 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/6 "2013-03-12T15:34:31Z")

</div>

> gmsMath, oui je l'ai mis mais sans effet. je comprends pas.  
>   
> merci

  
bonjour,   
question bête sorry, lances-tu l'application via l'exe (pas bien)? ou bien un run sur le fichier .au3 pour que les modifs de code soient prises en compte (bien)?

---

<div class="post-metadata">

**Author:** ![manoush](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@manoush](https://forum.gmstemple.com/u/manoush)\
**Post date:** [Mars 12, 2013, 6:10 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/7 "2013-03-12T18:10:00Z")

</div>

ben moi aussi je galère avec les dervish, ça ne marche pas du tout avec la version 7.2 que j'utilise.  
il n'attaque aucun dervish bien que tous soient dans le settings.  
  
si qq'un a un settings qui marche svp?

---

<div class="post-metadata">

**Author:** ![otakey49](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@otakey49](https://forum.gmstemple.com/u/otakey49)\
**Post date:** [Mars 12, 2013, 6:57 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/8 "2013-03-12T18:57:27Z")

</div>

Salut,  
  
ben je lance la 7.2 via une compilation du script (main) que j'ai fait en x64. du coup je lance le main Application. le reste me fait une erreur de ce genre line 2673 file c:\Users etc Endfunc Erroe: "If" statement has no matching "Endif" statement.  
  
ça vient de ça ? O

---

<div class="post-metadata">

**Author:** ![L4stW1sh](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/l4stw1sh/32/4235_2.png) [@L4stW1sh](https://forum.gmstemple.com/u/L4stW1sh)\
**Post date:** [Mars 12, 2013, 7:07 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/9 "2013-03-12T19:07:15Z")

</div>

Il nous faut le nom du fichier ou se produit l'erreur hein (à la place du etc.). Sinon ça va être compliqué

---

<div class="post-metadata">

**Author:** ![otakey49](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@otakey49](https://forum.gmstemple.com/u/otakey49)\
**Post date:** [Mars 12, 2013, 8:14 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/10 "2013-03-12T20:14:21Z")

</div>

Oups dsl c:\User\monordi\Desktop\CorePlusfield\_pre release\_v7.2+affixe/toolkit.au3

---

<div class="post-metadata">

**Author:** ![gmsMath](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/gmsmath/32/4457_2.png) [@gmsMath](https://forum.gmstemple.com/u/gmsMath)\
**Post date:** [Mars 13, 2013, 7:03 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/11 "2013-03-13T07:03:23Z")

</div>

pourrais tu nous copier des lignes du toolkit.au3 autours de cette ligne 2673 ?

---

<div class="post-metadata">

**Author:** ![otakey49](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@otakey49](https://forum.gmstemple.com/u/otakey49)\
**Post date:** [Mars 13, 2013, 11:38 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/12 "2013-03-13T11:38:16Z")

</div>

Bonjour,  
  
voila  
ce toolkit est d'origine, j'ai touché a quelque truc pour faire des essaies, mais j'ai ce message depuis que je l'ai téléchargé. si je remet un complètement d'origine je peux pas lancer le programme sans creer un script comme dit plus haut.  
  
merci de m'aider ![:)](https://forum.gmstemple.com/uploads/default/original/2X/f/f31646767a12ff3f4d6b8c4766d2ea41b23d4ab9.gif)  
  
EndIf  
EndFunc ;==\>Attack \<---- c'est la ligne 2673  
  
Func DetectElite($Guid)  
 Return \_MemoryRead(GetACDOffsetByACDGUID($Guid) + 0xB8, $d3, 'int')  
EndFunc ;==\>DetectElite  
  
;;--------------------------------------------------------------------------------  
;; KillMob()  
;;--------------------------------------------------------------------------------  
Func KillMob($name, $offset, $Guid)  
 $return = True  
 $begin = TimerInit()

---

<div class="post-metadata">

**Author:** ![manoush](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@manoush](https://forum.gmstemple.com/u/manoush)\
**Post date:** [Mars 14, 2013, 8:55 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/13 "2013-03-14T20:55:42Z")

</div>

j'ai changé la hauteur Z de 10 à 20 comme mentionné plus haut dans le post et ça marche, le bot voit le porte-clé.  
merci

---

<div class="post-metadata">

**Author:** ![gmsMath](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/gmsmath/32/4457_2.png) [@gmsMath](https://forum.gmstemple.com/u/gmsMath)\
**Post date:** [Mars 14, 2013, 10:39 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/14 "2013-03-14T22:39:27Z")

</div>

Tac tac tac otakey, tu pourrais nous copier toute ta fonctiion Attack (juste au dessus de ta ligne 2673 je pense qu'il aime pas ton EndIf ![:)](https://forum.gmstemple.com/uploads/default/original/2X/f/f31646767a12ff3f4d6b8c4766d2ea41b23d4ab9.gif)

---

<div class="post-metadata">

**Author:** ![otakey49](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@otakey49](https://forum.gmstemple.com/u/otakey49)\
**Post date:** [Mars 17, 2013, 8:33 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/15 "2013-03-17T08:33:25Z")

</div>

coucou vi voila ![:)](https://forum.gmstemple.com/uploads/default/original/2X/f/f31646767a12ff3f4d6b8c4766d2ea41b23d4ab9.gif)  
  
Func Attack()  
 If \_playerdead\_revive() Then  
 Return  
 EndIf  
  
 If \_playerdead() Or ($GameFailed = 1) Then  
 $GameFailed = 1  
 \_log("Return Cuz : If \_playerdead or gamefailed ")  
 Return  
 EndIf  
 Local $IgnoreList = ""  
 Local $item[10]  
 Dim $test\_iterateallobjectslist = IterateFilterAttack($IgnoreList)  
 If IsArray($test\_iterateallobjectslist) Then  
 While IsArray($test\_iterateallobjectslist)  
 If \_playerdead\_revive() Then  
 ExitLoop  
 EndIf  
 If \_playerdead() Or ($GameFailed = 1) Then  
 $GameFailed = 1  
 \_log("Return Cuz : If \_playerdead or gamefailed ")  
 ExitLoop  
 EndIf  
 For $i = 0 To 9  
 $item[$i] = $test\_iterateallobjectslist[0][$i]  
 Next  
 If Is\_Interact($item, $IgnoreList) Then  
 If Is\_Shrine($item) Then  
 handle\_Shrine($item)  
 ElseIf Is\_Mob($item) Then  
 handle\_Mob($item, $IgnoreList, $test\_iterateallobjectslist)  
 ElseIf Is\_Loot($item) Then  
 handle\_Loot($item, $IgnoreList, $test\_iterateallobjectslist)  
 EndIf  
 EndIf  
 Dim $buff\_array = UpdateArrayAttack($test\_iterateallobjectslist, $IgnoreList)  
 Dim $test\_iterateallobjectslist = $buff\_array  
  
 WEnd  
  
 EndIf  
EndFunc ;==\>Attack  
  
Func DetectElite($Guid)  
 Return \_MemoryRead(GetACDOffsetByACDGUID($Guid) + 0xB8, $d3, 'int')  
EndFunc ;==\>DetectElite  
  
;;--------------------------------------------------------------------------------  
;; KillMob()  
;;--------------------------------------------------------------------------------  
Func KillMob($name, $offset, $Guid)  
 $return = True  
 $begin = TimerInit()  
  
  
 Dim $pos = UpdateObjectsPos($offset)  
  
  
 $Coords = FromD3toScreenCoords($pos[0], $pos[1], $pos[2])  
 MouseMove($Coords[0], $Coords[1], 3)  
  
 $elite = DetectElite($Guid)  
 ;loop the attack until the mob is dead  
  
 \_log("Attacking : " & $name & "; Type : " & $elite);  
 While IterateActorAtribs($Guid, $Atrib\_Hitpoints\_Cur) \> 0  
 $myposs\_aff = getcurrentpos()  
  
 If \_playerdead\_revive() Then  
 $return = False  
 ExitLoop  
 EndIf  
  
 If $gestion\_affixe = "true" Then maffmove($myposs\_aff[0], $myposs\_aff[1], $myposs\_aff[2])  
  
  
 Dim $pos = UpdateObjectsPos($offset)  
 $Coords = FromD3toScreenCoords($pos[0], $pos[1], $pos[2])  
 MouseMove($Coords[0], $Coords[1], 3)  
 GestSpellcast($pos[3], 1, $elite)  
  
 If TimerDiff($begin) \> $a\_time Then  
 $killtimeout += 1  
 ; after this time, the mob should be dead, otherwise he is probly unkillable  
 $return = False  
 ExitLoop  
 EndIf  
 WEnd  
 Return $return  
EndFunc ;==\>KillMob  
  
  
;;--------------------------------------------------------------------------------  
;; Grabit()  
;;------------------------------------  
  
bon dimanche a tous

---

<div class="post-metadata">

**Author:** ![gmsMath](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/gmsmath/32/4457_2.png) [@gmsMath](https://forum.gmstemple.com/u/gmsMath)\
**Post date:** [Mars 20, 2013, 8:50 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/16 "2013-03-20T08:50:43Z")

</div>

Le code m'a l'air tout bon, comme Jacques.  
  
Pourrais tu ouvrir Scite en tant qu'administrateur ouvrir le fichier main.au3 et lancer le bot par là (en appuyant sur F5 - tu l'arrètes en appuyant sur F2)  
Tu devrais avoir des logs plus détaillés.  
  
++Mathieu

---

<div class="post-metadata">

**Author:** ![cucaracha84](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/c/b9bd4f/32.png) [@cucaracha84](https://forum.gmstemple.com/u/cucaracha84)\
**Post date:** [Avril 12, 2013, 12:53 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/17 "2013-04-12T12:53:10Z")

</div>

> > yop !  
> >   
> > Dans la fonction Attack() (dans le toolkit.au3 ^^)  
> > Rajoutez or StringInStr($item[1],"dunedervish\_") Then dans la ligne avec If checkFromList  
> >   
> >   
> > donc cette ligne:
> > 
> > ```
> > If checkFromList($monsterList, $item[1]) And $item[6] <> -1 And $item[9] < $range Or (checkFromList($monsterList, $item[1]) And (StringInStr($item[1], "brickhouse_") Or StringInStr($item[1], "goblin") Or StringInStr($item[1], "woodwraith_")) And $item[9] < $range) Then
> > ```
> > 
> >   
> > devient:  
> >   
> > 
> > ```
> > If checkFromList($monsterList, $item[1]) And $item[6] <> -1 And $item[9] < $range Or (checkFromList($monsterList, $item[1]) And (StringInStr($item[1], "brickhouse_") Or StringInStr($item[1], "goblin") Or StringInStr($item[1], "woodwraith_") Or StringInStr($item[1],"dunedervish_")) And $item[9] < $range) Then
> > ```
> > 
> >   
> > Enjoy ![:D](https://forum.gmstemple.com/uploads/default/original/2X/4/4e279733a789da83bda5b44aedcf6a0d5178edcb.gif)  
> >   
> > P.S:j'ai ajouté ça dans ma monsterlist=SnakeMan|DuneDervish\_B\_Unique\_Uber|DuneDervish\_|DuneDervish\_A|DuneDervish-B|DuneDervish\_C  
> >   
> > J'imagine qu'ils sont pas tous nécessaire mais j'ai pas eu le temps de tester lequel suffisait.
> 
>   
> Et voilà.

  
  
bonjour je ne trouve pas ces ligne dans mon toolkit malgré la fonction recherche, quelqu'un sait a quel numéro de ligne je dois rajouté sa ? j'utilise la version 7.2

---

<div class="post-metadata">

**Author:** ![snow\_boy](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/snow_boy/32/4515_2.png) [@snow\_boy](https://forum.gmstemple.com/u/snow_boy)\
**Post date:** [Avril 12, 2013, 2:05 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/18 "2013-04-12T14:05:38Z")

</div>

Moi j'ai trouver une solution je t'aurais bien mis mes fichier modifier mais je ne sais pas comment mettre tout le code en "spoiler" pour qu'il soit reduit du coup cela risque de ne pas etre tres pratique si vous me dite comment je peux faire ceci je veux bien te copier mes fichier modifier ![:)](https://forum.gmstemple.com/uploads/default/original/2X/f/f31646767a12ff3f4d6b8c4766d2ea41b23d4ab9.gif)

---

<div class="post-metadata">

**Author:** ![cucaracha84](https://forum.gmstemple.com/letter_avatar_proxy/v4/letter/c/b9bd4f/32.png) [@cucaracha84](https://forum.gmstemple.com/u/cucaracha84)\
**Post date:** [Avril 12, 2013, 2:18 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/19 "2013-04-12T14:18:16Z")

</div>

Pour les poiler c'est [\*spoiler] tu ecrit ton texte [\*/spoiler] mais tu enleve les \* sinon tu peux me l'envoyé par MP

---

<div class="post-metadata">

**Author:** ![snow\_boy](https://forum.gmstemple.com/user_avatar/forum.gmstemple.com/snow_boy/32/4515_2.png) [@snow\_boy](https://forum.gmstemple.com/u/snow_boy)\
**Post date:** [Avril 12, 2013, 2:23 UTC](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550/20 "2013-04-12T14:23:04Z")

</div>

> Pour les poiler c'est [\*spoiler] tu ecrit ton texte [\*/spoiler] mais tu enleve les \* sinon tu peux me l'envoyé par MP

  
Merci alors malheuresement je viens de verifier et les modif ne marche pas pour l'acte 2 mais seulement pour l'acte 1 etrange ... je crois que c'est parce qu'il "vol" du coup il faut rajouter quelque chose desolee ...

[Page suivante](https://forum.gmstemple.com/t/porte-cla-s-act-2/11550.md?page=2)
