View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001816SphereServernew feature requestpublic15-09-10 07:2617-10-12 00:37
ReporterCoruja 
Assigned ToTerrikate 
PrioritynormalSeverityminorReproducibilityN/A
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version0.56c Nightly 
Summary0001816: f_onaccount_create
Descriptionsphere_serv_triggers.scp:

[PLEVEL 7]
f_onaccount_login
f_onaccount_delete
f_onchar_create
f_onchar_delete
f_onserver_start
f_onserver_save
f_onserver_save_ok
f_onserver_save_fail
f_onserver_save_finished
f_onserver_exit
f_onserver_blockip

where's f_onaccount_create? :D
TagsNo tags attached.
Nightly Version20-09-2009
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000669)
ShiryuX (developer)
22-09-10 21:37

The only situation able to use this is 'Free Account' but is the same as using _login in there. For the rest of account creation methods, you either create them manually or with an automated script.
Any real use for this?
(0000675)
Coruja (developer)
24-09-10 07:49

It usefull in some cases that you must add accounts using SERV.ACCOUNT ADD ingame, since you cant create an MySQL table for this account just typing "serv.account add lol". It can be done with a custom function

[FUNCTION NewAccount]
//SINTAX: NewAccount login,password
SERV.ACCOUNT ADD <ARGV0> <ARGV1>
DB.CONNECT
DB.something
DB.CLOSE

But using f_onaccount_create we got more control over account creation because you can deny the creation without using workarounds (disabling SERV.ACCOUNT ADD function and make ppl use just the custom NewAccount function).

Btw its easier to use, because when I write SERV.ACCOUNT ADD the account info will be stored on SQL, and when this account get deleted it will delete account info on SQL too in the same way it get stored.

[FUNCTION f_onaccount_create]
//store account info on SQL

[FUNCTION f_onaccount_delete]
//delete account info from SQL

- Issue History
Date Modified Username Field Change
15-09-10 07:26 Coruja New Issue
15-09-10 14:27 ShiryuX Note Added: 0000633
15-09-10 14:27 ShiryuX Note Edited: 0000633 View Revisions
15-09-10 14:28 ShiryuX Note Deleted: 0000633
22-09-10 21:37 ShiryuX Note Added: 0000669
24-09-10 07:49 Coruja Note Added: 0000675
17-10-12 00:37 Terrikate Status new => resolved
17-10-12 00:37 Terrikate Fixed in Version => 0.56c Nightly
17-10-12 00:37 Terrikate Resolution open => fixed
17-10-12 00:37 Terrikate Assigned To => Terrikate


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker