Files

51 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ezoic_viltrumite.js — doRage() (satır 591)
[← ezoic_viltrumite.js](index.md) · [← Master](../../wiki.md)
Parça 1/2 · [sonraki](doRage-2.md)
```javascript
function doRage(c) {
var p = c.getPlayer();
if (!p) return;
if (onlyEzoic(p)) return;
if (onCooldown(p, "rage")) return;
setCooldown(p, "rage");
var w = c.getWorld();
var pos = p.getPosition();
var dur = 300; // 15 saniye
// Potion'lar
try {
var str = mappet.getPotion("strength");
if (str) p.applyPotion(str, dur, 3, false); // Strength IV
var spd = mappet.getPotion("speed");
if (spd) p.applyPotion(spd, dur, 2, false); // Speed III
var res = mappet.getPotion("resistance");
if (res) p.applyPotion(res, dur, 2, false); // Resistance III
var reg = mappet.getPotion("regeneration");
if (reg) p.applyPotion(reg, dur, 1, false); // Regen II
} catch (e) {}
p.sendTitleDurations(0, 40, 10);
p.sendTitle("§4§l🔥 VILTRUMITE RAGE 🔥");
p.sendSubtitle("§c15 saniye mutlak güç");
w.playSound("minecraft:entity.wither.spawn", pos.x, pos.y, pos.z, 3.0, 0.4);
w.playSound("minecraft:entity.enderdragon.growl", pos.x, pos.y, pos.z, 2.5, 0.6);
w.playSound("minecraft:entity.lightning.thunder", pos.x, pos.y, pos.z, 2.0, 0.8);
// Açılış patlaması
spawnFx(w, "lava", pos.x, pos.y + 1, pos.z, 15, 1.5, 1.5, 1.5, 0);
spawnFx(w, "flame", pos.x, pos.y + 1, pos.z, 12, 1.0, 1.0, 1.0, 0.05);
spawnFx(w, "largeexplode", pos.x, pos.y + 1, pos.z, 2, 0.5, 0.5, 0.5, 0);
var t = 0;
function rageLoop(ctx) {
if (t >= dur) {
var pp2 = ctx.getPlayer();
if (pp2) {
var p2 = pp2.getPosition();
```