Difference between revisions of "Krafties Energy API"
Jump to navigation
Jump to search
MyraMidnight (talk | contribs) m |
MyraMidnight (talk | contribs) m |
||
Line 1: | Line 1: | ||
[[Category:Krafties API]] | [[Category:Krafties API]] | ||
− | + | ==Quick Start== | |
#Drag the script and config notecard into your object or prim | #Drag the script and config notecard into your object or prim | ||
Line 8: | Line 8: | ||
#*You can use upto 12 amounts seperated by commas. <code>0</code> = Any custom amount and allows players to say the amount they wish to give. | #*You can use upto 12 amounts seperated by commas. <code>0</code> = Any custom amount and allows players to say the amount they wish to give. | ||
#*:Example: <code><nowiki>ENERGY_PRICE=0,10,100,1000</nowiki></code> | #*:Example: <code><nowiki>ENERGY_PRICE=0,10,100,1000</nowiki></code> | ||
− | |||
− | + | ===Response=== | |
Succesfully transactions will fire a linked message which can be parsed: | Succesfully transactions will fire a linked message which can be parsed: | ||
+ | :<code><nowiki>llMessageLinked(LINK_THIS, 0, "ENERGY_GIVEN|"+fromKey+"|"+toKey+"|"+(string)amount, "");</nowiki></code> | ||
− | + | ==Notes== | |
− | + | *Only transferable energy can be given | |
− | |||
− | |||
− | Only transferable energy can be given |
Revision as of 02:26, 20 August 2014
Quick Start
- Drag the script and config notecard into your object or prim
- "KraftiesEnergyAPI" script
- "Krafties Energy API Config" notcard
- 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
- Example:
- You can use upto 12 amounts seperated by commas.
Response
Succesfully transactions will fire a linked message which can be parsed:
llMessageLinked(LINK_THIS, 0, "ENERGY_GIVEN|"+fromKey+"|"+toKey+"|"+(string)amount, "");
Notes
- Only transferable energy can be given