Added the do_store and do_bank functions with full functionality. do_bank does not allow for transferred funds because I'm not sure if i want that in the game or not. A unworking commented out source for that part is included in the gameserv.cpp file.
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@16
bc333340-6410-0410-a689-
9d09f3c113fa
Added the do_store command, and some store functionality. Also added an init_masters() function and inputted values for masters. Committing because I'm going to be uploading to sourceforge now :)
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@15
bc333340-6410-0410-a689-
9d09f3c113fa
do_identify is now fixed (i hope). All previous do_identify commits were buggy and segfaulted a lot. I think this was due to the crypt() function changing something in the string, so I simply made a new string, copied the real string contents, encrypted, compared, and deleted the new string. Dynamic memory allocation is fun :)
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@14
bc333340-6410-0410-a689-
9d09f3c113fa
Made significant advances in the do_identify function. A new function:
void setPtr( T *value ) was added to the ListNode class. This enables the
user to change the address that the T *data variable points to, while deleting
the old one. This enabled the do_identify function to work properly, whereas
I simply have a NULLL aClient pointer on the players list, and when a
aClient on the clients list identifies, it sets the player data to the real
aClient, and points the player's aClient from a fake one to the real one,
then deletes the old fake aClient :)
--Kain
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@13
bc333340-6410-0410-a689-
9d09f3c113fa
Attempting to write the do_identify function with little success. I'm somewhat at a loss here, and i'm thinking about redoing it all, but i wanted to commit anyway.
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@12
bc333340-6410-0410-a689-
9d09f3c113fa
Fixed the bug that would cause a segfault when load_gs_dbase() was called. I was using delete
this in the Player::reset() function, which was causing the pointer to the player to be deleted.
In reality all I wanted was to delete the name and password IF they had memory. I did not
realize that delete did more than simply calling the deconstructor.
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@11
bc333340-6410-0410-a689-
9d09f3c113fa
Added tcpserver for use in gameserv development.
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@10
bc333340-6410-0410-a689-
9d09f3c113fa
Makefile Modification for tcpserver.cpp
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@9
bc333340-6410-0410-a689-
9d09f3c113fa
Working on doing the identify/register scheme. Right now, there are problems with the player
deconstructor which is causing a segfault on load_gs_dbase(); Committing anyway because a lot
of changes were made :) - Kain
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@8
bc333340-6410-0410-a689-
9d09f3c113fa
took out something... just a test
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@7
bc333340-6410-0410-a689-
9d09f3c113fa
Just a test... edited a comment, that's all
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@6
bc333340-6410-0410-a689-
9d09f3c113fa
Initial revision
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@2
bc333340-6410-0410-a689-
9d09f3c113fa
New repository initialized by cvs2svn.
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@1
bc333340-6410-0410-a689-
9d09f3c113fa