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-nmm6 (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-nmm6 (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-nmm6 (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
Targon_ground
Author Message
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: Targon_ground
Code:
[ITEMDEF i_shovel_special]
ID=i_shovel
TYPE=t_script
WEIGHT=5
ON=@Create
   COLOR=09a
   HITPOINTS={50 60}
ON=@DClick
   TARGETGW @032 Choose your target
   RETURN 1
ON=@TargOn_Item
   IF (<SRC.TARG.TOPOBJ>!=<SRC.TARG>)
      SRC.SYSMESSAGE @032 You dont need a shovel to dig there...
      RETURN 1
   ENDIF
   IF !(<SRC.TARG.CANSEELOS>)
      SRC.SYSMESSAGE @032 That item is not within line of sight
      RETURN 1
   ELSE
      IF (<SRC.ISGM>)
         SRC.SYSMESSAGE @032 A GM has line of sight to everything... Muhaha!
      ELSE
         SRC.SYSMESSAGE @032 I can see that item
      ENDIF
   ENDIF

   SAY ItemName: <SRC.TARG.NAME>
   SAY Location: <SRC.TARGP>
   SAY TerrainID: <SRC.TARGP.TERRAIN>
   SAY TerrainType: <SRC.TARGP.TYPE>
   IF !(<ISEMPTY <SRC.TARGP.STATICS.0.NAME>>)
      SAY Statics0: <SRC.TARGP.STATICS.0.NAME>
   ENDIF
   SAY Distance: <SRC.TARG.DISTANCE>
   SAY Region: <SRC.TARG.REGION.NAME>
   RETURN 1

ON=@TargOn_Ground
   IF (<SRC.DISTANCE <SRC.TARGP>> > 8)
      SRC.SYSMESSAGE @032 Only Mr Fantastic can reach that far... get closer
      RETURN 1
   ENDIF
   IF !(<SRC.CANSEELOS <SRC.TARGP>>)
      SRC.SYSMESSAGE @032 That location is not within line of sight
      RETURN 1
   ELSE
      IF (<SRC.ISGM>)
         SRC.SYSMESSAGE @032 A GM has line of sight to everything... Muhaha!
      ELSE
         SRC.SYSMESSAGE @032 I can see that location
      ENDIF
   ENDIF

   SRC.SYSMESSAGE Location: X=<SRC.TARGP.X> Y=<SRC.TARGP.Y>
   SRC.SYSMESSAGE TerrainID: <SRC.TARGP.TERRAIN>
   SRC.SYSMESSAGE TerrainType: <SRC.TARGP.TYPE>
   IF !(<ISEMPTY <SRC.TARGP.STATICS.0.NAME>>)
      SAY Statics0: <SRC.TARGP.STATICS.0.NAME>
   ENDIF
   SRC.SYSMESSAGE Distance: <SRC.DISTANCE <SRC.TARGP>>
   SRC.SYSMESSAGE Region: <SRC.TARGP.REGION.NAME>
   RETURN 1
(This post was last modified: 10-26-2013 10:57 AM by RanXerox.)
10-26-2013 09:40 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Targon_ground - seafish - 10-26-2013, 07:00 AM
RE: Targon_ground - sco - 10-26-2013, 08:20 AM
RE: Targon_ground - seafish - 10-26-2013, 08:48 AM
RE: Targon_ground - RanXerox - 10-26-2013 09:40 AM
RE: Targon_ground - seafish - 10-26-2013, 09:48 AM
RE: Targon_ground - Alaric - 10-26-2013, 10:39 AM
RE: Targon_ground - seafish - 10-26-2013, 08:02 PM
RE: Targon_ground - XuN - 10-26-2013, 09:16 PM
RE: Targon_ground - seafish - 10-26-2013, 10:58 PM

Forum Jump:


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