[Release] X-Team Sources (S4, S6, S8)

Page 29 of 57 FirstFirst ... 19212223242526272829303132333435363739 ... LastLast
Results 421 to 435 of 847
  1. #421
    C++ Developer zipper20032 is offline
    MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    665Posts

    Re: Source [MUEMU]

    Anybody knows how to configure the GameShop from MuEMU? I'm using S6E3 version of MuEMU and my GameServer is giving me an error when i'm trying to buy something from X-Shop(In-Game shop).



    When i'm buying anything, it doesn't store it to Storage box in right bottom of the In-Game shop and neither on Gifting when i'm trying to gift it to other char in-game.

  2. #422
    Member ThatMuOwner is offline
    MemberRank
    Oct 2016 Join Date
    52Posts

    Re: Source [MUEMU]

    Playing around with source codes time to time and while ago found out that you can add combo to any class, with any skill you like.

    Code:
    // ComboSkill.cpp: implementation of the CComboSkill class.//
    //////////////////////////////////////////////////////////////////////
    
    
    #include "stdafx.h"
    #include "ComboSkill.h"
    #include "SkillManager.h"
    
    
    //////////////////////////////////////////////////////////////////////
    // Construction/Destruction
    //////////////////////////////////////////////////////////////////////
    
    
    void CComboSkill::Init() // OK
    {
        this->m_time = 0;
        this->m_skill[0] = 0xFFFF;
        this->m_skill[1] = 0xFFFF;
        this->m_index = -1;
    }
    
    
    int CComboSkill::GetSkillType(WORD skill) // OK
    {
        if(skill == SKILL_FALLING_SLASH || skill == SKILL_LUNGE || skill == SKILL_UPPERCUT || skill == SKILL_CYCLONE || skill == SKILL_SLASH | Here you add any skill you like for example some DW skill or Elf triple shot skill from GS code skill list. )
        {
            return 0;
        }
        else if(skill == SKILL_TWISTING_SLASH || skill == SKILL_RAGEFUL_BLOW || skill == SKILL_DEATH_STAB || SKILL_FIRE_SLASH || skill == SKILL_FROZEN_STAB || skill == SKILL_BLOOD_STORM || Here you add skills 2nd and 3rd or what ever what need use to continue combo. )
        {
            return 1;
        }
        else
        {
            return -1;
        }
    }
    
    
    bool CComboSkill::CheckCombo(WORD skill) // OK
    {
        int type = this->GetSkillType(skill);
    
    
        if(type == -1)
        {
            this->Init();
            return 0;
        }
    
    
        if(type == 0)
        {
            this->m_time = GetTickCount()+3000;
            this->m_skill[0] = skill;
            this->m_index = 0;
            return 0;
        }
    
    
        if(type == 1)
        {
            if(this->m_time < GetTickCount())
            {
                this->Init();
                return 0;
            }
    
    
            if(this->m_skill[0] == 0xFFFF)
            {
                this->Init();
                return 0;
            }
    
    
            if(this->m_index == 0)
            {
                this->m_time = GetTickCount()+3000;
                this->m_skill[1] = skill;
                this->m_index = 1;
                return 0;
            }
            
            if(this->m_index == 1 && this->m_skill[1] != skill)
            {
                this->Init();
                return 1;
            }
        }
    
    
        this->Init();
        return 0;
    }
    If in 1st line add Lightening and in 2nd line add skills twister and flame, both, than DW can do combo with those skills.




    I tried to add Marry command, but im getting this error -

    Error 4 error C2065: 'COMMAND_MARRY' : undeclared identifier C:\DARBS\season 8\eMU\GameServer\GameServer\CommandManager.cpp 302 1 GameServer

    Error 5 error C2051: case expression not constant C:\DARBS\season 8\eMU\GameServer\GameServer\CommandManager.cpp 302 1 GameServer

    Where is my mistake?

  3. #423
    Account Upgraded | Title Enabled! michi28 is offline
    MemberRank
    Sep 2014 Join Date
    Maldonado, Uy.Location
    473Posts

    Re: Source [MUEMU]

    Quote Originally Posted by ThatMuOwner View Post
    Playing around with source codes time to time and while ago found out that you can add combo to any class, with any skill you like.

    Code:
    // ComboSkill.cpp: implementation of the CComboSkill class.//
    //////////////////////////////////////////////////////////////////////
    
    
    #include "stdafx.h"
    #include "ComboSkill.h"
    #include "SkillManager.h"
    
    
    //////////////////////////////////////////////////////////////////////
    // Construction/Destruction
    //////////////////////////////////////////////////////////////////////
    
    
    void CComboSkill::Init() // OK
    {
        this->m_time = 0;
        this->m_skill[0] = 0xFFFF;
        this->m_skill[1] = 0xFFFF;
        this->m_index = -1;
    }
    
    
    int CComboSkill::GetSkillType(WORD skill) // OK
    {
        if(skill == SKILL_FALLING_SLASH || skill == SKILL_LUNGE || skill == SKILL_UPPERCUT || skill == SKILL_CYCLONE || skill == SKILL_SLASH | Here you add any skill you like for example some DW skill or Elf triple shot skill from GS code skill list. )
        {
            return 0;
        }
        else if(skill == SKILL_TWISTING_SLASH || skill == SKILL_RAGEFUL_BLOW || skill == SKILL_DEATH_STAB || SKILL_FIRE_SLASH || skill == SKILL_FROZEN_STAB || skill == SKILL_BLOOD_STORM || Here you add skills 2nd and 3rd or what ever what need use to continue combo. )
        {
            return 1;
        }
        else
        {
            return -1;
        }
    }
    
    
    bool CComboSkill::CheckCombo(WORD skill) // OK
    {
        int type = this->GetSkillType(skill);
    
    
        if(type == -1)
        {
            this->Init();
            return 0;
        }
    
    
        if(type == 0)
        {
            this->m_time = GetTickCount()+3000;
            this->m_skill[0] = skill;
            this->m_index = 0;
            return 0;
        }
    
    
        if(type == 1)
        {
            if(this->m_time < GetTickCount())
            {
                this->Init();
                return 0;
            }
    
    
            if(this->m_skill[0] == 0xFFFF)
            {
                this->Init();
                return 0;
            }
    
    
            if(this->m_index == 0)
            {
                this->m_time = GetTickCount()+3000;
                this->m_skill[1] = skill;
                this->m_index = 1;
                return 0;
            }
            
            if(this->m_index == 1 && this->m_skill[1] != skill)
            {
                this->Init();
                return 1;
            }
        }
    
    
        this->Init();
        return 0;
    }
    If in 1st line add Lightening and in 2nd line add skills twister and flame, both, than DW can do combo with those skills.




    I tried to add Marry command, but im getting this error -

    Error 4 error C2065: 'COMMAND_MARRY' : undeclared identifier C:\DARBS\season 8\eMU\GameServer\GameServer\CommandManager.cpp 302 1 GameServer

    Error 5 error C2051: case expression not constant C:\DARBS\season 8\eMU\GameServer\GameServer\CommandManager.cpp 302 1 GameServer

    Where is my mistake?

    is in commandmanager.h

    enum eCommandNumber
    {
    COMMAND_CUSTOM_ATTACK = 30,
    COMMAND_CUSTOM_ATTACK_OFFLINE = 31,
    COMMAND_MARRY = 32, <---- this add
    };

  4. #424
    Member ThatMuOwner is offline
    MemberRank
    Oct 2016 Join Date
    52Posts

    Re: Source [MUEMU]

    Thanks, i was looking on that place but didn't think about changing there anything. Compiling work.

  5. #425
    Member dasgrid is offline
    MemberRank
    Dec 2014 Join Date
    InsideLocation
    86Posts

    Re: Source [MUEMU]

    ENG: Does anyone have the code to add this to the client season 6?
    ESP:
    Alguien tiene el codigo para agregar esto al cliente season 6?

  6. #426
    Proficient Member Luis_br is offline
    MemberRank
    Apr 2005 Join Date
    157Posts

    thumbs up Re: Source [MUEMU]

    Fix to not put Pentagram with Errtels on trade and vault and personal Store on ex803.

    Insert this on pentagamsystem.cpp
    Code:
    bool CPentagramSystem::CheckPentagramSocket(LPOBJ lpObj,CItem* lpItem) // OK
    {
    	#if(GAMESERVER_UPDATE>=701)
    
    	for(int n=0;n < MAX_SOCKET_OPTION;n++)
    	{
    		PENTAGRAM_JEWEL_INFO* lpPentagramJewelInfo = this->GetPentagramJewelInfo(lpObj,lpItem->m_SocketOption[n],PENTAGRAM_JEWEL_TYPE_INVENTORY);
    
    		if(lpPentagramJewelInfo != 0)
    		{
    			PENTAGRAM_JEWEL_OPTION_INFO PentagramJewelOptionInfo;
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),1,lpPentagramJewelInfo->OptionIndexRank1,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),2,lpPentagramJewelInfo->OptionIndexRank2,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),3,lpPentagramJewelInfo->OptionIndexRank3,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),4,lpPentagramJewelInfo->OptionIndexRank4,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),5,lpPentagramJewelInfo->OptionIndexRank5,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    		}
    	}
    
    	return 0;
    
    	#endif
    }
    Insert this on pentagramsystem.h
    Code:
        bool CPentagramSystem::CheckPentagramSocket(LPOBJ lpObj,CItem* lpItem);
    Change itemmanager.cpp
    Code:
    bool CItemManager::CheckItemMoveToTrade(LPOBJ lpObj,CItem* lpItem,BYTE TargetFlag) // OK
    {
    	if(lpItem->IsItem() == 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->IsLuckyItem() != 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->m_IsPeriodicItem != 0)
    	{
    		return 0;
    	}
    
    	if (lpItem->IsPentagramItem() != 0){
    	if(gPentagramSystem.CheckPentagramSocket(lpObj,lpItem) != 0)
    	{
    		gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,2,0,gMessage.GetMessage(499));
    		return 0;
    	}
    	}
    
    	if(gItemMove.CheckItemMoveAllowTrade(lpItem->m_Index) == 0)
    	{
    		return 0;
    	}
    
    	if(this->CheckItemMoveToBlock(lpObj,lpItem) == 0)
    	{
    		return 0;
    	}
    
    	return 1;
    }
    
    bool CItemManager::CheckItemMoveToVault(LPOBJ lpObj,CItem* lpItem,BYTE TargetFlag) // OK
    {
    	if(lpItem->IsItem() == 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->IsLuckyItem() != 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->m_IsPeriodicItem != 0)
    	{
    		return 0;
    	}
    
    	if (lpItem->IsPentagramItem() != 0){
    	if(gPentagramSystem.CheckPentagramSocket(lpObj,lpItem) != 0)
    	{
    		gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,2,0,gMessage.GetMessage(499));
    		return 0;
    	}
    	}
    
    	if(gItemMove.CheckItemMoveAllowVault(lpItem->m_Index) == 0)
    	{
    		return 0;
    	}
    
    	return 1;
    }
    Insert into Message.txt this line
    Code:
    499       "Remove Errtels Before"

  7. #427
    Account Upgraded | Title Enabled! nofeara is offline
    MemberRank
    Nov 2009 Join Date
    510Posts

    Re: Source [MUEMU]

    Quote Originally Posted by Luis_br View Post
    Fix to not put Pentagram with Errtels on trade and vault and personal Store on ex803.

    Insert this on pentagamsystem.cpp
    Code:
    bool CPentagramSystem::CheckPentagramSocket(LPOBJ lpObj,CItem* lpItem) // OK
    {
    	#if(GAMESERVER_UPDATE>=701)
    
    	for(int n=0;n < MAX_SOCKET_OPTION;n++)
    	{
    		PENTAGRAM_JEWEL_INFO* lpPentagramJewelInfo = this->GetPentagramJewelInfo(lpObj,lpItem->m_SocketOption[n],PENTAGRAM_JEWEL_TYPE_INVENTORY);
    
    		if(lpPentagramJewelInfo != 0)
    		{
    			PENTAGRAM_JEWEL_OPTION_INFO PentagramJewelOptionInfo;
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),1,lpPentagramJewelInfo->OptionIndexRank1,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),2,lpPentagramJewelInfo->OptionIndexRank2,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),3,lpPentagramJewelInfo->OptionIndexRank3,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),4,lpPentagramJewelInfo->OptionIndexRank4,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    
    			if(this->GetPentagramJewelOptionInfo(GET_ITEM(lpPentagramJewelInfo->ItemSection,lpPentagramJewelInfo->ItemType),5,lpPentagramJewelInfo->OptionIndexRank5,&PentagramJewelOptionInfo) != 0)
    			{
    				return 1;
    			}
    		}
    	}
    
    	return 0;
    
    	#endif
    }
    Insert this on pentagramsystem.h
    Code:
        bool CPentagramSystem::CheckPentagramSocket(LPOBJ lpObj,CItem* lpItem);
    Change itemmanager.cpp
    Code:
    bool CItemManager::CheckItemMoveToTrade(LPOBJ lpObj,CItem* lpItem,BYTE TargetFlag) // OK
    {
    	if(lpItem->IsItem() == 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->IsLuckyItem() != 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->m_IsPeriodicItem != 0)
    	{
    		return 0;
    	}
    
    	if (lpItem->IsPentagramItem() != 0){
    	if(gPentagramSystem.CheckPentagramSocket(lpObj,lpItem) != 0)
    	{
    		gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,2,0,gMessage.GetMessage(499));
    		return 0;
    	}
    	}
    
    	if(gItemMove.CheckItemMoveAllowTrade(lpItem->m_Index) == 0)
    	{
    		return 0;
    	}
    
    	if(this->CheckItemMoveToBlock(lpObj,lpItem) == 0)
    	{
    		return 0;
    	}
    
    	return 1;
    }
    
    bool CItemManager::CheckItemMoveToVault(LPOBJ lpObj,CItem* lpItem,BYTE TargetFlag) // OK
    {
    	if(lpItem->IsItem() == 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->IsLuckyItem() != 0)
    	{
    		return 0;
    	}
    
    	if(lpItem->m_IsPeriodicItem != 0)
    	{
    		return 0;
    	}
    
    	if (lpItem->IsPentagramItem() != 0){
    	if(gPentagramSystem.CheckPentagramSocket(lpObj,lpItem) != 0)
    	{
    		gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,2,0,gMessage.GetMessage(499));
    		return 0;
    	}
    	}
    
    	if(gItemMove.CheckItemMoveAllowVault(lpItem->m_Index) == 0)
    	{
    		return 0;
    	}
    
    	return 1;
    }
    Insert into Message.txt this line
    Code:
    499       "Remove Errtels Before"
    Thanks, uhm btw, can you remove the errtels? because there is a problem in removing the errtels on pentagrams as well?

    http://forum.ragezone.com/f197/sourc...3/#post8713763
    Last edited by nofeara; 20-12-16 at 01:13 PM.

  8. #428
    Proficient Member Luis_br is offline
    MemberRank
    Apr 2005 Join Date
    157Posts

    Re: Source [MUEMU]

    Quote Originally Posted by nofeara View Post
    Thanks, uhm btw, can you remove the errtels? because there is a problem in removing the errtels on pentagrams as well?

    http://forum.ragezone.com/f197/sourc...3/#post8713763
    On my server, I have a problem where when passing the pentagram from char to another char (Errtel does not exist: DB0), this solve my problem

    - - - Updated - - -

    Here I do not have the problem quoted in your post

  9. #429
    Account Upgraded | Title Enabled! nofeara is offline
    MemberRank
    Nov 2009 Join Date
    510Posts

    Re: Source [MUEMU]

    Quote Originally Posted by Luis_br View Post
    On my server, I have a problem where when passing the pentagram from char to another char (Errtel does not exist: DB0), this solve my problem

    - - - Updated - - -

    Here I do not have the problem quoted in your post
    can i have your pentagram sources please?, the .cpp. .h and others.. i will just check out something.. thanks.

  10. #430
    Proficient Member Luis_br is offline
    MemberRank
    Apr 2005 Join Date
    157Posts

    Re: Source [MUEMU]

    Quote Originally Posted by nofeara View Post
    can i have your pentagram sources please?, the .cpp. .h and others.. i will just check out something.. thanks.
    PentagramSystem.cpp.txt
    PentagramSystem.h.txt

  11. #431
    Account Upgraded | Title Enabled! nofeara is offline
    MemberRank
    Nov 2009 Join Date
    510Posts

    Re: Source [MUEMU]

    Quote Originally Posted by Luis_br View Post
    thanks uhm but still i can't unequipp the errtels on the pentagram xD.. how bout your itemanager.cpp? :D

  12. #432
    -( . ) ( . )- clerigz is offline
    MemberRank
    Mar 2012 Join Date
    1,365Posts

    Re: Source [MUEMU]

    Anyone fix the yellow option in ancient items? season 8?

  13. #433
    Account Upgraded | Title Enabled! nofeara is offline
    MemberRank
    Nov 2009 Join Date
    510Posts

    Re: Source [MUEMU]

    Hello guys i just found out that the scroll oblivions, the scrolls used to reset master skill tree are not working in the source compiled, also the demon pet and guardian pet has no attack damage increment, it is just adding attack speed. They were working with jumbograms release though. How can i modify the source so that i will be able to use them? If someone has already fix this can you please share... if not can you at least teach us what to modify? uhm someone give examples as basis? thanks in advance..

  14. #434
    Valued Member XzibitBk is offline
    MemberRank
    Feb 2008 Join Date
    BucharestLocation
    102Posts

    Re: Source [MUEMU]

    If you don't have VS2013: to fix the password problem on S8E3 (to not be able to login with anything you write in the password field) just add:
    Code:
                if(gAccountManager.GetAccountCount() >= gJoinServerMaxAccount[gProtect.m_AuthInfo.PackageType][gProtect.m_AuthInfo.PlanType])    {
            pMsg.result = 4;
            gSocketManager.DataSend(index,(BYTE*)&pMsg,pMsg.header.size);
            return;
        }
    before the
    Code:
    if(MD5Encryption == 0)    {
            if(gQueryManager.ExecQuery("SELECT memb__pwd FROM MEMB_INFO WHERE memb___id='%s'",lpMsg->account) == 0 || gQueryManager.Fetch() == SQL_NO_DATA)
    In the JoinServer->JoinServerProtocol.cpp

    Credits to @allexander

  15. #435
    Valued Member XzibitBk is offline
    MemberRank
    Feb 2008 Join Date
    BucharestLocation
    102Posts

    Re: Source [MUEMU]

    Do you guys know an editor that works with the S8 files? I've been trying to edit the name of some items, but the tools that I have don't work.



Advertisement