Files

31 lines
730 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 — handleEyeRightClick() (satır 460)
[← Darklord.js](index.md) · [← Master](../../wiki.md)
```javascript
function handleEyeRightClick(c, p)
{
if (!isMemberPlayer(p.getName())) return;
var item = getHeldItem(c, p);
var text = itemText(item);
var fingerprint = itemFingerprintFromText(text);
if (fingerprint.length === 0 || isAirItemText(text)) return;
var state = loadState(c);
var matchedRole = roleForFingerprint(state, fingerprint);
if (!matchedRole) return;
safeCancel(c);
if (!canUseEye(p, matchedRole))
{
p.send(TAG + "\u00a7cBu goz sana bagli degil.");
return;
}
openTelepathyMenu(c, p);
}
```