From: Matteo Nastasi (mop) Date: Sun, 21 Dec 2008 17:03:38 +0000 (+0000) Subject: state present added X-Git-Tag: 3.0.0~168 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=38b5589f5cfd61178b4452aa11039f746fc8b020;p=brisk.git state present added --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 7728e1a..5c4d64e 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -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; diff --git a/web/room.js b/web/room.js index 7825c7b..2a017b9 100644 --- a/web/room.js +++ b/web/room.js @@ -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; }