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
Placing multis
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #1
Placing multis
I have found in the wiki an old function:

TARGETFGMW function ->

Displays a targeting cursor to SRC. F makes the function available, and when added, the function name must be the 1st argument. M allows you to place a multi item, in which case the multi number must be passed as an argument. G forces the target to only be the ground. W checks the criminal status of the player before (or after?) the target selection is made.

And in the revisions of old 0.56b, this changelog:

21-10-2006, Nazghul
- Added: New "m" paramter for TARGET function. Now you can use TARGETM and TARGETFM for targeting
a place for your multi (you will see your multi in the "ghost mode"). TARGETM takes as an argument
ONLY ID of the multi, TARGETFM takes 2 arguments - function_to_call,ID_ot_the_multi.


Is it working targetfm?

I have trying add multis with custom variables, because see the multi in 'ghost mode' is very useful before placing items.
But it seems that function is obsolete or not working anymore.

Do you know any other method to place multis in ghost mode, where you can control what functions are you triggering?

Thanks.

I have found the answer.

You can retrieve de ID of a multi with:

.serv.multidef.[item_defname].id

And that number works with targetfm.

It´s strange that id for multis is not declared in the scripts files, but it is working!

Regards.
(This post was last modified: 01-23-2016 11:42 PM by Gil Amarth.)
01-23-2016 11:33 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)