schnurman Posted April 4, 2011 Author Share Posted April 4, 2011 Basically is it possible to do that in VB6 and if there is could you help me find out how to do that? :huh: Link to comment Share on other sites More sharing options...
zdearborn Posted April 4, 2011 Share Posted April 4, 2011 In Server source, in modPlayer under Sub OnDeath replace``` ' Warp player away Call SetPlayerDir(Index, DIR_DOWN) If .BootMap > 0 Then PlayerWarp Index, .BootMap, .BootX, .BootY Else Call PlayerWarp(Index, START_MAP, START_X, START_Y) End If End With```and replace it with``` ' Warp player away Call SetPlayerDir(Index, DIR_DOWN) PlayerWarp Index, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index)``` Link to comment Share on other sites More sharing options...
schnurman Posted April 4, 2011 Author Share Posted April 4, 2011 @foxtrott:> In Server source, in modPlayer under Sub OnDeath replace> > ```> ' Warp player away> Call SetPlayerDir(Index, DIR_DOWN)> > If .BootMap > 0 Then> PlayerWarp Index, .BootMap, .BootX, .BootY> Else> Call PlayerWarp(Index, START_MAP, START_X, START_Y)> End If> End With> > ```> and replace it with> ```> ' Warp player away> Call SetPlayerDir(Index, DIR_DOWN)> > PlayerWarp Index, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index)> > ```Thanks alot :) Link to comment Share on other sites More sharing options...
schnurman Posted April 5, 2011 Author Share Posted April 5, 2011 @foxtrott:> In Server source, in modPlayer under Sub OnDeath replace> > ```> ' Warp player away> Call SetPlayerDir(Index, DIR_DOWN)> > If .BootMap > 0 Then> PlayerWarp Index, .BootMap, .BootX, .BootY> Else> Call PlayerWarp(Index, START_MAP, START_X, START_Y)> End If> End With> > ```> and replace it with> ```> ' Warp player away> Call SetPlayerDir(Index, DIR_DOWN)> > PlayerWarp Index, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index)> > ```well I didn't get to try it till now sence i was gone and didn't work so oh well… Link to comment Share on other sites More sharing options...
Helladen Posted April 5, 2011 Share Posted April 5, 2011 It should work. Make sure you have End With below what you replace. Link to comment Share on other sites More sharing options...
schnurman Posted April 5, 2011 Author Share Posted April 5, 2011 wait im going to retry and edit code Link to comment Share on other sites More sharing options...
schnurman Posted April 5, 2011 Author Share Posted April 5, 2011 @Helladen:> It should work. Make sure you have End With below what you replace.nope wont work :( Link to comment Share on other sites More sharing options...
Tivoilos Posted April 5, 2011 Share Posted April 5, 2011 1) Make sure your editing the right code2) Make sure your synax is correct3) Make sure you are compiling, where it makes a .exe file for you Link to comment Share on other sites More sharing options...
Grizzy Posted April 5, 2011 Share Posted April 5, 2011 I feel like ur slightly having the same problem I am.. I just can't figure out how to change where they spawn at the start at. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted April 5, 2011 Share Posted April 5, 2011 @Carl:> Basically is it possible to do that in VB6 and if there is could you help me find out how to do that? :huh:Wait, what? Why would you respawn at the place you die? That's like you're fighting a monster and you just pop back up? Easiest way would be to remove all this:``` ' Warp player away Call SetPlayerDir(Index, DIR_DOWN) If .BootMap > 0 Then PlayerWarp Index, .BootMap, .BootX, .BootY Else Call PlayerWarp(Index, START_MAP, START_X, START_Y) End If End With```@Grizzy:> I feel like ur slightly having the same problem I am.. I just can't figure out how to change where they spawn at the start at.Change START_MAP, START_X, START_Y to the values you want in modConstants server-side. 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