Files

27 lines
769 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.
# Darklord.js — startToz() (satır 2819)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function startToz(c, p)
{
var runId = nowMs();
var name = p.getName();
saveFlightSnapshot(p);
setTozActive(name, true);
setTozRun(name, runId);
setServerVanish(c, p, true);
applyTozState(c, p, 0);
var pos = p.getPosition();
play(p.getWorld(), "minecraft:entity.evocation_illager.prepare_attack", pos.x, pos.y + 1.0, pos.z, 1.0, 0.55);
play(p.getWorld(), "minecraft:block.portal.ambient", pos.x, pos.y + 1.0, pos.z, 0.55, 0.75);
p.send(TAG + "\u00a74Toz formu acildi.");
c.scheduleScript(TOZ_LOOP_TICKS, function(ctx) {
tozLoop(ctx, name, runId, 1);
});
}
```