Jump to content

Draveniou1

Active Member
  • Posts

    252
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    100%

Posts posted by Draveniou1

  1. https://en-wiki.metin2.gameforge.com/index.php/Blood_Pill

    -Items Blood Pill-

    Fixed the Blood Pill item

     

    Use by right clicking the item

    When a Blood Pill is used you will notice a minus sign (-) to the left side of your character's screen . Clicking that takes one point from the stat you choose and you can add it to another stat later .

     

    #1 Bug

    If you have x94 stat and hit 4 pills and spend 4 stat at the end when you add another stat then the stat doubles from 90 to 160

     

    #2 Bug

    In some serverfiles it stat can be as high as -90 -80 -70 -30 -10

    1) OPEN: cmd_general.cpp
    2) Search: ACMD(do_stat_minus)
    3) Change with:
    
    ACMD(do_stat_minus)
    {
        char arg1[256];
        one_argument(argument, arg1, sizeof(arg1));
    
        if (!*arg1)
            return;
    
        if (ch->IsPolymorphed())
        {
            ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("둔갑 중에는 능력을 올릴 수 없습니다."));
            return;
        }
    
        if (ch->GetPoint(POINT_STAT_RESET_COUNT) <= 0)
            return;
    
        if (!strcmp(arg1, "st"))
        {
            if (ch->GetRealPoint(POINT_ST) <= JobInitialPoints[ch->GetJob()].st)
                return;
            BYTE stpoints = 0;
            stpoints = POINT_ST;
            ch->SetRealPoint(stpoints, ch->GetRealPoint(stpoints) - 1);
            ch->SetPoint(stpoints, ch->GetPoint(stpoints) - 1);
            ch->ComputePoints();
            ch->PointChange(stpoints, 0);
        }
        else if (!strcmp(arg1, "dx"))
        {
            if (ch->GetRealPoint(POINT_DX) <= JobInitialPoints[ch->GetJob()].dx)
                return;
            BYTE dxpoints = 0;
            dxpoints = POINT_DX;
            ch->SetRealPoint(dxpoints, ch->GetRealPoint(dxpoints) - 1);
            ch->SetPoint(dxpoints, ch->GetPoint(dxpoints) - 1);
            ch->ComputePoints();
            ch->PointChange(dxpoints, 0);
        }
        else if (!strcmp(arg1, "ht"))
        {
            if (ch->GetRealPoint(POINT_HT) <= JobInitialPoints[ch->GetJob()].ht)
                return;
            BYTE htpoints = 0;
            htpoints = POINT_HT;
            ch->SetRealPoint(htpoints, ch->GetRealPoint(htpoints) - 1);
            ch->SetPoint(htpoints, ch->GetPoint(htpoints) - 1);
            ch->ComputePoints();
            ch->PointChange(htpoints, 0);
            ch->PointChange(POINT_MAX_SP, 0);
        }
        else if (!strcmp(arg1, "iq"))
        {
            if (ch->GetRealPoint(POINT_IQ) <= JobInitialPoints[ch->GetJob()].iq)
                return;
            BYTE iqpoints = 0;
            iqpoints = POINT_IQ;
            ch->SetRealPoint(iqpoints, ch->GetRealPoint(iqpoints) - 1);
            ch->SetPoint(iqpoints, ch->GetPoint(iqpoints) - 1);
            ch->ComputePoints();
            ch->PointChange(iqpoints, 0);
            ch->PointChange(POINT_MAX_HP, 0);
        }
        else
            return;
    
        ch->PointChange(POINT_STAT, + 1);
        ch->PointChange(POINT_STAT_RESET_COUNT, - 1);
        ch->ComputePoints();
    }

     

     

    • Metin2 Dev 4
    • Good 1
    • Love 2
  2. source:

    DWORD level = m_pkOwner->GetQuestFlag("mobquest.("mob_"..mobVnum"));

    questside:

    pc.setqf("mob_"..mobVnum,pc.getqf("mob_"..mobVnum),1)

     

    working only this:

    DWORD level = m_pkOwner->GetQuestFlag("mobquest.("mob_"));

    ------------------------

    and not work this ?

     DWORD level = m_pkOwner->GetQuestFlag("mobquest.("mob_"..mobVnum"));

     

    how to solve it ?    I need this at the source  GetQuestFlag("mobquest.("mob_"..mobVnum"));    and not   GetQuestFlag("mobquest.("mob_"));

    Is there any idea?

     

  3. 38 minutes ago, TheLionIK said:

    First, a fresh install of vanilla freebsd using 700mb ram is impossible.

    The only reason why that would happen is due to third party software.

    Most (bad, just ignore them) providers will provide you with a freebsd vps with pre-installed software. You just manually install freebsd in those cases, as you should do anyway.

    Regarding the "USB / CAMERA", you are reading topics from 2012 where people built their own kernels stripping them, for absolutely no reason whatsoever, as it has 0% performance impact in the real world. You maybe save what, 20MB disk size....? A metin2 syslog easilly takes more then that.

     

    Just install MANUALLY your freebsd without selecing services that you wont need.

    Then if you want performance increases work on your metin2 source, because thats where the crap performance comes from, not from a rock-solid OS like freebsd.

    What we need can be ordered from freebsd but it definitely costs a lot of money and I do not have such financial thinking.  And to make a message to metin2dev maybe someone has such a freebsd the cleaner the freebsd the less heavy it will be, I personally do not know from freebsd I mention it I only know the basics the basics

     

    I may be wrong but I had a thought that I am trying to see it happens with freebsd and martysama has made me very suspicious after the sendingmail was blocked

     

    The Mr @ Karbust and everyone else thinks I'm trolling. I never fooled about that we ask first 

    I once heard on the freebsd forum about the bad codes they upload and I'm trying to find that post in that forum to show you

    • Lmao 1
  4. 23 minutes ago, Karbust said:

    omfg-are-you-serious.gif

    At this point I can't decide if you are just trolling or your are dumb as f***. You are talking about the drivers INSIDE THE KERNEL that's no system or software or none of that shit you have been talking about. If you want to remove this you just remove them from the fucking KERNEL and build it yourself. This doesn't affect performance at all.

    Go ahead and report me for "bothering" your.

    I can not do it myself I say if you do not pay in the freebsd forum you can not do anything yourself so I do the post because I'm looking for a freebsd full clean and if anyone has anything they can sell me  

  5. 12 hours ago, martysama0134 said:

    I don't suggest freebsd 11.4 because it reached the end-of-life support. You should use either freebsd 13.0 or 12.2 (when 12.3 will be out, 12.2 will be trashed away)

    FreeBSD 13 Will it be clean or will all have these useless codes as in 11.4 ?   If you notice FreeBSD loads close to 700 MB on a host medium these 700 MB ram is from bad code   Thanks

  6. 9 minutes ago, Denizeri24 said:

    he is trolling. all the questions he asks are as if they were asked by an orangutan with 30 iq points

    troll? you checking freebsd and say me ?

     

    I Know only for sendMail  in freebsd   But there are more useless codes that I am trying to find and remove @Denizeri24 you are useless  who have no idea 

    22 minutes ago, TheLionIK said:

    What the actual fuck are you talking about, seriously.

    "without useless codes active"

    Seriously, what the hell you talking about?

    This is not windows thats comes with solitaire or pinball (xp you will be missed), you are talking about the bsd family that just destroys any junkix (junk + linux got it or...?) distro.

    Seriously, i can start a 512mb ram and put online a metin2 server with 1ch, so what do you wanna clean here?

    Oh wait, you think that deleting man pages for examples makes your system faster?

    Its completly non-sense that its hard for me to realize if you are talking seriously or trolling, but both cases are troubling.

    I'm not trolling I just want to know the rest of the codes and remove them because so far I know about sendmail but there are many codes

    25 minutes ago, Denizeri24 said:

    he is trolling. all the questions he asks are as if they were asked by an orangutan with 30 iq points

    Dude who trolling? I am trying to find out the rest of the codes, there is sendmail but there are more codes

     

    I Know only this code

    1) SendMail - disable 

    2) Pkg - fixxing 

     

    There are many useless codes may know this dev@ martysama0134    And I do not know if they share a full 100% fix

     

    • Lmao 4
  7. 6 minutes ago, Karbust said:

    Bruh, you never tried it, but you are sure as fuck that it would work. I admire your confidence and persistence...

    Learn FreeBSD, do it yourself and then share the results.

    I do not know from freebsd why i am doing this message to find such a freebsd 

     

    edit:

    @ Karbust  I know only for SendMail  but there are many other systems that load unjustly

    • Lmao 1
  8. 3 hours ago, Gurgarath said:

    You are doing a big misunderstanding here. I will try to explain the best as I can. There is no memory leak "as-is" in FreeBSD. Otherwise it will mostly get fixed really soon because it is considered critical in (mostly) any specifications. What you probably want to do is to remove any "bloatware" in FreeBSD and long-story-short, there isn't any.

    Of course there are services that you would most likely want to disable (like SendMail), but original FreeBSD iso (FreeBSD boot-only iso too) doesn't have anything that takes a lot of memory or CPU usage altogether and trying to remove things "the hard way" will most of the time result in damaging the OS. What you ask sounds like "I want to remove everything on Windows that isn't necessary to run the Office suite", it doesn't make sense as you will also (if you do the things correctly) end up installing additional stuff such as MySQL, IPFW, Screen maybe or whatever suits your needs.

    Like Karbust shown, his FreeBSD takes up to 617Mb and 1 to 2% of CPU usage, which is really fine (this is less than any modern browser). Additionnaly, you probably run a 32bits game and db, which will never use more than 2 to 4gb of Ram per core and if you have configured your MySQL reasonably, it will never go really high unless you have done something wrong.

    Tldr; even if you save 200Mb of RAM (which is 1/3 of what the system is using, this is absurdly huge if we keep the ratio), you will probably never make a good use of it and will have way more issues than what 200mb of RAM could possibly cause.

    Try to find freebsd without useless codes active
    And then you can tell me your time and your details in detail and you will notice big differences in speed your server and in game ?

    • Think 1
    • Lmao 2
  9. 3 minutes ago, Karbust said:

    Do you even know what memory leaks are?

    You probably should read this: https://owasp.org/www-community/vulnerabilities/Memory_leak

    I'm not talking about the game's memoryleak

    I say if I remove the useless freeBsd codes

    You can ask in the forum freebsd and you will see how memoryleak will be reduced ?

    Simple we must first find pure freebsd without useless codes active

    • Lmao 2
  10. 4 minutes ago, Karbust said:

    Memory leaks result from somewhere between the chair and the keyboard. Don't blame the OS, much less a battle-tested OS like FreeBSD.

    I do not blame the system I just want to remove from FreeBSD all junk code that does not contribute to metin2

    There will just be more server speed if removed I know   And memoryleak will be reduced by 30%

    • Lmao 2
  11. 1 minute ago, Karbust said:

    When you make a FreeBSD installation it asks you what you want to install. Just remove a few boxes, and pray it still works. Whatever is there is necessary, I don't know why you want to "delete the junk code". Sendmail comes enabled by default, you have to disable it manually...

    If you have a good reason why you want a completely stripped version of FreeBSD, maybe the folks at https://forums.freebsd.org may be able to help you out. For metin2 there are 0 reasons why you would need something like that...

    If you have freebsd with deleted unnecessary codes you do not have memoryleak ? so I want to find freebsd without unnecessary codes

     

    I know it exists but I see many looking without any result

     

    It is difficult to find and you can order from the FreeBSD administrator but it will definitely cost a lot of money

    • Lmao 2
  12. 4 minutes ago, Karbust said:

    Just use the official ISO...

    It's available for download on FreeBSD's website...

    http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/ISO-IMAGES/11.4/

     

    I know this but I do not have much knowledge in FreeBSD and I want to delete the junk code that is active in FreeBSD

    How can we delete junk FreeBSD code? I only know about SendMail from martysama but the rest?

    • Lmao 1
  13. 17 hours ago, Fakis said:

     i have

    Remove #define ENABLE_FIX_QUICK_SLOT   from service.h

     

    change 

    #ifdef ENABLE_FIX_QUICK_SLOT   
        if(pinfo->slot.type == QUICKSLOT_TYPE_ITEM)
        {
            LPITEM item = NULL;
            
            TItemPos srcCell(INVENTORY, pinfo->slot.pos);
            
            if (!(item = ch->GetItem(srcCell)))
                return;
            
            if (item->GetType() != ITEM_USE && item->GetType() != ITEM_QUEST)
                return;
        }
    #endif

     

    with:

     

    #ifndef ENABLE_FIX_QUICK_SLOT   
        if(pinfo->slot.type == QUICKSLOT_TYPE_ITEM)
        {
            LPITEM item = NULL;
            
            TItemPos srcCell(INVENTORY, pinfo->slot.pos);
            
            if (!(item = ch->GetItem(srcCell)))
                return;
            
            if (item->GetType() != ITEM_USE && item->GetType() != ITEM_QUEST)
                return;
        }
    #endif

     

    • Not Good 1
  14. @ ReFresh

     

    quest give_itemssss begin
    	state start begin
    			local giveitemss = {
    				[0] = {15, 1}, {11205, 1}, {12205, 1},
    				[1] = {1005, 1}, {11405, 1}, {12345, 1},
    				[2] = {15, 1}, {11605, 1}, {12485, 1},
    				[3] = {7005, 1}, {11805, 1}, {12625, 1}
    			};
    			table.insert(giveitemss[pc.get_job()], "Not now. ");
    			local item_give = select_table(giveitemss[pc.get_job()]);
    			if (item_give ~= table.getn(giveitemss)) then
    				pc.pc.give_item2(item_give);
    			end
    		end
    	end
    end

     

    • Cry 1
    • Smile Tear 1
    • Confused 1
  15. 1 hour ago, TheLionIK said:

    Or...use item award like a normal human being.  Thanks.

    I agree, but I also tried to make the regular item-shop

     

    --------------------------------------------------------------

    The problem with the normal item-shop is that items are deleted from memory after a time limit

    --------------------------

    char szQuery[QUERY_MAX_LEN]; snprintf(szQuery, sizeof(szQuery), "DELETE FROM item%s WHERE id=%u", GetTablePostfix(), m_data.id); CDBManager::instance().ReturnQuery(szQuery, QID_ITEM_DESTROY, 0, NULL);

    --------------------------------------------------------------

  16. 1 minute ago, blaxis said:

    No ? AttachingDataType is not sorting count.

     

    AttachingDataType = GameType.h :

    	// Attaching Data
    	enum EAttachingDataType
    	{
    		ATTACHING_DATA_TYPE_NONE, //0 
    		ATTACHING_DATA_TYPE_COLLISION_DATA, //1
    		ATTACHING_DATA_TYPE_EFFECT, //2
    		ATTACHING_DATA_TYPE_OBJECT, //3 I USE THIS FOR HAIR OBJECT(GR2)
    
    		ATTACHING_DATA_TYPE_MAX_NUM,
    	};

    So I have no problem with "AttachingDataType" ?

    I have to deal with these for 1.5 years and I do not remember well, if I remember I will send you a message

    • Good 1
  17. 1 minute ago, blaxis said:

    The number given to the AttachingDataCount must be equal to the number of blocks such as AttachingData00. If the last block is AttachingData03, AttachingDataCount = 4. When I give 5 or more, the character is completely bare because it returns a null value.

     

    Group AttachingData
    {
    	AttachingDataCount	3
    
    	Group AttachingData00
    	{
    		AttachingDataType	1
    		
    		isAttaching			0
    		AttachingModelIndex	0
    		AttachingBoneName	"Bip01"
    		CollisionType		1
    		
    		SphereDataCount		1
    		Group SphereData00
    		{
    			Radius			40.000000
    			Position		0.000000 0.000000 100.000000
    		}
    		}
    	Group AttachingData01
    	{
    		AttachingDataType	1
    		
    		isAttaching			0
    		AttachingModelIndex	0
    		AttachingBoneName	"Bip01"
    		
    		CollisionType		3
    		SphereDataCount		1
    		Group SphereData00
    		{
    			Radius			70.000000
    			Position		0.000000 0.000000 100.000000
    		}
    	}
    	Group AttachingData02
    	{
    		AttachingDataType	3
    		
    		isAttaching			1
    		AttachingModelIndex	0
    		AttachingBoneName	"Bip01"
    		ObjectScriptName	"D:\ymir work\pc\warrior\hair\hair_4_1.gr2"
    	}
    }

     

    When I do AttachingDataCount = 4, nothing is read and the character is bare. So when I do 3, the armor shows up but the hair doesn't.

    https://metin2.download/picture/YL6ZjRlbaeEMho0Y465yKn74zfZ7Tcgm/.jpg  you have fail ?  please check photo

    • Metin2 Dev 1
  18. 1 minute ago, blaxis said:

    "AttachingDataCount" I guess this is not easy to change.

    Because when I give a large number, the armor does not appear either, only a bare character appears ? I really need this and I couldn't find the solution for 3-4 days.

    I would really appreciate it if you can find it ?

    check with AttachingDataCount 4    and not 999

    @blaxis

    https://metin2.download/picture/n0Zhm8Qlqva772Kdl98TWnR6sDQD1RIt/.jpg  ?  xDDD

    You have 1 and in 1-2  check up photo  https://metin2.download/picture/n0Zhm8Qlqva772Kdl98TWnR6sDQD1RIt/.jpg

    https://metin2.download/picture/n0Zhm8Qlqva772Kdl98TWnR6sDQD1RIt/.jpg

    • Metin2 Dev 1
  19. 2 minutes ago, blaxis said:
    ScriptType            RaceDataScript
    
    BaseModelFileName     "d:/ymir work/pc/warrior/115_2.GR2"
    
    Group HairData
    {
    	PathName	"d:/ymir Work/pc/warrior/"
    	HairDataCount 			999
    }
    
    Group AttachingData
    {
    	AttachingDataCount	3
    
    	Group AttachingData00
    	{
    		AttachingDataType	1
    		
    		isAttaching			0
    		AttachingModelIndex	0
    		AttachingBoneName	"Bip01"
    		CollisionType		1
    		
    		SphereDataCount		1
    		Group SphereData00
    		{
    			Radius			40.000000
    			Position		0.000000 0.000000 100.000000
    		}
    		}
    	Group AttachingData01
    	{
    		
    		AttachingModelIndex	0
    		AttachingBoneName	"Bip01"
    		
    		CollisionType		3
    		SphereDataCount		1
    		Group SphereData00
    		{
    			Radius			70.000000
    			Position		0.000000 0.000000 100.000000
    		}
    	}
    	Group AttachingData02
    	{
    		AttachingDataType	3
    		
    		isAttaching			1
    		AttachingModelIndex	0
    		AttachingBoneName	"Bip01"
    		ObjectScriptName	"D:\ymir work\pc\warrior\hair\hair_4_1.gr2"
    	}
    }

    Don't work ? The armor is visible but the hair is not..

    I made a similar thing 1.5 years ago and I can not remember how I made it haha I will try to find it

    But all I remember was changing from 50 to 999 count

    • Metin2 Dev 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.