Neler yeni

Foruma hoş geldin, Ziyaretçi

Silkroad Lobby | En İyi Silkroad Destek Forumu | Best Silkroad Support Forum | Silkroad Private Server Tanıtım Advertising | Phbot | Mbot | Sbot
Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

[Release] Add Npc Manually

Admin

Silkroad Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Konular
28,289
Mesajlar
28,584
Tepkime puanı
24
Sro Yaşı
3 yıl 10 ay 19 gün
Trophy Puan
38
Konum
Web sitesi
Sro Gold
288,324
First Ty To DieEyes From : ra.ge.zo.ne For that Release.

Today i will show you how to add npc manual - (Old school
biggrin.gif
) better than use shit queries and get many of problems.

I will add the lines and you have only to change the name of Ebx7 to your new npc name.

First database lines.

_RefObjCommon

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 50320 NPC_Ebx7 xxx xxx SN_NPC_Ebx7 xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 mob\god\ghost_undine.bsr xxx xxx xxx xxx 30125</pre> _RefObjChar
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">30125 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</pre> _RefShop
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 89 STORE_Ebx7 -1 xxx -1 xxx -1 xxx -1 xxx</pre> _RefShopGroup
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 2815 GROUP_STORE_Ebx7 NPC_Ebx7 -1 xxx -1 xxx -1 xxx -1 xxx</pre> _RefShopItemGroup
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 82 STORE_Ebx7_GROUP1 SN_STORE_Ebx7_GROUP1</pre> _RefShopTab
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 66px; text-align: left; overflow: auto">1 15 6417 STORE_Ebx7_TAB1 STORE_Ebx7_GROUP1 SN_TAB_Ebx7 1 15 6418 STORE_Ebx7_TAB2 STORE_Ebx7_GROUP1 SN_TAB_ITEMS 1 15 6431 STORE_Ebx7_TAB3 STORE_Ebx7_GROUP1 SN_TAB_GOODS</pre>
_RefShopTabGroup

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 2832 STORE_Ebx7_GROUP1 SN_STORE_Ebx7_GROUP1</pre> _RefMappingShopGroup
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 GROUP_STORE_Ebx7 STORE_Ebx7 SN_STORE_Ebx7_GROUP1</pre> _RefMappingShopWithTab
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 STORE_Ebx7 STORE_Ebx7_GROUP1</pre> Tab_RefHive
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 50px; text-align: left; overflow: auto"> gameworldid 1628 0 0 0 0 0 0 1 2 NPC_Ebx7</pre> Tab_RefTactics
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">46124 50320 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 1 0 0 0 0 0 0 0 NPC_Ebx7</pre> Tab_RefNest
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">36942 1628 46124 25000 766 -32 1181 0 0 0 0 0 0 1 0 1 0</pre> 1627 = refhive id
46124=Tab_RefTactics ID

Database lines finished.


Now Client.


characterdata_45000

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 50320 NPC_Ebx7 xxx xxx SN_NPC_Ebx7 xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 mob\god\ghost_undine.bsr xxx xxx xxx xxx 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</pre>
refshop.txt

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 94 STORE_Ebx7 -1 xxx -1 xxx -1 xxx -1 xxx</pre> refshopgroup.txt

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 2820 GROUP_STORE_Ebx7 NPC_Ebx7 -1 xxx -1 xxx -1 xxx -1 xxx</pre>
shopgroupdata.txt

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 82 STORE_Ebx7_GROUP1 SN_STORE_Ebx7_GROUP1</pre>
refshoptab.txt

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 66px; text-align: left; overflow: auto">1 15 6432 STORE_Ebx7_TAB1 STORE_Ebx7_GROUP1 SN_TAB_Ebx7 1 15 6433 STORE_Ebx7_TAB2 STORE_Ebx7_GROUP1 SN_TAB_ITEMS 1 15 6434 STORE_Ebx7_TAB3 STORE_Ebx7_GROUP1 SN_TAB_GOODS</pre>
refshoptabgroup.txt

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 2837 STORE_Ebx7_GROUP1 SN_STORE_Ebx7_GROUP1</pre> refmappingshopgroup.txt

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 GROUP_STORE_Ebx7 STORE_Ebx7</pre>
refmappingshopwithtab

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 15 STORE_Ebx7 STORE_Ebx7_GROUP1</pre>
text_object data

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 SN_NPC_Ebx7 Ebx7 Special Item</pre> textquest_speech&amp;name
Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 SN_NPC_Ebx7_BS This is Ebx7NPC. Here you can buy new Customized Items.</pre> npcchat

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 34px; text-align: left; overflow: auto">1 NPC_Ebx7 SN_NPC_Ebx7_BS SN_NPC_Ebx7_PS</pre> textuisystem

Code: <pre class="alt2 prettyprint" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 640px; height: 66px; text-align: left; overflow: auto">1 SN_TAB_Ebx7 펫용품 0 0 0 0 0 0 Special Ebx7 0 0 0 0 0 0 0 0 1 SN_TAB_ITEMS 펫용품 0 0 0 0 0 0 Spcial Items 0 0 0 0 0 0 0 0 1 SN_TAB_GOODS 펫용품 0 0 0 0 0 0 Spcial Goods 0 0 0 0 0 0 0 0</pre>
Done, Npc created

Add NPC Manually Nedir?
Silkroad Online özel sunucularında (Pserver) oyun içi karakterlerin (NPC) elle eklenmesi, sunucu geliştiricileri tarafından sıkça kullanılan önemli bir yöntemdir. Bu işlem genellikle oyun deneyimini zenginleştirmek, yeni görevler eklemek veya özel etkinlikler planlamak amacıyla yapılır. Add NPC Manually işlemi sayesinde geliştiriciler, mevcut veritabanına veya oyun dosyalarına müdahale ederek özel NPC'ler oluşturabilir.

Neden Elle NPC Eklenir?
Silkroad özel sunucularında bazı sunucular standart oyun içeriğini aşmak ister. Bu durumda geliştiriciler yeni görevler, dükkanlar, teleportasyon sistemleri gibi çeşitli etkileşimli öğeler eklemek ister. Bu tür içeriklerin çoğu özel NPC'lerle sağlanır. Elle ekleme işlemi, bu özel NPC'leri kontrol etmeyi ve oyun akışına entegre etmeyi sağlar.

Elle NPC Ekleme Adımları
Öncelikle, NPC'nin hangi haritada yer alacağı belirlenmelidir. Bu bilgi _RefObjCommon tablosuna yazılır. Ardından, NPC'nin ID numarası, konumu (X, Y, Z koordinatları), modeli ve davranışları gibi detaylar girilmelidir. Bu veriler sunucunuzun Game Server dosyalarına aktarılır. Bu işlem genellikle SQL komutları veya özel editörlerle yapılır.

NPC Eklerken Dikkat Edilmesi Gerekenler
Yeni bir NPC eklerken, mevcut sistemle uyumlu olmasına dikkat etmek gerekir. Örneğin, aynı ID numarasına sahip başka bir nesne olmamalıdır. Ayrıca koordinat değerlerinin doğru girilmesi, NPC'nin oyun içi haritada uygun yerde görünmesini sağlar. Yanlış koordinatlar, NPC'nin harita dışı veya engelli bir alanda görünmesine neden olabilir.

Olası Hatalar ve Çözümler
NPC eklerken karşılaşılan yaygın sorunlardan birisi, NPC'nin oyun içinde görünmemesidir. Bu durum genellikle yanlış ID, eksik veri veya hatalı koordinatlardan kaynaklanır. Bu tür hataları çözmek için Shard logları incelenmelidir. Loglar, sunucuda ne tür bir hata olduğunu gösterir ve çözüm için rehberlik eder.

Sunucu Performansını Etkileyen Faktörler
Çok sayıda NPC eklemek, özellikle davranışları olan NPC'ler (örneğin düşman NPC'ler gibi) sunucu performansını etkileyebilir. Bu yüzden, her yeni NPC eklenmeden önce performans testleri yapılmalı ve gerekirse sistem optimize edilmelidir. Özellikle Agent Server ve Gateway Server yapılandırmaları gözden geçirilmelidir.

NPC Ekleme İçin Kullanılan Araçlar
Silkroad geliştiricileri, NPC ekleme işlemlerinde genellikle özel editörler ve araçlar kullanırlar. Bunlara örnek olarak SRO_Client üzerinde çalışan modifikasyonlar, özel veritabanı yönetim sistemleri ve PK2 dosya düzenleyicileri verilebilir. Bu tür araçlar, geliştiricilere daha kolay ve hızlı bir şekilde NPC ekleme imkanı sunar.

Sonuç
Silkroad özel sunucularında Add NPC Manually işlemi, oyun içi deneyimi zenginleştirmek için oldukça güçlü bir özelliktir. Ancak dikkatli yapılması ve doğru verilerle desteklenmesi gerekir. Geliştiriciler, bu işlemi yaparken hem oyun içi dengeyi hem de teknik sistem uyumluluğunu göz önünde bulundurmalıdır.


What is Add NPC Manually?
Adding NPCs manually in Silkroad Online private servers (Pserver) is a common practice among server developers. This process is often used to enhance gameplay, add new quests, or plan special events. With the Add NPC Manually method, developers can create custom NPCs by modifying the existing database or game files.

Why Add NPCs Manually?
Some Silkroad private servers aim to go beyond standard game content. In such cases, developers may want to add new quests, shops, teleportation systems, and other interactive elements. Most of these features are implemented through custom NPCs. Manual addition allows for better control over these NPCs and their integration into the game flow.

Steps for Adding NPCs Manually
Firstly, you need to decide where the NPC will be located on the map. This information is written into the _RefObjCommon table. Then, details such as the NPC's ID, location (X, Y, Z coordinates), model, and behavior must be entered. These data are transferred into your Game Server files. This process is usually done via SQL commands or custom editors.

Things to Consider When Adding NPCs
When adding a new NPC, ensure compatibility with the existing system. For instance, there should not already be another object with the same ID. Also, entering correct coordinate values ensures that the NPC appears in the right place within the game map. Incorrect coordinates might cause the NPC to appear outside the map or in a blocked area.

Possible Errors and Solutions
A common issue encountered while adding NPCs is that the NPC does not appear in the game. This is generally caused by incorrect IDs, missing data, or wrong coordinates. To resolve such issues, check the Shard logs. Logs show what type of error occurred on the server and provide guidance for resolving it.

Factors Affecting Server Performance
Adding too many NPCs, especially those with behaviors (like enemy NPCs), can impact server performance. Therefore, performance tests should be conducted before adding new NPCs, and the system should be optimized if necessary. In particular, Agent Server and Gateway Server configurations should be reviewed.

Tools Used for Adding NPCs
Silkroad developers often use custom editors and tools when adding NPCs. Examples include modifications running on SRO_Client, custom database management systems, and PK2 file editors. Such tools offer developers easier and faster ways to add NPCs.

Conclusion
In Silkroad private servers, the Add NPC Manually feature is a powerful way to enrich the in-game experience. However, it must be done carefully and supported by accurate data. Developers should consider both in-game balance and technical system compatibility when performing this task.
 

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kaydol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Üye ol
Giriş Yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş Yap

Tema düzenleyici

Tema özelletirmeleri