Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

State changes, no money event, but still accepts payments

Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
06-30-2006 12:37
lets say for instance you had something like...

CODE

default
{
money ( key id , integer amt )
{
state blah;
}
}

state blah
{
touch ( integer p )
{
llSay ( 0 , "Hello World." );
}
}



Obviously mines more complex than this, but I'm having this problem that even after it changes states. People are still able to "Pay" the object. Isn't pay event nto suppose to be possible, if there is no money event in the state? None of my other scripts in my object have money events. Anyone ever have something like this happen to them? Or know of a common thing that might cause this.

Thanks
_____________________

Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
06-30-2006 12:39
/54/bb/35022/1.html

Not sure if it's the same thing, but that might help.
Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
06-30-2006 12:45
nvm
What I did is pulled out the scripts, and somehow you could still pay it, and yeah... idk, i'm assuming it's just some weird gltich that i some how fixed.
_____________________

Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
07-01-2006 03:46
Put in llResetScript in every on_rez event handler in every state and your problem will be solved, after the object is taken and rezzed again. This allows the prim to set itself up correctly to handle the money event properly.