Difference between revisions of "Krafties Energy API"

From Krafties
Jump to navigation Jump to search
(Created page with " Quick Start 1. Drag the script and config notecard into your object or prim "KraftiesEnergyAPI" script "Krafties Energy API Config" notcard 2. Edit the config notec...")
 
Line 3: Line 3:
  
 
1. Drag the script and config notecard into your object or prim
 
1. Drag the script and config notecard into your object or prim
 +
 
"KraftiesEnergyAPI" script
 
"KraftiesEnergyAPI" script
 +
 
"Krafties Energy API Config" notcard
 
"Krafties Energy API Config" notcard
 
          
 
          
 +
 
2. Edit the config notecard for the energy amounts payable to you.
 
2. Edit the config notecard for the energy amounts payable to you.
 +
 
You can use upto 12 amounts seperated by commas. 0 = Any custom amount and allows players to say the amount they wish to give.
 
You can use upto 12 amounts seperated by commas. 0 = Any custom amount and allows players to say the amount they wish to give.
 +
 
Example:    ENERGY_PRICE=0,10,100,1000
 
Example:    ENERGY_PRICE=0,10,100,1000
 
          
 
          
  
 
Response
 
Response
 +
 
Succesfully transactions will fire a linked message which can be parsed:
 
Succesfully transactions will fire a linked message which can be parsed:
 +
 
llMessageLinked(LINK_THIS, 0, "ENERGY_GIVEN|"+fromKey+"|"+toKey+"|"+(string)amount, "");
 
llMessageLinked(LINK_THIS, 0, "ENERGY_GIVEN|"+fromKey+"|"+toKey+"|"+(string)amount, "");

Revision as of 15:52, 30 September 2013

Quick Start

1. Drag the script and config notecard into your object or prim

"KraftiesEnergyAPI" script

"Krafties Energy API Config" notcard


2. Edit the config notecard for the energy amounts payable to you.

You can use upto 12 amounts seperated by commas. 0 = Any custom amount and allows players to say the amount they wish to give.

Example: ENERGY_PRICE=0,10,100,1000


Response

Succesfully transactions will fire a linked message which can be parsed:

llMessageLinked(LINK_THIS, 0, "ENERGY_GIVEN|"+fromKey+"|"+toKey+"|"+(string)amount, "");