Scripting Guide - Custom Respawn Locations Script


This script will handle respawn locations. You can set it to respawn you in custom places when you die on specific maps, and respawn you in a certain place for all maps you did not specify




First, you will have to open up the PlayerResurrect event

ex - "/god editscript playerresurrect"....that will open the event that runs when a player comes back to life

Once you get the trigger event opened, enter this code:

Sub Main(Player as Long)

Select Case GetPlayerMap(Player)
     Case 1 'Case 1 Means Map 1'
         PlayerWarp(Player, 6, 5, 5)
     Case 8
         PlayerWarp(Player, 5, 1, 10)
     Case Else
         PlayerWarp(Player, 1, 5, 5)
End Select

End Sub


When a player dies on map #1, they will respawn on Map 6, X-5, Y-5
When a player dies on map #8, they will respawn on Map 5, X-1, Y-10
When a player dies on any map not specified, they will respawn on Map 1, X-5, Y-5