Files

49 lines
1012 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 — main() (satır 196)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function main(c)
{
var p = getPlayer(c);
if (!p) return;
var msg = getMessage(c);
if (trim(msg).length > 0)
{
var key = commandKey(msg);
var head = commandHead(msg);
if (handleBloodPowerCommand(c, p, head, msg))
{
return;
}
if (key === "telepati")
{
safeCancel(c);
openTelepathyMenu(c, p);
return;
}
if (key === "toz")
{
safeCancel(c);
handleTozCommand(c, p);
return;
}
var role = roleFromEyeCommand(key);
var adminAction = handleAdminCommand(c, p, key);
if (adminAction) return;
if (!role) return;
safeCancel(c);
saveEyeCommand(c, p, role);
return;
}
handleEyeRightClick(c, p);
}
```