Changing Start Location

Results 1 to 23 of 23
  1. #1
    Infraction Banned sperati is offline
    MemberRank
    Aug 2011 Join Date
    5Posts

    config Changing Start Location

    Hello all, im developing a 2240 server, and i changed some maps zones, but i have a problem, i dont know how to change the start location of a character when he login before the character has been created. Can any help me please?


  2. #2
    root@tera:~$ sudo init 0 Terabit is offline
    MemberRank
    Jun 2011 Join Date
    rootLocation
    265Posts

    Re: Changing Start Location

    .....
    Last edited by Terabit; 19-08-11 at 03:56 PM.

  3. #3
    Infraction Banned sperati is offline
    MemberRank
    Aug 2011 Join Date
    5Posts

    Re: Changing Start Location

    in RespawnScript.txt you can change the area you will respaw if u die, not if the character is created. :/

  4. #4
    Member riksk is offline
    MemberRank
    Aug 2011 Join Date
    BrazilLocation
    86Posts

    Re: Changing Start Location

    try databases :D

    sorry i dont know what one, soon ill look here if its fixed

    look databases with your spawn coords, so u can change and see what happens ^^

  5. #5
    Infraction Banned sperati is offline
    MemberRank
    Aug 2011 Join Date
    5Posts

    Re: Changing Start Location

    at part2_zodiac exist a table named CHARPOS, yeah if i change the value there the character will change his pos, but that initial value i must change, i dont know with part of the server side or game side put that information there :/

  6. #6
    Apprentice vitorex is offline
    MemberRank
    Jun 2011 Join Date
    14Posts

    Re: Changing Start Location

    yeah .....

  7. #7
    Proficient Member ryllady is offline
    MemberRank
    Dec 2008 Join Date
    MalaysianLocation
    158Posts

    Re: Changing Start Location

    INSERT INTO CharPos (CID, LastPointX, LastPointY, LastPointZ, SavePointX, SavePointY, SavePointZ) VALUES (@CID, @PointX, @PointY, @PointZ, @PointX, @PointY, @PointZ)

    change position xyz on start


    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 134217730)


    change zone

  8. #8
    Apprentice gmryl2stone is offline
    MemberRank
    Dec 2013 Join Date
    13Posts

    Re: Changing Start Location

    Quote Originally Posted by ryllady View Post
    INSERT INTO CharPos (CID, LastPointX, LastPointY, LastPointZ, SavePointX, SavePointY, SavePointZ) VALUES (@CID, @PointX, @PointY, @PointZ, @PointX, @PointY, @PointZ)

    change position xyz on start


    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 134217730)


    change zone
    bro tell me where this file Sql Part2_Zodiac Then

  9. #9
    Account Upgraded | Title Enabled! RonaldinhoR9 is offline
    MemberRank
    Jan 2009 Join Date
    390Posts

    Re: Changing Start Location

    Terabit, i found hre, but that lines that ryllady said, we need to add them, or need to modify exixsting ones? Where to find them? zodiac part?

  10. #10
    root@tera:~$ sudo init 0 Terabit is offline
    MemberRank
    Jun 2011 Join Date
    rootLocation
    265Posts

    Re: Changing Start Location

    Quote Originally Posted by RonaldinhoR9 View Post
    Terabit, i found hre, but that lines that ryllady said, we need to add them, or need to modify exixsting ones? Where to find them? zodiac part?
    DB Part2_Zodiac > Stored Procedures > Properties InsertChar

  11. #11
    Account Upgraded | Title Enabled! RonaldinhoR9 is offline
    MemberRank
    Jan 2009 Join Date
    390Posts

    Re: Changing Start Location

    I found the table dbo.InsertChar, but dont have nothing like that thing ryllady wrote. So, i suppose that need to be add that lines into the INSERTCHAR table, right?

  12. #12
    root@tera:~$ sudo init 0 Terabit is offline
    MemberRank
    Jun 2011 Join Date
    rootLocation
    265Posts

    Re: Changing Start Location

    Quote Originally Posted by ryllady View Post
    INSERT INTO CharPos (CID, LastPointX, LastPointY, LastPointZ, SavePointX, SavePointY, SavePointZ) VALUES (@CID, @PointX, @PointY, @PointZ, @PointX, @PointY, @PointZ)

    change position xyz on start


    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 134217730)


    change zone
    add this.

  13. #13
    Account Upgraded | Title Enabled! RonaldinhoR9 is offline
    MemberRank
    Jan 2009 Join Date
    390Posts

    Re: Changing Start Location

    Hmm so, if i want game start in zone 5, for example, with 2 spots, 1 for human, and 1 for akkans, wha i need to to? where you see in red ServerID, put 5? and about the xyz, positios, wereh i put the values i want to the char log in the map?

  14. #14
    root@tera:~$ sudo init 0 Terabit is offline
    MemberRank
    Jun 2011 Join Date
    rootLocation
    265Posts

    Re: Changing Start Location

    Check at your demonsetup you will see there... and for respawn position at respawnscript

  15. #15
    Account Upgraded | Title Enabled! RonaldinhoR9 is offline
    MemberRank
    Jan 2009 Join Date
    390Posts

    Re: Changing Start Location

    where at demonsetup? the normal respawns, i see at respawnscript, but the first login, that coordinates, are in the respawnscript too?

  16. #16
    root@tera:~$ sudo init 0 Terabit is offline
    MemberRank
    Jun 2011 Join Date
    rootLocation
    265Posts

    Re: Changing Start Location

    ServerID : Demonsetup.ini

  17. #17
    Account Upgraded | Title Enabled! RonaldinhoR9 is offline
    MemberRank
    Jan 2009 Join Date
    390Posts

    Re: Changing Start Location

    hmm in what part of demonsetup?

  18. #18
    root@tera:~$ sudo init 0 Terabit is offline
    MemberRank
    Jun 2011 Join Date
    rootLocation
    265Posts

    Re: Changing Start Location

    I already give the clue please try by yourself

  19. #19
    Apprentice lluozai is offline
    MemberRank
    Dec 2012 Join Date
    13Posts

    Re: Changing Start Location

    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 134217730) <--- can make a Ex for me see?

  20. #20
    Cypher WireShark is offline
    MemberRank
    Jun 2009 Join Date
    Planet Earth xDLocation
    950Posts

    Re: Changing Start Location

    Quote Originally Posted by lluozai View Post
    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 134217730) <--- can make a Ex for me see?
    for example you have a value of ServerID = 123456 then

    change the script for your config
    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 123456) -- this is it

    +rep or likes if help
    Last edited by WireShark; 04-06-16 at 10:45 AM. Reason: addin something

  21. #21
    Apprentice lluozai is offline
    MemberRank
    Dec 2012 Join Date
    13Posts

    Re: Changing Start Location

    Quote Originally Posted by WireShark View Post
    for example you have a value of ServerID = 123456 then

    change the script for your config
    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 123456) -- this is it
    thanks you WireShark

  22. #22
    Apprentice sdprust is offline
    MemberRank
    May 2012 Join Date
    20Posts

    Re: Changing Start Location

    kickass newbie,
    old thread, but only noticed now that he has ressurrected.
    If anyone still interested on doing this, with some knowledge about SQL it is pretty easy:
    Just use a trigger to automate the process of changing the user's position once it is filled for the first time with a valid value.
    ( There is already a sql instruction to do that in the above posts, just implement it on a trigger ).
    Ps: This should be done on MS-SQL Server... no changes in server/cliente files are needed.

  23. #23
    Apprentice sdprust is offline
    MemberRank
    May 2012 Join Date
    20Posts

    Re: Changing Start Location

    Quote Originally Posted by sdprust View Post
    kickass newbie,
    old thread, but only noticed now that he has ressurrected.
    If anyone still interested on doing this, with some knowledge about SQL it is pretty easy:
    Just use a trigger to automate the process of changing the user's position once it is filled for the first time with a valid value.
    ( There is already a sql instruction to do that in the above posts, just implement it on a trigger ).
    Ps: This should be done on MS-SQL Server... no changes in server/cliente files are needed.
    Well, I had to do it last week and it is actually easier than what I proposed, cause there is already a stored procedure that you just have to modify. If anyone still interested:
    Modify the InsertChar (or something like that) Stored Procedure, adding the ServerID (Zone) in the following line, like already stated by some people here:
    INSERT INTO CharInfoEx (UID, ServerID) VALUES (@UID, 134217730)

    Now, to set a different spawn location for Human and Akkan, set a condition for the Character Nation before adding it to the database (INSERT command), where Nation 0 is Human and Nation 1 is Akkan:
    IF Nation = 0
    BEGIN
    PointX = <The X Coordinate for Humans goes here>
    PointY = ...
    PointZ = ...
    END
    ELSE
    BEGIN
    PointX = <The X Coordinate for Akkan goes here>
    PointY = ...
    PointZ = ...
    END



Advertisement