I'm test No drop for old port is now work.
http://forum.ragezone.com/f792/tut-v...p-item-969568/
http://forum.ragezone.com/f791/tutor...t-drop-989857/
how to make No Drop for src3 ?
I'm test No drop for old port is now work.
http://forum.ragezone.com/f792/tut-v...p-item-969568/
http://forum.ragezone.com/f791/tutor...t-drop-989857/
how to make No Drop for src3 ?
It work perfectly in v3 src.
Fuctions > WZ_Char_SRV_SetStatus ;
-- record last game update
update UsersData set GameDollars=@in_GameDollars, lastgamedate=GETDATE() where CustomerID=@in_CustomerID
-- update basic character data
update UsersChars set
GamePos=@in_GamePos,
GameFlags=@in_GameFlags,
Alive=@in_Alive,
Health=@in_Health,
Food=@in_Hunger,
Water=@in_Thirst,
Toxic=@in_Toxic,
TimePlayed=@in_TimePlayed,
LastUpdateDate=GETDATE(),
XP=@in_XP,
Reputation=@in_Reputation,
Stat00=@in_Stat00,
Stat01=@in_Stat01,
Stat02=@in_Stat02,
Stat03=@in_Stat03,
Stat04=@in_Stat04,
Stat05=@in_Stat05
where CharID=@in_CharID
-- update resources
update UsersData set ResWood=@in_ResWood, ResStone=@in_ResStone, ResMetal=@in_ResMetal where CustomerID=@in_CustomerID
if(@in_Alive = 0) begin
update UsersChars set DeathUtcTime=GETUTCDATE() where CharID=@in_CharID
-- set default backpack on death
update UsersChars set BackpackID=20176, BackpackSize=12 where CharID=@in_CharID
-- delete stuff from backpack
delete from UsersInventory where CustomerID=@in_CustomerID and CharID=@in_CharID
end
Change to ;
-- this function should be called only by server, so we skip all validations
--
/* -- record last game update
update UsersData set GameDollars=@in_GameDollars, lastgamedate=GETDATE() where CustomerID=@in_CustomerID
-- update basic character data
update UsersChars set
GamePos=@in_GamePos,
GameFlags=@in_GameFlags,
Alive=@in_Alive,
Health=@in_Health,
Food=@in_Hunger,
Water=@in_Thirst,
Toxic=@in_Toxic,
TimePlayed=@in_TimePlayed,
LastUpdateDate=GETDATE(),
XP=@in_XP,
Reputation=@in_Reputation,
Stat00=@in_Stat00,
Stat01=@in_Stat01,
Stat02=@in_Stat02,
Stat03=@in_Stat03,
Stat04=@in_Stat04,
Stat05=@in_Stat05
where CharID=@in_CharID
-- update resources
update UsersData set ResWood=@in_ResWood, ResStone=@in_ResStone, ResMetal=@in_ResMetal where CustomerID=@in_CustomerID*/
--if(@in_Alive = 0) begin
-- update UsersChars set DeathUtcTime=GETUTCDATE() where CharID=@in_CharID
-- set default backpack on death
update UsersChars set BackpackID=20176, BackpackSize=12 where CharID=@in_CharID
-- delete stuff from backpack
-- delete from UsersInventory where CustomerID=@in_CustomerID and CharID=@in_CharID
-- end
Search to WarZ_Server.sln ;
Find ;// drop all items
// drop all itemsfor(int i=0; i < loadout_->BackpackSize; i++)
{
const wiInventoryItem& wi = loadout_->Items[i];
if(wi.itemID > 0)
{
if(isSwimming || (isOverWater && waterDepth > allowedDepth))
BackpackRemoveItem(wi);
else
BackpackDropItem(i);
}
}
Change to ;
/*// drop all items- - - Updated - - -for(int i=0; i < loadout_->BackpackSize; i++)
{
const wiInventoryItem& wi = loadout_->Items[i];
if(wi.itemID > 0)
{
if(isSwimming || (isOverWater && waterDepth > allowedDepth))
BackpackRemoveItem(wi);
else
BackpackDropItem(i);
}
}*/
I do not remember exactly, I do not test. Maybe it can work.
how to make only for map nodrop ?
ex. WZ_Colorado_NoDrop is use no drop and WZ_Colorado is drop item ?
- - - Updated - - -
how to ?
follow this tut http://forum.ragezone.com/f791/tutor...t-drop-989857/ it work with v3 src but u need edit little code.
Just go Navicat-> Func -> WZ_Char_SRV_Setstatus and just remove this line delete from UsersInventory where CustomerID=@in_CustomerID and CharID=@in_CharID