Files

22 lines
760 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.
# NPC.js — disableKoruIfActive() (satır 72)
[← NPC.js](index.md) · [← Master](../../wiki.md)
```javascript
function disableKoruIfActive(c, player) {
var wasKoru = mappet.get("nano_koru_active");
if (wasKoru) {
var shieldActive = mappet.get("nano_koru_shield_active");
if (shieldActive) {
mappet.set("nano_koru_shield_active", false);
c.scheduleScript(1, function(c2) {
// Kalkani kimin baslattigini bulup kapatiyoruz
var cName = mappet.get("nano_koru_commander") || player.getName();
c2.executeCommand("mp script exec " + cName + " kalkan.js");
});
}
mappet.set("nano_koru_active", false);
}
}
```