Metin2 Tipi Efsun Sistemi

ShortPallMall

AtinaSaga.Com Türkiyenin ilk MMOSurvival sunucusu
Mesajlar
888
En iyi cevaplar
2
Beğeniler
402
Puanları
830
Ruh hali
Merhaba dostlar bugün metin2 tipi efsun sistemini inceliycez yapımında emeği geçen @Pledix kardeşime teşekkür ederim 1.5-2 yıl kadar önce yazmıştık kendisi ile beraber baktımki forumda bu sistemi arayan arkadaşlar mevcut onlar için paylaşma gereği duydum güle güle kullanabilirsiniz.
Gerekli addon skmorkaz'dır.
JavaScript:
on load:
    clear {enchs::*}
    add "efficiency" to {enchs::pickaxe::*}
    add efficiency 1 to {enchs::pickaxe::efficiency::*}
    add efficiency 2 to {enchs::pickaxe::efficiency::*}
    add efficiency 3 to {enchs::pickaxe::efficiency::*}
    add efficiency 4 to {enchs::pickaxe::efficiency::*}
    add efficiency 5 to {enchs::pickaxe::efficiency::*}
    add "efficiency" to {enchs::hoe::*}
    add efficiency 1 to {enchs::hoe::efficiency::*}
    add efficiency 2 to {enchs::hoe::efficiency::*}
    add efficiency 3 to {enchs::hoe::efficiency::*}
    add efficiency 4 to {enchs::hoe::efficiency::*}
    add efficiency 5 to {enchs::hoe::efficiency::*}
    add "efficiency" to {enchs::axe::*}
    add efficiency 1 to {enchs::axe::efficiency::*}
    add efficiency 2 to {enchs::axe::efficiency::*}
    add efficiency 3 to {enchs::axe::efficiency::*}
    add efficiency 4 to {enchs::axe::efficiency::*}
    add efficiency 5 to {enchs::axe::efficiency::*}
    add "efficiency" to {enchs::shovel::*}
    add efficiency 1 to {enchs::shovel::efficiency::*}
    add efficiency 2 to {enchs::shovel::efficiency::*}
    add efficiency 3 to {enchs::shovel::efficiency::*}
    add efficiency 4 to {enchs::shovel::efficiency::*}
    add efficiency 5 to {enchs::shovel::efficiency::*}
    add "fortune" to {enchs::hoe::*}
    add fortune 1 to {enchs::hoe::fortune::*}
    add fortune 2 to {enchs::hoe::fortune::*}
    add fortune 3 to {enchs::hoe::fortune::*}
    add "fortune" to {enchs::axe::*}
    add fortune 1 to {enchs::axe::fortune::*}
    add fortune 2 to {enchs::axe::fortune::*}
    add fortune 3 to {enchs::axe::fortune::*}
    add "fortune" to {enchs::shovel::*}
    add fortune 1 to {enchs::shovel::fortune::*}
    add fortune 2 to {enchs::shovel::fortune::*}
    add fortune 3 to {enchs::shovel::fortune::*}
    add "fortune" to {enchs::pickaxe::*}
    add fortune 1 to {enchs::pickaxe::fortune::*}
    add fortune 2 to {enchs::pickaxe::fortune::*}
    add fortune 3 to {enchs::pickaxe::fortune::*}
    add "unbreaking" to {enchs::pickaxe::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::pickaxe::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::pickaxe::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::pickaxe::unbreaking::*}
    add "unbreaking" to {enchs::shovel::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::shovel::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::shovel::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::shovel::unbreaking::*}
    add "unbreaking" to {enchs::axe::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::axe::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::axe::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::axe::unbreaking::*}
    add "unbreaking" to {enchs::hoe::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::hoe::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::hoe::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::hoe::unbreaking::*}
    add "unbreaking" to {enchs::chestplate::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::chestplate::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::chestplate::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::chestplate::unbreaking::*}
    add "unbreaking" to {enchs::Helmet::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::Helmet::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::Helmet::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::Helmet::unbreaking::*}
    add "unbreaking" to {enchs::leggings::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::leggings::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::leggings::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::leggings::unbreaking::*}
    add "unbreaking" to {enchs::boots::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::boots::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::boots::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::boots::unbreaking::*}
    add "unbreaking" to {enchs::sword::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::sword::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::sword::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::sword::unbreaking::*}
    add "unbreaking" to {enchs::bow::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::bow::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::bow::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::bow::unbreaking::*}
    add "unbreaking" to {enchs::cap::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::cap::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::cap::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::cap::unbreaking::*}
    add "punch" to {enchs::bow::*}
    add punch 1 to {enchs::bow::efficiency::*}
    add punch 2 to {enchs::bow::efficiency::*}
    add "power" to {enchs::bow::*}
    add power 1 to {enchs::bow::power::*}
    add power 2 to {enchs::bow::power::*}
    add power 3 to {enchs::bow::power::*}
    add power 4 to {enchs::bow::power::*}
    add power 5 to {enchs::bow::power::*}
    add "flame" to {enchs::bow::*}
    add flame 1 to {enchs::bow::flame::*}
    add "infinity" to {enchs::bow::*}
    add infinity 1 to {enchs::bow::infinity::*}
    add "respiration" to {enchs::helmet::*}
    add respiration 1 to {enchs::helmet::respiration::*}
    add respiration 2 to {enchs::helmet::respiration::*}
    add respiration 3 to {enchs::helmet::respiration::*}
    add respiration 4 to {enchs::helmet::respiration::*}
    add respiration 5 to {enchs::helmet::respiration::*}
    add "respiration" to {enchs::cap::*}
    add respiration 1 to {enchs::cap::respiration::*}
    add respiration 2 to {enchs::cap::respiration::*}
    add respiration 3 to {enchs::cap::respiration::*}
    add respiration 4 to {enchs::cap::respiration::*}
    add respiration 5 to {enchs::cap::respiration::*}
    add "protection" to {enchs::chestplate::*}
    add protection 1 to {enchs::chestplate::protection::*}
    add protection 2 to {enchs::chestplate::protection::*}
    add protection 3 to {enchs::chestplate::protection::*}
    add protection 4 to {enchs::chestplate::protection::*}
    add "protection" to {enchs::helmet::*}
    add protection 1 to {enchs::helmet::protection::*}
    add protection 2 to {enchs::helmet::protection::*}
    add protection 3 to {enchs::helmet::protection::*}
    add protection 4 to {enchs::helmet::protection::*}
    add "protection" to {enchs::cap::*}
    add protection 1 to {enchs::cap::protection::*}
    add protection 2 to {enchs::cap::protection::*}
    add protection 3 to {enchs::cap::protection::*}
    add protection 4 to {enchs::cap::protection::*}
    add "protection" to {enchs::leggings::*}
    add protection 1 to {enchs::leggings::protection::*}
    add protection 2 to {enchs::leggings::protection::*}
    add protection 3 to {enchs::leggings::protection::*}
    add protection 4 to {enchs::leggings::protection::*}
    add "protection" to {enchs::boots::*}
    add protection 1 to {enchs::boots::protection::*}
    add protection 2 to {enchs::boots::protection::*}
    add protection 3 to {enchs::boots::protection::*}
    add protection 4 to {enchs::boots::protection::*}
    add "projectile protection" to {enchs::chestplate::*}
    add projectile protection 1 to {enchs::chestplate::projectile protection::*}
    add projectile protection 2 to {enchs::chestplate::projectile protection::*}
    add projectile protection 3 to {enchs::chestplate::projectile protection::*}
    add projectile protection 4 to {enchs::chestplate::projectile protection::*}
    add "projectile protection" to {enchs::helmet::*}
    add projectile protection 1 to {enchs::helmet::projectile protection::*}
    add projectile protection 2 to {enchs::helmet::projectile protection::*}
    add projectile protection 3 to {enchs::helmet::projectile protection::*}
    add projectile protection 4 to {enchs::helmet::projectile protection::*}
    add "projectile protection" to {enchs::leggings::*}
    add projectile protection 1 to {enchs::leggings::projectile protection::*}
    add projectile protection 2 to {enchs::leggings::projectile protection::*}
    add projectile protection 3 to {enchs::leggings::projectile protection::*}
    add projectile protection 4 to {enchs::leggings::projectile protection::*}
    add "projectile protection" to {enchs::boots::*}
    add projectile protection 1 to {enchs::boots::projectile protection::*}
    add projectile protection 2 to {enchs::boots::projectile protection::*}
    add projectile protection 3 to {enchs::boots::projectile protection::*}
    add projectile protection 4 to {enchs::boots::projectile protection::*}
    add "fire protection" to {enchs::ChestPlate::*}
    add fire protection 1 to {enchs::ChestPlate::fire protection::*}
    add fire protection 2 to {enchs::ChestPlate::fire protection::*}
    add fire protection 3 to {enchs::ChestPlate::fire protection::*}
    add fire protection 4 to {enchs::ChestPlate::fire protection::*}
    add "fire protection" to {enchs::helmet::*}
    add fire protection 1 to {enchs::helmet::fire protection::*}
    add fire protection 2 to {enchs::helmet::fire protection::*}
    add fire protection 3 to {enchs::helmet::fire protection::*}
    add fire protection 4 to {enchs::helmet::fire protection::*}
    add "fire protection" to {enchs::leggings::*}
    add fire protection 1 to {enchs::leggings::fire protection::*}
    add fire protection 2 to {enchs::leggings::fire protection::*}
    add fire protection 3 to {enchs::leggings::fire protection::*}
    add fire protection 4 to {enchs::leggings::fire protection::*}
    add "fire protection" to {enchs::boots::*}
    add fire protection 1 to {enchs::boots::fire protection::*}
    add fire protection 2 to {enchs::boots::fire protection::*}
    add fire protection 3 to {enchs::boots::fire protection::*}
    add fire protection 4 to {enchs::boots::fire protection::*}
    add "feather falling" to {enchs::boots::*}
    add feather falling 1 to {enchs::boots::feather falling::*}
    add feather falling 2 to {enchs::boots::feather falling::*}
    add feather falling 3 to {enchs::boots::feather falling::*}
    add feather falling 4 to {enchs::boots::feather falling::*}
    add "aqua affinity" to {enchs::helmet::*}
    add aqua affinity 1 to {enchs::helmet::aqua affinity::*}
    add "blast protection" to {enchs::ChestPlate::*}
    add blast protection 1 to {enchs::ChestPlate::blast protection::*}
    add blast protection 2 to {enchs::ChestPlate::blast protection::*}
    add blast protection 3 to {enchs::ChestPlate::blast protection::*}
    add blast protection 4 to {enchs::ChestPlate::blast protection::*}
    add "blast protection" to {enchs::helmet::*}
    add blast protection 1 to {enchs::helmet::blast protection::*}
    add blast protection 2 to {enchs::helmet::blast protection::*}
    add blast protection 3 to {enchs::helmet::blast protection::*}
    add blast protection 4 to {enchs::helmet::blast protection::*}
    add "blast protection" to {enchs::cap::*}
    add blast protection 1 to {enchs::cap::blast protection::*}
    add blast protection 2 to {enchs::cap::blast protection::*}
    add blast protection 3 to {enchs::cap::blast protection::*}
    add blast protection 4 to {enchs::cap::blast protection::*}
    add "blast protection" to {enchs::leggings::*}
    add blast protection 1 to {enchs::leggings::blast protection::*}
    add blast protection 2 to {enchs::leggings::blast protection::*}
    add blast protection 3 to {enchs::leggings::blast protection::*}
    add blast protection 4 to {enchs::leggings::blast protection::*}
    add "blast protection" to {enchs::boots::*}
    add blast protection 1 to {enchs::boots::blast protection::*}
    add blast protection 2 to {enchs::boots::blast protection::*}
    add blast protection 3 to {enchs::boots::blast protection::*}
    add blast protection 4 to {enchs::boots::blast protection::*}
    add "thorns" to {enchs::ChestPlate::*}
    add thorns 1 to {enchs::ChestPlate::thorns::*}
    add thorns 2 to {enchs::ChestPlate::thorns::*}
    add thorns 3 to {enchs::ChestPlate::thorns::*}
    add "thorns" to {enchs::helmet::*}
    add thorns 1 to {enchs::helmet::thorns::*}
    add thorns 2 to {enchs::helmet::thorns::*}
    add thorns 3 to {enchs::helmet::thorns::*}
    add "thorns" to {enchs::cap::*}
    add thorns 1 to {enchs::cap::thorns::*}
    add thorns 2 to {enchs::cap::thorns::*}
    add thorns 3 to {enchs::cap::thorns::*}
    add "thorns" to {enchs::leggings::*}
    add thorns 1 to {enchs::leggings::thorns::*}
    add thorns 2 to {enchs::leggings::thorns::*}
    add thorns 3 to {enchs::leggings::thorns::*}
    add "thorns" to {enchs::boots::*}
    add thorns 1 to {enchs::boots::thorns::*}
    add thorns 2 to {enchs::boots::thorns::*}
    add thorns 3 to {enchs::boots::thorns::*}
    add "knockback" to {enchs::sword::*}
    add knockback 1 to {enchs::sword::knockback::*}
    add knockback 2 to {enchs::sword::knockback::*}
    add "smite" to {enchs::sword::*}
    add smite 1 to {enchs::sword::smite::*}
    add smite 2 to {enchs::sword::smite::*}
    add smite 3 to {enchs::sword::smite::*}
    add smite 4 to {enchs::sword::smite::*}
    add smite 5 to {enchs::sword::smite::*}
    add "sharpness" to {enchs::sword::*}
    add sharpness 1 to {enchs::sword::sharpness::*}
    add sharpness 2 to {enchs::sword::sharpness::*}
    add sharpness 3 to {enchs::sword::sharpness::*}
    add sharpness 4 to {enchs::sword::sharpness::*}
    add sharpness 5 to {enchs::sword::sharpness::*}
    add "looting" to {enchs::sword::*}
    add looting 1 to {enchs::sword::looting::*}
    add looting 2 to {enchs::sword::looting::*}
    add looting 3 to {enchs::sword::looting::*}
    add "fire aspect" to {enchs::sword::*}
    add fire aspect 1 to {enchs::sword::fire aspect::*}
    add fire aspect 2 to {enchs::sword::fire aspect::*}
    add "bane of arthropods" to {enchs::sword::*}
    add bane of arthropods 1 to {enchs::sword::bane of arthropods::*}
    add bane of arthropods 2 to {enchs::sword::bane of arthropods::*}
    add bane of arthropods 3 to {enchs::sword::bane of arthropods::*}
    add bane of arthropods 4 to {enchs::sword::bane of arthropods::*}
    add bane of arthropods 5 to {enchs::sword::bane of arthropods::*}
    add "thorns" to {enchs::tunic::*}
    add thorns 1 to {enchs::tunic::thorns::*}
    add thorns 2 to {enchs::tunic::thorns::*}
    add thorns 3 to {enchs::tunic::thorns::*}
    add "unbreaking" to {enchs::tunic::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::tunic::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::tunic::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::tunic::unbreaking::*}
    add "protection" to {enchs::tunic::*}
    add protection 1 to {enchs::tunic::protection::*}
    add protection 2 to {enchs::tunic::protection::*}
    add protection 3 to {enchs::tunic::protection::*}
    add protection 4 to {enchs::tunic::protection::*}
    add projectile protection 1 to {enchs::tunic::projectile protection::*}
    add projectile protection 2 to {enchs::tunic::projectile protection::*}
    add projectile protection 3 to {enchs::tunic::projectile protection::*}
    add projectile protection 4 to {enchs::tunic::projectile protection::*}
    add "fire protection" to {enchs::tunic::*}
    add fire protection 1 to {enchs::tunic::fire protection::*}
    add fire protection 2 to {enchs::tunic::fire protection::*}
    add fire protection 3 to {enchs::tunic::fire protection::*}
    add fire protection 4 to {enchs::tunic::fire protection::*}
    add "blast protection" to {enchs::tunic::*}
    add blast protection 1 to {enchs::tunic::blast protection::*}
    add blast protection 2 to {enchs::tunic::blast protection::*}
    add blast protection 3 to {enchs::tunic::blast protection::*}
    add blast protection 4 to {enchs::tunic::blast protection::*}
    add "fire protection" to {enchs::cap::*}
    add fire protection 1 to {enchs::cap::fire protection::*}
    add fire protection 2 to {enchs::cap::fire protection::*}
    add fire protection 3 to {enchs::cap::fire protection::*}
    add fire protection 4 to {enchs::cap::fire protection::*}
    add "unbreaking" to {enchs::pants::*}
    add "unbreaking 1" parsed as enchantment type to {enchs::pants::unbreaking::*}
    add "unbreaking 2" parsed as enchantment type to {enchs::pants::unbreaking::*}
    add "unbreaking 3" parsed as enchantment type to {enchs::pants::unbreaking::*}
    add "protection" to {enchs::pants::*}
    add protection 1 to {enchs::pants::protection::*}
    add protection 2 to {enchs::pants::protection::*}
    add protection 3 to {enchs::pants::protection::*}
    add protection 4 to {enchs::pants::protection::*}
    add "projectile protection" to {enchs::pants::*}
    add projectile protection 1 to {enchs::pants::projectile protection::*}
    add projectile protection 2 to {enchs::pants::projectile protection::*}
    add projectile protection 3 to {enchs::pants::projectile protection::*}
    add projectile protection 4 to {enchs::pants::projectile protection::*}
    add "fire protection" to {enchs::pants::*}
    add fire protection 1 to {enchs::pants::fire protection::*}
    add fire protection 2 to {enchs::pants::fire protection::*}
    add fire protection 3 to {enchs::pants::fire protection::*}
    add fire protection 4 to {enchs::pants::fire protection::*}
    add "blast protection" to {enchs::pants::*}
    add blast protection 1 to {enchs::pants::blast protection::*}
    add blast protection 2 to {enchs::pants::blast protection::*}
    add blast protection 3 to {enchs::pants::blast protection::*}
    add blast protection 4 to {enchs::pants::blast protection::*}
    add "thorns" to {enchs::pants::*}
    add thorns 1 to {enchs::pants::thorns::*}
    add thorns 2 to {enchs::pants::thorns::*}
    add thorns 3 to {enchs::pants::thorns::*}

   
on inventory click:
    cursor slot of player is paper named "&6Arttırma Kağıdı"
    clicked item is any sword or any axe or any pickaxe or any shovel or any hoe or any helmet or any chestplate or any leggings or any boots or bow or leather cap or leather pants or leather tunic   
    set {_toolType::*} to split "%clicked item%" at "_"
    set {_toolType} to {_toolType::2}
    if {_toolType} contains " ":
        set {_toolType::*} to split "%{_toolType}%" at " "
        set {_toolType} to {_toolType::1}
    cancel event
    set {_enchs::*} to {enchs::%{_toolType}%::*}
    set {_ok} to false
    while {_ok} is false:
        if size of {_enchs::*} is more than 0:
            set {_enchantType} to random element of {_enchs::*}
            if clicked item isn't enchanted with {_enchantType} parsed as enchantment:
                set {_ok} to true
            else:
                remove {_enchantType} from {_enchs::*}
        else:
            stop
    chance of 70%:
        set {_enchant} to random element of {enchs::%{_toolType}%::%{_enchantType}%::*}
        enchant (slot clicked slot of event-inventory) with {_enchant}
        remove 1 from item amount of cursor slot of player
        send action bar from "&a&lEfsun Ekleme Başarıyla Tamamlandı." to player
        stop
    else:
        remove 1 from item amount of cursor slot of player
        send action bar from "&cEfsun Ekleme Başarısız Oldu." to player
       
on inventory click:
    cursor slot of player is paper named "&6Efsun Nesnesi"
    clicked item is any sword or any axe or any pickaxe or any shovel or any hoe or any helmet or any chestplate or any leggings or any boots or bow or leather cap or leather pants or leather tunic   
    set {_toolType::*} to split "%clicked item%" at "_"
    set {_toolType} to {_toolType::2}
    if {_toolType} contains " ":
        set {_toolType::*} to split "%{_toolType}%" at " "
        set {_toolType} to {_toolType::1}
    cancel event
    set {_enchs::*} to {enchs::%{_toolType}%::*}
   
    set {_size} to number of enchants on clicked item
    if {_size} is more than 0:
        disenchant (slot clicked slot of event-inventory)
        loop {_size} times:
            set {_enchType} to random element of {_enchs::*}
            set {_ench} to random element of {enchs::%{_toolType}%::%{_enchType}%::*}
            if {_ench} is set:
            enchant (slot clicked slot of event-inventory) with {_ench}
            remove {_enchType} from {_enchs::*}
            delete {_enchs::%{_enchType}%::*}, {_enchs::%{_enchType}%}, {_ench}, {_enchType}
        remove 1 from item amount of cursor slot of player
        send action bar from "&a&lEfsun Değiştirme Başarıyla Tamamlandı." to player
 


Son düzenleme:

Exkaar

YASAKLANDI
Mesajlar
613
En iyi cevaplar
35
Beğeniler
566
Puanları
1,905
Bence kod kısaltılabilirdi, ama gayet iyi düşünülmüş :mükemmel:
 

ChiaX

Team Arcenia
Emektar Üye
Mesajlar
596
En iyi cevaplar
37
Beğeniler
694
Puanları
2,620
Ruh hali
Orijinal bir sistem, başarılar. :D
 

Melihoper

mc.TurkLion.net
Mesajlar
395
En iyi cevaplar
4
Beğeniler
191
Puanları
490
Ruh hali
Hangi Addon'lar gerekiyor?
 

ShortPallMall

AtinaSaga.Com Türkiyenin ilk MMOSurvival sunucusu
Mesajlar
888
En iyi cevaplar
2
Beğeniler
402
Puanları
830
Ruh hali
yükleyip denermisiniz hata verirse öyle bi addon listesi oluşturalım
skmorkaz iş görür şuanlık.
 

Üst