Full Version: Source Request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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

|=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)
If <tag0.smeltamount>
        If <amount><<local.amountneeded>
                  src.sysmessage u need <eval <local.amountneeded>>
                  return 1

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.
Reference URL's