Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cutting up monster bodies
Author Message
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #24
RE: Cutting up monster bodies
Nahh, you don't need to make the function outside the @targon_item trigger, only if you will use this function in another place too.

Try this one...

PHP Code:
on=@TargOn_Item
REF1 
<SRC.TARG>
IF (<
REF1.TYPE> == T_CORPSE) && STRMATCH(*WEAPON*,<TYPE>) // if this is a corpse and is being carved using a sharped weapon
 
IF (<SRC.DISTANCE <REF1> > 2)
  
SRC.SYSMESSAGE You must be near the corpse to carve it.
  RETURN 
1
 
ENDIF
 IF <
REF1.TIMESTAMP>
  
REF1.TIMESTAMP 0
  SRC
.ANIM 11
  SERV
.NEWITEM i_blood_2 1 i_blood_smear 1 }
  NEW.
<REF1>
  NEW.
TIMER 60
  
NEW.FIX
  SERV
.NEWITEM i_blood_pool_large
  
NEW.<REF1>
  NEW.
TIMER 60*3
  
NEW.FIX
  
RETURN 1
 
ELSE
  
SRC.SYSMESSAGE This body is already carved.
  RETURN 
1
 
ENDIF
ENDIF 

About the world cup, we brazilian are not very happy with it.
We have a lot of social problems, our health and security system is poor.
We have people dieing in hospitals without assistance or things to help the pacients, our doctors are very responsibles to cure people without the right medicines and tools.
There are the bandits who kills cops, kids stealing and killing, but they don't go to jail because they are "young".

Our govern is going communist, they made a harbor in Cuba using our money, and here in Brazil we don't have a harbor like that one.

They willing to make a coup and turn it in a dictatorship...

In october we have the election and something will happen.

In 12th June I'd be with my gf watching this circe Big Grin

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-07-2014 08:20 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)