Thread Rating:
- 2 Votes - 5 Average
- 1
- 2
- 3
- 4
- 5
Death Menu
|
Author |
Message |
Mordaunt
Super Moderator
Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35
|
Death Menu
Just updated an old old script.
Death Menu v2.2
Pop up menu when a player dies gives them the option to:
Go to the nearest Town & Resurrect
Go to the nearest Shrine & Resurrect
Resurrect in place (once per day)
Wait for player assistance
when using the last option the menu will pop up again after 60 seconds if the player has not been resurrected.
|
|
09-10-2012 06:17 AM |
|
|
Mordaunt
Super Moderator
Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35
|
RE: Death Menu
If you have an event that is on all players defined in sphere.ini
Code:
//Events related to all players
EventsPlayer=e_allplayers // <--- here
You can add:
Code:
ON=@Death
if !(<isgm>)
TIMERF 3, f_closest //timer allows for death screen change
endif
ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
if (<flags>&=statf_dead>) && !(<isgm>)
f_closest
endif
To that event, or alternatively create an event:
Code:
[EVENTS e_death_event]
ON=@Death
if !(<isgm>)
TIMERF 3, f_closest //timer allows for death screen change
endif
ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
if (<flags>&=statf_dead>) && !(<isgm>)
f_closest
endif
[code]
and set your ini to look like this:
[code]
//Events related to all players
EventsPlayer=e_death_event
A third option exists where you all player event line in the ini can look like this:
Code:
//Events related to all players
EventsPlayer=e_random_event, e_another_random_event, e_death_event
|
|
12-14-2012 07:05 AM |
|
|
Onirim
Journeyman
Posts: 64
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0
UO: Rebellion
|
RE: Death Menu
So, in death-menu2.2.scp, on line 47, the coords of Moonglow are in Minoc. it must be:
Code:
dest1_3 4442,1172,0 Moonglow
But I've another problem with the script. When I log with a character, I've an error:
Code:
18:58:ERROR:(sphere_events_players.scp,413)Undefined symbol ''
18:58:ERROR:(sphere_events_players.scp,413)Undefined symbol ''
I've just copied your lines here, juste after the ON=@Death section.
Code:
ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
If (<flags>&=statf_dead>) && !(<isgm>)
f_closest
Endif
If I'm dead and login, I don't have the menu
Any idea ? ^^
(This post was last modified: 12-15-2012 04:12 AM by Onirim.)
|
|
12-15-2012 03:31 AM |
|
|
Onirim
Journeyman
Posts: 64
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0
UO: Rebellion
|
RE: Death Menu
Okay... corrected the line
Code:
ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
If (<<flags>&=statf_dead>) && !(<isgm>)
f_closest
Endif
Addes a < before the <flags>
Now I've still an error, but the gump appear on login screen.
Maybe another error for Sphere in the line, but I don't find it.
|
|
12-15-2012 04:41 AM |
|
|
Onirim
Journeyman
Posts: 64
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0
UO: Rebellion
|
RE: Death Menu
Really, in my server this section is okay
Code:
ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
If (<<flags>&=statf_dead>) && !(<isgm>)
f_closest
Endif
and this section doesn't work at all
Code:
ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
If (<flags>&=statf_dead) && !(<isgm>)
f_closest
Endif
I've a Sphere 56b 23/11/2012 build
Maybe a problem between 56b builds ?
|
|
12-15-2012 05:33 PM |
|
|
User(s) browsing this thread: 2 Guest(s)