[HELP] price matematic rent server

Results 1 to 2 of 2
  1. #1
    Apprentice AlexandreDiaz is offline
    MemberRank
    Dec 2016 Join Date
    18Posts

    sad [HELP] price matematic rent server

    I want set
    30 days = 10 slot > 80k gc
    30 days = 30 slots > 120k gc

    60 days = 10 slot > 140k gc
    60 days = 30 slots > 200k gc

    But i can't understnd how it work.
    Embed code: https://pastebin.com/vzPzjgxi
    PHP Code:
    ALTER PROCEDURE [dbo].[WZ_ServerGetPrices]ASBEGIN    SET NOCOUNT ON;
        
    select 0 as ResultCode        -- GAMESERVER prices    select        0            as 'Base_US',        -- 8500 base price per server per month in US regionif region is disabled        80000    as 'Base_EU',        -- 8500 base price per server per month in europe regionif region is disabled        0            as 'Base_RU',        -- 8500 base price per server per month in russian regionif region is disabled        90000    as 'Base_SA',        -- South americaShould be 3x price of US\EU server due to high cost of renting server equipment in Brazil        -- percents of base price per each option        0        as 'PVE',        0        as 'PVP',        800        as 'Slot1',            -- 10 plr        1200        as 'Slot2',            -- 20 plr        -10        as 'Slot3',            -- 30 plr        -10        as 'Slot4',            -- 40 plr        -10        as 'Slot5',            -- 50 plr        0        as 'Passworded',        0        as 'MonthX2',        --         -10        as 'MonthX3',        --         -15        as 'MonthX6',        -70        as 'WeekX1', -- for renting one week only        0        as 'OptNameplates',        0        as 'OptCrosshair',        0        as 'OptTracers'            -- STRONGHOLD prices    select        0        as 'Base_US',        -- base price per server per month in US regionif region is disabled        0        as 'Base_EU',        -- base price per server per month in europe regionif region is disabled        0        as 'Base_RU',        -- base price per server per month in russian regionif region is disabled        0        as 'Base_SA',        -- percents of base price per each option        0        as 'PVE',        0        as 'PVP',        0        as 'Slot1',            -- 10 plr        50        as 'Slot2',            -- 20 plr        100        as 'Slot3',            -- 30 plr        150        as 'Slot4',            -- 40 plr        200        as 'Slot5',            -- 50 plr        0        as 'Passworded',        0        as 'MonthX2',        --         0        as 'MonthX3',        --         0        as 'MonthX6',        -40        as 'WeekX1', -- for renting one week only        0        as 'OptNameplates',        0        as 'OptCrosshair',        0        as 'OptTracers'            -- games CAPACITY report    declare    [MENTION=21783]Game[/MENTION]s_US int 0    declare    [MENTION=21783]Game[/MENTION]s_EU int 0    declare    [MENTION=21783]Game[/MENTION]s_RU int 0    declare    [MENTION=21783]Game[/MENTION]s_SA int 0    select    [MENTION=21783]Game[/MENTION]s_US count(*) from ServersList where ServerRegion=1  and WorkHours<RentHours and ServerMap<>3    select    [MENTION=21783]Game[/MENTION]s_EU count(*) from ServersList where ServerRegion=10 and WorkHours<RentHours and ServerMap<>3    select    [MENTION=21783]Game[/MENTION]s_RU count(*) from ServersList where ServerRegion=20 and WorkHours<RentHours and ServerMap<>3    select    [MENTION=21783]Game[/MENTION]s_SA count(*) from ServersList where ServerRegion=30 and WorkHours<RentHours and ServerMap<>3
        select        
    -- modify numbers here1st is global server capacity2nd is our HOSTED server number        -- mul by 2 as with hibernate we can support more servers now        (650*4) - as 'Capacity_US',    [MENTION=21783]Game[/MENTION]s_US as 'Games_US',        (50*1) - as 'Capacity_EU',    [MENTION=21783]Game[/MENTION]s_EU as 'Games_EU',        (50*4)      as 'Capacity_RU',    [MENTION=21783]Game[/MENTION]s_RU as 'Games_RU',        (100*3) - 0  as 'Capacity_SA',    [MENTION=21783]Game[/MENTION]s_SA as 'Games_SA'
        
    -- strongholds CAPACITY report    select    [MENTION=21783]Game[/MENTION]s_US count(*) from ServersList where ServerRegion=1  and WorkHours<RentHours and ServerMap=3    select    [MENTION=21783]Game[/MENTION]s_EU count(*) from ServersList where ServerRegion=10 and WorkHours<RentHours and ServerMap=3    select    [MENTION=21783]Game[/MENTION]s_RU count(*) from ServersList where ServerRegion=20 and WorkHours<RentHours and ServerMap=3    select    [MENTION=21783]Game[/MENTION]s_SA count(*) from ServersList where ServerRegion=30 and WorkHours<RentHours and ServerMap=3
        select        
    -- modify numbers here1st is global server capacity2nd is our HOSTED server number        -- mul by 4 as with hibernate we can support more servers now        (650*4) - as 'Capacity_US',    [MENTION=21783]Game[/MENTION]s_US as 'Games_US',        (50*1) - as 'Capacity_EU',    [MENTION=21783]Game[/MENTION]s_EU as 'Games_EU',        (50*4)      as 'Capacity_RU',    [MENTION=21783]Game[/MENTION]s_RU as 'Games_RU',        (100*3) - 0  as 'Capacity_SA',    [MENTION=21783]Game[/MENTION]s_SA as 'Games_SA'        END 


  2. #2
    Account Upgraded | Title Enabled! IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    197Posts

    Re: [HELP] price matematic rent server

    best solution is to rewrite the whole shit.



Advertisement