Difference between revisions of "@PayGold"

From SphereWiki
Jump to: navigation, search
(Add @PayGold information)
 
(No difference)

Latest revision as of 03:43, 1 June 2016

Description

This trigger fires when a character pays to train, buy something, or hire them.


Fires on:


References

The following object references are explicitly available for this trigger:

Name Description
I The character paying for the service.
SRC The character receiving the gold..
ARGO The stack of gold used to pay (if any) (ie training).

Arguments

The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:

Argument In/Out Description
ARGN1 IO Gold to pay.
ARGN2 IO Payment type ( 0 = training, 1 = buying something, 2 = hiring the NPC)


Return Values

The following return values are explicitly defined for this trigger:

Return Value Description
1 Stops the payment from occurring.