Jump to content

Offlineshop bonus attr bug - Help please $$$


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
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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 8 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Moving server from FreeBSD 11.2 to 13.2 - lib needed

    2. 0

      I just implemented some costumes and they are not visible

    3. 0

      Skill Tree Problem

    4. 97

      Ulthar SF V2 (TMP4 Base)

    5. 5

      Client Crashes through Offline Shop (Ikarus)

    6. 5

      VIVY-WORLD2 - FARM TO THE TOP

    7. 0

      ToolTip Bug?

    8. 0

      Skill tree build erorr

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.