The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Number of Killers @DeathCorpse
Author Message
Chukwuemeka
Apprentice
*

Posts: 12
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2016
Reputation: 0



Post: #1
Number of Killers @DeathCorpse
Hi,

I'm trying to figure out if there is a way to get the number of killers while using the @DeathCorpse trigger?

I know about <ATTACKER> and ARGN1 on @Kill, but is there a way I can pull it using only @DeathCorpse?


Thanks!
05-27-2017 10:15 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Number of Killers @DeathCorpse
Not in @deathcorpse i think, you have to use @kill trigger at least then save the killers uids in a sort of list and retrieve it in @deathcorpse
05-27-2017 06:57 PM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #3
RE: Number of Killers @DeathCorpse
dude, just use <attacker> You can call it everywhere at anytime. I mean, u can use <attacker> on any trigger or script. It dosnt depends of any specific trigger, so u can call it in everytime you want to check number of atackers.

https://wiki.spherecommunity.net/index.p...e=ATTACKER
05-29-2017 03:17 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Number of Killers @DeathCorpse
Yes attacker seems the perfect way
05-29-2017 07:16 AM
Find all posts by this user Like Post Quote this message in a reply
Chukwuemeka
Apprentice
*

Posts: 12
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2016
Reputation: 0



Post: #5
RE: Number of Killers @DeathCorpse
Thanks guys!

Does ATTACKER really work on DeathCorpse? It seems odd, like it's always returning zero to me.
05-29-2017 08:16 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Number of Killers @DeathCorpse
Hmm i tried yesterday and it seems to work in @deathcorpse
05-29-2017 10:14 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #7
RE: Number of Killers @DeathCorpse
when an char kill another char, the trigger order is @Kill (attacker) -> @Death (victim) -> @DeathCorpse (victim)

I can't remember correctly but ATTACKER list is cleared after @Death or @DeathCorpse, maybe that's why you always got 0 on @DeathCorpse (it can also be 0 if you kill yourself without any other char hit you)

so try using @Death instead @DeathCorpse to check if it works
05-30-2017 01:12 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #8
RE: Number of Killers @DeathCorpse
Characters still working in @deathcorpse I use it for some things.
06-22-2017 01:26 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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