jna Posted August 21, 2008 Author Share Posted August 21, 2008 when someone gets killed how do i do it so that it changes place.. ppl spawn at center and i want it to go to X:16 Y:5 btw ty for all of you that always answer my questions Link to comment Share on other sites More sharing options...
Niko Posted August 21, 2008 Share Posted August 21, 2008 ok their is a script line you need to change in your main.txt which is located in your server folder. On Death sub. Link to comment Share on other sites More sharing options...
jna Posted August 21, 2008 Author Share Posted August 21, 2008 but idk how to script or where it is Link to comment Share on other sites More sharing options...
Inunah Posted August 21, 2008 Share Posted August 21, 2008 Um, go into your server folder, and then the scripts folder. Open the one named Main, then press control and f. It'll open up a search thingy. Type in death, and click next. It'll take you to the part of the file that you need.I don't know how to script, but I changed the parts where it says 'mapnum' and 'x' and 'y' Link to comment Share on other sites More sharing options...
Electrokinesis Posted August 21, 2008 Share Posted August 21, 2008 If you're using 2.7 you can also just go to the map editor, click properties and change it right from there.Though you have to set the respawn for each map(when they die on that map, you set what map and what coordinates they will spawn), but it is useful in case you want them to respawn in the nearest town or something. Link to comment Share on other sites More sharing options...
Inunah Posted August 21, 2008 Share Posted August 21, 2008 @Electrokinesis:> If you're using 2.7 you can also just go to the map editor, click properties and change it right from there.> Though you have to set the respawn for each map(when they die on that map, you set what map and what coordinates they will spawn), but it is useful in case you want them to respawn in the nearest town or something.There ain't no respawn editor in mah mapeditor. Link to comment Share on other sites More sharing options...
Electrokinesis Posted August 21, 2008 Share Posted August 21, 2008 If you're using EE 2.7 it here. (points down) Link to comment Share on other sites More sharing options...
Niko Posted August 21, 2008 Share Posted August 21, 2008 thats for every map, the script is for death respawns on the same map everytime. Link to comment Share on other sites More sharing options...
Inunah Posted August 21, 2008 Share Posted August 21, 2008 OOOOOOH. That helps.But i'm switching to EE (If it'll let me online, dammit! It will not, even when the server is on the same computer as the game itself!) Link to comment Share on other sites More sharing options...
Electrokinesis Posted August 21, 2008 Share Posted August 21, 2008 @Niko:> thats for every map, the script is for death respawns on the same map everytime.True, but it's only useful if you only want it to respawn there.I said the other would be useful for multiple respawn points. (or to quote "useful in case you want them to respawn in the nearest town or something")The topic starter never specified which they wanted, so I thought I'd supply an alternative. Link to comment Share on other sites More sharing options...
Niko Posted August 21, 2008 Share Posted August 21, 2008 lol I was not arguing or anything… Your anwser was as fine as mine jolly o'l fellow. Link to comment Share on other sites More sharing options...
Electrokinesis Posted August 21, 2008 Share Posted August 21, 2008 Good! I hate to get on an admin's bad side. ;P Link to comment Share on other sites More sharing options...
Gwen Posted August 21, 2008 Share Posted August 21, 2008 jna… how exactly do you do you want this to work...are you going to make save points... or are you just going to have it so no matter where you are you always go back to a certian map... do you want to respawn in the same map at a certian x y?Does niko have a good side? Link to comment Share on other sites More sharing options...
monowolf00 Posted August 21, 2008 Share Posted August 21, 2008 > Does niko have a good side?I thought he was all gangsta rap all the time Link to comment Share on other sites More sharing options...
Gwen Posted August 21, 2008 Share Posted August 21, 2008 sooo… the answer is NO! Link to comment Share on other sites More sharing options...
Niko Posted August 21, 2008 Share Posted August 21, 2008 gangster rap all the time huh? That makes me a bad person? Link to comment Share on other sites More sharing options...
Gwen Posted August 21, 2008 Share Posted August 21, 2008 niko… im trying to make you look like a bad ass... not the cuddly clown i know you realy are... sheesh Link to comment Share on other sites More sharing options...
Niko Posted August 21, 2008 Share Posted August 21, 2008 oh, oh sorry didn't ketch that at first. Yeah listen to Gwen, gangster bad ass…(you weren't supposed to tell no one about my soft side. Thats exclusive.) Link to comment Share on other sites More sharing options...
jna Posted August 22, 2008 Author Share Posted August 22, 2008 you ppl getting off topic and i want it so that no matter what always to same map Link to comment Share on other sites More sharing options...
Niko Posted August 22, 2008 Share Posted August 22, 2008 maint.txt in the scripting folder in the server folder. Open the .txt and click ctrl-F then search for Ondeathsub. When it finds it for you, type in the map number. Then the x and y coordinate that you want the player to spawn at. Link to comment Share on other sites More sharing options...
monowolf00 Posted August 22, 2008 Share Posted August 22, 2008 ```Sub OnDeath(Index) Dim MapNum Dim ClassID Dim X Dim Y If GetMapBootMap(Index) > 0 Then Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index)) Else ClassID = GetPlayerClass(Index) MapNum = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "Map") X = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "x") Y = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "y") Call PlayerWarp(Index, MapNum, X, Y) End IfEnd Sub```Thats SubOnDeath just incase you are wondering. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now