Advertisement
Gingerguy

Cooki Wizord console script

Sep 9th, 2021 (edited)
1,359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var wizardSpell = 'hand of fate';
  2. var grimoir = Game.ObjectsById[7].minigame;
  3. var wizordLoop = setInterval(function() {
  4.     if (
  5.         (grimoir.magic == grimoir.magicM) &&                                // if mana is full
  6.         (grimoir.magic > (grimoir.spells[wizordSpell].costMin
  7.             + grimoir.magicM*grimoir.spells[wizordSpell].costPercent)))     // and if there is enough in total,
  8.     {
  9.         grimoir.castSpell(grimoir.spells[wizordSpell])
  10.         Game.Notify(`ze spel iz cast`,'cooki wizord vil wait for mor mana now',[23,6]); // cast the spell
  11.  
  12.         if (wizordSpell == 'hand of fate') {                        // if the spell was Force the Hand of Fate
  13.             Game.shimmers.forEach(function(shimmer) {
  14.                 if ((shimmer.type == "golden") && (shimmer.wrath == 0)) { shimmer.pop() }   // click the newly spawned golden cookie
  15.             });
  16.         }
  17.     }
  18. }, 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement