state present added
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 21 Dec 2008 17:03:38 +0000 (17:03 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Sun, 21 Dec 2008 17:03:38 +0000 (17:03 +0000)
web/Obj/brisk.phh
web/room.js

index 7728e1a..5c4d64e 100644 (file)
@@ -610,6 +610,7 @@ define(USER_FLAG_S_DOG,   0x300); // done
 define(USER_FLAG_S_EAT,   0x400); // done
 define(USER_FLAG_S_WRK,   0x500); // done
 define(USER_FLAG_S_SMK,   0x600); // done
+define(USER_FLAG_S_EYE,   0x700); // done
 
 define(USER_FLAG_S_ALL,   0xf00); // done
 
@@ -1565,6 +1566,9 @@ class Room {
         else if (strcasecmp($st_str, "sigaretta") == 0) {
           $st = USER_FLAG_S_SMK;
         }
+        else if (strcasecmp($st_str, "presente") == 0) {
+          $st = USER_FLAG_S_EYE;
+        }
         else {
           $to_user = sprintf('chatt_sub("%s", [2,"%s"],"Questo stato non esiste.");', $dt, NICKSERV);
           break;
index 7825c7b..2a017b9 100644 (file)
@@ -36,6 +36,10 @@ function state_add(flags)
             name = "st_smk.png";
             tit = "sto fumando una sigaretta (e facendomi venire il cancro)";
             break;
+        case 0x700:
+            name = "st_eye.png";
+            tit = "sono presente!";
+            break;
         default:
             break;
         }