Add new spawn area for EU & CH Characters

Results 1 to 10 of 10
  1. #1
    No avatar RenePunik is offline
    MemberRank
    Feb 2013 Join Date
    1,431Posts

    Add new spawn area for EU & CH Characters

    Hello everyone, i want add new spawn area for ch & eu character like "Muhan" Region but not same spot.
    eu in spot and ch in other one can!

    Please fast.


  2. #2
    Valued Member Muhab Ashraf is offline
    MemberRank
    Feb 2014 Join Date
    Cairo,EgyptLocation
    105Posts

    Re: Add new spawn area for EU & CH Characters

    what about
    Code:
    declare @r int,@x int,@y int,@z int
    IF(@RefCharID <= 1932)BEGIN
    SET @r = XX SET @x = XX SET @y = XX SET @z = XX
    END ELSE BEGIN
    SET @r = XX SET @x = XX SET @y = XX SET @z = XX
    END

  3. #3
    No avatar RenePunik is offline
    MemberRank
    Feb 2013 Join Date
    1,431Posts

    Re: Add new spawn area for EU & CH Characters

    Quote Originally Posted by Muhab Ashraf View Post
    what about
    Code:
    declare @r int,@x int,@y int,@z int
    IF(@RefCharID <= 1932)BEGIN
    SET @r = XX SET @x = XX SET @y = XX SET @z = XX
    END ELSE BEGIN
    SET @r = XX SET @x = XX SET @y = XX SET @z = XX
    END
    Doesn't work. If you can modify query more to work fine please do it asap i need it.
    Last edited by RenePunik; 12-09-14 at 12:51 AM.

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

    Re: Add new spawn area for EU & CH Characters

    is not a query is on procedure on addlogchar.

  5. #5
    Valued Member Muhab Ashraf is offline
    MemberRank
    Feb 2014 Join Date
    Cairo,EgyptLocation
    105Posts

    Re: Add new spawn area for EU & CH Characters

    Quote Originally Posted by RenePunik View Post
    Doesn't work. If you can modify query more to work fine please do it asap i need it.
    isn't a query as BadFist said , just add it into _AddNewChar procedure and edit XX into your cords.

  6. #6
    No avatar RenePunik is offline
    MemberRank
    Feb 2013 Join Date
    1,431Posts

    Re: Add new spawn area for EU & CH Characters

    Quote Originally Posted by Muhab Ashraf View Post
    isn't a query as BadFist said , just add it into _AddNewChar procedure and edit XX into your cords.
    I know it's not query, but i have tried to edit Addnewchar producer but i failed.!

  7. #7
    Valued Member Muhab Ashraf is offline
    MemberRank
    Feb 2014 Join Date
    Cairo,EgyptLocation
    105Posts

    Re: Add new spawn area for EU & CH Characters

    Quote Originally Posted by RenePunik View Post
    I know it's not query, but i have tried to edit Addnewchar producer but i failed.!
    whatever i just told you the way ,it's not my problem that you can't even add this in to your procedure at the right line with changing it's cords!

  8. #8
    Member Syloxx is offline
    MemberRank
    Aug 2014 Join Date
    GermanyLocation
    68Posts

    Re: Add new spawn area for EU & CH Characters



    add simply this to your _AddNewChar SP ?

  9. #9
    No avatar RenePunik is offline
    MemberRank
    Feb 2013 Join Date
    1,431Posts

    Re: Add new spawn area for EU &amp; CH Characters

    Quote Originally Posted by Syloxx View Post


    add simply this to your _AddNewChar SP ?
    Worked, thank you very much + like
    Last edited by RenePunik; 27-09-14 at 11:19 PM.

  10. #10
    Apprentice dya2 is offline
    MemberRank
    Aug 2014 Join Date
    14Posts

    Re: Add new spawn area for EU &amp; CH Characters

    Quote Originally Posted by RenePunik View Post
    What's query do?!
    it do what exactly u want

    1. take ur char to the place of spawn and logoff it

    then open
    SRO_VT_SHARD => Programmability => Stored Procedures , find _AddNewChar and right click and press modify

    add this query

    ---------- Set New Players Place ---START---
    Declare @Race TINYINT
    SELECT @Race = Country
    FROM _RefObjCommon
    WHERE ID = @RefCharID

    IF @Race = 0 -- CHINA
    BEGIN
    SELECT @StartRegionID = 25000,
    @StartPos_X = 976,
    @StartPos_Y = -0.42654,
    @StartPos_Z = 118
    END
    IF @Race = 1 --EURO
    BEGIN
    SELECT @StartRegionID = 25000,
    @StartPos_X = 976,
    @StartPos_Y = -0.42654,
    @StartPos_Z = 118
    END
    ---------- Set New Players Place ---END---
    thnx to Syloxx

    set @StartRegionID = 25000, " to the region id of ur char at table _Char"
    @StartPos_X = 976, to the x pos of ur char at table _Char
    @StartPos_Y = -0.42654, to the y pos of ur char at table _Char
    @StartPos_Z = 118 to the z pos of ur char at table _Char
    and execute



Advertisement