Jump to content

mkhzaleh

Community
  • Content Count

    305
  • Joined

  • Last visited

  • Days Won

    30

Posts posted by mkhzaleh


  1. hello there!
    this small optimizing for 

    _evtGameOptionFormMouseDown


    normal code will run every functions in the list even if its same previous value
    example:

    unknown.png?width=710&height=473

    so what we do small optimize to call changed values in system options only " this helpful if you are using  hide effects/apps etc"
    unknown.png

    the modification:

    open UISystemForm.cpp and search for :
    void CSystemMgr::_evtGameOptionFormMouseDown(CCompent* pSender, int nMsgType, int x, int y, DWORD dwKey)


    for example 
    unknown.png

    we change it to 

    unknown.png

    now repeat same steps for the rest options  

     

    	pGroup = g_stUISystem.cbxHelpMode;
    	if (pGroup)
    	{
    		bool bHelpMode = pGroup->GetActiveIndex() == 1 ? true : false;
    		if (g_stUISystem.m_sysProp.m_gameOption.bHelpMode != bHelpMode)
    		{
    			g_stUISystem.m_sysProp.m_gameOption.bHelpMode = bHelpMode;
    
    			if (!bHelpMode) g_stUIStart.ShowLevelUpHelpButton(bHelpMode);
    			g_stUIStart.ShowInfoCenterButton(bHelpMode);
    
    			::WritePrivateProfileString("gameOption", "helpMode", bHelpMode ? "1" : "0", "./user/system.ini");
    		}
    
    	}

     

    • Like 6

  2. if you are not the staff member then stfu and  your retard 
    as @Rogue screenshots team asked them nicely to stop using  ea  compiled client 
    and in return you & your retard  friend just changing ip & hiding server from all other server owners so stfu community do not need such bitches like you and your friend ,
    simply if you want to open a server " work on your own files "


  3. what do you expect from a person stealing high rates client after stealing "ea client"

    and don't even bother to change rates?
    unknown.png

    what can you find in their steal collection ?

     

    unknown.png


    unknown.png

     

    unknown.png

     

     

     

     

     

    8 hours ago, A guy said:

    Then PKO staff seems like they're angry about this, reason for sabotage attacks and so.. OKKEY.


    so you can call it  thieves sabotage and we were so kind didn't leak your files yet
     

    ""C:\Users\rafa223\Desktop\Meu Server File(Teste da Cheat)"



     

    • Haha 2

  4. we leave understanding english for you 😜
    and why  i should share them? if you want something just study it?
     

    Quote

     I don't give a fuck about code optimization right there

    that's normal newbies never worry about that?

     

    Quote

    Ohh, you just showed me how pathetic you really are, crying about you two lines? Don't want them shared? Are they gonna change the universe? Complaining about a leaked game?

    i see you are crying out there? its so simple we won't share x things we made ,for someone will use for his benefit & already there is few servers like that kingdom which is stole ea clients to use it even without permission 

    well enough drama from such newbies people like you as well 😂 so stop acting as"pro "


  5. 12 hours ago, J0k3r said:

    very informative answer, I think everybody is going to benefit from it, even I was inspired by it...
    If he had access to the client source "or" had the knowledge why would he bother asking to get such an answer?
    any ways cause you just inspired me, I'm posting this.
     

     

    Hey fella, open up "MouseDown.cpp" file and find the following functions 

    
    CMouseDown::_AttackCha
    CMouseDown::_AttackArea
    
    add this on top of their body
    
    short nJob = pMain->getGameAttr()->get(ATTR_JOB);
    
    enum class rJob {
      Explorer = 4,
      Herbalist = 5,
      Cleric = 13,
      Sealmaster = 14,
      Voyager = 16,
    };
    
    for _AttackCha replace the following:
    if(pSkill->IsAutoAttack() && g_pGameApp->IsShiftPress())
    {	
      if (_pAutoAttack->AttackStart(pMain, pSkill, pTarget))
      	return true;		
    }
    
    with this:
    
    if( pSkill->IsAutoAttack() && g_pGameApp->IsShiftPress() )
    {
      switch (nJob) {
        case rJob::Explorer: // if you're using modern c++, you can add [[fallthrough]] for the rest of the cases
        case rJob::Herbalist:
        case rJob::Cleric:
        case rJob::Sealmaster:
        case rJob::Voyager:
       		g_pGameApp->SysInfo("Autoattack is disabled for magic classes!");
          	break;
        default:
       		if (_pAutoAttack->AttackStart(pMain, pSkill, pTarget))
          		return true;
      }		
    }
    
    for _AttackArea replace the following:
    if(pSkill->IsAutoAttack() && g_pGameApp->IsShiftPress())
    {
      if(_pAutoAttack->AttackStart(pMain, pSkill, nScrX, nScrY))
      	return true;
    }
    
    if(pSkill->IsAutoAttack() && g_pGameApp->IsShiftPress())
    {
      switch (nJob) {
        case rJob::Explorer:
        case rJob::Herbalist:
        case rJob::Cleric:
        case rJob::Sealmaster:
        case rJob::Voyager:
        	g_pGameApp->SysInfo("Autoattack is disabled for magic classes!");
       		break;
        default:
        	if(_pAutoAttack->AttackStart(pMain, pSkill, nScrX, nScrY))
        		return true;
      }
    }

     

    his question if can do it without server side , so its simple answer, and wonder why all these lines if can done the code in 2 lines lol
     


  6. inside gameserver after client send the packet to delete it you will find the level * price etc , you can edit it there
    plus you have to edit that in client side for display the new amount of gold only 

    look for 
    case CMD_CM_MASTER_DEL
    and
    CMD_CM_PRENTICE_DEL


  7. 1 hour ago, Wilhelm said:

    Hello pkodev community,

     

    Back in 2014 I had made a map called Maracanã Shore: web.archive: serverdev | Maracanã Shore

    Basically, it was a football stadium with a small village and shore in its surroundings. 

    Unfortunately, due to a severe data loss, I haven't managed to recover it and I haven't been able find it anywhere else. 

     

    Therefore, I humbly ask, is there anyone from that time who still has this map or maybe know who might have it? If that's the case, please contact me. 

     

    Thanks in advance!

     

    there you go


  8. Quote

    CItemObj* pLastObj = NULL;
    DWORD dwLastObjColor = 0;

    bool CGuiData::SetHintItem( CItemObj* pObj ){ 
        if( pObj && pObj->HasHint() ){
            pLastObj = pObj;
            if(pObj->GetColor()!=4294901760){
                dwLastObjColor = pObj->GetColor();
                pObj->SetColor((DWORD)0xffaaaaaa);
            }
            _pHintItem = pObj; 
            return true;
        }
        else
        {
            if(pLastObj && pLastObj->GetColor()!=4294901760)
            {
                pLastObj->SetColor(dwLastObjColor);
                pLastObj = NULL;
            }
            _pHintItem = NULL;
            return false;
        }
    }

    you guys didn't bother to read what missing in code just replaced to clean one lol
    this is the fix simply 
    image.png.d5e14072f5dcd61ab8003f1defa077a2.png

    • Like 3

  9. TicketsUse = {Enabled = true, Ticket = {}, BlackList = {}}
    TicketsUse.BlackList["garner2"] = {Name = "Chaos Argent", Active = true}
    TicketsUse.BlackList["prisonisland"] = {Name = "Prison Island", Active = true}
    TicketsUse.Ticket[3141] = {Name = "", Level = {Min = nil, Max = nil}} --old ticket 
    TicketsUse.Ticket[4602] = {Name = "Argent City", Level = {Min = nil, Max = nil}}
    ------- how to use 
    ---TicketsUse.Ticket[ItemID] = {Name = "Birth", Level = {Min = 15, Max = 50}}
    --------
    --function of iteminfo
    function TicketHandler(Player, Item)
    	local ItemID = GetItemID(Item)
    	
    	if TicketsUse.Ticket[ItemID] == nil then
    		SystemNotice(Player, "["..GetItemName(ItemID).."] is not usable, please contact administrator.")
    		UseItemFailed(Player)
    		return 
    	end
    	if TicketsUse.Ticket[ItemID].Level.Min ~= nil and GetChaAttr(Player, ATTR_LV) < TicketsUse.Ticket[ItemID].Level.Min then
    		SystemNotice(Player, "["..GetItemName(ItemID).."] is only usable for players above level "..TicketsUse.Ticket[ItemID].Level.Min..".")
    		UseItemFailed(Player)
    		return 
    	end
    	if TicketsUse.Ticket[ItemID].Level.Max ~= nil and GetChaAttr(Player, ATTR_LV) > TicketsUse.Ticket[ItemID].Level.Max then
    		SystemNotice(Player, "["..GetItemName(ItemID).."] is only usable for players below level "..TicketsUse.Ticket[ItemID].Level.Max..".")
    		UseItemFailed(Player)
    		return 
    	end	
    	if(Hp(Player) <(Mxhp(Player) * 0.5)) or(Sp(Player) <(Mxsp(Player) * 0.5)) or ChaIsBoat(Player) == 1 then
    		SystemNotice(Player, "You must not be in a boat and have at least half of your maximum HP and SP in order to teleport.")
    		UseItemFailed(Player)
    		return 
    	end
    	if TicketsUse.BlackList[GetChaMapName(Player)] ~= nil and TicketsUse.BlackList[GetChaMapName(Player)].Active == true then
    		SystemNotice(Player, "Cannot use tickets inside ["..TicketsUse.BlackList[GetChaMapName(Player)].Name.."].")
    		UseItemFailed(Player)
    		return 
    	end	
    	if DelBagItem(Player, ItemID, 1) == 1 then
    		MoveCity(Player, TicketsUse.Ticket[ItemID].Name)
    	else
    		SystemNotice(Player, "Failed to use ["..GetItemName(ItemID).."].")
    		UseItemFailed(Player)
    		return 
    	end	
    	LG("Ticket System", "Player["..GetChaDefaultName(Player).."] used ["..GetItemName(ItemID).."].")	
    end

    use this for your tickets 


  10. 37 minutes ago, J0k3r said:

    COMPILE TO RUN code  "atleast for me".

    o.o should be , used same src 6months ago with the shared exe and works fine
    there is bugs but yea fixed most of them
    so if you are looking to some hints you going look to these bugs
    #1- Guild exp and states on disband function do not reset in group server , which is when create new guild will take old points of the disbanded guild
    #2- Disband guild & recreate crash the client > related to first bug, and need a fix of client part.. guild section forms
    #3- create guild crash client > rebuild refresh mindpower
    #4-Movement bug states on stun/freeze if player moving
    #5- some gui bugs above gmnotice in windows/full screen  > adjust screen space box for gmnotice<
    #6-hair npcs & exchanger npc the hover items crash the client >>missing reset the bool on false switch 
    #7-flood buttons/exp/guild color/ addexpguild . spamming sql while many players doing /killing monsters or quests >  fix inside groupserver cooldown can fix it smoothly 
    #8- switch item flood crashes all people clients on the range
    example
    ca74f9a741d38d8f6676f6b5b853ba3d.gifcan be fixed with small cooldown >gameserver or client<
    #9 register function inside client can be flooded with small bot to fill your database >> small captcha will fix it 
    #10 switch items with 1 slot delete the switched items 
    c2020f8f5a26e4b10b756ba9d407b345.gif the fix do not allow the switch with 1 slot only make it 3 or 5
    #11- extract gems dupe if had high level inside the item , with  > 1 of level gem lv1

    this some bugs can be a good hit to start lol but people prefer to spam/do not read 

    • Like 2
    • Sad 1
×
×
  • Create New...