31 Commits

Author SHA1 Message Date
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
Valaris
ad49453e0e * Removed the conf sql code for now. Maybe will continue later with that project.
Lowered the irc keepalive timer, and added some checks for use_irc that should have been there.
	  Added a return line \n to the beginning of the title screen. [Valaris]


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5241 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-10 00:09:29 +00:00
skotlex
d69479b946 - Added define clif_deadsit to send the dead state into player packets if the player is in trick dead state.
- Venom Splasher always hits (but splash damage targets can still avoid it)
- Using autoloot with no arguments now toggles it between @autoloot 0 and @autoloot 100%
- Falcon Assault now takes Blitz Beat lv5 as base damage.
- Fixed pc_makesavestatus not updating status.option correctly.
- Corrected Waterball so that higher levels can do insane amount of hits.
- Altered slave behaviour. No more random walking, will stay within 2 cells of their master.
- Reverted the Summon Slave behaviour to not adjust level based on number of current slaves.
- Coma no longer sends SP to 1.
- Updated Meteor so that when level 11 or more is casted, the area over which meteors fall is tripled.
- Dark elemental characters are now inmune to Curse.
- Fixed sc_data saving to sql buffer building method. Thanks to its_sparky.
- Changed the map zone reading from using pow to a bit shift.
- Experience has now been changed to unsigned int, and is read as such from the dbs.
- Increased HT_DETECTING seek range to 7x7
- Added function map_foreachinrange which actually checks distance of nearing objects (unlike for each in area which uses a square area), may come handy for future code.
- Corrected Venom Splasher: Being hit does not cancels it, works at 75% or less of target's HP, being hit normally while under the count has a chance of causing poison. Damage is +400% + 50*lv%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:38:51 +00:00
Valaris
4fe9b3abb3 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5202 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-02-05 17:54:29 +00:00