Jump to content

Recommended Posts

Hi I have problem with offlineshop bonus attr. When I add item to offlineshop with full 1-7 bonus then bonus are crash. Just when I close my shop and items come back or delete item from shop, items are bugged, bonus in this item are crash or disaper, also I can't change bonus in this item. This is the movie where is the problem.

Please help me about this or add some fix for that.

Thank you, regards.

Link to comment
https://metin2.dev/topic/10970-offlineshop-bonus-attr-bug-help-please/
Share on other sites

UP ! Shut up!? Bro I'm not your buddy. Shut up you can say to you mother or to you father,ok?. Right this system is from Ken but I don't know that if this one is for pay. In many comunity is for free. I think Ken should be intresting where his system is public. If is scam , he have to report this bro. I just wanna fix for this attr guys, maybe I don't wanna public this system in oficial server,aaaa? If you don't wanna hel me please be silent.

 

Please help some one who can help, ok? In topic please or private message.

 

#Push

  • Love 1
On 9. 3. 2016 at 1:53 PM, terrorr said:

UP ! Shut up!? Bro I'm not your buddy. Shut up you can say to you mother or to you father,ok?. Right this system is from Ken but I don't know that if this one is for pay. In many comunity is for free. I think Ken should be intresting where his system is public. If is scam , he have to report this bro. I just wanna fix for this attr guys, maybe I don't wanna public this system in oficial server,aaaa? If you don't wanna hel me please be silent.

 

Please help some one who can help, ok? In topic please or private message.

 

#Push

Yes on poor communities with few members with all stolen content? :D

Hi

I had this attr bug too. I'v solved it. It was simple, but hard to find what is wrong.

In offline shop config files (in core folders), the socket default is 4. Change it to the real number. (max socket = max stone = default 3)

 

I've solved 6-7 bonuses too.  If you have the latest public file just see char.cpp: 

Search for this:

 

char szColumns[QUERY_MAX_LEN], szValues[QUERY_MAX_LEN];

 

And make it like this below:

 

            char szColumns[QUERY_MAX_LEN], szValues[QUERY_MAX_LEN];


          int iLen = snprintf(szColumns, sizeof(szColumns), "id,owner_id,pos,count,price,vnum");
            int iUpdateLen = snprintf(szValues, sizeof(szValues), "%u,%u,%d,%u,%u,%u", pkItem->GetID(), GetPlayerID(), (pTable + i)->display_pos, pkItem->GetCount(), (pTable + i)->price, pkItem->GetVnum());

            iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ",socket0,socket1,socket2");
            iUpdateLen += snprintf(szValues + iUpdateLen, sizeof(szValues) - iUpdateLen, ",%ld,%ld,%ld", pkItem->GetSocket(0), pkItem->GetSocket(1), pkItem->GetSocket(2));

            iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ",attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6");
            iUpdateLen += snprintf(szValues + iUpdateLen, sizeof(szValues) - iUpdateLen, ",%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
                pkItem->GetAttributeType(0), pkItem->GetAttributeValue(0),
                pkItem->GetAttributeType(1), pkItem->GetAttributeValue(1),
                pkItem->GetAttributeType(2), pkItem->GetAttributeValue(2),
                pkItem->GetAttributeType(3), pkItem->GetAttributeValue(3),
                pkItem->GetAttributeType(4), pkItem->GetAttributeValue(4),
                pkItem->GetAttributeType(5), pkItem->GetAttributeValue(5),
                pkItem->GetAttributeType(6), pkItem->GetAttributeValue(6));

            char szInsertQuery[QUERY_MAX_LEN];
            snprintf(szInsertQuery, sizeof(szInsertQuery), "INSERT INTO %soffline_shop_item (%s) VALUES (%s)", get_table_postfix(), szColumns, szValues);
            std::auto_ptr<SQLMsg> pMsg(DBManager::instance().DirectQuery(szInsertQuery));
            pkItem->RemoveFromCharacter();

 

If doesn't works, than you doesn't have latest files, then PM me.

 

P.S. I don't want to fight anyone who had buy or not the system, It's everyone own business, and conscience. Peace

  • Love 1
  • 6 months later...
On 09/03/2016 at 5:48 PM, terrorr said:

RealReznov

Ok I gonna try it and I gonna let you know. :) Thanks for your reply brother...

Edit: Fixed. Thank you very much my friend.

@terrorr who you fix? i make the @RealReznov changes fix in server but no fix visual. if i see looks bad attr but if i buy the attr fix. You know if i need change something in client?

8 hours ago, Curinga said:

@terrorr who you fix? i make the @RealReznov changes fix in server but no fix visual. if i see looks bad attr but if i buy the attr fix. You know if i need change something in client?

Set for just 3 socket.

  • Love 1

unfortly my probleme presist. I add one item with for example 1 single bonus  bonus vs animal 4%. but in weapon information show inteligence 10%.  looks like the information no begin in attr_type0 but  begin in attr value0. but in sql the information is good and if i remove the item the item is good. Only visual bug :S

  • 8 months later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.