Files

18 lines
941 B
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.
# Hector_Tudors.js — eng_buff() (satır 2388)
[← Hector_Tudors.js](index.md) · [← Master](../../wiki.md)
```javascript
function eng_buff(c, sk) {
var p = c.getPlayer(); if (!p) return; if (guard(p, sk.k)) return;
var cf = sk.cfg, w = c.getWorld(), pos = p.getPosition();
etitle(p, sk);
if (cf.snd) w.playSound(cf.snd, pos.x, pos.y, pos.z, 1, 1.4);
if (cf.potions) for (var i = 0; i < cf.potions.length; i++) { var po = mappet.getPotion(cf.potions[i].n); if (po) p.applyPotion(po, cf.potions[i].dur || 240, cf.potions[i].amp || 1, false); }
if (cf.healFull) { try { p.setHp(p.getMaxHp()); } catch (e) {} }
for (var s = 0; s < 10; s++) { var aa = (s / 10) * Math.PI * 2; showHead(w, pos.x + Math.cos(aa) * 1.2, pos.y + 1, pos.z + Math.sin(aa) * 1.2, 1.1, 6); }
if (cf.p1) fx(w, cf.p1, pos.x, pos.y + 1, pos.z, 30, 0.6, 0.8, 0.6, 0.1);
if (cf.msg) p.sendActionBar(cf.msg);
}
```