Görev alma

ElmasKatili

Taş Madencisi
En iyi cevaplar
0
Merhabalar değerli forum üyeleri bu npc den fln görev alma nasıl yapılıyor tam olarak açıklayabilirmisiniz?
 

tolhan

Demir Madencisi
En iyi cevaplar
0
Kod:
on rightclick on villager:   
    name of clicked entity is "GÖREVCİ":
        cancel event
        open chest with 1 rows named "            <pink>&lGorev Listesi" to player
        format slot 0 of player with 17 named "&6&lGörev 1" with lore "&ax128 odun bul ve bana getir. -> <red>Ödül: 1 Elmas" to close then run "odungoooreeev %player%"

command /odungoooreeev <player>:
    trigger:
        if {odun-gorev.%arg 1%} is not set:
            set {odun-gorev.%arg 1%} to true
            send "&a[Görevci] : &7128 Odun lazim git ve bul!" to arg 1
            stop
        if {odun-gorev.%arg 1%} is true:
            if arg 1 has 128 log:
                send "&a[Görevci] : &7Görev tamamdır" to arg 1
                send "&cÖdüller:" to arg 1
                send "&e- 1 Elmas" to arg 1
                remove 128 log from arg 1
                give 1 diamond to arg 1
                delete {odun-gorev.%arg 1%}
            else:
                send "&a[Görevci] : &7Yeterli malzeme yok!" to arg 1
 

Personinblack

YASAKLANDI
En iyi cevaplar
0
Kod:
on rightclick on villager:  
    name of clicked entity is "GÖREVCİ":
        cancel event
        open chest with 1 rows named "            <pink>&lGorev Listesi" to player
        format slot 0 of player with 17 named "&6&lGörev 1" with lore "&ax128 odun bul ve bana getir. -> <red>Ödül: 1 Elmas" to close then run "odungoooreeev %player%"

command /odungoooreeev <player>:
    trigger:
        if {odun-gorev.%arg 1%} is not set:
            set {odun-gorev.%arg 1%} to true
            send "&a[Görevci] : &7128 Odun lazim git ve bul!" to arg 1
            stop
        if {odun-gorev.%arg 1%} is true:
            if arg 1 has 128 log:
                send "&a[Görevci] : &7Görev tamamdır" to arg 1
                send "&cÖdüller:" to arg 1
                send "&e- 1 Elmas" to arg 1
                remove 128 log from arg 1
                give 1 diamond to arg 1
                delete {odun-gorev.%arg 1%}
            else:
                send "&a[Görevci] : &7Yeterli malzeme yok!" to arg 1
Burası plugin kısmı yalnız :)

@ElmasKatili "
Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.
" Bu eklentiyi "Citizens 2" eklentisiyle beraber kullanarak npcler ile görevler hazırlayabilirsin.
 
Üst