4908 Commits

Author SHA1 Message Date
FlavioJS
fa8de3cb7e ups
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9648 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 17:15:53 +00:00
FlavioJS
a7ee9a9961 - Cleaned up the ip rules/DDoS section of the code. (the allow,deny and deny,allow cases were switched)
- Updated the information about ip rules and DDoS protection in packet_athena.conf and commented out the line "allow: all" so connections are rejected when a DDoS is detected.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9647 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 13:51:38 +00:00
KarLaeda
60f4e80cc1 Fixed exploits in Valentine Event Scripts
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 11:16:19 +00:00
ultramage
d50f358f5e Disambiguation
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9645 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 06:54:44 +00:00
FlavioJS
dde66aee4e - Fixed autotrading characters not being able to reconnect. Seams like I misunderstood how id_db and pc_db are used.
Ref: http://www.eathena.ws/board/index.php?showtopic=131873

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-12 03:40:18 +00:00
ultramage
4194ea17da Update to the new locations, adds more warps (thor_camp)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9643 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-11 20:08:39 +00:00
FlavioJS
8d7a0bd454 - Fixed the script engine not parsing strings in multibyte charsets correctly (should have been done in r9532).
Ref: http://www.eathena.ws/board/index.php?showtopic=132004

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-11 08:34:34 +00:00
FlavioJS
6e27509f86 - Console plugin working when built as Windows native.
The linux part has the same strategy but uses the new asynchronous input abstraction layer.
The abstraction layer is there to facilitate changes, was really handy when trying to get it working as windows native. :)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9641 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-11 08:02:45 +00:00
ultramage
0a09549be2 Combined most of the txt/sql mobdb reading code
- mob.c is now some 10kB less redundant (now using a common function)
- automatically filled in some missing parts of the txt part (view_range_rate, chase_range_rate, line counting, etc)
- also cleaned it up significantly

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-10 16:45:04 +00:00
FlavioJS
aa371b3af3 - Fixed the define script_lastdata, introduced by me at r9637 (had the wrong sign)
really hate these types of bugs, no more committing late for me >.>

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-10 14:57:54 +00:00
ultramage
dc139362e8 Small typo fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 18:19:26 +00:00
FlavioJS
1f54e62d13 - Updated some functions calls that where using the wrong number of arguments with checkcart,checkfalcon,checkriding,getgmlevel,basicskillcheck.
hmm, maybe I should add a config option for lazy scripter that still want to run script code that uses too many arguments

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 17:59:27 +00:00
FlavioJS
4b78fc3c9f - Changes to script buildin functions:
* functions checking if a player is attached as soon as possible.
  * functions that required a player attached and would crash if none was 
    there terminate the script now. (others keep the current behaviour to 
    maintain full backward compatibility)
  * removed the unused flag argument in guildskill.
  * bonus,bonus2,bonus3,bonus4 use the same function now (remains the same 
    script-wise)
  * added an optional parameter to setcart,setfalcon,setriding so it's 
    possible to remove the cart/falcon/mount or select a specific cart
  * other cleanups

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9636 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 17:31:13 +00:00
Lance
e8303f77cc And the changelog :B
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 02:45:46 +00:00
Lance
6827bc726b * Hotfix: Freeing of freed pointer when replacing script functions. [Lance]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9634 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 02:45:01 +00:00
ultramage
b0aa97039b Unimportant cleanups
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-08 16:50:54 +00:00
ultramage
284b66e65c * Silenced the plugin export messages during startup [ultramage]
* Fixed an old debug message displaying %d instead of a number
* Commented out a login_log call (sql doesn't implement that function!)
* Found the reason why the console didn't want to run on windows
* Moved the plugin.def file to the plugins dir and added console.def

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9632 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-08 15:40:41 +00:00
FlavioJS
0129172c63 - Added a precompiler error when the shutdown defines are not found.
- Added parse_console to the plugin API.
- Added plugin for parsing the console. (working with cygwin)
- Added the console plugin to plugin_athena.conf commented out.
- Copied the parse_console code form login txt to login sql and char.
- Added propper plugin version compatibility tests.
- Better output when a plugin fails to load.

-----

The console plugin (at it's 3rd version) uses two pipes and another thread.
- the other thread reads data from stdin and sends it through one of the pipes
- the other pipe serves as semaphore (and terminator) to that thread
- the normal thread checks if the pipe has data once every timer cycle, if data is found it invokes parse_console with that data

Worth noting: the first version didn't use another thread and just checked if data was available on the input stream, but apparently that can't be done to standard input in windows

It's only been tested on cygwin (and should work on most *nix systems), can't test native windows right now because I'm having trouble exporting the required plugin variables in VS8
src/plugins/Makefile hasn't been updated because it's not working properly for me

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9631 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-08 08:35:32 +00:00
FlavioJS
da5d22b67f - Fixed the sleep timers not being removed when the an npc was being unloaded and when reloading scripts.
Ref: http://www.eathena.ws/board/index.php?showtopic=131464

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-07 17:59:25 +00:00
ultramage
3433d36c12 Updated the documentation to match the agitcheck() behavior
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9628 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-07 17:42:41 +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
ultramage
9f164c312b - re-added the duplicit nj/gs name messages in msg_athena
- renamed atcommand_sub to is_atcommand_sub (charcommand too)
- reformatted conf-tmpl's comments a bit
- and a fix to the stable changelog to make my last commit more descriptive

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9625 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-07 07:48:04 +00:00
ultramage
d83cb2e926 - Fixed Succubus/Incubus combo not doing regen correctly
Read why at http://www.eathena.ws/board/index.php?showtopic=129814

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9622 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-06 16:07:19 +00:00
FlavioJS
db02576357 - Now winsock 2 is required.
- Cleaned up do_close and socket_init a bit.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9621 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-06 12:11:50 +00:00
FlavioJS
56921611e1 - Fixed the weight icon dissapearing and reappearing when attacking. (introduced by me at r9600, fix based on ultramage's code)
Ref: http://www.eathena.ws/board/index.php?showtopic=131211

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-06 07:27:52 +00:00
ultramage
59b38494b7 - Major reconfiguration of the trunk VS8 project files, read the changelog for details
- Also removed some deprecated code that was causing linking conflicts
- And fixed a missing md5calc reference in stable's VS8 files

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-05 15:57:01 +00:00
Lupus
f78ebc0cd7 updated noicewall, updated SL ques,
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9618 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-05 15:32:10 +00:00
Lupus
c7b86500e5 fixed @go bug
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9617 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-05 11:52:21 +00:00
ultramage
38b17c776d - Added Au{R}oN's updated version of the effect list
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9616 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-04 18:40:25 +00:00
ultramage
851a1e259a - Updated /doc from jAthena
- Completed adding of the new cities to @go
  > that function is ugly and needs a complete rewrite, asap
- Updated thor volcano warps

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-04 18:33:53 +00:00
ultramage
74d8bc1cab - eol-styled some remaining files
- deleted some outdated files

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9614 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 22:12:33 +00:00
ultramage
e46b9e7d41 - Now the server will by default perform symmetric adding of friends
- > TODO - symmetric deletion (http://www.eathena.ws/board/index.php?showtopic=130749)
- Added a first approximation of warps for the new maps (by $ephiroth)
- Added Rachel and Veins to the list of @go destinations

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 18:18:50 +00:00
FlavioJS
63c6008744 ups... forgot to remove this before committing
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9612 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 12:03:22 +00:00
FlavioJS
129bff5fb6 - Fixed FIFO defines in TURBO mode.
Ref: http://www.eathena.ws/board/index.php?showtopic=129766
  The rest of the TURBO related errors are about the HEAD defines having to be at the start of a block because they contain a variable declaration. (i won't fix these)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9611 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 12:01:43 +00:00
FlavioJS
ed74a4c9c7 - Moved refusal of a known packet versions to clif_parse_WantToConnection and made it check for non-player object with that id.
Changed in reaction to: http://www.eathena.ws/board/index.php?showtopic=130808

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9610 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 07:57:05 +00:00
FlavioJS
00c558490a - JK_JOINTBEAT as described in:
http://www.ragnainfo.net/wiki/index.php/Vital_Strike
  Although not clear, it's being assumed that the 2x damage is only for the break neck ailment.
  Reported by zaibach in http://www.eathena.ws/board/index.php?s=&showtopic=93873&view=findpost&p=727844

Note: this should be reviewed by Skotlex or someone that knows this part of the code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 05:07:58 +00:00
ultramage
215762fe8c - Fixed pc_calc_skilltree ignoring prerequisites / joblvl requirements.
- Re-applied change r9593 that got accidentally reverted by r9595.
- Added the official behavior of monsters regaining full hp when they morph.
- Added support for text/comments at the end of monster spawn lines (<tab> required)
- Silenced the debug message in socket.c that's been freaking people out.
- Modified the useless error message in atcommand_effect.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-03 03:05:43 +00:00
FlavioJS
88addb1951 - Fixed SC_JOINTBEAT not doing crit damage for the Neck Break ailment.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9605 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-02 08:46:03 +00:00
FlavioJS
a35ee1f5d7 - Gospel sends the buff message to the affected player.
Reported by holybeske in http://www.eathena.ws/board/index.php?showtopic=130440

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9604 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-02 07:17:11 +00:00
FlavioJS
2bd2fbacbe - added info about sleep,sleep2,awake commands and updated the variables section (hopefully all info is correct)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9603 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-01 18:47:59 +00:00
DracoRPG
b6aac83a77 Made High Speed Cart Ram (WS_CARTTERMINATION) ignore Crusader's Guard and Shield Reflect.
And happy new year!

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9602 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-31 22:48:50 +00:00
FlavioJS
d085b9f628 - Added more info when npc_scriptcont tries to continue a different script.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9601 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-31 13:07:22 +00:00
FlavioJS
e0399ebb83 * Refer to http://www.eathena.ws/board/index.php?showtopic=130285
- Renamed pc_checkweighticon to pc_updateweightstatus and cleaned it.
- Updated pc_is50overweight to use battle_config.natural_heal_weight_rate.
- Added 90% weight check when attacking.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9600 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-31 12:12:42 +00:00
FlavioJS
0cf60d9ca1 - Updated getitem and guardian entries in script_commands.txt.
- Fixed getitem trying to get <character ID> from the wrong argument.
- Now getitem can be run on scripts without a player attached if <character ID> is specified.
- Now the two last arguments of guardian are optional and independant of each other ("<event label>" and <guardian index>). This way the previous implementation and script_commands definition are still valid code.
- Now buildin function names and argument definitions are checked for validity before adding the function to the script engine.
  Argument definitions follow the pattern:
    (v|s|i|l)*\?*\*?
    v - value (string or int)
    s - string
    i - int
    l - label
    ? - one optional parameter
    * - unknown number of optional parameters

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-31 09:22:25 +00:00
FlavioJS
4fa4e26d99 - Reverted the packet structure changes to mmo_char_send006b in r9588 and corrected the bug that I was originally fixing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-30 20:28:37 +00:00
Playtester
8160fd2b40 Fixed typo in mob_skill_db
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9597 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-30 14:15:42 +00:00
Lance
b319b03eba WTF was I doing?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 18:45:41 +00:00
Lance
f2df4e5b2a * Small fix in TK_MISSION from 1/101 to 1/100 probability. (Valaris)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9594 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 18:44:00 +00:00
skotlex
eb080dbd67 - Fixed spiritballs not correctly being used for skills such as Finger Offensive when GM unconditional is set.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 18:36:15 +00:00
skotlex
678096381e - Skill use is now cancelled when you use it while cloaking, and the uncloaking process warps you.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9591 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-29 14:21:09 +00:00