SphereCommunity
Death Menu - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Death Menu (/Thread-Death-Menu--2563)



Death Menu - Ultima One - 05-16-2013 12:49 AM

Time to share some scripts we use frequently on TUP. Some may be in need of updating.

This death menu is built to allow new players on the server a free and easy way to resurrect AND travel to a location they wish... for example, if they die in a dungeon, they could go back to the entrance, try another dungeon, or go back to a town.

Use: .deathmenu (while dead)

Code:
[FUNCTION deathmenu]
IF ((<src.account.totalconnecttime> < 5000) && (<src.skilltotal> < 450.1)) // remove line to remove limits
    IF ( <FLAGS> & statf_dead )
      IF !(<SRC.P.M> >= 10) // allow use on all main maps
        IF !(<eval <src.tag0.newbieout>> == 1)
            MENU MENU_deathtravelnewbie
        endif
       endif
    ENDIF
ENDIF // remove line to remove limits

[MENU MENU_deathtravelnewbie]
Death Travel
ON=0 Towns
    MENU MENU_deathtravel_TOWN
ON=0 Dungeons
    MENU MENU_deathtravel_DUNG
ON=0 MoonGates
    MENU MENU_deathtravel_MOON
ON=0 Go Home // My 'Town Stones' script required for this, or use your own 'home' location.
    resurrect
    hits = 100
    IF (<tag.home>)
        go <tag.home>
    ELSE
        go 1946,2702,20,0
    ENDIF
ON=0 Dont resurrect

[MENU MENU_deathtravel_TOWN]
Towns
ON=0 Britain
    resurrect
    hits = 100
    go Britain
ON=0 Bucaneer's Den
    resurrect
    hits = 100
    go Buccaneer's Den
ON=0 Cove (center)
    resurrect
    hits = 100
    go Cove
ON=0 Jhelom
    resurrect
    hits = 100
    go Jhelom
ON=0 Minoc
    resurrect
    hits = 100
    go Minoc
ON=0 Moonglow
    resurrect
    hits = 100
    go Moonglow
ON=0 Nujel'm
    resurrect
    hits = 100
    go Nujel'm
ON=0 Ocllo
    resurrect
    hits = 100
    go Ocllo
ON=0 Serpent's Hold
    resurrect
    hits = 100
    go Serpent's Hold
ON=0 Skara Brae
    resurrect
    hits = 100
    go Skara Brae
ON=0 Trinsic
    resurrect
    hits = 100
    go Trinsic
ON=0 Vesper
    resurrect
    hits = 100
    go Vesper
ON=0 Yew
    resurrect
    hits = 100
    go Yew
ON=0 PREVIOUS MENU
    MENU MENU_deathtravel

[MENU MENU_deathtravel_DUNG]
Dungeons
ON=0 Covetous (entrance)
    resurrect
    hits = 100
    go Covetous Entrance
ON=0 Deceit (entrance)
    resurrect
    hits = 100
    go Deceit Entrance
ON=0 Despise (entrance)
    resurrect
    hits = 100
    go Despise Entrance
ON=0 Destard (entrance)
    resurrect
    hits = 100
    go Destard Entrance
ON=0 Hythloth (entrance)
    resurrect
    hits = 100
    go Hythloth Entrance
ON=0 Shame (entrance)
    resurrect
    hits = 100
    go Shame Entrance
ON=0 Wrong (entrance)
    resurrect
    hits = 100
    go Wrong Entrance
ON=0 PREVIOUS MENU
    MENU MENU_deathtravel

[MENU MENU_deathtravel_MOON]
MoonGates
ON=0 Britain
    resurrect
    hits = 100
    go Britain Moongate
ON=0 Jhelom
    resurrect
    hits = 100
    go Jhelom Moongate
ON=0 Magincia
    resurrect
    hits = 100
    go Magincia Moongate
ON=0 Minoc/Vesper
    resurrect
    hits = 100
    go Minoc-Vesper Moongate
ON=0 Moonglow
    resurrect
    hits = 100
    go Moonglow Moongate
ON=0 Skara Brae
    resurrect
    hits = 100
    go Skara Brae Moongate
ON=0 Trinsic
    resurrect
    hits = 100
    go Trinsic Moongate
ON=0 Yew
    resurrect
    hits = 100
    go Yew Moongate
ON=0 PREVIOUS MENU
    MENU MENU_deathtravel