Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I keep getting this error in the console (and it doesn't cast)
Uncaught ReferenceError: wizordSpell is not defined
at <anonymous>:6:36
i didn't change the script, copy and pasted all of it:
var wizardSpell = 'hand of fate';
var grimoir = Game.ObjectsById[7].minigame;
var wizordLoop = setInterval(function() {
if (
(grimoir.magic == grimoir.magicM) && // if mana is full
(grimoir.magic > (grimoir.spells[wizordSpell].costMin
+ grimoir.magicM*grimoir.spells[wizordSpell].costPercent))) // and if there is enough in total,
{
grimoir.castSpell(grimoir.spells[wizordSpell])
Game.Notify(`ze spel iz cast`,'cooki wizord vil wait for mor mana now',[23,6]); // cast the spell
if (wizordSpell == 'hand of fate') { // if the spell was Force the Hand of Fate
Game.shimmers.forEach(function(shimmer) {
if ((shimmer.type == "golden") && (shimmer.wrath == 0)) { shimmer.pop() } // click the newly spawned golden cookie
});
}
}
}, 1000);
I've followed everything in this guide, yet, well, it still happens even though its changed in the code
Does it take all of your mana to cast a spell? Just get more towers loool
There is a detailed explanation for how many towers should you have to cast certain spell the fastest on the wiki, i thought you already read it and was going off of some maths presenting there.
If you open the main.js on the line 57:
(grimoir.magic == grimoir.magicM) &&
replace grimoir.magicM with any value you want the spell to trigger.
Thanks for the quick reply.
forEach of an empty array does not throw out an error.