Frigost
Site webDiscord
  • Préface
  • Introduction
  • Téléchargement
  • Abonnement Frigost
  • Démonstration (Vidéo)
  • Mise en place
    • Installation de A à Z (Vidéo)
    • Désactiver Proxifier/VPN
  • Dofus 3.0
    • Fonctionnalités globales
    • Abonnement: Frigost [Multi]
  • Abonnement: Frigost [Confort]
  • Abonnement: Frigost [Bot]
    • Console
    • Identifiants du jeu
    • Configuration des combats
    • Configuration du script
    • Syntaxe du script
    • Paramètres du script
    • Outils pour les scripts
      • PixelTool
      • Éléments de la carte
    • Astruces et exemples
      • Utilisation de l'havre sac
      • Script linéaire + circulaire
      • Faute à éviter en groupe
      • Paramètre dans 'custom'
    • JSON ⇆ LUA
    • Méthodes
      • console
        • print
        • error
        • success
        • clear
        • lines
      • web
        • get
        • post
        • urlEncode
        • discordLiteMessage
        • discordMessage
      • inventory
        • pods
        • podsMax
        • podsPercent
        • kamas
        • content
        • objectQuantity
        • objectPosition
        • objectUid
        • objectName
        • deleteObject
        • useObject
        • moveObjectToStorage
        • setObjectPosition
      • job
        • name
        • level
      • script
        • name
        • folder
        • restart
        • load
        • stop
      • config
        • get
        • set
        • import
        • importFighters
      • memory
        • set
        • get
        • erase
      • global
        • sleep / delay
        • random
        • isInTeam
        • isTeamLeader
        • teamCount
        • inTeamIndex
        • teamNumber
        • token
        • username
        • alias
        • password
        • disconnect
        • verifyTeam
        • input
        • question
        • playSound
        • timestamp
        • crashAfter
        • currentIP
      • character
        • id
        • name
        • level
        • isInFight
        • wasInFight
        • fightCount
        • resetFightCount
        • gatherCount
        • resetGatherCount
        • playerInMap
        • launchExchange
      • npc
        • exists
        • talk
        • interact
        • possibleReplies
        • reply
        • inDialog
        • leaveDialog
      • map
        • fight
        • gather
        • door
        • interactive
        • change
        • move
        • onMap
        • waitChange
        • currentMap
        • currentMapId
        • currentCellId
        • x
        • y
        • data
        • autotripOne
        • autotripDistance
        • archiMonsters
      • window
        • getByCharacterId
        • getByUniqueId
        • getByTeamData
      • keyboard
        • press
        • down
        • up
        • write
        • pressInWindow
        • downInWindow
        • upInWindow
        • writeInWindow
      • mouse
        • click
        • doubleClick
        • press
        • release
        • move
        • dragAndDrop
        • clickInWindow
        • doubleClickInWindow
        • pressInWindow
        • releaseInWindow
        • moveInWindow
        • dragAndDropInWindow
      • pixel
        • RGB2HEX
        • fromScreenToClient
        • fromClientToScreen
        • color
        • wait
        • fromScreenToClientInWindow
        • fromClientToScreenInWindow
        • colorInWindow
        • waitInWindow
      • ipc
        • post
        • get
  • Définir une team
  • Dofus Retro
    • Abonnement: Frigost
    • Abonnement: Loader
    • Abonnement: Advanced Loader
    • Chemin Dofus Retro
    • Bonus
  • Wakfu
    • Abonnement: Frigost
    • Chemin Wakfu
  • Autres
    • Connexion via un réseau
    • Conseils en or
    • Problèmes fréquents
Propulsé par GitBook
Sur cette page
  • 🔍 Prototype
  • 📝 Paramètres
  • 🔙 Retour
  1. Abonnement: Frigost [Bot]
  2. Méthodes
  3. pixel

wait

Méthode permettant de mettre en pause le script jusqu'à ce qu'un pixel atteigne (ou cesse d'avoir) une couleur spécifique.

Ne pas réduire la fenêtre en question sinon cette méthode ne marchera pas.

🔍 Prototype

pixel.wait(x, y, color, equal, timeout, step)

📝 Paramètres

Paramètre
Type
Description
  • x, y

  • int, int

  • Les coordonnées du pixel relatives à la fenêtre (et non pas à l'écran).

  • color

  • string

  • La couleur sous la forme "#XXXXXX".

  • equal

  • bool

  • true = attendre que la couleur du pixel devient color.

  • false = attendre que la couleur du pixel n'est plus color.

  • timeout

  • int

  • Durée maximal à attendre, 0 = infini.

  • step

  • int

  • Par exemple si step est 100, la fonction va vérifier le pixel chaque 100ms, mettre une valeur très basse peut augmenter la consommation du CPU.

🔙 Retour

Type
Description
  • bool

  • true = succès.

  • false = le timeout est écoulé ou erreur.

PrécédentcolorSuivantfromScreenToClientInWindow

Dernière mise à jour il y a 5 jours