วันพุธที่ 28 มิถุนายน พ.ศ. 2560

วิ่งปั้มยาตั้งโล่

//ค้นหา
if((PlayerState == PLAYER_MOVE_SPRINT && wpn->getCategory()!=storecat_MELEE) || bDead)
{
if(wasReloading)
{
if(hudMain)
hudMain->showReloading(false);
wasReloading = false;
}
needExit = true;
if(wpn->getCategory() != storecat_UsableItem)
needExit = true;
}

//เอาอันนี้แทนอันเดิม

if((PlayerState == PLAYER_MOVE_SPRINT && wpn->getCategory()!=storecat_MELEE) || bDead)
{
if(wasReloading)
{
if (hudMain)
hudMain->showReloading(false);
wasReloading = false;
}
if(wpn->getCategory() != storecat_UsableItem)
needExit = true;
}


รูป https://scontent.fbkk5-4.fna.fbcdn.net/v/t1.0-9/19437744_1965233870418680_3765967047690366825_n.jpg?oh=7d1add4db207a8e33f124e9c533c17ba&oe=59DDF8C0

xml to sql

https://lookaside.fbsbx.com/file/add.rar?token=AWycmcIlLNIbAFs1SMypVzK3WK6yI7qxojPYDoky-wPqhMe2ipVW1o5Prx2FAfRnsg9aaxHo3hTDN2BhbVxIlucoGrd2nSXybujcjXC_tn3JKc3n_4KjrFBULLOoWYRih98svCTpbXxFtqFpUhPVv9j1daL5yOs5SNsyqzx06YF8-faL_Lus1rikeYg5ZE8L0OX1xn4wEzjUbglr1C_OKZG2

กด B ดูลักษณะปืน

# Animation https://mega.nz/#!S9xDhJoA!trpt3wdLQQ4fN_eEXgSXXEaKovSjGnxfk8pdnXQai-A โอเคครับ ถ้าคุณทำตามผมทุกๆขั้นตอนคุณจะทำได้เองนะครับ ! ดาวน์โหลดไฟล์ : Animationเอาไฟล์ที่ดาวน์โหลดไปลง C:/WarZ/bin/data/Animation5 ค้นหาใน WarZ.sln
if(wpn && hudAttm && hudAttm->isActive() && wpn->getCategory()>=storecat_ASR && wpn->getCategory()<=storecat_SMG)         isInAttmMenu = true;
เพิ่มไว้ข้างล่าง
bool isWantingToInspect = (InputMappingMngr->isPressed(r3dInputMappingMngr::KS_INSPECT_GUN) && wpn && wpn->getCategory()>=storecat_ASR && wpn->getCategory()<=storecat_SMG && hudMain && !hudPause->isActive() && !hudAttm->isActive() && !hudVault->isActive() && !hudRepair->isActive() && !hudCraft->isActive() && !hudSafelock->isActive() && !hudTrade->isActive() && !hudStore->isActive() && !hudMain->isChatInputActive() && !Mouse->GetMouseVisibility() && !InputMappingMngr->isPressed(r3dInputMappingMngr::KS_PRIMARY_FIRE) && !InputMappingMngr->isPressed(r3dInputMappingMngr::KS_AIM));

ค้นหา

uberAnim_->SyncAnimation(PlayerState, PlayerMoveDir, force, wpn, isInAttmMenu);
แทนที่
uberAnim_->SyncAnimation(PlayerState, PlayerMoveDir, force, wpn, isInAttmMenu, isWantingToInspect);
ค้นหา
aid_.attmMenuIdleWeapon[5] = AddAnimation("FPS_Attch_Idle_SMG");
เพิ่มไว้ข้างล่าง
aid_.InspectWeapon[0] = AddAnimation("FPS_Weap_Show");aid_.InspectWeapon[1] = AddAnimation("FPS_Weap_Show");aid_.InspectWeapon[2] = AddAnimation("FPS_Weap_Show");aid_.InspectWeapon[3] = AddAnimation("FPS_Weap_Show");aid_.InspectWeapon[4] = AddAnimation("FPS_Weap_Show");aid_.InspectWeapon[5] = AddAnimation("FPS_Weap_Show");
ค้นหา
void CUberAnim::SyncAnimation(int PlayerState, int MoveDir, bool force, const Weapon* weap, bool isInAttmMenu)
แทนที่
void CUberAnim::SyncAnimation(int PlayerState, int MoveDir, bool force, const Weapon* weap, bool isInAttmMenu, bool isWantingToInspect)
ค้นหา
if(isInAttmMenu && CurrentWeapon && IsFPSMode()
แทนที่
if(!isWantingToInspect && isInAttmMenu && CurrentWeapon && IsFPSMode()
ค้นหา
// switch anim state
เพิ่มข้างบน
   if(isWantingToInspect && CurrentWeapon && IsFPSMode()        && !IsSwimming && PlayerState != PLAYER_SWIM_IDLE && PlayerState != PLAYER_SWIM_SLOW && PlayerState != PLAYER_SWIM && PlayerState != PLAYER_SWIM_FAST        )    {        bool AlreadyPlayingInspect = false;        int animIdx = 0;        switch(CurrentWeapon->getCategory())        {        case storecat_ASR:            animIdx = 0;            break;        case storecat_SNP:            animIdx = 1;            break;        case storecat_SHTG:            animIdx = 2;            break;        case storecat_MG:            animIdx = 3;            break;        case storecat_HG:            animIdx = 4;            break;        case storecat_SMG:            animIdx = 5;            break;        default:            r3d_assert(false);            break;        }        r3dgameVector(r3dAnimation::r3dAnimInfo)::iterator it;        for(it=anim.AnimTracks.begin(); it!=anim.AnimTracks.end(); ++it)         {            const r3dAnimation::r3dAnimInfo& ai = *it;            if(ai.pAnim->iAnimId == data_->aid_.InspectWeapon[animIdx])            {                AlreadyPlayingInspect = true;                break;            }        }        if(!AlreadyPlayingInspect)            anim.StartAnimation(data_->aid_.InspectWeapon[animIdx], ANIMFLAG_RemoveOtherNow | ANIMFLAG_Looped, 0.0f, 1.0f, 0.1f);        else // playing idle anim        {            // do nothing :)        }        AnimPlayerState = -1; // reset, so that after attm menu we will return back to proper animation        return;    }    ///END of Inspect
ค้นหา
int      attmMenuIdleWeapon[6];
เพิ่มข้างบน
int        InspectWeapon[6];
ค้นหา
void        SyncAnimation(int PlayerState, int MoveDir, bool force, const Weapon* weap, bool isInAttmMenu);
แทนที่
void        SyncAnimation(int PlayerState, int MoveDir, bool force, const Weapon* weap, bool isInAttmMenu, bool isWantingToInspect = false);
ค้นหา
KS_NUM,
เพิ่มไว้ข้างบน
KS_INSPECT_GUN,
ค้นหา
r3dInputMappingMngr::r3dInputMappingMngr() 
เพิ่ม
m_Mapping[KS_INSPECT_GUN] =                KeyboardMapping(INPUTMAP_KEYBOARD, kbsB, "INSPECT GUN", false);
ต้แงการให้กด F แทน B  สังเกตุ kbsB เปลี่ยนเป็น kbsF จบปิ้ง

เครดิต Ragezone

ระบบคลูดาวน์ Report

ระบบกันฟลัดรีพอร์ตภาพ
ค้นหา HUDDisplay.cpp
if(actionID == HUDDisplay_ContextMenu_ReportPlayerID)
มองหา
char tmpStr[256];
เพิ่ม ไว้ด้านบน
static float ScreenShotTime = 0;
float curTime = r3dGetTime();
if(curTime > ScreenShotTime)
{
ScreenShotTime = curTime + 180; // 6*3 = 18
มองหา
showChatInput(tmpStr);
เพิ่มไว้ด้านล่าง
}
else
{
addChatMessage(0, "<REPORT>", "Wait 3 Minute To Report", 0);
return;
}
จะได้แบบนี้
_________________________________________________________
if(actionID == HUDDisplay_ContextMenu_ReportPlayerID)
{
static float ScreenShotTime = 0;
float curTime = r3dGetTime();
if(curTime > ScreenShotTime) //CR.KillerFloodX
{
char tmpStr[256];
ScreenShotTime = curTime + 180; // 300 = 5 MINUTES / 120 = 2 MINUTES / google.com time x to y
//sprintf(tmpStr, "FairFight \"%s\"", gamertag);
sprintf(tmpStr, "/report \"%s\" ", gamertag);
showChatInput(tmpStr);
}
else
{
addChatMessage(0, "<REPORT>", "Wait 3 Minute To Report", 0);
return;
}
}


//////////////////cr.DLP [FOR DEV]

สมัครใหม่ได้ไอเท็ม

มองหาฟังชั่น SQL
WZ_ACCOUNT_CREATE
ค้นหา
exec FN_AddItemToUser @CustomerID, 20184, 2000 -- hero: girl
วางต่อมาด้านล่างเลย
EXEC FN_AddFullItemToUser @CustomerID, 'เลขไอเท็ม', 'จำนวน', '-1', '-1', '10000'
เป็นประโยชไม่มากก้อน้อย ขอมาเยอะ
cr.DLP [FOR DEV]

วันจันทร์ที่ 26 มิถุนายน พ.ศ. 2560

รีข้อมูลผู้เล่นเริ่ต้นใหม่หมด

TRUNCATE TABLE AccountIpWhitelist TRUNCATE TABLE AccountLocks TRUNCATE TABLE AccountPwdReplace TRUNCATE TABLE AccountPwdReset TRUNCATE TABLE Accounts TRUNCATE TABLE Achievements TRUNCATE TABLE CheatLog TRUNCATE TABLE ClanApplications TRUNCATE TABLE ClanData TRUNCATE TABLE ClanEvents TRUNCATE TABLE ClanInvites TRUNCATE TABLE DataGameRewards TRUNCATE TABLE DataGPConvertRates TRUNCATE TABLE DataSkillPrice TRUNCATE TABLE DBG_AccountsUpgrade TRUNCATE TABLE DBG_AllItems TRUNCATE TABLE DBG_ApiCalls TRUNCATE TABLE DBG_BanLog TRUNCATE TABLE DBG_CharRenames TRUNCATE TABLE DBG_DeletedServersList TRUNCATE TABLE DBG_GDLog TRUNCATE TABLE DBG_GPTransactions TRUNCATE TABLE DBG_HWInfo TRUNCATE TABLE DBG_IISApiStats TRUNCATE TABLE DBG_LevelUpEvents TRUNCATE TABLE DBG_LootRewards TRUNCATE TABLE DBG_Lottery_Buyed_Tickets TRUNCATE TABLE DBG_Lottery_Log TRUNCATE TABLE DBG_Lottery_Winner_Log TRUNCATE TABLE DBG_PasswordResets TRUNCATE TABLE DBG_SrvLogInfo TRUNCATE TABLE DBG_UserRoundResults TRUNCATE TABLE DBG_WOAdminChanges TRUNCATE TABLE FinancialTransactions TRUNCATE TABLE FriendsMap TRUNCATE TABLE Leaderboard00 TRUNCATE TABLE Leaderboard01 TRUNCATE TABLE Leaderboard02 TRUNCATE TABLE Leaderboard03 TRUNCATE TABLE Leaderboard04 TRUNCATE TABLE Leaderboard05 TRUNCATE TABLE Leaderboard06 TRUNCATE TABLE Leaderboard50 TRUNCATE TABLE Leaderboard51 TRUNCATE TABLE Leaderboard52 TRUNCATE TABLE Leaderboard53 TRUNCATE TABLE Leaderboard54 TRUNCATE TABLE Leaderboard55 TRUNCATE TABLE Leaderboard56 TRUNCATE TABLE LoginBadIPs TRUNCATE TABLE LoginIPs TRUNCATE TABLE Logins TRUNCATE TABLE LoginSessions TRUNCATE TABLE MasterServerInfo TRUNCATE TABLE SecurityLog TRUNCATE TABLE ServerObjects TRUNCATE TABLE ServerSavedState TRUNCATE TABLE ServersList TRUNCATE TABLE SteamConversionKeys TRUNCATE TABLE SteamDLC TRUNCATE TABLE SteamGPOrders TRUNCATE TABLE UsersChars TRUNCATE TABLE UsersData TRUNCATE TABLE UsersInventory TRUNCATE TABLE Vitalstats_BankReserves TRUNCATE TABLE VitalStats_Economy_V1 TRUNCATE TABLE VitalStats_Inventory TRUNCATE TABLE VitalStats_Retention1 TRUNCATE TABLE VitalStats_V1 TRUNCATE TABLE XsollaOrders

วันพฤหัสบดีที่ 15 มิถุนายน พ.ศ. 2560

สไนตรงทุกกระบอก


ค้นหา
---------------------------------------------------------
if(wpn->getCategory() == storecat_SNP && !m_isInScope)
---------------------------------------------------------
มองหา
spread = 11; #อยู่ด้านล่างหนึ่งบรรทัด
เปลี่ยนเป็น 1 หรือ 0 ก็ได้ แล้วแต่จะให้มันตรงยังไง
---------------------------------------------------------
Cr . ‎MR donut

วันอังคารที่ 9 พฤษภาคม พ.ศ. 2560

ทำตัวละครไส่เกาะแล้วจะมองไม่เห็นเกาะ

หา if(PhysXTerra3WarmUp < 10) วางข้างบน if (CurLoadout.HeroItemID == 20240) { uberEquip_->SetSlot(SLOT_Backpack, (r3dMesh*)NULL); uberEquip_->SetSlot(SLOT_Armor, (Gear*)NULL); uberEquip_->SetSlot(SLOT_Helmet, (Gear*)NULL); }

วันจันทร์ที่ 8 พฤษภาคม พ.ศ. 2560

ซื้อเกิเสีย GC

ALTER PROCEDURE [dbo].[WZ_CharReviveCheck]
@in_CustomerID int,
@in_CharID int
AS
BEGIN
SET NOCOUNT ON;

-- validate CharID/CustomerID pair
declare @CustomerID int = 0
select @CustomerID=CustomerID from UsersChars where CharID=@in_CharID
if(@@ROWCOUNT = 0 or @CustomerID <> @in_CustomerID) begin
select 6 as ResultCode, 'bad charid' as ResultMsg
return
end

-- change server revive time in WZ_GetAccountInfo2/WZ_Revive/WZ_ReviveCheck as well
declare @SecToRevive int
declare @Alive int = 1
select
@SecToRevive=DATEDIFF(second, GETUTCDATE(), DATEADD(minute, 20, DeathUtcTime)),
@Alive=Alive
from UsersChars where CharID=@in_CharID

-- premium accs have 10min revive time
declare @PremiumExpireTime datetime
select @PremiumExpireTime=PremiumExpireTime from UsersData where CustomerID=@in_CustomerID
if(GETDATE() < @PremiumExpireTime) begin
set @SecToRevive = @SecToRevive - 600
end

select 0 as ResultCode

-- check if we need money for revive
declare @NeedMoney int = 0
if(@SecToRevive > 61 and @Alive = 0) set @NeedMoney = 1

select @SecToRevive as 'SecToRevive', @NeedMoney as 'NeedMoney'

END

สกิลกระโดดสสูงตัวละคร !

Code By AlexRedd

//-----------------------------------------------------------//

! ค้นหา ใน AI_Player.cpp !
JumpVelocity = 17;
! วางทับ !

float JumpVelocityForHero = (CurLoadout.HeroItemID == 20174)?30.0f:17.0f; //AlexRedd:: superjump for hero id
JumpVelocity  = JumpVelocityForHero;

float JumpVelocityForHero = (CurLoadout.HeroItemID == 20174)?30.0f:17.0f; //AlexRedd:: superjump for hero id
JumpVelocity  = JumpVelocityForHero;

ตัวละครถึก ตัวละครวิ่งไว กลั้นหายใจ

CODE ตัวละครถึก
ค้นหาใน warz_server
float obj_ServerPlayer::ApplyDamage(float damage, GameObject* fromObj, int bodyPart, STORE_CATEGORIES damageSource, uint32_t dmgItemID, bool canApplyBleeding)
เพิ่ม
if(loadout_->HeroItemID == 18701)
 damage *= 0.9f;
//////////////////////////////////////////////////////////
CODE ตัวละครวิ่งไว
ค้นหาใน warz.sln
if((playerState == PLAYER_MOVE_RUN || playerState == PLAYER_MOVE_SPRINT
|| playerState == PLAYER_SWIM || playerState == PLAYER_SWIM_FAST
) && (r3dGetTime() < pl->m_SpeedBoostTime))
{
accelaration *= pl->m_SpeedBoost;
}
เพิ่ม
if(pl->CurLoadout.HeroItemID == 18701)
accelaration *= 1.1f;
/////////////////////////////////////////////////////////////
CODE กลั้นหายใจ
ค้นหาใน  warz.sln
BOOL obj_Player::OnCreate()
แล้ว หา m_Breath = getMaxBreath();
ใส่เพิ่มไป if(CurLoadout.HeroItemID == 18701)
m_Breath = getMaxBreath() + 10;
else
m_Breath = getMaxBreath();
ปิด  //m_Breath = getMaxBreath();
ค้นหา !InputMappingMngr->isPressed(r3dInputMappingMngr::KS_HOLD_BREATH
แทนที่ด้วย if(CurLoadout.HeroItemID == 18701)
{
if(m_Breath < getMaxBreath() + 10)
m_Breath = m_Breath + timePassed;
}
else if(m_Breath < getMaxBreath())
m_Breath = m_Breath + timePassed;
////////////////////////////////////////////////////////////

วันพุธที่ 26 เมษายน พ.ศ. 2560

โชว์คนออนไลน์แมพนั้นๆสวยๆ

#ค้นหา UserProfile.h
struct wiUserProfile

{
enum DEV_ACCOUNT_ACCESS
{
DAA_ENABLED = 1<<0, // legacy, shouldn't be used
DAA_DEV_ICON = 1<<1, // dev icon in player list, red text in chat
DAA_TELEPORT = 1<<2, // can teleport or teleport to player, or get player location
DAA_SPAWN_ITEM = 1< , // can spawn items via /gi command
DAA_KICK = 1<<4, // can kick players from server
DAA_BAN = 1<<5, // can permanently ban ppl
DAA_GOD = 1<<6, // can enable god mode
DAA_INVISIBLE = 1<<7, // player model is totally invisible!
DAA_HIDDEN = 1<<8, // do not show up in player list
};
uint32_t isDevAccount;
uint32_t TimePlayed; // account time played (not char!), in seconds
int PremiumAcc; // if more than 0 - time in minutes until premium account expiration
// 0 - legend, 1 - pioneer, 2 - survivor, 3 - guest
// 4 - 15$, 5-25$, 6-50$
// 10 - steam
// 50-53 - RU
// 20-29 - trial account (20-us, 21-ru)
int AccountType;
int GamePoints;
int GameDollars;
int ResWood;
int ResStone;
int ResMetal;
#เพิ่มด้านล่าง
bool isGameHardcore; //gamehardcore
int HardMaxPlayers;//gamehardcore
#ค้นหา AI_Player.H
float TimeOfLastRespawn;
int Dead_KillerID; // killer ID of a person who killed you
bool DisableKillerView; // if user clicks on a mouse, show respawn right away
bool bCrouch;
bool bProne;
#เพิ่มด้านล่าง
bool isGameHardcore; //gamehardcore
int HardMaxPlayers; //gamehardcore
#ค้นหา
footsteps_timeSinceLastMissingHitResult = 0;
lastTradeRequestedFrom = 0;
lastTimeUsedConsumable = -99999.0f;
currentConsumableCooldownTime = 0;
m_needToDrawBarricadePlacement = 0;
m_BarricadeMeshPlacement = NULL;
m_canPlaceConsumableItem = false;
m_SpeedBoost = 0;
m_SpeedBoostTime = 0;
m_MorhineShotTime =0;
m_BandagesEffectTime = 0;
CurrentSpread = 0;
#เพิ่มด้านล่าง (mapId==12 คือแมพที่จะให้มีโชว์คนออนไลน์)
isGameHardcore = gClientLogic().m_gameInfo.mapId==12?true:false;//gamehardcore
HardMaxPlayers = gClientLogic().m_gameInfo.maxPlayers;//gamehardcore
#ค้นหา AI_Player.CPP
void obj_Player::DrawLabel()
{
r3dRenderer->SetMaterial(NULL);
struct PushRestoreStates
{
PushRestoreStates()
{
r3dRenderer->SetRenderingMode( R3D_BLEND_ALPHA | R3D_BLEND_NZ | R3D_BLEND_PUSH );
}
~PushRestoreStates()
{
r3dRenderer->SetRenderingMode( R3D_BLEND_POP );
}
} pushRestoreStates; (void)pushRestoreStates;
if(NetworkLocal && gClientLogic().localPlayer_)
{
#เพิ่มด้านล่าง
if(gClientLogic().m_gameInfo.channel==2)
{
int Players = 0;
for( GameObject* obj = GameWorld().GetFirstObject(); obj; obj = GameWorld().GetNextObject(obj) )
{
if(obj->isObjType(OBJTYPE_Human))
{
Players++;
}
}
char text[512];
sprintf(text,"Players Online: %i Missing: %i", Players,HardMaxPlayers-Players);
Font_Label->PrintF((r3dRenderer->ScreenW/2)-(strlen(text)+50), 0, r3dColor(243,43,37), "%s", text);
}


แก้ไข if (isGameHardcore == true) //gamehardcore
เป็น if(gClientLogic().m_gameInfo.channel==2)

จะสารมารถให้สามารถโชว์ได้ให้ แมพที่อยุ่ใน channel2 คือแมพปกติที่ใช้กัน

1 ห้องบิงกินเนอร์
2. ห้องปกติ
4. ห้องพรีเมี่ยม

วันอังคารที่ 25 เมษายน พ.ศ. 2560

ระบบกันฟลัดรีพอร์ตภาพ จำคนแจกไม่ได้ขออภัย

ระบบกันฟลัดรีพอร์ตภาพ
#ลองเทสดูนะครับ
ค้นหา HUDDisplay.cpp
if(actionID == HUDDisplay_ContextMenu_ReportPlayerID)
มองหา
char tmpStr[256];
เพิ่ม ไว้ด้านบน
static float ScreenShotTime = 0;
float curTime = r3dGetTime();
if(curTime > ScreenShotTime)
{
ScreenShotTime = curTime + 180; // 6*3 = 18
มองหา
showChatInput(tmpStr);
เพิ่มไว้ด้านล่าง
}
else
{
addChatMessage(0, "<REPORT>", "Wait 3 Minute To Report", 0);
return;
}
จะได้แบบนี้
__________________________________________________________
if(actionID == HUDDisplay_ContextMenu_ReportPlayerID)
{
static float ScreenShotTime = 0;
float curTime = r3dGetTime();
if(curTime > ScreenShotTime) //CR.KillerFloodX
{
char tmpStr[256];
ScreenShotTime = curTime + 180; // 300 = 5 MINUTES / 120 = 2 MINUTES / google.com time x to y
//sprintf(tmpStr, "FairFight \"%s\"", gamertag);
sprintf(tmpStr, "/report \"%s\" ", gamertag);
showChatInput(tmpStr);
}
else
{
addChatMessage(0, "<REPORT>", "Wait 3 Minute To Report", 0);
return;
}
}