SR_GameServer BSOBJ when NPC optlevel > 11

04/23/2021 23:08 Muhand95#1
My pserver is working fine with no issues. I decided to add a NPC and sun items and that worked 100% fine no issues.

However, the problem is when I decided to change NPC items to +12 in _RefScrapOfPackageItem.

I change the OptLevel to 12 and then launch SR_GamerServer and I get "error data that is a magicoption level" and then GameServer terminates. This problem only happens when I change the item to +12. If i set it to +11 everything is fine. It only happens when i set +12 or larger.

Here is a picture of the error

[Only registered and activated users can see links. Click Here To Register...]
I have to attach a URL... (I find stupid i cant add an image because i dont have certain number of posts, oh well)

The item I am trying on is "ITEM_EU_M_CLOTHES_11_SA_SET_B_RARE"

Please don't ask me to leave items +11 ^^ I wouldn't ask if I wanted to keep them at +11. I just want to understand what is going on.

EDIT: I have already unlocked above +12 in my server. I can make items of any plus as I wish. I just cant add them to NPC.
04/24/2021 00:26 Devsome#2
#moved
04/25/2021 16:09 goodooneo#3
as far as i know, this limit is coded in the gameserver same as gm console can only create item +8 max,but i couldn't find it's offset in the gameserver.
if you don't want to leave it with +11 at the npc then use a work around, for example add the items +0 and add a scroll to make them +12 with cost 1 gold! in the same tab at that npc! ^_^
make the scroll and add this to _addlogitem
PHP Code:
IF (@Operation 41) and (@ItemRefID =blabla )
   
Begin
update _Items  set optlevel
=12 where ID64 =( select ItemID from _Inventory where CharID = [MENTION=395373]Chari[/MENTION]and Slot 13 )
end 
04/27/2021 08:33 Muhand95#4
Got you. Thats what I thought as well. Thanks a lot for your help.