![]() |
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) |
RE: Cutting up monster bodies - kn4tseb - 06-05-2014 02:47 PM Okey... thanks... but im still on it xDD.. under an ON=@Targon_item Trigger, how do i get the <SERV.CHARDEF.C_ID.RESOURCES> of the ARGO? need this <SERV.CHARDEF.<eval <MOREX>+<MOREY>>.RESOURCES> for ARGO, isnt it? RE: Cutting up monster bodies - Extreme - 06-06-2014 01:41 AM <SERV.CHARDEF.<ARGO.ID>.RESOURCES> ? Could you explain what do you want? RE: Cutting up monster bodies - kn4tseb - 06-06-2014 02:18 AM i'm trying to get the resources of a corpse when carving so i can create this resources at cont of the argo.... as similar to hardcoded behavior ... once i have it i will make some new changes... i just tried this at a dragon corpse and got value 0 SERV.B <SERV.CHARDEF.<ARGO.ID>.RESOURCES> PHP Code: ON=@TARGON_ITEM this is a little piece of the script, but to continue with it, what its really needed is to get the resources of the corpse been Targoned. So i'm trying to see what it gets with the SERV.B and all i get is "0", but when i put the ID like a C_dragon it works fine ;confused!!! RE: Cutting up monster bodies - kn4tseb - 06-06-2014 08:55 AM checking this thread: http://forum.spherecommunity.net/Thread-Question-How-to-Skin-an-NPCs-without-using-a-bladed-weapon?highlight=resources i found this: PHP Code: on=@dclick it's almost the same that i need but with ON=@Targon_Item trigger, so thats why i need to know how to get the resources from a chardef ![]() any help plz ^^ im still stuck on this ![]() and im so so so sorry for being such a pain in the .... with so many questions xd RE: Cutting up monster bodies - Extreme - 06-06-2014 12:52 PM ON=@TARGON_ITEM IF (<ARGO.TYPE> == T_CORPSE) && STRMATCH(*WEAPON*,<TYPE>) && <ARGO.TIMESTAMP> LOCAL.TARGET = <ARGO.P> LOCAL.BLOOD = { i_blood_2 1 i_blood_smear 1 } SERV.NEWITEM <LOCAL.BLOOD> NEW.ATTR 02 NEW.P <LOCAL.TARGET> NEW.TIMER 5 //60*2 NEW.FIX SERV.NEWITEM i_blood_pool_large NEW.ATTR 02 NEW.P <LOCAL.TARGET> NEW.TIMER 5 // 60 NEW.FIX ARGS=<SERV.CHARDEF.<EVAL <ARGO.MOREX>+<ARGO.MOREY>>.RESOURCES> WHILE !(<ISEMPTY <ARGV[<LOCAL._WHILE>]>>) SERV.NEWITEM <STREAT <ARGV[<LOCAL._WHILE>]>>,<STRARG <ARGV[<LOCAL._WHILE>]>> NEW.CONT=<ARGO> ENDWHILE TIMESTAMP 0 ENDIF RE: Cutting up monster bodies - kn4tseb - 06-06-2014 01:52 PM Jesus!! <ARGO.MOREX>+<ARGO.MOREY>> how could i miss it!!!!! :'( Thanks you so much Extreme, gonna try it right away everything worked but the NEW.CONT <ARGO> it says: Invalid container 00 RE: Cutting up monster bodies - Extreme - 06-06-2014 02:13 PM Well, if <ARGO> is the targeted item on @targon_item, and it is the t_corpse, it should works... RE: Cutting up monster bodies - kn4tseb - 06-06-2014 02:14 PM it works with any new item before "While" the resources created i can even bounced them, weird. EDIT: AFTER THE WHILE I CANT CONT ANY NEW ITEM TO <ARGO> even after the endwhile PHP Code: WHILE !(<ISEMPTY <ARGV[<LOCAL._WHILE>]>>) RE: Cutting up monster bodies - Mordaunt - 06-06-2014 04:45 PM Could be that ARGO is being lost. Store it in a local and call it from there. RE: Cutting up monster bodies - XuN - 06-06-2014 10:50 PM Using SRC.Targ will also probably solve any problem related to it. |