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: #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
Post Reply 


Messages In This Thread
Cutting up monster bodies - kn4tseb - 06-04-2014, 02:53 PM
RE: Cutting up monster bodies - Extreme - 06-04-2014, 03:12 PM
RE: Cutting up monster bodies - kn4tseb - 06-04-2014, 04:34 PM
RE: Cutting up monster bodies - Extreme - 06-05-2014, 02:00 AM
RE: Cutting up monster bodies - kn4tseb - 06-05-2014, 04:48 AM
RE: Cutting up monster bodies - Extreme - 06-05-2014, 05:05 AM
RE: Cutting up monster bodies - kn4tseb - 06-05-2014, 05:14 AM
RE: Cutting up monster bodies - darksun84 - 06-05-2014, 06:12 AM
RE: Cutting up monster bodies - kn4tseb - 06-05-2014, 06:15 AM
RE: Cutting up monster bodies - Extreme - 06-05-2014, 07:22 AM
RE: Cutting up monster bodies - kn4tseb - 06-05-2014, 02:47 PM
RE: Cutting up monster bodies - Extreme - 06-06-2014, 01:41 AM
RE: Cutting up monster bodies - kn4tseb - 06-06-2014 02:18 AM
RE: Cutting up monster bodies - kn4tseb - 06-06-2014, 08:55 AM
RE: Cutting up monster bodies - Extreme - 06-06-2014, 12:52 PM
RE: Cutting up monster bodies - kn4tseb - 06-06-2014, 01:52 PM
RE: Cutting up monster bodies - Extreme - 06-06-2014, 02:13 PM
RE: Cutting up monster bodies - kn4tseb - 06-06-2014, 02:14 PM
RE: Cutting up monster bodies - Mordaunt - 06-06-2014, 04:45 PM
RE: Cutting up monster bodies - XuN - 06-06-2014, 10:50 PM
RE: Cutting up monster bodies - kn4tseb - 06-07-2014, 12:14 AM
RE: Cutting up monster bodies - kn4tseb - 06-07-2014, 05:40 AM
RE: Cutting up monster bodies - kn4tseb - 06-07-2014, 07:41 AM
RE: Cutting up monster bodies - Extreme - 06-07-2014, 08:20 AM
RE: Cutting up monster bodies - kn4tseb - 06-07-2014, 11:15 AM
RE: Cutting up monster bodies - Extreme - 06-07-2014, 12:02 PM
RE: Cutting up monster bodies - kn4tseb - 06-07-2014, 02:21 PM
RE: Cutting up monster bodies - kn4tseb - 06-07-2014, 05:17 PM
RE: Cutting up monster bodies - kn4tseb - 06-08-2014, 08:17 AM
RE: Cutting up monster bodies - XuN - 06-08-2014, 06:30 PM
RE: Cutting up monster bodies - kn4tseb - 06-09-2014, 02:44 AM

Forum Jump:


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