SphereServer BugTracker - SphereServer
View Issue Details
0002244SphereServernew feature requestpublic22-11-13 05:5718-01-14 00:35
Coruja 
Ben 
normalminorN/A
resolvedfixed 
 
0.56c Nightly 
Automated (specify build number)
None
None
0002244: Custom functions on SERV.ACCOUNT UNUSED
Actually the "SERV.ACCOUNT UNUSED xxx DELETE" only accept DELETE as command.
It would be great if it accept any function, with this thing ppl will be allowed to create a more customized engine to control inactive accounts

EG: on my server I want some inactive VIP accounts just got flagged with a TAG.Inactive without being blocked/removed, and block some others accounts with valuable items, and delete the remaining inactive useless accounts. But I can't do this since the SERV.ACCOUNT UNUSED only accept DELETE as command
No tags attached.
Issue History
22-11-13 05:57CorujaNew Issue
23-11-13 19:39BenNote Added: 0001781
23-11-13 19:49BenStatusnew => closed
23-11-13 19:49BenAssigned To => Ben
23-11-13 19:49BenResolutionopen => no change required
16-01-14 07:05CorujaNote Added: 0001910
16-01-14 07:05CorujaStatusclosed => feedback
16-01-14 07:05CorujaResolutionno change required => reopened
17-01-14 15:40darksun84Note Added: 0001913
17-01-14 15:41darksun84Note Edited: 0001913bug_revision_view_page.php?bugnote_id=0001913#r558
17-01-14 17:33CorujaNote Added: 0001914
17-01-14 17:33CorujaStatusfeedback => assigned
18-01-14 00:35BenNote Added: 0001915
18-01-14 00:35BenStatusassigned => resolved
18-01-14 00:35BenFixed in Version => 0.56c Nightly
18-01-14 00:35BenResolutionreopened => fixed

Notes
(0001781)
Ben   
23-11-13 19:39   
Did you even try to set a tag this way or are you just guessing based on the fact that the wiki doesn't specify it can?
(0001910)
Coruja   
16-01-14 07:05   
I already tried here, maybe I wrote the wrong info when I reported this problem :P

SERV.ACCOUNT UNUSED works with other commands, not just DELETE. The problem is that this thing works only using 'internal' functions but not using custom functions on script


Example:
SERV.ACCOUNT UNUSED 666 SERV.LOG LOL //<- this line works and will return many logs on console
SERV.ACCOUNT UNUSED 666 roflmao //<- this line doesnt work and doesnt return any log on console

[FUNCTION roflmao]
SERV.LOG LOL
(0001913)
darksun84   
17-01-14 15:40   
(edited on: 17-01-14 15:41)
Correct way is

serv.account unused 666 serv.roflmao

Matched 1 of 3 accounts unused for 3 days
15:41:(test.scp,6)test

(0001914)
Coruja   
17-01-14 17:33   
nice, using this sintax it works :D
but now there's another problem, the function works but there's no way to get any reference to the account. I dont know if I'm missing something or if really doesnt works

SERV.ACCOUNT UNUSED 666 SERV.roflmao //(already tried SRC, ACT, etc)

[FUNCTION roflmao]
SERV.LOG lol <UID> / <SRC> / <ACT> / <ARGO> / <LINK> / <TARG> / <REF1> //this will return 0 or error on all these references
(0001915)
Ben   
18-01-14 00:35   
Ok, this is now fixed.
This probably also allows custom functions to be used in places that were previously not able too, but I have not found any yet :)