![]() |
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) |
Death Menu - Mordaunt - 09-10-2012 06:17 AM 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. RE: Death Menu - Onirim - 12-14-2012 05:36 AM I love it ! Erm... where is the @death you talking about in your script ? ^^' RE: Death Menu - Onirim - 12-14-2012 07:04 AM Damn... i've put the script in the server, and add the lines on \scripts\add-on\sphere_events_players.scp after the @death and @login lines... but norhing appends :/ RE: Death Menu - Mordaunt - 12-14-2012 07:05 AM If you have an event that is on all players defined in sphere.ini Code: //Events related to all players You can add: Code: ON=@Death To that event, or alternatively create an event: Code: [EVENTS 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 RE: Death Menu - Onirim - 12-15-2012 01:15 AM Okay, it's better now, thank you very much ![]() When I tested, I die in Minoc, and the gump say me the nearest town for resurrect is Moonglow. But when I choose it, I resurrect in Minoc. So it's good, I think I can arrange this myself (but maybe the script need a correction ?) RE: Death Menu - Onirim - 12-15-2012 03:31 AM 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 '' Code: ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu If I'm dead and login, I don't have the menu ![]() Any idea ? ^^ RE: Death Menu - Onirim - 12-15-2012 04:41 AM Okay... corrected the line Code: ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu ![]() 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. RE: Death Menu - Mordaunt - 12-15-2012 10:28 AM (12-15-2012 04:41 AM)Onirim Wrote: Okay... corrected the line it should be Code: ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu RE: Death Menu - Onirim - 12-15-2012 05:33 PM 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 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 I've a Sphere 56b 23/11/2012 build ![]() Maybe a problem between 56b builds ? RE: Death Menu - Mordaunt - 12-16-2012 03:12 AM Sorry completely my bad should be Code: If (<flags>&statf_dead) && !(<isgm>) |