53 Commits

Author SHA1 Message Date
ultramage
acad1ac4dd minor code tweaking
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18 09:13:01 +00:00
ultramage
5790585d16 * Added flag.server to indicate interserver sockets
- replaces the previous way (setting 'client_addr' to 0)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-17 13:23:34 +00:00
ultramage
8be1c4d48c * Some preparations for the guild script update
- cleaned up npc event execution code
- cleaned up guild data loading/saving code; to be improved later
- removed dummy 'account name' expulsion list management code
- removed columns 'rsv1' and 'rsv2' from guild member data
- removed columns 'rsv1' 'rsv2' 'rsv3' and 'acc' from guild expulsion data
- added upgrade_svn11895.sql for SQL

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-12 09:55:13 +00:00
ultramage
c45404429f Fixed ircbot not processing new users
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-01 10:33:42 +00:00
ultramage
ffbf79b895 Reformatting, warning fixes, unsigned char removal
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10618 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-25 19:37:58 +00:00
ultramage
dfdb5368c7 Corrected some weird fgets() statements, plus reformatted them
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10616 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-25 15:21:53 +00:00
ultramage
9e7eb8804f - Removed the TURBO socket mechanism - it was in fact just using a variable to cache a few arithmetic operations (premature optimization)
- Since the fifohead mess is gone, fixed leftover bad code structuring

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-21 18:40:29 +00:00
ultramage
711d01a128 Reformatting @_@
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 15:50:41 +00:00
FlavioJS
71f29c0445 * Added Buuyo-Tama's shortlist for send/eof sockets (defined out for now).
* Replaced toupper/tolower in ladmin by TOUPPER/TOLOWER defines.

Shortlist:
It's a list of sockets that have data to send and/or are ready for eof processing.
It aims to reduce the amount of time spent on do_sendrecv, where it was spending ~13.5% of execution time on a server with 1k users at WoE.
thanks to Buuyo-tama for the profile info and code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10506 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-09 03:18:16 +00:00
ultramage
5d3ea3da27 * Played around with MinGW a bit today...
- adjusted code so that it handles mingw-specific compatibility problems
- adjusted the makefile, mingw is not a subset of cygwin
* As an experiment Corrected many /W4 warnings on the txt login server

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-09 00:46:55 +00:00
ultramage
6867d93866 typos: recieve -> receive
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10163 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-05 19:02:52 +00:00
ultramage
a167b6ae62 * Some source code cleaning
- Fixed the badly worded messages during mapserver startup
- Cleaned up socket config reading
- Split resolve_hostbyname() into 2 separate functions for clarity
- Moved the probably obsolete LOWER/UPPER macros to db.c (TODO: remove)
- Moved the badly placed compare_item() function to storage.c (see r779)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10119 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-02 13:46:11 +00:00
FlavioJS
43a375ad89 * Added all the missing defines for ctype.h functions and converted all the direct uses to the defines.
Ref: http://www.eathena.ws/board/index.php?showtopic=145235

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-30 06:16:08 +00:00
FlavioJS
2b42ec13cf - Added info on packet 0x86 (simple move packet). Not usable until a clear separation between entering sight/leaving sight/walking in sight is done.
- Propagating const char* from the script engine.
- ".gat" is appended to the map name before sending the changemapserver packet to the client.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-09 01:49:50 +00:00
ultramage
49096125fb Applied a consistent look to all header files (copyright, ifdefs)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-21 15:09:20 +00:00
ultramage
148f3fca88 Cleaning up of the socket code
- Shuffled includes around for files that were leeching off of socket.h
- Added code that enforces standard shutdown behavior for sockets

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-07 19:34:54 +00:00
ultramage
fbe23f27a2 Undid the memset->malloc_set replacement
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-07 16:49:03 +00:00
FlavioJS
637ae9a4dc - Massive EOL normalization & 'svn:eol-style native' flag setting for all txt/conf/h/c files.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-05 13:23:07 +00:00
skotlex
73379857e2 - Made WFIFOHEAD() check for available buffer size remaining on the connection, and when there's not enough space, it will increase it.
- Added define TURBO to the Makefile. It enables MouseJstr's socket access optimization which should speed up the code when accessing the write/read buffers repeatedly within a function.
- Fixed the functions where the RFIFOHEAD/WFIFOHEAD functions were used incorrectly (prevents TURBO enabled compilations from finishing)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-23 15:33:51 +00:00
Lance
3bfc48996a * Fixed potential crash in IRC processing message with '%' using *printf.
* Fixed memory leaking caused by homun_data not freed when removed.

* Minor adjustments to sign/unsign in script commands.

modified   Changelog-Trunk.txt
modified   src/map/irc.c
modified   src/map/script.c
modified   src/map/unit.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-17 16:48:04 +00:00
skotlex
20bb25e81d - Added printing out whenever the irc-module attempts to connect, to debug whether the map-server lag is due to this or not.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 18:42:11 +00:00
Lance
26500644dd * Optional macro MEMSET_TURBO for faster low-level memory initializations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 06:38:17 +00:00
skotlex
8b0f535cec - Fixed parse_names on irc.c crashing when receiving a null argument.
- Modified the parsing of the names line, since some servers will send @ instead of = when separating the information.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7750 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 16:54:37 +00:00
skotlex
4d27716bf1 - Tested and fixed resolve_hostbyname.
- Applied said function around most of the code where needed. Removed includes for the OS/network system pretty much from every file (our socket.c file should handle this)
- Added clif_getip_long, which returns the ip as a long. Prevents having to include the files to define the int_addr structure in all files that include clif.h
- Made the GM mute request bypass the manner_system setting.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-22 01:12:52 +00:00
skotlex
785e089deb - Added irc_channel_pass setting and prevent crashing when irc server lookup by host fails. Thanks to Trancid for the details.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7133 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 17:02:03 +00:00
Lance
a28e9d802c [Optimized]
- Removed unused checks for unsigned data type and possible logic error for char type (gcc treats char as unsigned).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29 09:53:45 +00:00
Lance
020b35d68a * Using malloc for memory allocations that doesn't need to be pre-initialized.
* Eliminated initializations for pointers returned by calloc.
* Moved grfio_final to do_init since it's not used after server boot.
* Optimized scripts to return CONSTSTR instead of allocating memory just to return a constant string. Some buildin functions still need work. 
* Disabled graph since it doesn't work yet.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:00:19 +00:00
Zido
411991788d git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6171 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-04-18 22:03:40 +00:00
Zido
bc11c8b54f - IRC Bot can now auto-join when kicked from the channel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 21:28:35 +00:00
Zido
b17413e395 - Added @who to IRC Bot, Refer to changelog.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 21:13:13 +00:00
Zido
d1f8093b08 Refer to changelog
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6144 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 23:17:24 +00:00
Zido
b8eb36637b - Added @users command to the IRC Bot. Checks no. online users.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 23:03:58 +00:00
skotlex
254d003229 - Fixed various include lines in the map server (of the type <include "nullpo.h"> -> <include "../common/nullpo.h">)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 14:24:46 +00:00
Zido
cb78101f64 - The IRC bot now reads a configuration file (irc.c) instead of it all being hardcoded
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08 12:09:36 +00:00
Zido
4287764b5d - Fixed irc.c, no more crashes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08 07:51:27 +00:00
skotlex
8f20e263b2 - Added function status_change_init to initialize all the sc timers. Added sc_data initialization to the npc structures who were missing them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08 06:48:16 +00:00
Zido
8c9b7356eb - IRC User access levels now refresh on a mode set and join/part
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5948 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-07 17:20:46 +00:00
skotlex
a97e263cd9 - Fixed an already free'd pointer error in irc.c:144
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-07 17:03:28 +00:00
Zido
31c287d3a1 Accidently left my IRC info in irc.c >.> we really need to make a .conf for it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06 19:06:37 +00:00
Zido
7fcb955c78 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5935 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-04-06 18:34:45 +00:00
Lance
f2e352bb0f * Fixed compiler warnings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 05:30:12 +00:00
zido
3fe10a51be Started work on commands for the IRC Bot.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-31 15:38:42 +00:00
Lance
3e2fb9c9b0 * Cleaned up mistakes in irc.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5810 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-30 14:57:12 +00:00
skotlex
f5c4a9bbfc - Some cleanups in irc.c
- Changed ASC_BREAKER's cast to 700ms
- Magic skills that ignore element now also don't take into account elemental cards.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 14:08:03 +00:00
skotlex
a396cbebca - Fixed the inf2 for BA_DISSONANCE
- Fixed SC_SWOO's opt3 value.
- Fixed allowing multiple recast of Dissonance/Ugly-Dance
- Fixed those annoying irc.c compile warnings.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-21 14:06:00 +00:00
Lance
25d8aba1fe * Emulated strtok_r functions to work strictly with ANSI compilers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5611 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 15:27:58 +00:00
skotlex
b2382e76f7 - Cleaned up irc.c (moved variable declarations before code commants >.>)
- Updated the VC project files by Joshuaali.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18 01:59:26 +00:00
skotlex
f0c78186b6 - Modified the included files in irc.c, used as reference the includes in common/socket.c, will it compile in Windows systems now?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5310 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 14:49:35 +00:00
skotlex
a56eb4b977 - Fixed the include in irc.c from strings.h to string.h, which fixes a bunch of compilation warnings here...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 20:37:44 +00:00
Valaris
2c19f4bfcd Removed #include <lcms.h> from irc.c, which caused compile errors.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5255 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-11 00:55:55 +00:00