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
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: #11
RE: Cutting up monster bodies
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?
(This post was last modified: 06-05-2014 03:09 PM by kn4tseb.)
06-05-2014 02:47 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: #12
RE: Cutting up monster bodies
<SERV.CHARDEF.<ARGO.ID>.RESOURCES> ?

Could you explain what do you want?

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-06-2014 01:41 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: #13
RE: Cutting up monster bodies
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
IF (<ARGO.TYPE> == T_CORPSE) && STRMATCH(*WEAPON*,<TYPE>)
    
LOCAL.TARGET = <ARGO.P>
    
LOCAL.BLOOD = { i_blood_2 1 i_blood_smear 1 }
    
SERV.NEWITEM <LOCAL.BLOOD>
    NEW.
ATTR 02
    
NEW.<LOCAL.TARGET>
    NEW.
TIMER 5 //60*2
    
NEW.FIX
    SERV
.NEWITEM i_blood_pool_large
    
NEW.ATTR 02 
    
NEW.<LOCAL.TARGET>
    NEW.
TIMER 5 // 60
    
NEW.FIX 
// SERV.B <SERV.CHARDEF.C_DRAGON.RESOURCES>
SERV.<SERV.CHARDEF.<ARGO.ID>.RESOURCES

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!!!
(This post was last modified: 06-06-2014 04:04 AM by kn4tseb.)
06-06-2014 02:18 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: #14
RE: Cutting up monster bodies
checking this thread: http://forum.spherecommunity.net/Thread-...=resources
i found this:

PHP Code:
on=@dclick                
IF (<SRC.isorc>)
    if <
timestamp>
        
ARGS=<SERV.CHARDEF.<eval <MOREX>+<MOREY>>.RESOURCES>
        WHILE !(<
isempty <ARGV[<LOCAL._WHILE>]>>)
            
SERV.NEWITEM <STREAT <ARGV[<LOCAL._WHILE>]>>,<STRARG <ARGV[<LOCAL._WHILE>]>>
            NEW.
CONT=<UID>
        ENDWHILE
        
timestamp=0
    
endif 

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 Smile
any help plz ^^ im still stuck on this Confused
and im so so so sorry for being such a pain in the .... with so many questions xd
06-06-2014 08:55 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: #15
RE: Cutting up monster bodies
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

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.
(This post was last modified: 06-06-2014 12:55 PM by Extreme.)
06-06-2014 12:52 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: #16
RE: Cutting up monster bodies
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
(This post was last modified: 06-06-2014 02:07 PM by kn4tseb.)
06-06-2014 01:52 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: #17
RE: Cutting up monster bodies
Well, if <ARGO> is the targeted item on @targon_item, and it is the t_corpse, it should works...

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-06-2014 02:13 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: #18
RE: Cutting up monster bodies
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>]>>)
SERV.NEWITEM <STREAT <ARGV[<LOCAL._WHILE>]>>,<STRARG <ARGV[<LOCAL._WHILE>]>>
NEW.
CONT=<ARGO>
ENDWHILE 
(This post was last modified: 06-06-2014 03:24 PM by kn4tseb.)
06-06-2014 02:14 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #19
RE: Cutting up monster bodies
Could be that ARGO is being lost.
Store it in a local and call it from there.

[Image: 2nis46r.jpg]
06-06-2014 04:45 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #20
RE: Cutting up monster bodies
Using SRC.Targ will also probably solve any problem related to it.
06-06-2014 10:50 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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