Ecaflip Ecaflip terre [pile ou face]

    Publicités

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

salmodes

Membre
Apr 5, 2020
7
1
123
54
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

Membre Banni
Sep 28, 2019
119
216
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: Godcry and salmodes

TommyBeGood

Membre
Jun 24, 2020
10
1
64
32
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?
 

Doomsday123

Membre
Nov 21, 2021
6
1
3
27
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 :)