Help ! Display the status of a corpse. - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Help ! Display the status of a corpse. (/Thread-Help-Display-the-status-of-a-corpse) |
Help ! Display the status of a corpse. - nuke1985 - 03-22-2018 12:54 AM Hello! help edit the script, the goal is such that if CLICK on the NPC corpse, it simply shows his name and the amount of things in his bag as defaulted, if it is the player then display his status as a killer or criminal Code: [typedef t_corpse] RE: Help ! Display the status of a corpse. - n1ghtwish - 03-22-2018 05:25 AM Can you tell us what's not working and any errors you find in the console? RE: Help ! Display the status of a corpse. - evening - 03-22-2018 08:25 PM [typedef t_corpse] ON=@CLICK if (<link.isplayer>) if ( <link.kills> > <serv.murdermincount> ) local.corpsecolor = 1000 message @027 [PK] elseif ( <link.karma> < <serv.playerneutral> ) local.corpsecolor = 1000 message @999 [Criminal] else local.corpsecolor = 1000 message @05b [Innocent] endif message @<local.corpsecolor> <NAME> (<RESCOUNT>) items else message @038a <NAME> (<RESCOUNT>) items endif return 1 I did not test this modification If there is a problem, I will test and fix it as soon as possible. RE: Help ! Display the status of a corpse. - nuke1985 - 03-23-2018 08:19 PM Thanks a lot, everything works great! |