Jump to content

TMP4

Contributor
  • Posts

    1112
  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Posts posted by TMP4

  1. 3 hours ago, DrTurk said:

     

    Tha hell have you done with the subtypes?

    spacer.png

     

    B2T:

    Upload your item_length.h (from server src) and ItemCSVReader.cpp (from dumpproto) and item_proto.txt/sql

     

    ????

    I just copied it from a tutorial :D It is because at the enum the creator used costume_weapon = x, so that's why the gaps and a lot of people have it like that.

    Of course i removed those gaps in my files.

     

    He already uploaded his files and i already gave him the correct arSub28[] but he said it's not working, and i said than it should be not dump_proto's problem.

    But yes, maybe his problem in his item_proto.txt. (wrong value3)

  2. I think if you post the dump_proto's code (ItemCSVReader.cpp) you'll get help for free :)

    You did not got answer in your thread because people tired to ask always "Include your code, we're not mindreaders" :D

     

    For me it is like:

    static string arSub28[] = { "COSTUME_BODY", "COSTUME_HAIR", "NONE", "NONE", "NONE", "NONE", "NONE", "NONE", "NONE", "COSTUME_WEAPON_SWORD", "COSTUME_WEAPON_DAGGER", "COSTUME_WEAPON_BOW", "COSTUME_WEAPON_TWO_HANDED", "COSTUME_WEAPON_BELL", "COSTUME_WEAPON_FAN", "COSTUME_MOUNT", "COSTUME_SASH" };

    But it is the non value3 version, i think it's better :D But if you use the value 3 version you probably have just one "COSTUME_WEAPON" here like

    static string arSub28[] = { "COSTUME_BODY", "COSTUME_HAIR", "NONE", "NONE", "NONE", "NONE", "NONE", "NONE", "NONE", "COSTUME_WEAPON", "COSTUME_MOUNT", "COSTUME_SASH" };

    (And check costume_mount, costume_sash, maybe you installed some before so you have to place it before the weapon)

  3. They should, at least in normal inventory i'm sure, but this is special inventory that's why i said "maybe" :D

     

    Quote

    Can we upload old items differently to players' inventory?

    You have to write a query for it.(To move the items to an empty slot)

    I think it is possible but very very complex. I was never good in writing query so i'm not your man in that, sorry.

     

  4. Yes, correct.

     

    I hope that was the only bug and you're good.

    So basicly your problem was there was 2 or more items in the same slot because of that.

    Keep in mind the items what already uses the same slots can still produce the syserrs for you.

     

    Tell the users if they missing some items, leave their first slot line empty and log out for 7min.

    Maybe the missing items will appear.

  5. Okey i found it.

     

    			if (item->IsDragonSoul())
    				item->AddToCharacter(owner, TItemPos(DRAGON_SOUL_INVENTORY, iEmptyCell));
    #ifdef ENABLE_SPECIAL_STORAGE
    			else if (item->IsSpecialStorageItem())
    				item->AddToCharacter(this, TItemPos(item->GetSpecialWindowType(), iEmptyCell));
    #endif
    			else
    				item->AddToCharacter(owner, TItemPos(INVENTORY, iEmptyCell));

     

    replace the "this" with "owner" (Line 7750, be sure to replace just there!)

    You can see there is owner everywhere (normal and dragon soul), it is just a "typo" i think.

  6. Then it is really the special inventory's problem.

    Either post your cpp file (risking Itachi's anger) and we may fix it , or go back to Itachi with this video explanation.

     

    We need CHARACTER::PickupItem mostly from your char_item.cpp, especially the part under this

    else if (!IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_GIVE | ITEM_ANTIFLAG_DROP) && GetParty())

     

  7. 9 minutes ago, WeedHex said:

    show us char_item.cpp and char.cpp

     

    o_O after you gave me hate (due to a misunderstanding) when i said to a guy to use LC_IsNewCIBN instead of g_bChinaIntoxicationCheck (because that is Marty's and he used the kraizy.tgz) i thought you're against such things :D He will expose a lot of parts of their non warez system :)

     

    Anyway i feel like @xDwin kinda ignoring all of my comment so i do not really care for him.

    • Dislove 1
  8. So you already spent hundreds, maybe a thousand euro to your server, i'm really wonder why don't you just hire somebody now ?

    (No, not me, before you think i just say because of that :D

     

    Since just stackable items affected as you say, can you check if the unstacking process is okey in the special inventory?

    It should be similar to the normal inventory, you can take that as an example. (In CHARACTER::MoveItem)

    Maybe you can try to reproduce the problem too. Unstack an item, log out and wait for the flush (default 7min) and log in back.

     

    Also what Denis said above can be the problem's cause too in a very high percent...

  9. Maybe when they unstack the item with move_item it's not register the item as another item.

    But i'll honest with you. You'll be better to hire a developer. 

    We can write sentences what can be the cause but since you're not very familiar with c++ and problem solving, you don't go far with it.

     

    -We don't have access to your files and server

    -Most of us don't have special inventory, especially not Itachi's version

    -You cannot post his code to this forum either to show us cause it would be against the rules and he would be angry to you

     

    In the future, run a test server at least on your local machine for you to test out deeply the stuffs before it goes to the live server.

  10. That's the clientside what i uploaded for b2 and c2. (Other maps are available in every basic client, open season1 and season2.eix-epk)

    You can make the serverside with World Editor to dump a server_attr.

  11. Hungarian:

    Spoiler

     

    Hogyan üzemeld be:

     

    1. Változtasd meg a ServerURL-t a Globals.cs fájlban a sajátodra

    2. Fordítsd le a projectet VisualStudio-ban

    3. Csináld meg a listát a fájlokról a lister tool-al (Példa hogy néz ki a lista)

    4. Töltsd fel a kliensedet és a lista fájlt a webszerveredre (Példa hogy néz ki a mappa stuktúrája)

     

     

    • Metin2 Dev 10
    • Dislove 1
    • Not Good 1
    • Good 1
    • Love 2
  12. 39 minutes ago, dako12 said:

    Also ken have checkname in the title so not possible to add name with spaces or specials chars anymore but I think it's worth to keep it that way as I don't have as much knowledge in C+ to choose what's best for security (offtopic)

     

    This was a problem what i had to solve when i was a dev at a srv, i removed the checkname function and extended the navicat/player/banword table with the suspecius characters like : ; ' " % @ -- so we were good. Banword check are default in Ken's offshop, it is right under the check_name.

  13. I remember one thing what was not fixed in most server, but maybe Ken later fixed it since you said you have the non-public newer version.

    Price change do not have p2p packet so if you change price from other core, the guests will not kick out. There was some nasty player who did post lots of items for 1 yang what cost more, quickly changed channel and he fastly changed the price to higher, and the victims thought they buy items for 1 yang, but they bought for 999.999.999 if the nasty player had luck...

     

    Either make the p2p packet or at price change at offlineshop_manager.cpp write a return if the npc is not available.

    But as i say, maybe Ken fixed this later... If so don't judge me please.

     

    As of sash, i don't use LennT version but the official-ish one, but if you check if offline shop is open (as simple shop, safebox, trade etc) you will not have problems with that.

  14. With notepad++ change the file's (the .cpp) encoding to the correct one. Most of the time "ansi" is the needed.

    Also since it's an LC_TEXT do the same with your locale_string.txt.

     

    xOoie.png

     

    Probably you want to ctrl+a ctr+c the cpp's text and overwrite after changing the encoding, because it will most likely replace the characters with ?? in your cpp, but after you can delete the whole and paste what you ctrl+c before so you will not have ??.

    • Love 1
×
×
  • 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.