Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Solved]Diffrent classes RESPAWN in diffrent positions after death?


gdog12356
 Share

Recommended Posts

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

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

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

@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 :P

i 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 Then
Call PlayerWarp(index, 1, 4, 1)
Else If GetPlayerClass(index) = 2 Then
Call PlayerWarp(index, 2, 4, 4)
Else If GetPlayerClass(index) = 3 Then
Call PlayerWarp(index, 3, 4, 4)
Else If GetPlayerClass(index) = 4 Then
Call PlayerWarp(index, 4, 4, 4)
        End If
    End With

```
what is wrong with it?
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...