Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Look notify with counters

From Tapestries MUCK

Revision as of 09:04, 26 December 2008 by Skiltek (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a look counter that will tell the person looking at you how many times you've been looked at and how many times they have looked at you.

The MPI stores the data in a set of props on the specified object.

When you create an object you're given the object's DB ref. You can also get the db ref by using the 'examine' program on an object:

  ex propbox

The script consists of two functions:

  You have looked at {name:this} {if:{lt:{prop:_lookcount/{name:me},#0000},1},
  {store:1,_lookcount/{name:me},#0000},{store:{add:{prop:_lookcount/{name:me},
  #0000},1},_lookcount/{name:me},#0000}} times.

This line checks if the person looking at you has a home folder on your prop storage object and if not creates one and sets the number of times they have looked at you to 1. If they've looked at you before it increments the number of times they've looked at you by 1.

  You're looker number {store:{add:{prop:descount,#60634},1},descount,#60634}

This line checks how many times you've been looked at and displays the value for the looker.

Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox