Query Kolay NPC ve Canavar Ekleme Rehberi [SQL Kodlarıyla]

Aethre

www.pvpers.gg
Katılım
19 Haz 2024
Konular
493
Mesajlar
715
Çözümler
10
Beğeniler
2,381
GG Coin
32,610
Ticaret Değeri - 100%
1   0   0
Discord
pvpers.gg
Knight Online Canavar ve NPC Ekleme Rehberi

Sunucu sahipleri, oyuna yeni canavar veya NPC ekleme işlemini oldukça kolay bir şekilde yapabilirler. Aşağıda, bu işlemleri doğru biçimde uygulayabilmeniz için örnek sorgular ve açıklamalar yer almaktadır.

🔹 Canavar Ekleme İşlemi

Öncelikle eklemek istediğiniz canavarın ID’sini bulmanız gerekir. Bunun için şu sorguyu kullanabilirsiniz:

Gizlenmiş içeriği görüntüleyebilmek için Giriş Yap ya da Kayıt Ol
Bu işlem, 15 saniyeden az sürer.

Örnek:
Luferson bölgesine Worm eklemek istiyoruz. Bunun için Query Analyzer’a şu sorguyu yazıyoruz:

Gizlenmiş içeriği görüntüleyebilmek için Giriş Yap ya da Kayıt Ol
Bu işlem, 15 saniyeden az sürer.

Bu sorgu sonucunda çıkan kayıtlar arasından Worm’ün ID’si 700 olarak görünüyor. Şimdi bu canavarı Luferson’a ekleyelim.
Kullanılacak koordinatlar: 751, 351
Yeniden doğma süresi: 30 dakika (30 × 60 = 1800 saniye)

Kod:
INSERT INTO [K_NPCPOS] VALUES
('1','700','1','0','0','0','0','751','351','751','351','751','351','751','351','1','1800','0','0','NULL');

Bu sorgu, ID’si 700 olan Worm’ü Luferson bölgesine tek bir örnek olarak ekler.

🔹 NPC Ekleme İşlemi

Benzer şekilde, oyuna yeni bir NPC eklemek için de ID’yi öğrenmemiz gerekir.
Örneğin Moradon’a yeni bir Sundries ekleyeceğiz. Bunun için:

Gizlenmiş içeriği görüntüleyebilmek için Giriş Yap ya da Kayıt Ol
Bu işlem, 15 saniyeden az sürer.

Bu sorgu, oyundaki tüm sundries NPC’lerini listeler.
Dikkat edilmesi gereken en önemli nokta byGroup değeridir:

1 = Karus

2 = Human
Moradon ortak alan olduğu için bu farkın bir önemi yoktur.

Örneğin ID’si 505 olan Sundries NPC’sini Moradon’a (Zone 21) şu koordinatlara ekleyelim: 351, 256

Kod:
INSERT INTO [K_NPCPOS] VALUES
('21','505','103','0','0','0','0','351','256','351','256','351','256','351','256','1','30','0','0','NULL');

🔹 NPC veya Canavar Silme

Eklenen bir canavarı veya NPC’yi silmek için aşağıdaki sorguyu kullanabilirsiniz:

Kod:
DELETE FROM K_NPCPOS WHERE NpcID = IDnumarası AND ZoneID = Zonenumarası

Örnek:
Luferson’a eklediğimiz Worm’ü (ID 700, Zone 1) silmek için:

Kod:
DELETE FROM K_NPCPOS WHERE NpcID = 700 AND ZoneID = 1

Eğer aynı bölgede birden fazla aynı canavar varsa ve sadece belirli bir konumdakini silmek istiyorsanız, koordinatı da dahil edebilirsiniz:

Kod:
DELETE FROM K_NPCPOS WHERE NpcID = 700 AND ZoneID = 1 AND LeftX = 751

Tam koordinatı bilmiyorsanız, önce şu sorgu ile listeleyebilirsiniz:

Kod:
SELECT * FROM K_NPCPOS WHERE NpcID = 700 AND ZoneID = 1

Böylece, silmek istediğiniz canavara en yakın koordinat değerini bulup işlem yapabilirsiniz.
 
Knight Online Guide to Adding Monsters and NPCs

Server owners can easily add new monsters or NPCs to the game. Below are example queries and explanations to help you perform these operations correctly.

🔹 Monster Addition Process

First, you need to find the ID of the monster you want to add. You can do this using the following query:

<b>[Hidden content]</b>

Example:
We want to add a Worm to the Luferson region. To do this, we write the following query in the Query Analyzer:

<b>[Hidden content]</b>

The records from this query show that Worm's ID is 700. Now let's add this monster to Luferson.
The coordinates to be used are: 751, 351
Respawn time: 30 minutes (30 × 60 = 1800 seconds)

Kod:
INSERT INTO [K_NPCPOS] VALUES
('1','700','1','0','0','0','0','751','351','751','351','751','351','751','351','1','1800','0','0','NULL');

This query adds a single instance of Worm with ID 700 to the Luferson region.

🔹 NPC Adding Process

Similarly, to add a new NPC to the game, we need to know their ID.
For example, we'll add a new Sundries to Moradon . To do this:

<b>[Hidden content]</b>

This query lists all sundries NPCs in the game.
The most important point to pay attention to is the byGroup value:

1 = Karus

2 = Human
Since Moradon is a shared space, this difference is irrelevant.

For example, let's add the Sundries NPC with ID 505 to Moradon (Zone 21) at these coordinates: 351, 256

Kod:
INSERT INTO [K_NPCPOS] VALUES
('21','505','103','0','0','0','0','351','256','351','256','351','256','351','256','1','30','0','0','NULL');

🔹 NPC or Monster Removal

To remove an added monster or NPC, you can use the following query:

Kod:
DELETE FROM K_NPCPOS WHERE NpcID = IDnumber AND ZoneID = Zonenumber

Example:
To delete the Worm (ID 700, Zone 1) that we added to Luferson:

Kod:
DELETE FROM K_NPCPOS WHERE NpcID = 700 AND ZoneID = 1

If there are multiple identical monsters in the same area and you only want to eliminate the one in a specific location, you can include its coordinates.

Kod:
DELETE FROM K_NPCPOS WHERE NpcID = 700 AND ZoneID = 1 AND LeftX = 751

If you don't know the exact coordinates, you can first list them using this query:

Kod:
SELECT * FROM K_NPCPOS WHERE NpcID = 700 AND ZoneID = 1

This way, you can find the closest coordinate value to the monster you want to delete and perform the operation.
thanks kankyy
 

Konuyu Görüntüleyenler

Geri
Üst Alt