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
Source Request
Author Message
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #1
Source Request
Hello.

I have 2 request to add to source.


Request 1: Carve Trigger

It is posible to make a @trigger for "carve"?

ON=@item_carved // When item is carved
src=character carving
|=Ítem being carved

Return 1 //dosnt allow anything to happen
Return 0 //allow cutting effect but prevent resources generation.

Request 2: Smelt Trigger

ON=@Item_being_smelted
src=character
|=item being smelted
local.amountneeded= //minimum amount needed to smelt and produce resources (default 1)
Local.Maxproduction= //Amount resources the smelting Will produce. (default 1)
eg
Code:
If <tag0.smeltamount>
        local.amountneeded=<tag0.smeltamount>
        If <amount><<local.amountneeded>
                  src.sysmessage u need <eval <local.amountneeded>>
                  return 1
        endif
endif

Return 1 //Prevent all
Return 0 //Prevent resource generation but not anims or fire effects.

This two request, should give Access to carve system and smelting system, so we dont have to replicate the entire system if we want to do lesser changes. It is a pitty to duplicate by script what sphere does better.
(This post was last modified: 01-23-2020 06:03 AM by rastrero.)
01-22-2020 08:10 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)