Sosyal açıldı! Bir göz at → Hemen gir →

YARDIM ıtemlerin özelliklerini ögrenmek

KY Kıdemli Üye
KAYIT
21 Ara 2023
Mesajlar
127
Tepki puanı
6
Merhabalar bir item non upgrade , reverse , uniq yada neyse bunu databasenın hangi tablosunun hangi stunundan bakabiliriz?
 
KY Kıdemli Üye
KAYIT
21 Şub 2026
Mesajlar
217
Tepki puanı
100
Merhabalar bir item non upgrade , reverse , uniq yada neyse bunu databasenın hangi tablosunun hangi stunundan bakabiliriz?

Aslında database içinde çoğu files’ta item için direkt olarak “non upgrade”, “reverse”, “unique” diye tek bir sütun yazmaz.

Genel mantık şu şekildedir:

Item’in ana tipi genelde `ITEM`, `ITEM_ORG`, `ITEM_DATA` gibi item tablosunda tutulur. Burada bakılacak en önemli alanlardan biri `Kind` bölümüdür. `Kind`, item’in hangi gruba ait olduğunu belirtir. Yani item weapon mı, armor mu, takı mı, unique sınıfında mı, normal item mi gibi ayrımlar genelde bu alandan ve item numarasından anlaşılır.

Fakat “bu item upgrade olur mu / olmaz mı” bilgisi çoğu zaman tek başına `Kind` sütununda yazmaz. Upgrade kontrolü genelde birkaç yerden birlikte okunur:

`ITEM / ITEM_ORG` tablosu → item’in ana bilgileri, `Num`, `StrName`, `Kind`, `Slot`, `Class`, `Race`, `Damage`, `Ac`, `Duration` vb.

`Kind` alanı → item’in genel türünü/grubunu gösterir.

Upgrade tablosu → files’a göre adı değişebilir; `ITEM_UPGRADE`, `UPGRADE`, `MAKE_ITEM_GROUP`, `MAGIC_TYPE`, `ITEM_UPGRADE_SETTINGS` gibi farklı yapılarda olabilir.

Server kodu → Anvil/Upgrade fonksiyonunda item’in basılabilir olup olmadığı ayrıca kontrol edilir.

Reverse/Rebirth sistemi de aynı şekilde sadece bir sütuna bakılarak anlaşılmaz. Genelde item’in high class/unique olup olmadığı, +7 ve üzeri olup olmadığı, item numarası/pattern yapısı ve upgrade/rebirth tablosundaki karşılığı birlikte kontrol edilir.

Yani kısa cevap olarak:

“Non upgrade / reverse / unique” diye net bir sütun arıyorsan çoğu database’de o şekilde yazmaz. Önce item tablosundaki `Kind` bölümüne bakılır. Ama kesin karar için `Kind` + item numarası + upgrade/rebirth tabloları + server tarafındaki upgrade kontrol kodu birlikte incelenmelidir.

Sadece database’den bakacaksan ilk bakılacak yer:

sql
SELECT Num, StrName, Kind, Slot, Class, Race
FROM ITEM
WHERE StrName LIKE '%item adı%'

Eğer senin files’ta tablo adı `ITEM_ORG` ise:

sql
SELECT Num, StrName, Kind, Slot, Class, Race
FROM ITEM_ORG
WHERE StrName LIKE '%item adı%'

Ama şunu da unutmamak lazım: Bazı files’larda item basılabilirlik kontrolü tamamen database’den değil, direkt server source içindeki upgrade/anvil kodundan yapılır. O yüzden sadece `Kind` değerine bakıp %100 “bu item upgrade olur / olmaz” demek her files için doğru olmayabilir.
 
KY Saygın Üye
Yardımsever
KAYIT
31 Ocak 2022
Mesajlar
183
Çözümler
3
Tepki puanı
115
Web
www.forathdordesign.com
Hocam ITEM tablosunda ItemType kolonunda istediğin veri tipi mevcut. Ben panellerim de aşağıda ki type = name eşleşmesini kullanıyorum. Bunlar default bir knight_online veritabanı için uygundur fakat yeni eklenen item typelar var ise onları tam bilemiyorum.


PHP:
switch ($item->ItemType) {
                case 0:
                    $itemType = "<h2 class='type_0'>(Normal Item)</h2>";
                    break;
                case 1:
                    $itemType = "<h2 class='type_1'>(Magic Item)</h2>";
                    break;
                case 2:
                    $itemType = "<h2 class='type_2'>(Rares Item)</h2>";
                    break;
                case 3:
                    $itemType = "<h2 class='type_3'>(Craft Item)</h2>";
                    break;
                case 4:
                    $itemType = "<h2 class='type_4'>(Unique Item)</h2>";
                    break;
                case 5:
                    $itemType = "<h2 class='type_5'>(Upgrade Item)</h2>";
                    break;
                case 6:
                    $itemType = "<h2 class='type_6'>(Event Item)</h2>";
                    break;
                case 7:
                    $itemType = "<h2 class='type_7'>(Pet Item)</h2>";
                    break;
                case 8:
                    $itemType = "<h2 class='type_8'>(Cospre Item)</h2>";
                    break;
                case 9:
                    $itemType = "<h2 class='type_9'>(Minerva Item)</h2>";
                    break;
                case 11:
                    $itemType = "<h2 class='type_11'>(Reverse Upgrade Item)</h2>";
                    break;
                case 12:
                    $itemType = "<h2 class='type_12'>(Reverse Unique Item)</h2>";
                    break;
            }
 
KY Saygın Üye
KAYIT
29 May 2023
Mesajlar
742
Çözümler
19
Tepki puanı
367
Konum
Ankara
Web
japko.us
ItemType
Hocam ITEM tablosunda ItemType kolonunda istediğin veri tipi mevcut. Ben panellerim de aşağıda ki type = name eşleşmesini kullanıyorum. Bunlar default bir knight_online veritabanı için uygundur fakat yeni eklenen item typelar var ise onları tam bilemiyorum.


PHP:
switch ($item->ItemType) {
                case 0:
                    $itemType = "<h2 class='type_0'>(Normal Item)</h2>";
                    break;
                case 1:
                    $itemType = "<h2 class='type_1'>(Magic Item)</h2>";
                    break;
                case 2:
                    $itemType = "<h2 class='type_2'>(Rares Item)</h2>";
                    break;
                case 3:
                    $itemType = "<h2 class='type_3'>(Craft Item)</h2>";
                    break;
                case 4:
                    $itemType = "<h2 class='type_4'>(Unique Item)</h2>";
                    break;
                case 5:
                    $itemType = "<h2 class='type_5'>(Upgrade Item)</h2>";
                    break;
                case 6:
                    $itemType = "<h2 class='type_6'>(Event Item)</h2>";
                    break;
                case 7:
                    $itemType = "<h2 class='type_7'>(Pet Item)</h2>";
                    break;
                case 8:
                    $itemType = "<h2 class='type_8'>(Cospre Item)</h2>";
                    break;
                case 9:
                    $itemType = "<h2 class='type_9'>(Minerva Item)</h2>";
                    break;
                case 11:
                    $itemType = "<h2 class='type_11'>(Reverse Upgrade Item)</h2>";
                    break;
                case 12:
                    $itemType = "<h2 class='type_12'>(Reverse Unique Item)</h2>";
                    break;
            }
 
KY Saygın Üye
Yardımsever
KAYIT
31 Ocak 2022
Mesajlar
183
Çözümler
3
Tepki puanı
115
Web
www.forathdordesign.com
Hocam ITEM tablosunda ItemType kolonunda istediğin veri tipi mevcut. Ben panellerim de aşağıda ki type = name eşleşmesini kullanıyorum. Bunlar default bir knight_online veritabanı için uygundur fakat yeni eklenen item typelar var ise onları tam bilemiyorum.


PHP:
switch ($item->ItemType) {
                case 0:
                    $itemType = "<h2 class='type_0'>(Normal Item)</h2>";
                    break;
                case 1:
                    $itemType = "<h2 class='type_1'>(Magic Item)</h2>";
                    break;
                case 2:
                    $itemType = "<h2 class='type_2'>(Rares Item)</h2>";
                    break;
                case 3:
                    $itemType = "<h2 class='type_3'>(Craft Item)</h2>";
                    break;
                case 4:
                    $itemType = "<h2 class='type_4'>(Unique Item)</h2>";
                    break;
                case 5:
                    $itemType = "<h2 class='type_5'>(Upgrade Item)</h2>";
                    break;
                case 6:
                    $itemType = "<h2 class='type_6'>(Event Item)</h2>";
                    break;
                case 7:
                    $itemType = "<h2 class='type_7'>(Pet Item)</h2>";
                    break;
                case 8:
                    $itemType = "<h2 class='type_8'>(Cospre Item)</h2>";
                    break;
                case 9:
                    $itemType = "<h2 class='type_9'>(Minerva Item)</h2>";
                    break;
                case 11:
                    $itemType = "<h2 class='type_11'>(Reverse Upgrade Item)</h2>";
                    break;
                case 12:
                    $itemType = "<h2 class='type_12'>(Reverse Unique Item)</h2>";
                    break;
            }
Ama @ChaosKnightX 'da bahsettiği gibi veritabanından veritabanına değişiklik gösterebiliyor. Bazılarında Kind sütununda, bazılarında ise ItemType sütununda tutuluyor bu veri. Ama ben Kind için aşağıda ki kod bloğunu kullanıyorum, ItemType içinse yukarıda vermiş olduğumu.


PHP:
switch ($item->Kind) {
            case 0:
                $itemKind = "<h3>Rewards</h3>";
                break;
            case 10:
                $itemKind = "<h3>Wing</h3>";
                break;
            case 11:
                $itemKind = "<h3>Dagger</h3>";
                break;
            case 12:
                $itemKind = "<h3>[JP] Dagger Set</h3>";
                break;
            case 21:
                $itemKind = "<h3>One-handed Sword</h3>";
                break;
            case 22:
                $itemKind = "<h3>Two-handed Sword</h3>";
                break;
            case 31:
                $itemKind = "<h3>One-handed Axe</h3>";
                break;
            case 32:
                $itemKind = "<h3>Two-handed Axe</h3>";
                break;
            case 41:
                $itemKind = "<h3>One-handed Club</h3>";
                break;
            case 42:
                $itemKind = "<h3>Two-handed Club</h3>";
                break;
            case 43:
                $itemKind = "<h3>[JP] One-handed Set</h3>";
                break;
            case 51:
                $itemKind = "<h3>One-handed Spear</h3>";
                break;
            case 52:
                $itemKind = "<h3>Long Spear</h3>";
                break;
            case 60:
                $itemKind = "<h3>Shield</h3>";
                break;
            case 61:
                $itemKind = "<h3>Pickaxe</h3>";
                break;
            case 62:
                $itemKind = "<h3>Long Spear</h3>";
                break;
            case 63:
                $itemKind = "<h3>Fishing Rod</h3>";
                break;
            case 70:
                $itemKind = "<h3>Bow</h3>";
                break;
            case 71:
                $itemKind = "<h3>Crossbow</h3>";
                break;
            case 91:
                $itemKind = "<h3>Earring</h3>";
                break;
            case 92:
                $itemKind = "<h3>Necklace</h3>";
                break;
            case 93:
                $itemKind = "<h3>Ring</h3>";
                break;
            case 94:
                $itemKind = "<h3>Belt</h3>";
                break;
            case 95:
                $itemKind = "<h3>Lune Item</h3>";
                break;
            case 97:
                $itemKind = "<h3>Sundries</h3>";
                break;
            case 98:
                $itemKind = "<h3>Scroll</h3>";
                break;
            case 110:
                $itemKind = "<h3>Staff</h3>";
                break;
            case 120:
                $itemKind = "<h3>Arrow</h3>";
                break;
            case 130:
                $itemKind = "<h3>Javelin</h3>";
                break;
            case 140:
                $itemKind = "<h3>Jamadhar</h3>";
                break;
            case 150:
                $itemKind = "<h3>Familiar Egg</h3>";
                break;
            case 151:
                $itemKind = "<h3>Familiar Item</h3>";
                break;
            case 152:
                $itemKind = "<h3>[US] Familiar</h3>";
                break;
            case 170:
                $itemKind = "<h3>Autoloot</h3>";
                break;
            case 171:
                $itemKind = "<h3>Image Change Scroll</h3>";
                break;
            case 172:
                $itemKind = "<h3>Familiar Attack</h3>";
                break;
            case 173:
                $itemKind = "<h3>Familiar Defense</h3>";
                break;
            case 174:
                $itemKind = "<h3>Familiar Loyalty</h3>";
                break;
            case 175:
                $itemKind = "<h3>Familiar Speciality Food</h3>";
                break;
            case 176:
                $itemKind = "<h3>Familiar Food</h3>";
                break;
            case 181:
                $itemKind = "<h3>Mace</h3>";
                break;
            case 200:
                $itemKind = "<h3>Portu Armor</h3>";
                break;
            case 210:
                $itemKind = "<h3>Warrior Armor</h3>";
                break;
            case 220:
                $itemKind = "<h3>Rogue Armor</h3>";
                break;
            case 230:
                $itemKind = "<h3>Magician Armor</h3>";
                break;
            case 240:
                $itemKind = "<h3>Priest Armor</h3>";
                break;
            case 250:
                $itemKind = "<h3>Seal & Heal Scroll</h3>";
                break;
            case 252:
                $itemKind = "<h3>Cospre Item</h3>";
                break;
            case 253:
                $itemKind = "<h3>Sealed Item</h3>";
                break;
            case 254:
                $itemKind = "<h3>Chaos Skill Item</h3>";
                break;
            case 255:
                $itemKind = "<h3>PUS Item</h3>";
                break;
        }
 
KY Saygın Üye
KAYIT
29 May 2023
Mesajlar
742
Çözümler
19
Tepki puanı
367
Konum
Ankara
Web
japko.us
Hocam ITEM tablosunda ItemType kolonunda istediğin veri tipi mevcut. Ben panellerim de aşağıda ki type = name eşleşmesini kullanıyorum. Bunlar default bir knight_online veritabanı için uygundur fakat yeni eklenen item typelar var ise onları tam bilemiyorum.


PHP:
switch ($item->ItemType) {
                case 0:
                    $itemType = "<h2 class='type_0'>(Normal Item)</h2>";
                    break;
                case 1:
                    $itemType = "<h2 class='type_1'>(Magic Item)</h2>";
                    break;
                case 2:
                    $itemType = "<h2 class='type_2'>(Rares Item)</h2>";
                    break;
                case 3:
                    $itemType = "<h2 class='type_3'>(Craft Item)</h2>";
                    break;
                case 4:
                    $itemType = "<h2 class='type_4'>(Unique Item)</h2>";
                    break;
                case 5:
                    $itemType = "<h2 class='type_5'>(Upgrade Item)</h2>";
                    break;
                case 6:
                    $itemType = "<h2 class='type_6'>(Event Item)</h2>";
                    break;
                case 7:
                    $itemType = "<h2 class='type_7'>(Pet Item)</h2>";
                    break;
                case 8:
                    $itemType = "<h2 class='type_8'>(Cospre Item)</h2>";
                    break;
                case 9:
                    $itemType = "<h2 class='type_9'>(Minerva Item)</h2>";
                    break;
                case 11:
                    $itemType = "<h2 class='type_11'>(Reverse Upgrade Item)</h2>";
                    break;
                case 12:
                    $itemType = "<h2 class='type_12'>(Reverse Unique Item)</h2>";
                    break;
            }
çözümün bu bro adam herşeyiyle vermiş eline sağlık @Forathdor
 
KY Kıdemli Üye
KAYIT
21 Şub 2026
Mesajlar
217
Tepki puanı
100
Ama @ChaosKnightX 'da bahsettiği gibi veritabanından veritabanına değişiklik gösterebiliyor. Bazılarında Kind sütununda, bazılarında ise ItemType sütununda tutuluyor bu veri. Ama ben Kind için aşağıda ki kod bloğunu kullanıyorum, ItemType içinse yukarıda vermiş olduğumu.


PHP:
switch ($item->Kind) {
            case 0:
                $itemKind = "<h3>Rewards</h3>";
                break;
            case 10:
                $itemKind = "<h3>Wing</h3>";
                break;
            case 11:
                $itemKind = "<h3>Dagger</h3>";
                break;
            case 12:
                $itemKind = "<h3>[JP] Dagger Set</h3>";
                break;
            case 21:
                $itemKind = "<h3>One-handed Sword</h3>";
                break;
            case 22:
                $itemKind = "<h3>Two-handed Sword</h3>";
                break;
            case 31:
                $itemKind = "<h3>One-handed Axe</h3>";
                break;
            case 32:
                $itemKind = "<h3>Two-handed Axe</h3>";
                break;
            case 41:
                $itemKind = "<h3>One-handed Club</h3>";
                break;
            case 42:
                $itemKind = "<h3>Two-handed Club</h3>";
                break;
            case 43:
                $itemKind = "<h3>[JP] One-handed Set</h3>";
                break;
            case 51:
                $itemKind = "<h3>One-handed Spear</h3>";
                break;
            case 52:
                $itemKind = "<h3>Long Spear</h3>";
                break;
            case 60:
                $itemKind = "<h3>Shield</h3>";
                break;
            case 61:
                $itemKind = "<h3>Pickaxe</h3>";
                break;
            case 62:
                $itemKind = "<h3>Long Spear</h3>";
                break;
            case 63:
                $itemKind = "<h3>Fishing Rod</h3>";
                break;
            case 70:
                $itemKind = "<h3>Bow</h3>";
                break;
            case 71:
                $itemKind = "<h3>Crossbow</h3>";
                break;
            case 91:
                $itemKind = "<h3>Earring</h3>";
                break;
            case 92:
                $itemKind = "<h3>Necklace</h3>";
                break;
            case 93:
                $itemKind = "<h3>Ring</h3>";
                break;
            case 94:
                $itemKind = "<h3>Belt</h3>";
                break;
            case 95:
                $itemKind = "<h3>Lune Item</h3>";
                break;
            case 97:
                $itemKind = "<h3>Sundries</h3>";
                break;
            case 98:
                $itemKind = "<h3>Scroll</h3>";
                break;
            case 110:
                $itemKind = "<h3>Staff</h3>";
                break;
            case 120:
                $itemKind = "<h3>Arrow</h3>";
                break;
            case 130:
                $itemKind = "<h3>Javelin</h3>";
                break;
            case 140:
                $itemKind = "<h3>Jamadhar</h3>";
                break;
            case 150:
                $itemKind = "<h3>Familiar Egg</h3>";
                break;
            case 151:
                $itemKind = "<h3>Familiar Item</h3>";
                break;
            case 152:
                $itemKind = "<h3>[US] Familiar</h3>";
                break;
            case 170:
                $itemKind = "<h3>Autoloot</h3>";
                break;
            case 171:
                $itemKind = "<h3>Image Change Scroll</h3>";
                break;
            case 172:
                $itemKind = "<h3>Familiar Attack</h3>";
                break;
            case 173:
                $itemKind = "<h3>Familiar Defense</h3>";
                break;
            case 174:
                $itemKind = "<h3>Familiar Loyalty</h3>";
                break;
            case 175:
                $itemKind = "<h3>Familiar Speciality Food</h3>";
                break;
            case 176:
                $itemKind = "<h3>Familiar Food</h3>";
                break;
            case 181:
                $itemKind = "<h3>Mace</h3>";
                break;
            case 200:
                $itemKind = "<h3>Portu Armor</h3>";
                break;
            case 210:
                $itemKind = "<h3>Warrior Armor</h3>";
                break;
            case 220:
                $itemKind = "<h3>Rogue Armor</h3>";
                break;
            case 230:
                $itemKind = "<h3>Magician Armor</h3>";
                break;
            case 240:
                $itemKind = "<h3>Priest Armor</h3>";
                break;
            case 250:
                $itemKind = "<h3>Seal & Heal Scroll</h3>";
                break;
            case 252:
                $itemKind = "<h3>Cospre Item</h3>";
                break;
            case 253:
                $itemKind = "<h3>Sealed Item</h3>";
                break;
            case 254:
                $itemKind = "<h3>Chaos Skill Item</h3>";
                break;
            case 255:
                $itemKind = "<h3>PUS Item</h3>";
                break;
        }

Detaylı için teşekkür ederim.
 
Üst Alt