removed useless _ folders
This commit is contained in:
3
Prim_Calculator_1/Prim_Calculator_1.sol
Normal file
3
Prim_Calculator_1/Prim_Calculator_1.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Prim_Calculator_1">
|
||||
<Project name="Prim_Calculator_1" path="Prim_Calculator_1\Prim_Calculator_1.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,62 @@
|
||||
// :CATEGORY:Prim Calculator
|
||||
// :NAME:Prim_Calculator_1
|
||||
// :AUTHOR:Catherine Omega
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:00
|
||||
// :ID:650
|
||||
// :NUM:886
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Prim Calculator 1.lsl
|
||||
// :CODE:
|
||||
|
||||
//********************************************************
|
||||
//This Script was pulled out for you by YadNi Monde from the SL FORUMS at http://forums.secondlife.com/forumdisplay.php?f=15, it is intended to stay FREE by it s author(s) and all the comments here in ORANGE must NOT be deleted. They include notes on how to use it and no help will be provided either by YadNi Monde or it s Author(s). IF YOU DO NOT AGREE WITH THIS JUST DONT USE!!!
|
||||
//********************************************************
|
||||
|
||||
|
||||
|
||||
|
||||
// Prim Calculator 1.3
|
||||
// Catherine Omega Heavy Industries
|
||||
|
||||
// Tells you the number of prims that can be used on a given size of lot.
|
||||
// Tells you the amount of land you must own to support a certain number of prims.
|
||||
// Example: "/land 512" or "/prims 100"
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llListen(0,"",llGetOwner(),"");
|
||||
}
|
||||
|
||||
listen(integer channel, string name, key id, string m)
|
||||
{
|
||||
integer command_divide = llSubStringIndex(m," "); // establish that space (" ") divides words.
|
||||
|
||||
string gCommand = llToLower(llGetSubString(m, 0, command_divide - 1)); // grab the first word of the the input string.
|
||||
string gSubCommand = llToLower(llGetSubString(m, command_divide + 1, 40)); // grab the rest of the input string.
|
||||
|
||||
// Calculate Prims
|
||||
if (gCommand == "/land")
|
||||
{
|
||||
float land = (float)gSubCommand;
|
||||
float primsF = land / 65536 * 15000;
|
||||
integer primsI = (integer)primsF; // converts the float to an integer for easier reading. Note that land must be purchased in parcels of 16 square metres.
|
||||
|
||||
llSay(0,"You can use up to " + (string)primsI + " prims.");
|
||||
}
|
||||
|
||||
// Calculate Land
|
||||
if (gCommand == "/prims")
|
||||
{
|
||||
integer prims = (integer)gSubCommand;
|
||||
integer land = prims * 65536 / 15000;
|
||||
llSay(0,"You need " + (string)land + " square metres of land to support " + (string)prims + " prims.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// END //
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Prim_Calculator_1" guid="D773215D-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D773222D-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Prim_Calculator_1_1.lsl" guid="D77348EA-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user