1 fortres tax all town i need help

Results 1 to 5 of 5
  1. #1
    Valued Member anapse is offline
    MemberRank
    Aug 2009 Join Date
    130Posts

    1 fortres tax all town i need help

    i need 1 fortres example hotan and all city pay tax for 1 fortre

    i have 1proced is

    Code:
    USE [SRO_VT_SHARD]
    GO
    /****** Object:  StoredProcedure [dbo].[_get_fortress]    Script Date: 07/02/2013 12:24:47 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[_get_fortress]
    AS
    BEGIN
    DECLARE @JName VARCHAR(32)
    DECLARE @HName VARCHAR(32)
    DECLARE @BName VARCHAR(32)
    DECLARE @JTaxRatio INT
    DECLARE @HTaxRatio INT
    DECLARE @BTaxRatio INT
    DECLARE @JGuildID INT
    DECLARE @HGuildID INT
    DECLARE @BGuildID INT
    
      select  @JGuildID=GuildID , @JTaxRatio =TaxRatio from _SiegeFortress where FortressID = 1
    	select  @HGuildID=GuildID , @HTaxRatio =TaxRatio from _SiegeFortress where FortressID = 3
    	select  @BGuildID=GuildID , @BTaxRatio =TaxRatio from _SiegeFortress where FortressID = 6
    	select @JName=Name from _Guild where ID = @JGuildID
    	select @HName=Name from _Guild where ID = @HGuildID
    	select @BName=Name from _Guild where ID = @BGuildID
    
     SELECT @JName, @JTaxRatio, @HName, @HTaxRatio, @BName, @BTaxRatio
    END
    if i modif for
    Code:
    USE [SRO_VT_SHARD]
    GO
    /****** Object:  StoredProcedure [dbo].[_get_fortress]    Script Date: 07/02/2013 12:24:47 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[_get_fortress]
    AS
    BEGIN
    DECLARE @JName VARCHAR(32)
    DECLARE @HName VARCHAR(32)
    DECLARE @BName VARCHAR(32)
    DECLARE @JTaxRatio INT
    DECLARE @HTaxRatio INT
    DECLARE @BTaxRatio INT
    DECLARE @JGuildID INT
    DECLARE @HGuildID INT
    DECLARE @BGuildID INT
    
      select  @JGuildID=GuildID , @JTaxRatio =TaxRatio from _SiegeFortress where FortressID = 3
    	select  @HGuildID=GuildID , @HTaxRatio =TaxRatio from _SiegeFortress where FortressID = 3
    	select  @BGuildID=GuildID , @BTaxRatio =TaxRatio from _SiegeFortress where FortressID = 3
    	select @JName=Name from _Guild where ID = @JGuildID
    	select @HName=Name from _Guild where ID = @HGuildID
    	select @BName=Name from _Guild where ID = @BGuildID
    
     SELECT @JName, @JTaxRatio, @HName, @HTaxRatio, @BName, @BTaxRatio
    END
    is good?
    Last edited by anapse; 02-07-13 at 07:59 PM.


  2. #2
    Valued Member anapse is offline
    MemberRank
    Aug 2009 Join Date
    130Posts

    Re: 1 fortres tax all town i need help

    no help me? ok THX

  3. #3
    kaju BadFist is offline
    MemberRank
    Nov 2011 Join Date
    833Posts

    Re: 1 fortres tax all town i need help

    you need to put taxe manualy at each npc...

  4. #4
    Valued Member anapse is offline
    MemberRank
    Aug 2009 Join Date
    130Posts

    Re: 1 fortres tax all town i need help

    Quote Originally Posted by BadFist View Post
    you need to put taxe manualy at each npc...
    all gold for 1 fortre ?

    i need all gold go 1 fortre

  5. #5
    kaju BadFist is offline
    MemberRank
    Nov 2011 Join Date
    833Posts

    Re: 1 fortres tax all town i need help

    yes you need to put only in dw,sm,alexn/s and const. bcz if you put only 1 fw taxe from jangan,bandit are going to hotan...(is a example)



Advertisement