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-nmm7 (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-nmm7 (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-nmm7 (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
Getting the body of death char
Author Message
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #2
RE: Getting the body of death char
By body of death char I can think about 2 options

1-The dead body on the ground which will contains the loot
amount property will hold the char id (or anim id). For human male the amount is 400, for human female the amount is 401..the same for the other mobiles

2-The dead player anim, the body the client turn into when dead (afaik 402 for dead human male, 403 for dead human female...)


---

ID does not exist on serv.chardef.x.ID
try using baseid
<serf.chardef.<argo.amount>.baseid> //eval is not needed, decimal and hexadecimal number have the same values with different notations

if <argo.amount> == 400 || <argo.amount> == 401
say Its a human!
elif <argo.amount> == 605 || <argo.amount> == 606
say its an elf!
else
say its unknown!
endif

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 09-03-2014 04:32 AM by Feeh.)
09-03-2014 04:28 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Getting the body of death char - kn4tseb - 09-03-2014, 03:12 AM
RE: Getting the body of death char - Feeh - 09-03-2014 04:28 AM

Forum Jump:


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