Db ye 4k buff 450ac %50 atack sc ekleme

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 92

Admin

Knight Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
45,967
Kod:
--Delete  DELETE FROM  ITEM WHERE  Num = 820085000  DELETE FROM  ITEM WHERE  Num = 820086000  DELETE FROM  ITEM WHERE  Num = 800017000  DELETE FROM  MAGIC WHERE  MagicNum = 62005  DELETE FROM  MAGIC WHERE  MagicNum = 62004  DELETE FROM  MAGIC WHERE   MagicNum = 62006  DELETE FROM  MAGIC_TYPE4 WHERE iNum = 62005  DELETE FROM  MAGIC_TYPE4 WHERE iNum = 62004  DELETE FROM  MAGIC_TYPE4 WHERE iNum = 62006



Kod:
--Add HP Scroll +4000   insert into  ITEM values  (820085000 , 'HP Scroll  4000 (+0)' , 255 , 15 ,  0 , 0 , 0 , 0 , 0 , 1 , 30 , 2000 , 0 , 0  , 0 , 620005 , 0 , 50 , 99 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0)  insert into  MAGIC_TYPE4 values (620005 , 'HP Scroll 4000   (+0)' , 'Increase HP by 4000.' , 1 , 0 ,   1800 , 100 , 100 , 0 , 100 , 100 , 100 , 4000 , 100 , 0 , 100 , 100 ,   100 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 100)  insert into  MAGIC values  (620005 , 'HP Scroll 4000'  , 'HP  Scroll 4000' , 'Increase  HP by 4000.' ,  0 , 0 , 0 , 1 , 702 , 1 , 0 , 0 , 0 , 0 , 9 ,  820085000 , 0 , 180 , 100  , 4 , 0 , 0 , 1 , 0)  --Add Armor Scroll +450   insert into  ITEM values  (820086000 , 'Scroll of  Armor 450 (+0)' , 255 ,  15 , 0 , 0 , 0 , 0 , 0 , 1 , 30 , 2000 ,  0 , 450 , 0 , 620004 , 0 , 50 ,  99 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0)  insert into  MAGIC values  (620004 , 'Scroll Of Armor   450' , 'Scroll of Armor 450' , 'Armor 450'  , 0 , 0 , 0 , 1 , 702 , 1 , 0 , 0 , 0 , 0   , 9 , 820086000 , 0 , 180 ,  100 , 4 , 0 , 0 , 1 , 0)  insert into  MAGIC_TYPE4 values (620004 , 'Scroll of Armor   450 (+0)' , 'Armor 450' , 2 , 0 , 1800 , 100 , 100 , 450 , 100 ,   100 , 100 , 0 , 100 , 0 , 100 , 100 , 100 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,  0  , 0 , 0 , 0 , 0)  --Add Super Attack Sroll +%50   insert into  ITEM values  (800017000 , 'Scroll of  Super Attack (+0)' , 255 , 15 , 0 , 0 , 0 , 0 , 0 , 1 , 30 , 2000  , 0 , 0 , 0 , 620006 , 0 ,  45 , 99 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0  , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 , 0)  insert into  MAGIC values  (620006 , 'Scroll Of Super   Attack' , 'Scroll Of Super Attack' , '%50  Attack' , 0 , 0 , 0 , 0 , 702 , 1 , 0 , 0 , 0 ,   0 , 9 , 800017000  , 0 , 0 , 100 , 4 , 0 , 0 , 1 , 0)  insert into  MAGIC_TYPE4 values (620006 , 'Scroll Of Super   Attack' , '%50 Attack' , 4 , 0 , 1800 ,   100 , 100 , 0 , 100 , 150 , 100 , 0 , 100 , 0 , 100 , 100 , 100 , 0 , 0  ,  0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 100)



Konu link görüntülemek için konuya cevap yazmalısınız.
Db ye 4k Buff 450ac %50 Attack SC Ekleme
Knight Online özel sunucularında geliştirme yaparken, oyuncuların güçlenmesi ve rekabetin artması için bazı özel itemler veya bufflar eklemek oldukça popülerdir. Bu yazıda, veritabanına (DB) özel olarak 4000 buff, 450 AC ve %50 saldırı hızı(SC) bonusu veren bir item nasıl eklenir, adım adım inceleyeceğiz. Knight Online emulator geliştiricileri için önemli bir konudur ve doğru yapıldığında sunucunuzda ciddi bir fark yaratabilir.

Knight Online DB Nedir?
Knight Online özel sunucularında tüm itemler, NPC'ler, düşmanlar ve diğer oyun objeleri veritabanı (database) üzerinde tutulur. Bu veritabanına genellikle 'item_proto' tablosu denir ve burada itemlerin ID'si, ismi, açıklaması, grafik dosyası ve özellikler gibi bilgiler yer alır. Bu nedenle, yeni bir item eklemek istiyorsanız, öncelikle bu tabloya veri girmelisiniz.

4000 Buff, 450 AC, %50 Saldırı Hızı Nedir?
Knight Online'da bufflar, karakterinize geçici ya da kalıcı olarak bonuslar kazandıran efektlerdir. 4000 buff değeri, karakterinize ciddi bir mana ya da can bonusu sağlar. AC (Armor Class) ise zırh değeridir ve 450 AC ile karakteriniz daha az hasar alır. %50 saldırı hızı ise fiziksel ve büyü saldırı hızınızı artırarak saldırganlığı artırır. Bu gibi itemler genellikle özel sunucularda sınırlı sayıda veya belirli etkinliklerle dağıtılır.

Veritabanına Yeni Item Ekleme Adımları

Adım 1: SQL Editörü Açın
İlk olarak, kullandığınız SQL yönetim aracını açın. Örneğin, HeidiSQL, phpMyAdmin veya MySQL Workbench gibi. Sunucunuzun veritabanına bağlanın ve 'item_proto' tablosunu seçin.

Adım 2: Item ID Belirleme
Yeni bir item eklerken, benzersiz bir ID numarası vermeniz gerekir. Genellikle, mevcut en yüksek ID'den sonra bir numara seçilmelidir. Örneğin, mevcut en yüksek ID 9999 ise, yeni iteminiz için ID 10000 olabilir.

Adım 3: SQL Insert Komutu Oluşturma
Aşağıdaki gibi bir INSERT INTO komutu yazarak, yeni iteminizi DB'ye ekleyin:

Kod:
[BR][/BR]INSERT INTO item_proto ([BR][/BR]vnum, [BR][/BR]name, [BR][/BR]type, subtype, [BR][/BR]weight, size, gold, [BR][/BR]shop_buy, [BR][/BR]refined_vnum, refine_set, magic_pct, [BR][/BR]anti_flags, flags, wear_flags, [BR][/BR]immune_flag, [BR][/BR]improve_target_stat, [BR][/BR]ac, [BR][/BR]s_count, [BR][/BR]max_count, [BR][/BR]flag, [BR][/BR]socket_pct, [BR][/BR]addon_type_1, addon_num_1, [BR][/BR]addon_type_2, addon_num_2, [BR][/BR]addon_type_3, addon_num_3, [BR][/BR]stat_type1, stat_value1, [BR][/BR]stat_type2, stat_value2, [BR][/BR]stat_type3, stat_value3[BR][/BR])[BR][/BR]VALUES ([BR][/BR]'10000', [BR][/BR]'PowerfulBuffItem', [BR][/BR]'7', '0', [BR][/BR]'1', '1', '10000000', [BR][/BR]'0', [BR][/BR]'0', '0', '0', [BR][/BR]'0', '0', '0', [BR][/BR]'0', [BR][/BR]'0', [BR][/BR]'450', [BR][/BR]'1', '1', [BR][/BR]'0', [BR][/BR]'0', [BR][/BR]'24', '50', [BR][/BR]'25', '50', [BR][/BR]'26', '50', [BR][/BR]'2', '4000', [BR][/BR]'3', '4000', [BR][/BR]'4', '4000'[BR][/BR]);[BR][/BR]


Kod Açıklamaları:[/BR][/BR]- ac = 450 (Zırh)
- addon_type_X = 24, 25, 26 (SC bonusları)
- addon_num_X = 50 (Her biri %50)
- stat_type_X = 2, 3, 4 (Can ve mana bonusları)
- stat_value_X = 4000 (Her biri 4000)

Adım 4: Item.bin Dosyasına Ekleme
Veritabanına item ekledikten sonra, oyun sunucusu itemi tanıyabilmesi için 'item.bin' dosyasına da aynı itemin bilgilerini eklemeniz gerekir. Bu işlem genellikle özel araçlarla yapılır (örneğin: ItemEditor).

Adım 5: Sunucuyu Yeniden Başlatma
Tüm değişikliklerden sonra sunucunuzu yeniden başlatın. Artık oyun içinden yeni itemi görebilir ve test edebilirsiniz.

Not:[/BR][/BR]Sunucunuzda bu gibi yüksek bonuslu itemlerin滥用 (kötüye kullanımı) olmaması için, sınırlı drop veya özel görevlerle verilmesi önerilir. Aksi takdirde oyun dengesi bozulabilir.

Sonuç
Knight Online özel sunucularında DB'ye 4000 buff, 450 AC ve %50 SC bonusu veren bir item eklemek, doğru veri girişleriyle oldukça kolaydır. Bu sayede oyuncularınız için özel ve güçlü itemler tasarlayabilir, sunucunuzun benzersizliğini artırabilirsiniz. Knight Lobby olarak bizler de bu tür gelişmeleri takip ediyor ve geliştiricilere destek oluyoruz.


Adding 4k Buff 450ac %50 Attack SC to DB
In Knight Online private servers, adding special items or buffs for character enhancement and increased competition is quite popular. In this article, we will examine step-by-step how to add an item that grants 4000 buff, 450 AC, and %50 attack speed (SC) bonus to the database. This is an important topic for KO emulator developers and can make a significant difference on your server when implemented correctly.

What is Knight Online DB?[/BR][/BR]In Knight Online private servers, all items, NPCs, enemies, and other game objects are stored in the database. This table is commonly called 'item_proto', where the item's ID, name, description, graphic file, and properties are stored. Therefore, if you want to add a new item, you must first enter data into this table.

What Are 4000 Buff, 450 AC, %50 Attack Speed?[/BR][/BR]In Knight Online, buffs are temporary or permanent bonuses that enhance your character. A 4000 buff value significantly boosts your HP or MP. AC (Armor Class) is the armor value; with 450 AC, your character takes less damage. %50 attack speed increases your physical and magical attack speed, boosting aggression. Such items are usually limited in number or distributed through specific events on private servers.

Steps to Add a New Item to Database[/BR][/BR]
Step 1: Open SQL Editor
First, open your SQL management tool such as HeidiSQL, phpMyAdmin, or MySQL Workbench. Connect to your server’s database and select the 'item_proto' table.

Step 2: Determine Item ID
When adding a new item, you must assign a unique ID number. Usually, choose a number after the highest existing ID. For example, if the highest ID is 9999, your new item could be 10000.

Step 3: Create SQL Insert Command
Write an INSERT INTO command like below to add your new item to the DB:

Kod:
[BR][/BR]INSERT INTO item_proto ([BR][/BR]vnum, [BR][/BR]name, [BR][/BR]type, subtype, [BR][/BR]weight, size, gold, [BR][/BR]shop_buy, [BR][/BR]refined_vnum, refine_set, magic_pct, [BR][/BR]anti_flags, flags, wear_flags, [BR][/BR]immune_flag, [BR][/BR]improve_target_stat, [BR][/BR]ac, [BR][/BR]s_count, [BR][/BR]max_count, [BR][/BR]flag, [BR][/BR]socket_pct, [BR][/BR]addon_type_1, addon_num_1, [BR][/BR]addon_type_2, addon_num_2, [BR][/BR]addon_type_3, addon_num_3, [BR][/BR]stat_type1, stat_value1, [BR][/BR]stat_type2, stat_value2, [BR][/BR]stat_type3, stat_value3[BR][/BR])[BR][/BR]VALUES ([BR][/BR]'10000', [BR][/BR]'PowerfulBuffItem', [BR][/BR]'7', '0', [BR][/BR]'1', '1', '10000000', [BR][/BR]'0', [BR][/BR]'0', '0', '0', [BR][/BR]'0', '0', '0', [BR][/BR]'0', [BR][/BR]'0', [BR][/BR]'450', [BR][/BR]'1', '1', [BR][/BR]'0', [BR][/BR]'0', [BR][/BR]'24', '50', [BR][/BR]'25', '50', [BR][/BR]'26', '50', [BR][/BR]'2', '4000', [BR][/BR]'3', '4000', [BR][/BR]'4', '4000'[BR][/BR]);[BR][/BR]


Code Explanations:[/BR][/BR]- ac = 450 (Armor)
- addon_type_X = 24, 25, 26 (SC bonuses)
- addon_num_X = 50 (Each %50)
- stat_type_X = 2, 3, 4 (HP and MP bonuses)
- stat_value_X = 4000 (Each 4000)

Step 4: Add to item.bin File
After adding the item to the database, you must also add its information to the 'item.bin' file so that the game server recognizes it. This is typically done using special tools like ItemEditor.

Step 5: Restart Server
After all changes, restart your server. You can now see and test the new item in-game.

Note:[/BR][/BR]To prevent abuse of high-bonus items like these, it is recommended to limit their availability via rare drops or special quests. Otherwise, game balance may be disrupted.

Conclusion
Adding an item that grants 4000 buff, 450 AC, and %50 SC bonus to the Knight Online private server DB is straightforward with correct data entry. This allows you to design special and powerful items for players and enhance the uniqueness of your server. As Knight Lobby, we follow such developments and support developers.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt