promotional bannermobile promotional banner
premium banner
Collection of small addons for OpenComputers, FSMM and other Mods

Description

FatalAddons

FSMM OpenComputers Integration

This mod currently adds an OpenComputers integration for FSMM, including Adapter compatibility for the ATM Blocks and a banking card (tier 1) that can be used with all OC devices, which adds a simple OC interface, identical to the Adapter integration.

The component is exposed via "fsmm_atm" and provides a single function: "requestTransfer(fromPlayer:string, toPlayer:string, amount:number, description?:string):error|nil, nil|string".

The function will return the ID of the transfer request if it was successfully created and an error otherwise.

The component will send a signal "fsmm_transfer", with the following parameters:

  • requestId: string
  • fromPlayer: string
  • toPlayer: string
  • amount: number
  • success: boolean

Requests will automatically reject after 60 seconds.

FSMM Command Integration

Adds the following commands, the similarly named commands being aliases of each other:

  • /fsmm transfer request <player> <amount> [description]
  • /fsmm transfer send <player> <amount> [description]
  • /request <player> <amount> [description]
  • /send <player> <amount> [description]

/request & /send have autocompletion for the <player> parameter.

The /request commands work exactly like the requestTransfer OC function.

Requires FSMM >= 2.8.1.