Görev alma

ElmasKatili

Taş Madencisi
Mesajlar
96
En iyi cevaplar
0
Beğeniler
10
Puanları
200
Ruh hali
Merhabalar değerli forum üyeleri bu npc den fln görev alma nasıl yapılıyor tam olarak açıklayabilirmisiniz?
 


tolhan

Demir Madencisi
Mesajlar
291
En iyi cevaplar
0
Beğeniler
80
Puanları
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
Mesajlar
1,876
En iyi cevaplar
0
Beğeniler
1,237
Puanları
90
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 "https://www.spigotmc.org/resources/quests.3711/" Bu eklentiyi "Citizens 2" eklentisiyle beraber kullanarak npcler ile görevler hazırlayabilirsin.
 

bikkik

Obsidyen Madencisi
Mesajlar
1,249
En iyi cevaplar
0
Beğeniler
820
Puanları
1,990
Personinblack'inki dışında BetonQuest ve Quester diye pl ler de gördüm. İnceleyebilirsin :)
 

Üst