zTeam source + fixes STABLE

ok, i tested it today bug not in server, bug not in client src, bug with missing items in client... i search it today


I already test yesterday in my Server not crash GS only problem DL can't summon inside the castle
 
Bro How can I make all party members not hitting each other during PVP, same like in engine their is config

[COMMON]
AllowPKPartyMembers = 0 //0-NoPK Party Members, 1-PK Party Members
 
hi all ! what bugs have these sources? only castle siege?

theres nothing wrong with castle siege, there are some minor bugs(mainly visuals) and some things that are not implemented (gift shop)
other stuff is configuration mistakes and some formulas that are not correct but were corrected in the repository i guess
 
these files
i'm oppening store to sell item for 15s and if i have bounded 30s when i try to buy that item server is crashing
 
After the castle siege event, the server crash.
If anyone has this problem, here the fix:
PHP:
if(bSetRemainMsec != FALSE)
	{
		time_t ttSTime;  // old code = long ttSTime
		time_t ttETime; // old code = long ttETime
		tm tmETime;
		double dResultSecond;

		memset(&tmETime,0x00,sizeof(tmETime));

		tmETime.tm_year = m_tmEndDate.wYear - 1900;
		tmETime.tm_mon = m_tmEndDate.wMonth - 1;
		tmETime.tm_mday = m_tmEndDate.wDay;

		ttETime = mktime(&tmETime);
		time(&ttSTime);  // old code = time((time_t*)&ttSTime);


		dResultSecond = difftime(ttETime,ttSTime);
		this->m_iCS_REMAIN_MSEC = dResultSecond * (double)1000.0;
	}

The CastleSiege.cpp file with this update: View attachment CastleSiege.rar
 
PHP:
// Fix for the bug of the friendly fire in the Castle Siege event
	if(g_CastleSiege.GetCastleState()==CASTLESIEGE_STATE_STARTSIEGE) {
		if(lpTargetObj->Type == OBJ_USER && lpObj->Type == OBJ_USER) {
			if( lpObj->GuildNumber!=0 && lpTargetObj->GuildNumber!=0 ) {
				// same guild
				if(lpObj->GuildNumber == lpTargetObj->GuildNumber) {
					return false;
				}
				// same union
				if(lpObj->lpGuild->GetGuildUnion()!=0) {
					if(lpObj->lpGuild->GetGuildUnion()==lpTargetObj->lpGuild->GetGuildUnion()) {
						return false;
					}
				}
			}
		}
	}

ObjAttack.cpp file with this update: View attachment ObjAttack.zip
 
PHP:
// Fix for the bug of the friendly fire in the Castle Siege event
	if(g_CastleSiege.GetCastleState()==CASTLESIEGE_STATE_STARTSIEGE) {
		if(lpTargetObj->Type == OBJ_USER && lpObj->Type == OBJ_USER) {
			if( lpObj->GuildNumber!=0 && lpTargetObj->GuildNumber!=0 ) {
				// same guild
				if(lpObj->GuildNumber == lpTargetObj->GuildNumber) {
					return false;
				}
				// same union
				if(lpObj->lpGuild->GetGuildUnion()!=0) {
					if(lpObj->lpGuild->GetGuildUnion()==lpTargetObj->lpGuild->GetGuildUnion()) {
						return false;
					}
				}
			}
		}
	}

ObjAttack.cpp file with this update: View attachment 148185

gj on that dude but friendly fire exists in muonline from aoe spells in CS so if thats what u changed its not a bug, many have those ridiculous requests though so gj again
 
Back