Files

38 lines
900 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.
# MercanRey4.js — main() (satır 341)
[← MercanRey4.js](index.md) · [← Master](../../wiki.md)
```javascript
function main(c)
{
var player = requirePlayer(c);
if (player == null)
{
return;
}
var target = getTarget(c, player);
if (target == null)
{
player.send("Cha.: mat icin bir hedefe bak.");
return;
}
var profile = getKnowledge(target.getUniqueId());
if (profile == null || Number(profile.knowledge || 0) < 45)
{
player.send("Cha.: " + target.getName() + " hakkinda yeterli bilgi yok. Once Ladron de Informacion kullan.");
return;
}
var runId = new Date().getTime();
saveState(player, target, runId, 0);
player.send("Cha.: " + target.getName() + " mat durumuna alindi. 10 saniye boyunca hamleleri %100 okunacak.");
loop(c, runId);
}
```