SphereServer BugTracker - SphereServer
View Issue Details
0002228SphereServernew feature requestpublic22-10-13 00:3418-01-15 22:36
xwerswoodx 
Ben 
normalfeatureN/A
closedno change required 
16-06-2013, 0.56b Prerelease 
 
Not Available
None
None
0002228: GMPAGE.n.keys
Can you please add followings for Gm Pages if it is possible

GMPAGE.n.SENDER //UID who sent page
GMPAGE.n.TIME //When he sent page
No tags attached.
Issue History
22-10-13 00:34xwerswoodxNew Issue
22-10-13 16:49CorujaNote Added: 0001742
23-10-13 14:26xwerswoodxNote Added: 0001746
23-10-13 14:27xwerswoodxNote Edited: 0001746bug_revision_view_page.php?bugnote_id=0001746#r536
18-01-15 22:36BenNote Added: 0002650
18-01-15 22:36BenStatusnew => closed
18-01-15 22:36BenAssigned To => Ben
18-01-15 22:36BenResolutionopen => no change required

Notes
(0001742)
Coruja   
22-10-13 16:49   
you can use a workaround to get the sender UID using <SERV.ACCOUNT.<SERV.GMPAGE.x.ACCOUNT>.LASTCHARUID>
but a hardcoded function <SERV.GMPAGE.x.SENDER> will be useful :D

GMPAGE.x.TIME already exists too, but it points a timer (seconds) since the page was sent, not the real datetime. I think it will be a great idea maintain this GMPAGE.x.TIME as a 'timer' and create a new GMPAGE.x.DATE to return the real datetime like DD/MM/AA hh:mm:ss
(0001746)
xwerswoodx   
23-10-13 14:26   
(edited on: 23-10-13 14:27)
Yes we can get UID with account but it isn't good way because if someone send page and change character it affects menu :) I don't want this but it's good way which I hadn't thought before :p

Secondly yes you true, we have seconds but I didn't know TIME exist :) maybe it will be DATE for show when send the page because it's very bad to show "3 days 1 hour 15 minutes 75 seconds before". However, we can show like "At 10:00:00 on 21.10.2013". :)

So, I totally agree with you :p

(0002650)
Ben   
18-01-15 22:36   
I'm closing this as it is not needed.
GM pages are account based and not char based, so the UID of the sender is not stored anywhere.
As for the date, simply do some math using server time - gm page time...