Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Questions & Answers
You last visited: Today at 13:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Adding/Editing Items at NPC -> Gameserver crashes

Discussion on Adding/Editing Items at NPC -> Gameserver crashes within the SRO PServer Questions & Answers forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 115
Join Date: Apr 2020
Posts: 25
Received Thanks: 5
Adding/Editing Items at NPC -> Gameserver crashes

Hello everyone,

So, we're trying to add/edit the items at some of our NPCs (Jangan, Donwhang & Constantinople). We've edited items (scrolls, avatars, ...) at NPCs before and it worked out just fine.


We want to give our players the possibility to acquire D11 and D12 full blue & SoX.

So far, everytime we tried to edit anything about those NPCs, our gameserver just crashes/closes upon trying to start it.

This is what we've tried so far:

1) Used a tool to edit our NPCs -> gameserver just crashes/closes

2) Manually add the lines in _RefShopGoods, _RefPackageItem, _RefScrapOfPackageItem, _RefPricePolicyOfItem -> gameserver just crashes/closes

3) Edit the existing lines in all of those tables, for example ONLY changing the lines for the D1 Sword in Jangan's NPC to D11 Sword -> gameserver just crashes/closes


This is what the lines looked like. In this example, we wanted to edit the D1 Sword from Weapon Trader NPC at Jangan to D11 for testing purposes:

RefPackageItem:
PHP Code:
1    15    2697    PACKAGE_ITEM_CH_SWORD_11_C_RARE    0    EXPAND_TERM_ALL    SN_ITEM_CH_SWORD_11_C_RARE    SN_ITEM_CH_SWORD_11_C_RARE_TT_DESC    item\china\weapon\sword_11.ddj    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
RefScrapOfPackageItem (126 referring to the durability, we also tried it with 0, same result)
PHP Code:
1    15    PACKAGE_ITEM_CH_SWORD_11_C_RARE    ITEM_CH_SWORD_11_C_RARE    8    0    126    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
RefPriceOfPolicyItem
PHP Code:
1    15    PACKAGE_ITEM_CH_SWORD_11_C_RARE    1    0    100000000    0    xxx    0    xxx    0    xxx    0    xxx 
RefShopGoods
PHP Code:
1    15    STORE_CH_SMITH_TAB1    PACKAGE_ITEM_CH_SWORD_11_RARE    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx 

We are at a point where we don't know what we might be forgetting or missing out. Is there anything you see that we simply don't!?

Would appreciate any form of idea or insight!
OracleSilkroad is offline  
Old 07/07/2022, 11:58   #2
 
Judgelemental's Avatar
 
elite*gold: 0
Join Date: Aug 2013
Posts: 1,534
Received Thanks: 835
Quote:
Originally Posted by OracleSilkroad View Post
Hello everyone,

So, we're trying to add/edit the items at some of our NPCs (Jangan, Donwhang & Constantinople). We've edited items (scrolls, avatars, ...) at NPCs before and it worked out just fine.


We want to give our players the possibility to acquire D11 and D12 full blue & SoX.

So far, everytime we tried to edit anything about those NPCs, our gameserver just crashes/closes upon trying to start it.

This is what we've tried so far:

1) Used a tool to edit our NPCs -> gameserver just crashes/closes

2) Manually add the lines in _RefShopGoods, _RefPackageItem, _RefScrapOfPackageItem, _RefPricePolicyOfItem -> gameserver just crashes/closes

3) Edit the existing lines in all of those tables, for example ONLY changing the lines for the D1 Sword in Jangan's NPC to D11 Sword -> gameserver just crashes/closes


This is what the lines looked like. In this example, we wanted to edit the D1 Sword from Weapon Trader NPC at Jangan to D11 for testing purposes:

RefPackageItem:
PHP Code:
1    15    2697    PACKAGE_ITEM_CH_SWORD_11_C_RARE    0    EXPAND_TERM_ALL    SN_ITEM_CH_SWORD_11_C_RARE    SN_ITEM_CH_SWORD_11_C_RARE_TT_DESC    item\china\weapon\sword_11.ddj    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
RefScrapOfPackageItem (126 referring to the durability, we also tried it with 0, same result)
PHP Code:
1    15    PACKAGE_ITEM_CH_SWORD_11_C_RARE    ITEM_CH_SWORD_11_C_RARE    8    0    126    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx 
RefPriceOfPolicyItem
PHP Code:
1    15    PACKAGE_ITEM_CH_SWORD_11_C_RARE    1    0    100000000    0    xxx    0    xxx    0    xxx    0    xxx 
RefShopGoods
PHP Code:
1    15    STORE_CH_SMITH_TAB1    PACKAGE_ITEM_CH_SWORD_11_RARE    0    -1    xxx    -1    xxx    -1    xxx    -1    xxx 

We are at a point where we don't know what we might be forgetting or missing out. Is there anything you see that we simply don't!?

Would appreciate any form of idea or insight!
Make sure you have either disabled or removed the highlighted line because you might not want to add it onto already existing lines.




And second, if you are using a default vSRO 1.188 database the item you are trying to add is disabled

Judgelemental is offline  
Old 07/07/2022, 14:15   #3
 
elite*gold: 115
Join Date: Apr 2020
Posts: 25
Received Thanks: 5
Quote:
Originally Posted by Judgelemental View Post
Make sure you have either disabled or removed the highlighted line because you might not want to add it onto already existing lines.




And second, if you are using a default vSRO 1.188 database the item you are trying to add is disabled



Thank you so much for your reply!

The item is active, Service is on 1 in _RefObjCommon and we can spawn it ingame just fine.

With regards to disabling/removing the line: we've both tried to add a new line and add the item to a free slot of the NPC and[ to simply edit an existing line but changing the item that it references, but neither of those things worked. Our gameserver just didn't want to initialise and always closed down.
OracleSilkroad is offline  
Old 07/07/2022, 14:52   #4

 
Dallin¥'s Avatar
 
elite*gold: 33
Join Date: Mar 2014
Posts: 473
Received Thanks: 862
according to the line you are adding to your _RefScrapOfPackageItem your data value is wrong


SELECT a.Dur_L FROM SRO_VT_SHARD.dbo._RefObjItem a WITH(NOLOCK)
JOIN SRO_VT_SHARD.dbo._RefObjCommon b WITH(NOLOCK) on a.ID=b.Link
where b.CodeName128 like 'ITEM_CH_SWORD_11_C_RARE'

by using this query you will be able to get the correct data of each item.
Dallin¥ is offline  
Thanks
2 Users
Old 07/07/2022, 15:04   #5
 
elite*gold: 115
Join Date: Apr 2020
Posts: 25
Received Thanks: 5
Quote:
Originally Posted by Dallin¥ View Post
according to the line you are adding to your _RefScrapOfPackageItem your data value is wrong


SELECT a.Dur_L FROM SRO_VT_SHARD.dbo._RefObjItem a WITH(NOLOCK)
JOIN SRO_VT_SHARD.dbo._RefObjCommon b WITH(NOLOCK) on a.ID=b.Link
where b.CodeName128 like 'ITEM_CH_SWORD_11_C_RARE'

by using this query you will be able to get the correct data of each item.
Thank you so much, Dallin! We'll try that one out later this evening and will let you know if it worked.

Quote:
Originally Posted by Dallin¥ View Post
according to the line you are adding to your _RefScrapOfPackageItem your data value is wrong


SELECT a.Dur_L FROM SRO_VT_SHARD.dbo._RefObjItem a WITH(NOLOCK)
JOIN SRO_VT_SHARD.dbo._RefObjCommon b WITH(NOLOCK) on a.ID=b.Link
where b.CodeName128 like 'ITEM_CH_SWORD_11_C_RARE'

by using this query you will be able to get the correct data of each item.

Update: It worked with your help, thank you so much!

We accidentally entered the wrong data values, they already had the additional values granted from the blue on them.


Thread can be closed.
OracleSilkroad is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Adding __DAILY_GIFT crashes
03/11/2020 - Flyff Private Server - 11 Replies
The resdata.inc window was also added and crashed into the world. . This is my debug https://prnt.sc/rcbygd
Visualize max skill / adding new npc item / adding new npc
04/10/2016 - SRO Private Server - 4 Replies
Hello ! I'm a little bit confused about disabling some skills from the client.You know if a server is cap 80 I don't want skills above to appear.I tried to make this happen some time ago and the client crashed every time I opened the skill window "S". I know it's about disabling some skills by putting 0 instead of 1 in a line but how do I do it in the proper way because, as I said, it crashed every time. And secondly, is there a software of an easy way to add new NPCs, add new items to...
Adding NPC's and Adding Items in Shopping Mall
03/19/2015 - CO2 Private Server - 21 Replies
Hello there, I have an 5518 source; Albetros Source. Now I have a few questions about it. 1. How do you add new NPC's and where can I find them in the Source? 2. How to add items in the Shopping Mall. I tried a few things but that didn't helped me alot. 3. How to set game char to GM. I tried to give it 5 but that didn't helped either. I looked in the Commands file and that was 5. But it didn't helped. Thanks...
Adding NPC in NPC Dialog
12/17/2013 - CO2 Private Server - 3 Replies
Okay so I'm running 5165 (Conqure SX) I'm new to Conqure and a little rusty in c# I was wondering weather I could charge more cps each time you want a higher level so 15-16 costing 2k cps and 16-17 3k and if so would this be about right #endregion #region Vanish CO leveling NPC case 0001: { if (option == 0) ...
[Question] Editing, making NPC and adding Commands...
01/17/2009 - CO2 Private Server - 5 Replies
hey guys? i was just wondering, cause i just setup my own private server, how i can edit, and/make NPC's , because i want to make my own Source Plus how can i Incorporated more commands... like how would i had this command... http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/201441-allto-me-command.html And one last question.... how could i change item Colours and effect?



All times are GMT +1. The time now is 13:16.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.