Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help ! Display the status of a corpse.
Author Message
nuke1985
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2016
Reputation: 0



Post: #1
Help ! Display the status of a corpse.
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]
ON=@CLICK
IF (<SRC.ACT.LINK>==04fffffff)
message @<local.corpsecolor> <NAME> (<RESCOUNT>) items
RETURN 0
ELSEIF (<SRC.ACT.LINK>!=04fffffff)
IF ( <link.kills> > <serv.murdermincount> )
   local.corpsecolor = 1000
    message @027 [PK]
ELSE
   if ( <link.karma> < <serv.playerneutral> )
      local.corpsecolor = 1000
    message @999 [Criminal]
   else
      local.corpsecolor = 1000
message @05b [Innocent]
   endif
ENDIF
ENDIF
message @<local.corpsecolor> <NAME> (<RESCOUNT>) items
//message @1000 (<RESCOUNT>) items
return 1
03-22-2018 12:54 AM
Find all posts by this user Like Post Quote this message in a reply
n1ghtwish
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 28 in 8 posts
Joined: Jan 2016
Reputation: 0



Post: #2
RE: Help ! Display the status of a corpse.
Can you tell us what's not working and any errors you find in the console?
03-22-2018 05:25 AM
Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

Posts: 137
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #3
RE: Help ! Display the status of a corpse.
[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.
03-22-2018 08:25 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like evening's post
nuke1985
Apprentice
*

Posts: 8
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2016
Reputation: 0



Post: #4
RE: Help ! Display the status of a corpse.
Thanks a lot, everything works great!
03-23-2018 08:19 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)