Ecaflip Ecaflip terre [pile ou face]

    Publicités

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

S

salmodes

Level 1
Apr 5, 2020
7
1
203
55
Bonjour, je n'arrive pas a faire fonctionner pile ou face .. quelqu'un aurait une idée ? Voici mon script :

function Main()
MoveAggressive()
SpellPileouFace()
fighter:passTurn()
end

function MoveAggressive()
if (not(fighter:isHandToHand())) then
fight:moveToWardCell(fight:getNearestEnemy())
end
end

function SpellPileouFace()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), "Pile ou Face")
fight:launchSpellInCell(fight:getNearestEnemy(), "Pile o Face")
end
end
 
vissounight

vissounight

Level 3
Level 2
Level 1
Sep 28, 2019
119
221
244
Discord
Vissou 6Night
Oui je peut t'aider voilà la correction.
Rich (BB code):
-- IA

DofusClass="6"


function Main()
    MoveAggressive()
    SpellPile_ou_FaceEnnemi12()
    fighter:passTurn()
end

function MoveAggressive()
    if (not(fighter:isHandToHand())) then
        fight:moveToWardCell(fight:getNearestEnemy())
    end
end

function SpellPile_ou_FaceEnnemi12()
    if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
        fight:launchSpellInCell(fight:getNearestEnemy(), "Pile ou Face")
        fight:launchSpellInCell(fight:getNearestEnemy(), "Pile ou Face")
    end
end
 
  • Like
Reactions: gouss1495, Godcry and salmodes
T

tahiriheropwi

Nouveau membre
Jun 1, 2020
1
0
1
34
s
 
Last edited:
T

TommyBeGood

Level 2
Level 1
Jun 24, 2020
10
1
64
34
Discord
TommyBeGood#9300
Hey @vissounight je viens de tester mais l'ia que tu propose ne fait que tourner autour du mob t'aurais une idée de se qui ne vas pas?
 
T

Tweaze

Level 2
Level 1
Mar 16, 2020
14
0
62
23
Discord
Tulor#0055
Nice mec cimer
 
D

Doomsday123

Level 1
Nov 21, 2021
6
1
3
29
Discord
Doomsday
Bonjour j'ai un problème mon personnage n'attaque pas , ya écrit impossible de trouver le sort bluff ,help sil vous plait :)