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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Point
Author Message
Mordaunt
Super Moderator
****

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



Post: #1
Point
Super simply yet useful point function.


unusually I actually dated this script when i wrote it, hard to beleive it is over 10 years old lol

[Image: 2nis46r.jpg]
(This post was last modified: 11-11-2012 06:03 AM by Mordaunt.)
09-14-2012 11:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Pollo
Apprentice
*

Posts: 22
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0



Post: #2
RE: Point
how could i make that if target is a static item the .point will work as for items and chars?

I need that if target a tree or a wall the command says "xxx is pointing yyy" -----> " yyy is pointed" like for chars and items. Now it only give dig effect on the pointed yyy
ON=@TARGON_ITEM
SRC.SAYU *<src.name> points at <src.targ.name>*
SRC.TARG.SAYU *<src.name> points here*
REMOVE
RETURN 1

ON=@TARGON_GROUND
VAR.POINTERNAME=<SRC.NAME>
SRC.NEWNPC=c_point
SRC.ACT.P=<SRC.TARGP>
SRC.ACT.UPDATE
SRC.SAYU *<src.name> points*
REMOVE
RETURN 1

guess should mod the ON=@TARGON_GROUND code
(This post was last modified: 11-09-2012 08:54 PM by Pollo.)
11-09-2012 08:48 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: #3
RE: Point
Here, quick fix, this isn't a script I intend on doing much work on since it's so straightforward anyway.

Code:
[PLEVEL 1]
point

[FUNCTION point]
NEWITEM=i_pointer
SRC.ACT.EQUIP

[ITEMDEF i_pointer]
NAME=pointer
id=i_memory
type=t_eq_script
WEIGHT=0

ON=@CREATE
ATTR=attr_invis

ON=@EQUIP
TARGETG
SRC.SYSMESSAGE Who/what do you wish to point to?
RETURN 1

ON=@TARGON_CHAR
SRC.SAYU *<src.name> points at <src.targ.name>*
SRC.TARG.SAY *<src.name> points here*
REMOVE
RETURN 1

ON=@TARGON_ITEM
SRC.SAYU *<src.name> points at <src.targ.name>*
SRC.TARG.SAY *<src.name> points here*
REMOVE
RETURN 1

ON=@TARGON_GROUND
VAR.POINTERNAME=<SRC.NAME>
SRC.NEWitem=c_point      
SRC.ACT.P=<SRC.TARGP>
SRC.ACT.UPDATE
SRC.SAY *<src.name> points*
REMOVE
RETURN 1

[itemdef c_point]
id=i_coin
type=t_coin

on=@create
attr attr_move_never
timerf 1, f_talk
var.pointername=
TIMERF 2, remove

[function f_talk]
message <var.pointername> points here

[Image: 2nis46r.jpg]
(This post was last modified: 11-11-2012 03:08 AM by Mordaunt.)
11-11-2012 03:01 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Pollo
Apprentice
*

Posts: 22
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0



Post: #4
RE: Point
cheers Smile
11-13-2012 05:23 AM
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)