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
Cutting up monster bodies
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
Cutting up monster bodies
Hi mates, i have a question, the event of cutting up the body of dead monsters is hardcoded? if its not, where at which file would i find it????

i couldnt get it.

Thanks!
06-04-2014 02:53 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Cutting up monster bodies
Set T_EVENTS_ITEM on EventsItem in Sphere.ini

PHP Code:
[TYPEDEF T_EVENTS_ITEM]
ON=@TARGON_ITEM
IF (<ARGO.TYPE> == T_CORPSE) && STRMATCH(*WEAPON*,<TYPE>)
 RETURN 
1
ENDIF 

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-04-2014 03:12 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #3
RE: Cutting up monster bodies
no need, because its already working by default i guess... i want to know which file has this event in case i want to modify it... because i havent found it.
i am using latest nightly scriptpack

EDITED!.

Ty!!!! It's all i needed ^^
(This post was last modified: 06-05-2014 04:05 AM by kn4tseb.)
06-04-2014 04:34 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Cutting up monster bodies
It's not hardcoded...

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-05-2014 02:00 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: Cutting up monster bodies
One last thing xdd.. how may i obtain the resources of a CHARDEF, so i can add it to its cont?

ty ^^
06-05-2014 04:48 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: Cutting up monster bodies
<SERV.CHARDEF.C_ID.RESOURCERS> ?

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-05-2014 05:05 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #7
RE: Cutting up monster bodies
uhmmmmmmmm.... a dragon for example has this:
RESOURCES=19 i_ribs_raw,20 i_hide_barbed,7 i_dragonscale_yellow

so those items and that quantity are created when scarving, right??

so an expression to get all those resources and created them at <ARGO>' contains?
--------------------------------------------------------------------------------
isnt working >.<...
(This post was last modified: 06-05-2014 05:52 AM by kn4tseb.)
06-05-2014 05:14 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: #8
RE: Cutting up monster bodies
Resources and

Code:
Added RESOURCES.n, RESOURCES.n.KEY and RESOURCES.n.VAL to items/characters.
(This post was last modified: 06-05-2014 06:12 AM by darksun84.)
06-05-2014 06:12 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #9
RE: Cutting up monster bodies
would you give me a simple example?

and by the way, if carving monsters is not hardcoded, which file contain that event?? i would like to take a look.

Thanks.
06-05-2014 06:15 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #10
RE: Cutting up monster bodies
Yes, carving is hardcoded, but the stuff created then carved is set on RESOURCES I think.

PHP Code:
[FUNCTION TEST]
FOR 
<EVAL <RESOURCES.N>-1>
 
SERV.<RESOURCES.<dLOCAL._FOR>.KEY> <RESOURCES.<dLOCAL._FOR>.VAL>
ENDFOR 

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-05-2014 07:22 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)