SphereCommunity
Cutting up monster bodies - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Cutting up monster bodies (/Thread-Cutting-up-monster-bodies)

Pages: 1 2 3 4


Cutting up monster bodies - kn4tseb - 06-04-2014 02:53 PM

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!


RE: Cutting up monster bodies - Extreme - 06-04-2014 03:12 PM

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 



RE: Cutting up monster bodies - kn4tseb - 06-04-2014 04:34 PM

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 ^^


RE: Cutting up monster bodies - Extreme - 06-05-2014 02:00 AM

It's not hardcoded...


RE: Cutting up monster bodies - kn4tseb - 06-05-2014 04:48 AM

One last thing xdd.. how may i obtain the resources of a CHARDEF, so i can add it to its cont?

ty ^^


RE: Cutting up monster bodies - Extreme - 06-05-2014 05:05 AM

<SERV.CHARDEF.C_ID.RESOURCERS> ?


RE: Cutting up monster bodies - kn4tseb - 06-05-2014 05:14 AM

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 >.<...


RE: Cutting up monster bodies - darksun84 - 06-05-2014 06:12 AM

Resources and

Code:
Added RESOURCES.n, RESOURCES.n.KEY and RESOURCES.n.VAL to items/characters.



RE: Cutting up monster bodies - kn4tseb - 06-05-2014 06:15 AM

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.


RE: Cutting up monster bodies - Extreme - 06-05-2014 07:22 AM

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