[Request] NO Drop in I:SS Version 3 src

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! Returnerzx is offline
    MemberRank
    Apr 2011 Join Date
    236Posts

    [Request] NO Drop in I:SS Version 3 src

    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 ?


  2. #2
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [Request] NO Drop in I:SS Version 3 src

    It work perfectly in v3 src.

  3. #3
    Member Fraude is offline
    MemberRank
    Sep 2015 Join Date
    TurkeyLocation
    63Posts

    Re: [Request] NO Drop in I:SS Version 3 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 ;

    // drop all items
    Find ;
    // drop all items
    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);
    }
    }


    Change to ;

    /*// drop all items
    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);
    }
    }*/
    - - - Updated - - -

    I do not remember exactly, I do not test. Maybe it can work.

  4. #4
    Account Upgraded | Title Enabled! Returnerzx is offline
    MemberRank
    Apr 2011 Join Date
    236Posts

    Re: [Request] NO Drop in I:SS Version 3 src

    how to make only for map nodrop ?

    ex. WZ_Colorado_NoDrop is use no drop and WZ_Colorado is drop item ?

    - - - Updated - - -

    how to ?

  5. #5
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [Request] NO Drop in I:SS Version 3 src

    follow this tut http://forum.ragezone.com/f791/tutor...t-drop-989857/ it work with v3 src but u need edit little code.

  6. #6
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Request] NO Drop in I:SS Version 3 src


  7. #7
    Account Upgraded | Title Enabled! Adnan DatLife is offline
    MemberRank
    Aug 2015 Join Date
    main.cppLocation
    207Posts

    Re: [Request] NO Drop in I:SS Version 3 src

    Just go Navicat-> Func -> WZ_Char_SRV_Setstatus and just remove this line delete from UsersInventory where CustomerID=@in_CustomerID and CharID=@in_CharID



Advertisement