安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题









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.