DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 19, 2018, 04:28:47 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: going on vacation option  (Read 4600 times)
0 Members and 1 Guest are viewing this topic.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« on: June 14, 2004, 02:30:44 AM »

I had a player ask for an option to have her account go on vacation, since she will be away for a month and doesnt want it to expire.  I think this is would be a very nice addition.

I would think this would just be as simple as adding a field on accounts, and adding "where onvacation = 0" to a query, but where is that query?  Is there something else that needs to be done?
Logged

Spider
Guest
« Reply #1 on: June 14, 2004, 03:12:13 AM »

I was actually thinking about this option earlier today, but slightly more in depth than just making sure they don't get erased.

You could have a "freeze account" option, you choose how many days (minimum 3) to freeze your account for, and during that time it's impossible for you to log into the account, no other users can interact with you, the account will not change in any way during that time, perhaps not even age.

If that can be done it would be a useful feature for people who go on vacation, and it wouldn't unbalance the game either.

if you're just going to have a feature that checks if a person is "on vacation" before deleting it, be careful.  A user could easily figure this out and set themselves to on vacation so that they can never be erased even if they don't play for ages.
Logged
FW Viper
Guest
« Reply #2 on: June 14, 2004, 04:37:28 AM »

that would be remidyed by doing a

set account to vacation = logging the player out
logging back in removes the vacation flag.

to stop people from setting there account to vacation every time they logged out you could make it so they can only use the option like once or twice a year.
Logged
DeathDragon
Guest
« Reply #3 on: June 14, 2004, 05:35:21 AM »

if you wanted to freeze an account just set there location to something like 10 and in pvp just make it so they can't be killed there...
Logged
Zanzaras
Captain of the Guard
***
Offline Offline

Posts: 220


*Snipe*


View Profile
« Reply #4 on: June 14, 2004, 06:48:01 AM »

This is a good idea (and I have had a real need for it on my server several times) , but in order to prevent abuse, I think an admin should be the only one with the power to freeze an account. If a player is going to be away for an extended period of time they should YOM an admin and request their account to be frozen.
Logged

"Intelligence is like a river, the deeper it is the less noise it makes."
Voratus
Guest
« Reply #5 on: June 14, 2004, 07:23:33 AM »

That is said to be a feature in .9.8. You (the admin) can flag accounts to "not expire".
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #6 on: June 14, 2004, 09:55:26 AM »

I prefer the idea of locking the player out for a set duration of time - less work from the admin side, and you don't have to worry about players 'forgetting' to let you know they're back.

One feature to add might be the ability to login but not go anywhere - sorta like jail - to allow players to check their YOMs if they have a chance to login.
Logged

Play the latest beta version here on DragonPrime
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #7 on: June 16, 2004, 01:48:56 PM »

so umm, yeah, where is the function that checks for expiring accounts??
Logged

Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #8 on: June 16, 2004, 03:00:26 PM »

The first 10 lines in index.php check for expired accounts. It's all there  Cool
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #9 on: June 25, 2004, 10:26:21 PM »

Would be an extremely simple mod to create. If anyone doesn't wanna do it, let me know and I'll do it. Im getting bored anyway =p
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #10 on: June 25, 2004, 11:22:59 PM »

oh, it was easy, that is why i didnt post anything here.  but anyway,

1.  create an integer field on accounts called "vacation" default to 0.

2. around the 7th line of index.php, change it to:
Code:
$sql = "DELETE FROM accounts WHERE superuser<=1 AND vacation=0 AND (1=0\n"

3.  in prefs.php, above:
Code:
if (stripslashes($_POST['bio'])!=$session['user']['bio']){
put:
Code:
if (stripslashes($_POST['vacation'])!=$session['user']['vacation']) $session[user][vacation]=stripslashes($_POST['vacation']);

and place:
Code:
,"vacation"=>"Set your account on vacation?,bool"
in the $form array.

4.  in newday.php, insert a $session[user][vacation]=0;

should do it.
« Last Edit: June 25, 2004, 11:24:05 PM by sixf00t4 » Logged

Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #11 on: June 26, 2004, 02:03:25 AM »

You should also check for 'vacation mode' in PvP, to avoid that player in vacation would be elegible for PvP.
More then that I'd block the access to players in vacation, forcing them to ask to remove the 'vacation mode' through petition or another way (giving control to vacation mode only to admin), or adding another field to store the end date for it.
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
Voratus
Guest
« Reply #12 on: June 26, 2004, 06:14:28 AM »

Yeah, if something like that was to be enacted, the player should have no direct control over it, and while on "vacation", the character should not be able to access anything, save YOM and the news page. Wink
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #13 on: June 28, 2004, 04:11:13 PM »

well, i operate with a K.I.S.S.  (keep it simple and stupid)

i realize that if the person were to be taken out of the pvp list, and they had access to set their account to vacation whenever they wanted to, that that leaves a big exploit open.   And i also try to keep as much work as i can away from the admin side.  by just setting the account to not expire, they can still be attacked, but only once, as long as they don't log in over vacation.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
51 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search