Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need help on a camping script

Corbin May
Heart's Desire Owner
Join date: 25 Oct 2006
Posts: 20
06-03-2007 13:20
I would like a copy of the script when it's done.



Always,
Corbin
_____________________
Marty Starbrook
NOW MADE WITH COCO
Join date: 10 Dec 2006
Posts: 523
07-11-2007 03:36
Sorry to crack this old chest nut out again ...

As both scripts seem to depict the payout and frequency, I am finding it hard to dispay the rate without manually typing the data into the script.

Is this caused by the repeat

CODE

string camptimeM = "10 minutes"; // Payout time in minutes (Attract SAYS this)


in both the menu and animation scripts..... The payout IS being updated but the frequency isnt?? any advice as im VERY new to scripting

Thanks

Marty
_____________________
Loves to drink Chokolate Latte at 2am GMT

SB Lighting ...... Im so cheap i cant afford signatures
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
07-11-2007 12:04
From: Marty Starbrook
Sorry to crack this old chest nut out again ...

As both scripts seem to depict the payout and frequency, I am finding it hard to dispay the rate without manually typing the data into the script.

Is this caused by the repeat

CODE

string camptimeM = "10 minutes"; // Payout time in minutes (Attract SAYS this)


in both the menu and animation scripts..... The payout IS being updated but the frequency isnt?? any advice as im VERY new to scripting

Thanks

Marty


The rate is campadd L$ every camptime seconds. Thsi is only paid out per period so although you could convert it to L$/minute, (campadd * 60)/camptime , it would be misleading.
_____________________
I'm back......
Marty Starbrook
NOW MADE WITH COCO
Join date: 10 Dec 2006
Posts: 523
07-13-2007 01:52
and that be the question newgate Sir, e.g. set camp to 2/5 and it still displays 2/10 unless i change the "10 minutes" string in the script ??

Marty
_____________________
Loves to drink Chokolate Latte at 2am GMT

SB Lighting ...... Im so cheap i cant afford signatures
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
07-13-2007 13:03
From: Marty Starbrook
and that be the question newgate Sir, e.g. set camp to 2/5 and it still displays 2/10 unless i change the "10 minutes" string in the script ??

Marty


Well the intention of the script was that when the Running state is re-entered after a menu selection the displayed text would be updated in state_entry.

CODE

state_entry()
{
llSetText("sit here for free money,\nL$"+(string)campadd+" every "+camptimeM,<0,1,0>,1); // Set the hovertext to attract mode
llSitTarget(<0.4, 0, 0.6>, ZERO_ROTATION); // needed for llAvatarOnSitTarget to work
}


The Global values being updated in the listen event handler.
The code all appears to be still in place and having just tested it myself I can confirm that it is working. One thing I did notice is that the menu Channel is not being correctly randomised, as it stands listenchannel is never altered from 0. I seem to recall this was corrected in the orginal script several months ago.
_____________________
I'm back......
1 2