Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key Owner;
- key av;
- integer chan;
- integer listen_handle;
- // Write your function below this comment:
- // Write your function above this line.
- default
- {
- state_entry()
- {
- Owner = llGetOwner();
- chan = -(integer)("0x"+llGetSubString((string)llGetKey(),-8,-1)) -38628;
- }
- on_rez(integer start_param)
- {
- llResetScript();
- }
- touch_end(integer num)
- {
- av = llDetectedKey(0);
- llSetTimerEvent(120.0);
- listen_handle = llListen(chan,"",av,"");
- llTextBox(av, "\nTell me something good:", chan);
- //Call your function below this comment:
- // Call your function above this line.
- }
- collision_start(integer num)
- {
- //Call your function below this comment:
- }
- listen(integer channel, string name, key id, string msg)
- {
- if(channel == chan)
- {
- llListenRemove(listen_handle);
- av = id;
- //Call your function below this comment:
- }
- }
- timer()
- {
- llSetTimerEvent(0.0);
- llListenRemove(listen_handle);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement