gdog12356 Posted April 16, 2011 Author Share Posted April 16, 2011 hello, i would like to know how to make it so when diffrent classes die, they spawn in diffrent areas. I have tried looking in the server source but cannot seem to find the line of code for death. I am using richys modification(s) 2.6\. any help would be greatly appreciated thanx :). Link to comment Share on other sites More sharing options...
Sada Posted April 16, 2011 Share Posted April 16, 2011 You need to start learning this stuff on your own, i'm going to give you some hints… but not tell you how to do it.Open up modPlayer.bas in the server.vbp then go to the sub routine called onDeath, It's in there. Link to comment Share on other sites More sharing options...
cowin000 Posted April 16, 2011 Share Posted April 16, 2011 A nice hint. But your right people will better understand programming if they stopasking for others to do it for them!. Link to comment Share on other sites More sharing options...
Sada Posted April 16, 2011 Share Posted April 16, 2011 So how has the progress been βluΣ Ã¯osΣ? If your having problems remember to look back at the topic you made "different classes start in different positions" and souls response, if you combine the knowledge you learnt there with the hint I just gave you, you should be able to work it out! :)offtopic: Thanks cowin :P Link to comment Share on other sites More sharing options...
gdog12356 Posted April 16, 2011 Author Share Posted April 16, 2011 @Sada:> So how has the progress been βluΣ Ã¯osΣ? If your having problems remember to look back at the topic you made "different classes start in different positions" and souls response, if you combine the knowledge you learnt there with the hint I just gave you, you should be able to work it out! :)> > offtopic: Thanks cowin :Pi decided i would change this``` ' Warp player away Call SetPlayerDir(index, DIR_DOWN) With Map(GetPlayerMap(index)) ' to the bootmap if it is set If .BootMap > 0 Then PlayerWarp index, .BootMap, .BootX, .BootY Else Call PlayerWarp(index, START_MAP, START_X, START_Y) End If End With```this is what i have so far```Call SetPlayerDir(index, DIR_DOWN) With Map(GetPlayerMap(index))If GetPlayerClass(index) = 1 ThenCall PlayerWarp(index, 1, 4, 1)Else If GetPlayerClass(index) = 2 ThenCall PlayerWarp(index, 2, 4, 4)Else If GetPlayerClass(index) = 3 ThenCall PlayerWarp(index, 3, 4, 4)Else If GetPlayerClass(index) = 4 ThenCall PlayerWarp(index, 4, 4, 4) End If End With```what is wrong with it? Link to comment Share on other sites More sharing options...
cheatking Posted April 16, 2011 Share Posted April 16, 2011 I dont think you need:With Map(GetPlayerMap(index)) … End With Link to comment Share on other sites More sharing options...
gdog12356 Posted April 16, 2011 Author Share Posted April 16, 2011 @Mr.:> I dont think you need:> With Map(GetPlayerMap(index)) … End Withthnx, it works :) 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